Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1702870

Summary: connection_info is not reverted properly when nova failed to migrate an instance with cinder volume attached
Product: Red Hat OpenStack Reporter: Takashi Kajinami <tkajinam>
Component: openstack-novaAssignee: Lee Yarwood <lyarwood>
Status: CLOSED ERRATA QA Contact: James Parker <jparker>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 13.0 (Queens)CC: astupnik, dasmith, eglynn, jhakimra, jjoyce, jparker, jschluet, kchamart, knoha, lyarwood, mbooth, nchandek, nlevinki, pbabbar, rdiwakar, sbauza, sgordon, slinaber, tvignaud, vromanso
Target Milestone: z9Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-nova-17.0.12-1.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-07 14:14:01 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 Takashi Kajinami 2019-04-25 03:08:33 UTC
Description of problem:

When live migration failed for some reason like timeout, nova reverts attachment information
in cinder, but does not properly revert connection info in block device mapping.

This ends up with inconsistency between the real connection infomation and the one in database,
which cause error in cleanup process when we try to hard-reboot the instance.

There is a bug reported to launchpad and this should be also backported to our downstream versions.
 https://bugs.launchpad.net/nova/+bug/1780973

How reproducible:
Always

Steps to Reproduce:
1. Create a instance
2. Live-migrate the instance and cause timeout in pre_live_migration
3. Then see block device mappings table in nova database and check connection_info

Actual results:
block device mapping record is not reverted and has inconsistent information

Expected results:
block device mapping record is properly reverted

Comment 18 Alex McLeod 2019-10-31 11:32:56 UTC
If this bug requires doc text for errata release, please set the 'Doc Type' and provide draft text according to the template in the 'Doc Text' field. The documentation team will review, edit, and approve the text.

If this bug does not require doc text, please set the 'requires_doc_text' flag to -.

Comment 20 errata-xmlrpc 2019-11-07 14:14:01 UTC
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://access.redhat.com/errata/RHBA-2019:3796

Comment 21 Lee Yarwood 2021-08-02 13:30:23 UTC
*** Bug 1986985 has been marked as a duplicate of this bug. ***