yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #30599
[Bug 1438020] [NEW] replace "hpy.host" with "hyp.get('host')" to avoid "AttributeError: 'dict' object has no attribute 'host'"
Public bug reported:
attribute "host" in ComputeNode was defined as nullable, codes are here
https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/models.py#L122
but some where get this attribute use "hpy.host",
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/contrib/hypervisors.py#L92
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/contrib/hypervisors.py#L104
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/contrib/hypervisors.py#L118
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/contrib/hypervisors.py#L133
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/contrib/hypervisors.py#L154
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/plugins/v3/hypervisors.py#L86
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/plugins/v3/hypervisors.py#L99
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/plugins/v3/hypervisors.py#L114
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/plugins/v3/hypervisors.py#L130
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/plugins/v3/hypervisors.py#L152
if "host" attribute of a compute node is null, will raise exception as follow:
2015-03-24 01:17:37.890 8541 TRACE nova.api.openstack AttributeError: 'dict' object has no attribute 'host'
** Affects: nova
Importance: Undecided
Status: New
--
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/1438020
Title:
replace "hpy.host" with "hyp.get('host')" to avoid "AttributeError:
'dict' object has no attribute 'host'"
Status in OpenStack Compute (Nova):
New
Bug description:
attribute "host" in ComputeNode was defined as nullable, codes are
here
https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/models.py#L122
but some where get this attribute use "hpy.host",
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/contrib/hypervisors.py#L92
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/contrib/hypervisors.py#L104
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/contrib/hypervisors.py#L118
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/contrib/hypervisors.py#L133
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/contrib/hypervisors.py#L154
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/plugins/v3/hypervisors.py#L86
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/plugins/v3/hypervisors.py#L99
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/plugins/v3/hypervisors.py#L114
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/plugins/v3/hypervisors.py#L130
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/plugins/v3/hypervisors.py#L152
if "host" attribute of a compute node is null, will raise exception as follow:
2015-03-24 01:17:37.890 8541 TRACE nova.api.openstack AttributeError: 'dict' object has no attribute 'host'
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1438020/+subscriptions
Follow ups
References