STX-Openstack: "nova live-migration" fails to live migrate after host is forcefully turned off/on
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
New
|
Undecided
|
Unassigned |
Bug Description
Brief Description
-----------------
After a host is forcefully turned off / on, looks like the "nova live-migration" command is not working to this host.
Severity
--------
Minor: System/Feature is usable with minor issue
Steps to Reproduce
------------------
1. Create VMs (on the test, it created 4) on a host with any image, flavor and volume on the standby controller host
2. Turn off the VMs' host (ungracefully) so that they're evacuated
3. After the host is turned on again and is up on the hypervisor list, live migrate one of the VMs to the host that was turned off / on
Expected Behavior
------------------
VM is migrated to the controller (the one that was turned off / on)
Actual Behavior
----------------
VM fails to migrate
Reproducibility
---------------
Intermittent - Happened 2/5 times
System Configuration
-------
Bare metal AIO-DX
Branch/Pull Time/Commit
-------
https:/
Last Pass
---------
https:/
Timestamp/Logs
--------------
[sysadmin@
+----+-
| id | hostname | personality | administrative | operational | availability |
+----+-
| 1 | controller-0 | controller | unlocked | enabled | available |
| 2 | controller-1 | controller | unlocked | enabled | available |
+----+-
[sysadmin@
+----+-
| ID | Hypervisor Hostname | Hypervisor Type | Host IP | State |
+----+-
| 2 | controller-0 | QEMU | 192.168.206.2 | up |
| 4 | controller-1 | QEMU | 192.168.206.3 | up |
+----+-
[sysadmin@
+------
| Field | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| addresses | |
| config_drive | |
| created | 2023-02-
| flavor | flv_nolocaldisk (742cb13f-
| hostId | 666dce8933de5d1
| id | 6a088384-
| image | N/A (booted from volume) |
| key_name | keypair-tenant1 |
| name | tenant1-
| progress | 0 |
| project_id | 11ce72602daf454
| properties | |
| security_groups | name='default' |
| | name='default' |
| status | ACTIVE |
| updated | 2023-02-
| user_id | f9e688ff61204c6
| volumes_attached | id='211283be-
+------
[sysadmin@
[sysadmin@
+----+-
| Id | UUID | Source Node | Dest Node | Source Compute | Dest Compute | Dest Host | Status | Instance UUID | Old Flavor | New Flavor | Created At | Updated At | Type | Project ID | User ID |
+----+-
| 8 | 8406fb4a-
| 6 | 0e5df0a4-
| 5 | a79d7adb-
| 4 | f2147581-
| 3 | 883e7e52-
+----+-
Test Activity
-------------
Sanity
Workaround
----------
Not confirmed: Wait for a few minutes and then try the live migration again