vim_util get_dynamic_property propSet need not be set - makes vmware driver hard to diagnose
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Gary Kotton |
Bug Description
It is possible for a query for dynamic_property to find no such property. In this case, propSet on the ObjectContent object will not be 'None' it will not even be set.
def get_dynamic_
"""Gets a particular property of the Managed Object."""
obj_content = get_object_
if hasattr(
property_value = None
if obj_content.
if dynamic_property:
return property_value
Salient docs:
http://
Trace from ML thread:
> > "/opt/stack/
> > get_dynamic_
> > obj_content.
> > instance has no attribute 'propSet'\n"]
This error will not be a root-cause error, the root cause will be some other misconfiguration but having this particular error in the trace makes diagnostics harder. Fix in such a way that the calling method receives a 'None' or appropriate default return value.
Changed in nova: | |
milestone: | none → icehouse-1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-1 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/43665
Review: https:/