Bug 1403380
Summary: | openstack-nova: nova host-servers-migrate [hostname] fails when the target node is upgraded (during upgrade osp9->osp10) | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Alexander Chuzhoy <sasha> |
Component: | openstack-nova | Assignee: | Dan Smith <dasmith> |
Status: | CLOSED ERRATA | QA Contact: | Prasanth Anbalagan <panbalag> |
Severity: | high | Docs Contact: | |
Priority: | urgent | ||
Version: | 10.0 (Newton) | CC: | berrange, dasmith, ddomingo, eglynn, jschluet, kchamart, lyarwood, mlopes, oblaut, ohochman, sathlang, sbauza, sclewis, sferdjao, sgordon, srevivo, vromanso |
Target Milestone: | z2 | Keywords: | ZStream |
Target Release: | 10.0 (Newton) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openstack-nova-14.0.2-10.el7ost | Doc Type: | Bug Fix |
Doc Text: |
The `Instance.pci_devices` field is nullable, but previously the `get_instance_pci_devs()` function did not account for that possibility. If it was passed to an instance from an older deployment (for example Red Hat OpenStack Platform 9) with no `pci_devices`, it would crash trying to iterate `None` as a list.
This issue also affected live migration triggered as part of the upgrade workflow; specifically, attempting to live migrate guests from Red Hat OpenStack Platform 9 hosts to Red Hat OpenStack Platform 10 hosts. The issue is now resolved in Red Hat OpenStack Platform 10 as of this update.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-02-23 21:14:50 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Alexander Chuzhoy
2016-12-09 21:19:42 UTC
Adding launchpad and upstream gerrit. Is it also relate to https://bugs.launchpad.net/nova/+bug/1634282 ? adding stable/newton upstream backport to external trackers instead of master Verified as follows, ******** VERSION ******** Before upgrade =============== openstack-nova-compute.noarch 1:13.1.2-9.el7ost @rhos-9.0-signed After upgrade ============== openstack-nova-compute.noarch 1:14.0.3-1.el7ost @rhelosp-10.0-puddle ******** LOGS ******** Live-migration after upgrade of compute-1 to 10 =============================================== [heat-admin@compute-1 ~]$ nova list +--------------------------------------+------+--------+------------+-------------+-------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+--------+------------+-------------+-------------------+ | a548bedc-26d9-492a-b1fd-34a51e6fa255 | vm1 | ACTIVE | - | Running | public=10.0.0.210 | +--------------------------------------+------+--------+------------+-------------+-------------------+ [heat-admin@compute-1 ~]$ nova show vm1 | grep host | OS-EXT-SRV-ATTR:host | compute-0.localdomain | | OS-EXT-SRV-ATTR:hostname | vm1 | | OS-EXT-SRV-ATTR:hypervisor_hostname | compute-0.localdomain | | hostId | fd25478cec5d1bb468981b78ad3dbd1cbf025103ba10fc7f12a8d99b | | host_status | UP | [heat-admin@compute-1 ~]$ [heat-admin@compute-1 ~]$ [heat-admin@compute-1 ~]$ nova live-migration --block-migrate vm1 compute-1.localdomain [heat-admin@compute-1 ~]$ nova list +--------------------------------------+------+-----------+------------+-------------+-------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+-----------+------------+-------------+-------------------+ | a548bedc-26d9-492a-b1fd-34a51e6fa255 | vm1 | MIGRATING | migrating | Running | public=10.0.0.210 | +--------------------------------------+------+-----------+------------+-------------+-------------------+ [heat-admin@compute-1 ~]$ nova list +--------------------------------------+------+--------+------------+-------------+-------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+------+--------+------------+-------------+-------------------+ | a548bedc-26d9-492a-b1fd-34a51e6fa255 | vm1 | ACTIVE | - | Running | public=10.0.0.210 | +--------------------------------------+------+--------+------------+-------------+-------------------+ [heat-admin@compute-1 ~]$ nova show vm1 | grep host | OS-EXT-SRV-ATTR:host | compute-1.localdomain | | OS-EXT-SRV-ATTR:hostname | vm1 | | OS-EXT-SRV-ATTR:hypervisor_hostname | compute-1.localdomain | | hostId | a7cbc82359561dde6dd4f70dc3ecf865666ae78b067db6641b7895b7 | | host_status | UP | [heat-admin@compute-1 ~]$ Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2017-0319.html |