cinder-manage traceback on missing action

Bug #1902852 reported by Gorka Eguileor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Medium
Gorka Eguileor

Bug Description

Running the cinder-manage command with a category but without an action will throw a Traceback.

$ cinder-manage backup
2020-11-04 10:44:49.541 9465 CRITICAL cinder [-] Unhandled error: oslo_config.cfg.NoSuchOptError: no such option action_fn in group [DEFAULT]
2020-11-04 10:44:49.541 9465 ERROR cinder Traceback (most recent call last):
2020-11-04 10:44:49.541 9465 ERROR cinder File "/home/geguileo/code/stack/cinder/.tox/py37/lib/python3.7/site-packages/oslo_config/cfg.py", line 3188, in __getattr__
2020-11-04 10:44:49.541 9465 ERROR cinder return getattr(self._conf._namespace, name)
2020-11-04 10:44:49.541 9465 ERROR cinder AttributeError: '_Namespace' object has no attribute 'action_fn'
2020-11-04 10:44:49.541 9465 ERROR cinder
2020-11-04 10:44:49.541 9465 ERROR cinder During handling of the above exception, another exception occurred:
2020-11-04 10:44:49.541 9465 ERROR cinder
2020-11-04 10:44:49.541 9465 ERROR cinder Traceback (most recent call last):
2020-11-04 10:44:49.541 9465 ERROR cinder File "/home/geguileo/code/stack/cinder/.tox/py37/bin/cinder-manage", line 10, in <module>
2020-11-04 10:44:49.541 9465 ERROR cinder sys.exit(main())
2020-11-04 10:44:49.541 9465 ERROR cinder File "/home/geguileo/code/stack/cinder/cinder/cmd/manage.py", line 885, in main
2020-11-04 10:44:49.541 9465 ERROR cinder fn = CONF.category.action_fn
2020-11-04 10:44:49.541 9465 ERROR cinder File "/home/geguileo/code/stack/cinder/.tox/py37/lib/python3.7/site-packages/oslo_config/cfg.py", line 3190, in __getattr__
2020-11-04 10:44:49.541 9465 ERROR cinder raise NoSuchOptError(name)
2020-11-04 10:44:49.541 9465 ERROR cinder oslo_config.cfg.NoSuchOptError: no such option action_fn in group [DEFAULT]
2020-11-04 10:44:49.541 9465 ERROR cinder

Tags: cli error option
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.opendev.org/761390

Changed in cinder:
status: New → In Progress
tags: added: cli error option
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 18.0.0.0b1

This issue was fixed in the openstack/cinder 18.0.0.0b1 development milestone.

Changed in cinder:
status: In Progress → Fix Committed
status: Fix Committed → Fix Released
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.