hypervisors.statistics() returns an object that cannot be printed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
Undecided
|
Matthew Gilliard |
Bug Description
>>> print nc.hypervisors.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/stack/
return "<Hypervisor: %s>" % self.id
File "/opt/stack/
raise AttributeError(k)
AttributeError: id
The root cause is at https:/
A little digging shows this little quirk:
>>> type(nc.
<class 'novaclient.
>>> type(nc.
<class 'novaclient.
Why is a collection of statistics about all hypervisors being modelled as if it were a single hypervisor? All hypervisors have ids, but a collection of statistics being does not. This is the real problem which needs fixing, IMHO.
Changed in python-novaclient: | |
assignee: | nobody → Matthew Gilliard (matthew-gilliard-u) |
description: | updated |
description: | updated |
Changed in python-novaclient: | |
status: | New → Confirmed |
description: | updated |
Changed in python-novaclient: | |
milestone: | none → 2.21.0 |
Changed in python-novaclient: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/122436
Review: https:/