n-cpu attempts to disconnect volumes after early pre_live_migration failures on the destination during a live migration

Bug #1899835 reported by Lee Yarwood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Medium
Lee Yarwood

Bug Description

Description
===========

When live migrating an instance with volumes attached pre_live_migration on the destination will initially attempt to map these volumes to the destination by creating a volume attachment (cinderv3) or calling initialize_connection (cinderv2).

At present if either call fails the generic live migration rollback code is called and an attempt is made to disconnect volumes from the destination ignoring the fact that they have not been mapped or connected to by that host.

Steps to reproduce
==================

* Live migrate an instance with volumes attached, ensuring calls to either cinder API fail during pre_live_migration.

Expected result
===============
No attempt is made to disconnect volumes from the destination.

Actual result
=============
n-cpu attempts and fails to disconnect volumes from the destination using connection_info from the source bdms.

Environment
===========
1. Exact version of OpenStack you are running. See the following
  list for all releases: http://docs.openstack.org/releases/

117508129461436e13c148bb068b0775d67e85d3

2. Which hypervisor did you use?
   (For example: Libvirt + KVM, Libvirt + XEN, Hyper-V, PowerKVM, ...)
   What's the version of that?

Libvirt

2. Which storage type did you use?
   (For example: Ceph, LVM, GPFS, ...)
   What's the version of that?

N/A

3. Which networking type did you use?
   (For example: nova-network, Neutron with OpenVSwitch, ...)

N/A

Logs & Configs
==============

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to nova (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/758239

Lee Yarwood (lyarwood)
summary: - disconnect_volume called during rollback from pre_live_migration failure
- on destination
+ disconnect_volume called during early rollback from pre_live_migration
+ failure on destination
Lee Yarwood (lyarwood)
summary: - disconnect_volume called during early rollback from pre_live_migration
- failure on destination
+ n-cpu attempts to disconnect volumes after early pre_live_migration
+ failures on the destination during a live migration
Lee Yarwood (lyarwood)
Changed in nova:
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/nova/+/797725

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by "Lee Yarwood <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/nova/+/797725

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.