yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #37466
[Bug 1490547] [NEW] Xen Tools: scripts failing due to implicit import of CONF object
Public bug reported:
Some xen tools are failing because some CONF objects seem to be imported
implicitly though import paths rather than though import_opt. For
instance calling destroy_cached_images.py (SOME FIX PENDING, see :
https://review.openstack.org/#/c/209526 )
will result in:
xenapi = xenapi_driver.XenAPIDriver(virtapi.VirtAPI())
File "nova/virt/xenapi/driver.py", line 130, in __init__
self._vmops = vmops.VMOps(self._session, self.virtapi)
File "/nova/virt/xenapi/vmops.py", line 226, in __init__
self.compute_api = compute.API()
File "/nova/compute/__init__.py", line 39, in API
return importutils.import_object(class_name, *args, **kwargs)
File "/oslo_utils/importutils.py", line 38, in import_object
return import_class(import_str)(*args, **kwargs)
File "/nova/compute/api.py", line 304, in __init__
self.servicegroup_api = servicegroup.API()
File "/nova/servicegroup/api.py", line 55, in __init__
report_interval = CONF.report_interval
File "/oslo_config/cfg.py", line 1896, in __getattr__
raise NoSuchOptError(name)
oslo_config.cfg.NoSuchOptError: no such option: report_interval
However, adding CONF.import_opt('report_interval', 'nova.service')
will result in a trace and:
ImportError: cannot import name conductor
** Affects: nova
Importance: Undecided
Assignee: Sulochan Acharya (sulochan-acharya)
Status: New
** Changed in: nova
Assignee: (unassigned) => Sulochan Acharya (sulochan-acharya)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1490547
Title:
Xen Tools: scripts failing due to implicit import of CONF object
Status in OpenStack Compute (nova):
New
Bug description:
Some xen tools are failing because some CONF objects seem to be
imported implicitly though import paths rather than though import_opt.
For instance calling destroy_cached_images.py (SOME FIX PENDING, see :
https://review.openstack.org/#/c/209526 )
will result in:
xenapi = xenapi_driver.XenAPIDriver(virtapi.VirtAPI())
File "nova/virt/xenapi/driver.py", line 130, in __init__
self._vmops = vmops.VMOps(self._session, self.virtapi)
File "/nova/virt/xenapi/vmops.py", line 226, in __init__
self.compute_api = compute.API()
File "/nova/compute/__init__.py", line 39, in API
return importutils.import_object(class_name, *args, **kwargs)
File "/oslo_utils/importutils.py", line 38, in import_object
return import_class(import_str)(*args, **kwargs)
File "/nova/compute/api.py", line 304, in __init__
self.servicegroup_api = servicegroup.API()
File "/nova/servicegroup/api.py", line 55, in __init__
report_interval = CONF.report_interval
File "/oslo_config/cfg.py", line 1896, in __getattr__
raise NoSuchOptError(name)
oslo_config.cfg.NoSuchOptError: no such option: report_interval
However, adding CONF.import_opt('report_interval', 'nova.service')
will result in a trace and:
ImportError: cannot import name conductor
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1490547/+subscriptions