yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #84917
[Bug 1911700] [NEW] glance status upgrade check fails with TypeError
Public bug reported:
When the 'enabled_backends' option has not been set, it defaults to None
and we get the following error:
$ touch test.conf
$ glance-status --config-file=./test.conf upgrade check
Error:
Traceback (most recent call last):
File "/home/cyril/openstack/glance/v/lib/python3.9/site-packages/oslo_upgradecheck/upgradecheck.py", line 196, in run
return conf.command.action_fn()
File "/home/cyril/openstack/glance/v/lib/python3.9/site-packages/oslo_upgradecheck/upgradecheck.py", line 106, in check
result = func(self)
File "/home/cyril/openstack/glance/glance/cmd/status.py", line 36, in _check_sheepdog_store
if 'sheepdog' in getattr(CONF, 'enabled_backends', {}):
TypeError: argument of type 'NoneType' is not iterable
** Affects: glance
Importance: Undecided
Assignee: Cyril Roelandt (cyril-roelandt)
Status: New
** Changed in: glance
Assignee: (unassigned) => Cyril Roelandt (cyril-roelandt)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1911700
Title:
glance status upgrade check fails with TypeError
Status in Glance:
New
Bug description:
When the 'enabled_backends' option has not been set, it defaults to
None and we get the following error:
$ touch test.conf
$ glance-status --config-file=./test.conf upgrade check
Error:
Traceback (most recent call last):
File "/home/cyril/openstack/glance/v/lib/python3.9/site-packages/oslo_upgradecheck/upgradecheck.py", line 196, in run
return conf.command.action_fn()
File "/home/cyril/openstack/glance/v/lib/python3.9/site-packages/oslo_upgradecheck/upgradecheck.py", line 106, in check
result = func(self)
File "/home/cyril/openstack/glance/glance/cmd/status.py", line 36, in _check_sheepdog_store
if 'sheepdog' in getattr(CONF, 'enabled_backends', {}):
TypeError: argument of type 'NoneType' is not iterable
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1911700/+subscriptions
Follow ups