Allocation audit error during live migration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
Haidong Pang |
Bug Description
Description
===========
In live migration,
creates destination node allocation which can get accidentally deleted by audit.
Steps to reproduce
==================
()[root@
+------
| ID | Name | Status | Task State | Power State | Networks | Image Name | Image ID | Availability Zone | Host | Properties |
+------
| 31af6b71-
+------
()[root@
+-----+
| ID | Binary | Host | Zone | Status | State | Updated At |
+-----+
| 133 | nova-compute | node-3.domain.tld | default-az | enabled | up | 2023-11-
| 148 | nova-compute | node-1.domain.tld | ddd | enabled | up | 2023-11-
| 151 | nova-compute | node-2.domain.tld | ddd | enabled | up | 2023-11-
| 226 | nova-compute | node-6.domain.tld | default-az | enabled | up | 2023-11-
| 587 | nova-compute | node-7.domain.tld | ddd | enabled | up | 2023-11-
+-----+
()[root@
()[root@
Deprecated: Option "notification_
Allocations were set against consumer UUID 31af6b71-
2023-11-23 14:23:49.356 144 INFO nova.scheduler.
Deleted allocations for consumer UUID 31af6b71-
Processed 1 allocation.
Expected result
===============
`nova-manage placement audit` can detect active migrations and skip them.
Actual result
=============
`nova-manage placement audit` considers the allocation created on the target node during live migration as an orphaned allocation and will delete it.(The reason for this is that the nova database currently lists the original node as the host for this virtual machine instance. This record will be updated to reflect the target node only upon the completion of the live migration process.)
Environment
===========
1. Exact version of OpenStack you are running. See the following
Openstack Wallaby
2. Which hypervisor did you use?
Libvirt + KVM
2. Which storage type did you use?
Ceph
3. Which networking type did you use?
Neutron
Changed in nova: | |
assignee: | nobody → Haidong Pang (haidong-pang) |
status: | New → In Progress |
Related fix proposed to branch: master /review. opendev. org/c/openstack /nova/+ /901721
Review: https:/