CPUUnpinningUnknown exception thrown after failed Live Migration for instance with dedicated CPUs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
Unassigned |
Bug Description
The instance cannot be deleted after a failed live migration as delete fails with nova.exception.
Steps to reproduce
------------------
1) create a multinode devstack with dedicated_cpu_set configured asymmetrically. host_a 0,1 host_b 2, 3
2) boot an instance on host_a with two dedicated CPUs. It will occupy 0,1
3) break live migration, i.e prevent the host_a to communicate with host_b
4) live migrate the instance. Nova will claim CPU 2, 3 on host_b
5) observer that the live migration failed and rolled back. The instance is running on host_a
6) try to delete the instance. It will fail as nova try to unpin CPU 2, 3 instead of CPU 0, 1 on host_a
2022-07-21 15:35:32,229 ERROR [nova.compute.
Traceback (most recent call last):
File "/build-
self.
File "/build-
self.
File "/build-
, line 828, in _complete_deletion
self.
File "/build-
self.
File "/build-
return f(*args, **kwargs)
File "/build-
self.
File "/build-
self.
File "/build-
cn.
File "/build-
new_
File "/build-
raise exception.
nova.exception.
tags: | added: numa |
tags: | added: race-condition |
Related fix proposed to branch: master /review. opendev. org/c/openstack /nova/+ /850672
Review: https:/