supported_instance should be array, not string

Bug #1537919 reported by jichenjc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-zvm-virt-driver
Fix Released
Undecided
jichenjc

Bug Description

2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager Traceback (most recent call last):
2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager File "/opt/stack/nova/nova/compute/manager.py", line 6294, in update_available_resource
2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager rt.update_available_resource(context)
2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager File "/opt/stack/nova/nova/compute/resource_tracker.py", line 492, in update_available_resource
2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager self._update_available_resource(context, resources)
2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 271, in inner
2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager return f(*args, **kwargs)
2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager File "/opt/stack/nova/nova/compute/resource_tracker.py", line 499, in _update_available_resource
2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager self._init_compute_node(context, resources)
2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager File "/opt/stack/nova/nova/compute/resource_tracker.py", line 401, in _init_compute_node
2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager self._copy_resources(resources)
2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager File "/opt/stack/nova/nova/compute/resource_tracker.py", line 435, in _copy_resources
2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager self.compute_node.update_from_virt_driver(resources)
2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager File "/opt/stack/nova/nova/objects/compute_node.py", line 336, in update_from_virt_driver
2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager self.supported_hv_specs = [objects.HVSpec.from_list(s) for s in si]
2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager File "/opt/stack/nova/nova/objects/hv_spec.py", line 41, in from_list
2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager hv_type=data[1],
2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager IndexError: string index out of range
2016-01-21 14:40:50.951 4060 ERROR nova.compute.manager

don't need to translate supported_instance to string, it should be array

jichenjc (jichenjc)
Changed in nova-zvm-virt-driver:
assignee: nobody → jichenjc (jichenjc)
Revision history for this message
jichenjc (jichenjc) wrote :

Found this issue in our z/VM CI test

jichenjc (jichenjc)
Changed in nova-zvm-virt-driver:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova-zvm-virt-driver (master)

Fix proposed to branch: master
Review: https://review.openstack.org/272968

Changed in nova-zvm-virt-driver:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova-zvm-virt-driver (master)

Reviewed: https://review.openstack.org/272968
Committed: https://git.openstack.org/cgit/openstack/nova-zvm-virt-driver/commit/?id=fbbcfedde64e68f8f637beabec6c859015016e38
Submitter: Jenkins
Branch: master

commit fbbcfedde64e68f8f637beabec6c859015016e38
Author: jichenjc <email address hidden>
Date: Sun Jan 24 08:23:56 2016 +0800

    not use json dump for supported_instances

    the upper layer expect an array, dump it will make it a
    string and lead to index error. So change it back to array.

    Change-Id: I62895bd11ba16084b67f8d226e071ddd4f387063
    Closes-Bug: 1537919

Changed in nova-zvm-virt-driver:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.