nova hypervisor-show is broken when hypervisor_type is ironic type

Bug #1606941 reported by Moshe Levi on 2016-07-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Medium
Unassigned

Bug Description

openstack with master branch configure to use ironic

running
stack@r-dcs88:~/ironic-inspector$ nova hypervisor-show 98f78cb6-a157-4580-bbc7-7b0f9ea03245
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<type 'exceptions.ValueError'> (HTTP 500) (Request-ID: req-0820f738-e07b-47f7-8f11-1399554e22d2)

the nova-api log show

^[[01;31m2016-07-27 14:00:36.008 TRACE nova.api.openstack.extensions ^[[01;35m^[[00mTraceback (most recent call last):
^[[01;31m2016-07-27 14:00:36.008 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/api/openstack/extensions.py", line 338, in wrapped
^[[01;31m2016-07-27 14:00:36.008 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m return f(*args, **kwargs)
^[[01;31m2016-07-27 14:00:36.008 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/api/openstack/compute/hypervisors.py", line 132, in detail
^[[01;31m2016-07-27 14:00:36.008 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m return self._detail(req)
^[[01;31m2016-07-27 14:00:36.008 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/api/openstack/compute/hypervisors.py", line 148, in _detail
^[[01;31m2016-07-27 14:00:36.008 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m True, req) for hyp in compute_nodes]
^[[01;31m2016-07-27 14:00:36.008 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/opt/stack/nova/nova/api/openstack/compute/hypervisors.py", line 72, in _view_hypervisor
^[[01;31m2016-07-27 14:00:36.008 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m hyp_dict['cpu_info'] = jsonutils.loads(hypervisor.cpu_info)
^[[01;31m2016-07-27 14:00:36.008 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/usr/local/lib/python2.7/dist-packages/oslo_serialization/jsonutils.py", line 235, in loads
^[[01;31m2016-07-27 14:00:36.008 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m return json.loads(encodeutils.safe_decode(s, encoding), **kwargs)
^[[01;31m2016-07-27 14:00:36.008 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
^[[01;31m2016-07-27 14:00:36.008 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m return _default_decoder.decode(s)
^[[01;31m2016-07-27 14:00:36.008 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
^[[01;31m2016-07-27 14:00:36.008 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^[[01;31m2016-07-27 14:00:36.008 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
^[[01;31m2016-07-27 14:00:36.008 TRACE nova.api.openstack.extensions ^[[01;35m^[[00m raise ValueError("No JSON object could be decoded")
^[[01;31m2016-07-27 14:00:36.008 TRACE nova.api.openstack.extensions ^[[01;35m^[[00mValueError: No JSON object could be decoded

Moshe Levi (moshele) on 2016-07-27
summary: - nova hypervisor-show is broken when hypervisor_type is ironic is ironic
- type
+ nova hypervisor-show is broken when hypervisor_type is ironic type
melanie witt (melwitt) wrote :
tags: added: ironic
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed

This seems to be a duplicate of https://bugs.launchpad.net/nova/+bug/1594230, which also has a patch up

Change abandoned by Moshe Levi (<email address hidden>) on branch: master
Review: https://review.openstack.org/347870
Reason: yes, you are right,
so let review the other patch https://review.openstack.org/#/c/346868/ I abandon this one

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers