← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1383305] [NEW] VMware: booting compute node with no hosts in cluster causes an exception

 

Public bug reported:

2014-10-20 06:23:38.107 CRITICAL nova [-] AttributeError: 'Text' object
has no attribute 'ManagedObjectReference'

2014-10-20 06:23:38.107 TRACE nova Traceback (most recent call last):
2014-10-20 06:23:38.107 TRACE nova   File "/usr/local/bin/nova-compute", line 10, in <module>
2014-10-20 06:23:38.107 TRACE nova     sys.exit(main())
2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/cmd/compute.py", line 72, in main
2014-10-20 06:23:38.107 TRACE nova     db_allowed=CONF.conductor.use_local)
2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/service.py", line 275, in create
2014-10-20 06:23:38.107 TRACE nova     db_allowed=db_allowed)
2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/service.py", line 148, in __init__
2014-10-20 06:23:38.107 TRACE nova     self.manager = manager_class(host=self.host, *args, **kwargs)
2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/compute/manager.py", line 633, in __init__
2014-10-20 06:23:38.107 TRACE nova     self.driver = driver.load_compute_driver(self.virtapi, compute_driver)
2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/virt/driver.py", line 1385, in load_compute_driver
2014-10-20 06:23:38.107 TRACE nova     virtapi)
2014-10-20 06:23:38.107 TRACE nova   File "/usr/local/lib/python2.7/dist-packages/oslo/utils/importutils.py", line 50, in import_object_ns
2014-10-20 06:23:38.107 TRACE nova     return import_class(import_value)(*args, **kwargs)
2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 186, in __init__
2014-10-20 06:23:38.107 TRACE nova     self._update_resources()
2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 381, in _update_resources
2014-10-20 06:23:38.107 TRACE nova     self.dict_mors.get(node)['cluster_mor'])
2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/virt/vmwareapi/host.py", line 50, in __init__
2014-10-20 06:23:38.107 TRACE nova     self.update_status()
2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/virt/vmwareapi/host.py", line 63, in update_status
2014-10-20 06:23:38.107 TRACE nova     self._cluster)
2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/virt/vmwareapi/host.py", line 34, in _get_ds_capacity_and_freespace
2014-10-20 06:23:38.107 TRACE nova     ds = ds_util.get_datastore(session, cluster)
2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/virt/vmwareapi/ds_util.py", line 254, in get_datastore
2014-10-20 06:23:38.107 TRACE nova     data_store_mors = datastore_ret.ManagedObjectReference
2014-10-20 06:23:38.107 TRACE nova AttributeError: 'Text' object has no attribute 'ManagedObjectReference'
2014-10-20 06:23:38.107 TRACE nova 
n-cpu failed to start

** Affects: nova
     Importance: Critical
     Assignee: Gary Kotton (garyk)
         Status: In Progress


** Tags: juno-backport-potential vmware

** Changed in: nova
     Assignee: (unassigned) => Gary Kotton (garyk)

** Changed in: nova
   Importance: Undecided => Critical

-- 
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/1383305

Title:
  VMware: booting compute node with no hosts in cluster causes an
  exception

Status in OpenStack Compute (Nova):
  In Progress

Bug description:
  2014-10-20 06:23:38.107 CRITICAL nova [-] AttributeError: 'Text'
  object has no attribute 'ManagedObjectReference'

  2014-10-20 06:23:38.107 TRACE nova Traceback (most recent call last):
  2014-10-20 06:23:38.107 TRACE nova   File "/usr/local/bin/nova-compute", line 10, in <module>
  2014-10-20 06:23:38.107 TRACE nova     sys.exit(main())
  2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/cmd/compute.py", line 72, in main
  2014-10-20 06:23:38.107 TRACE nova     db_allowed=CONF.conductor.use_local)
  2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/service.py", line 275, in create
  2014-10-20 06:23:38.107 TRACE nova     db_allowed=db_allowed)
  2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/service.py", line 148, in __init__
  2014-10-20 06:23:38.107 TRACE nova     self.manager = manager_class(host=self.host, *args, **kwargs)
  2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/compute/manager.py", line 633, in __init__
  2014-10-20 06:23:38.107 TRACE nova     self.driver = driver.load_compute_driver(self.virtapi, compute_driver)
  2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/virt/driver.py", line 1385, in load_compute_driver
  2014-10-20 06:23:38.107 TRACE nova     virtapi)
  2014-10-20 06:23:38.107 TRACE nova   File "/usr/local/lib/python2.7/dist-packages/oslo/utils/importutils.py", line 50, in import_object_ns
  2014-10-20 06:23:38.107 TRACE nova     return import_class(import_value)(*args, **kwargs)
  2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 186, in __init__
  2014-10-20 06:23:38.107 TRACE nova     self._update_resources()
  2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 381, in _update_resources
  2014-10-20 06:23:38.107 TRACE nova     self.dict_mors.get(node)['cluster_mor'])
  2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/virt/vmwareapi/host.py", line 50, in __init__
  2014-10-20 06:23:38.107 TRACE nova     self.update_status()
  2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/virt/vmwareapi/host.py", line 63, in update_status
  2014-10-20 06:23:38.107 TRACE nova     self._cluster)
  2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/virt/vmwareapi/host.py", line 34, in _get_ds_capacity_and_freespace
  2014-10-20 06:23:38.107 TRACE nova     ds = ds_util.get_datastore(session, cluster)
  2014-10-20 06:23:38.107 TRACE nova   File "/opt/stack/nova/nova/virt/vmwareapi/ds_util.py", line 254, in get_datastore
  2014-10-20 06:23:38.107 TRACE nova     data_store_mors = datastore_ret.ManagedObjectReference
  2014-10-20 06:23:38.107 TRACE nova AttributeError: 'Text' object has no attribute 'ManagedObjectReference'
  2014-10-20 06:23:38.107 TRACE nova 
  n-cpu failed to start

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1383305/+subscriptions


Follow ups

References