yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #27100
[Bug 1413475] [NEW] cannot get aggregate metadata information when nova-compute starts using xen
Public bug reported:
If the host added using aggregate to slave host in Xenserver
environments,
nova-compute does not start because cannot get aggregate metadata
information.
nova-compute trying to call xenapi's _join_slave method to get host
information,
then db query api called by aggregate_get_by_host function and returns
the aggregate object.
Finally, xenapi's client session object returns the aggregate's
metadetails but the aggregate object does not have
metadetails information.
I think we should use "metadata" instead "metadetails'.
The error messages are below.
2015-01-21 07:40:35.308 2473 CRITICAL nova [req-c98c0fb9-7b47-4100-81c7-a6061410b680 None None] AttributeError: 'Aggregate' object has no attribute 'metadetails'
2015-01-21 07:40:35.308 2473 TRACE nova Traceback (most recent call last):
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/bin/nova-compute", line 10, in <module>
2015-01-21 07:40:35.308 2473 TRACE nova sys.exit(main())
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/cmd/compute.py", line 72, in main
2015-01-21 07:40:35.308 2473 TRACE nova db_allowed=CONF.conductor.use_local)
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 274, in create
2015-01-21 07:40:35.308 2473 TRACE nova db_allowed=db_allowed)
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 147, in __init__
2015-01-21 07:40:35.308 2473 TRACE nova self.manager = manager_class(host=self.host, *args, **kwargs)
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 605, in __init__
2015-01-21 07:40:35.308 2473 TRACE nova self.driver = driver.load_compute_driver(self.virtapi, compute_driver)
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line 1300, in load_compute_driver
2015-01-21 07:40:35.308 2473 TRACE nova virtapi)
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 50, in import_object_ns
2015-01-21 07:40:35.308 2473 TRACE nova return import_class(import_value)(*args, **kwargs)
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/driver.py", line 156, in __init__
2015-01-21 07:40:35.308 2473 TRACE nova self._session = session.XenAPISession(url, username, password)
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/client/session.py", line 87, in __init__
2015-01-21 07:40:35.308 2473 TRACE nova self.host_uuid = self._get_host_uuid()
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/client/session.py", line 143, in _get_host_uuid
2015-01-21 07:40:35.308 2473 TRACE nova return aggr.metadetails[CONF.host]
2015-01-21 07:40:35.308 2473 TRACE nova AttributeError: 'Aggregate' object has no attribute 'metadetails'
2015-01-21 07:40:35.308 2473 TRACE nova
** Affects: nova
Importance: Undecided
Assignee: kwonho lee (lkhysy)
Status: New
** Changed in: nova
Assignee: (unassigned) => kwonho lee (lkhysy)
--
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/1413475
Title:
cannot get aggregate metadata information when nova-compute starts
using xen
Status in OpenStack Compute (Nova):
New
Bug description:
If the host added using aggregate to slave host in Xenserver
environments,
nova-compute does not start because cannot get aggregate metadata
information.
nova-compute trying to call xenapi's _join_slave method to get host
information,
then db query api called by aggregate_get_by_host function and returns
the aggregate object.
Finally, xenapi's client session object returns the aggregate's
metadetails but the aggregate object does not have
metadetails information.
I think we should use "metadata" instead "metadetails'.
The error messages are below.
2015-01-21 07:40:35.308 2473 CRITICAL nova [req-c98c0fb9-7b47-4100-81c7-a6061410b680 None None] AttributeError: 'Aggregate' object has no attribute 'metadetails'
2015-01-21 07:40:35.308 2473 TRACE nova Traceback (most recent call last):
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/bin/nova-compute", line 10, in <module>
2015-01-21 07:40:35.308 2473 TRACE nova sys.exit(main())
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/cmd/compute.py", line 72, in main
2015-01-21 07:40:35.308 2473 TRACE nova db_allowed=CONF.conductor.use_local)
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 274, in create
2015-01-21 07:40:35.308 2473 TRACE nova db_allowed=db_allowed)
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 147, in __init__
2015-01-21 07:40:35.308 2473 TRACE nova self.manager = manager_class(host=self.host, *args, **kwargs)
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 605, in __init__
2015-01-21 07:40:35.308 2473 TRACE nova self.driver = driver.load_compute_driver(self.virtapi, compute_driver)
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line 1300, in load_compute_driver
2015-01-21 07:40:35.308 2473 TRACE nova virtapi)
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/openstack/common/importutils.py", line 50, in import_object_ns
2015-01-21 07:40:35.308 2473 TRACE nova return import_class(import_value)(*args, **kwargs)
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/driver.py", line 156, in __init__
2015-01-21 07:40:35.308 2473 TRACE nova self._session = session.XenAPISession(url, username, password)
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/client/session.py", line 87, in __init__
2015-01-21 07:40:35.308 2473 TRACE nova self.host_uuid = self._get_host_uuid()
2015-01-21 07:40:35.308 2473 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/client/session.py", line 143, in _get_host_uuid
2015-01-21 07:40:35.308 2473 TRACE nova return aggr.metadetails[CONF.host]
2015-01-21 07:40:35.308 2473 TRACE nova AttributeError: 'Aggregate' object has no attribute 'metadetails'
2015-01-21 07:40:35.308 2473 TRACE nova
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1413475/+subscriptions
Follow ups
References