Comment 0 for bug 1821026

Revision history for this message
Peng Peng (ppeng) wrote : Containers: lock_host failed on a host with config_drive VM

Brief Description
-----------------
Launch a VM using config drive and add some test data to config drive on this VM, Do cold migrate and lock host. lock host failed.

Severity
--------
Major

Steps to Reproduce
------------------
- Launch a vm using config drive
- Add test data to config drive on vm
- cold migrate
- lock host

Expected Behaviour
------------------
Lock_host success

Actual Behaviour
----------------
failed

Reproducibility
---------------
Reproducible
8 failed of 10 runs

System Configuration
--------------------
Multi-node system

Branch/Pull Time/Commit
-----------------------
master as of 20190320T013000Z

Timestamp/Logs
--------------
[2019-03-20 11:15:28,278] 262 DEBUG MainThread ssh.send :: Send 'nova --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-endpoint-type internalURL --os-region-name RegionOne show 293dbb8b-b3f3-4162-9cae-c328b5852ae5'
[2019-03-20 11:15:29,852] 387 DEBUG MainThread ssh.expect :: Output:
+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | compute-1 |
| OS-EXT-SRV-ATTR:hostname | tenant2-config-drive-5 |
.....
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | True

[2019-03-20 11:16:04,769] 262 DEBUG MainThread ssh.send :: Send 'nova --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-endpoint-type internalURL --os-region-name RegionOne migrate --poll 293dbb8b-b3f3-4162-9cae-c328b5852ae5'
[2019-03-20 11:16:34,515] 387 DEBUG MainThread ssh.expect :: Output:

Server migrating... 0% complete
Server migrating... 0% complete
Server migrating... 0% complete
Server migrating... 0% complete
Server migrating... 0% complete
Server migrating... 100% complete
Finished

[2019-03-20 11:16:34,619] 262 DEBUG MainThread ssh.send :: Send 'nova --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://keystone.openstack.svc.cluster.local/v3 --os-user-domain-name Default --os-project-domain-name Default --os-endpoint-type internalURL --os-region-name RegionOne show 293dbb8b-b3f3-4162-9cae-c328b5852ae5'
[2019-03-20 11:16:36,212] 387 DEBUG MainThread ssh.expect :: Output:
+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+--------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | compute-2

[2019-03-20 11:17:08,864] 262 DEBUG MainThread ssh.send :: Send 'system --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://192.168.204.2:5000/v3 --os-user-domain-name Default --os-project-domain-name Default --os-endpoint-type internalURL --os-region-name RegionOne host-lock compute-2'

[2019-03-20 11:17:44,675] 262 DEBUG MainThread ssh.send :: Send 'system --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://192.168.204.2:5000/v3 --os-user-domain-name Default --os-project-domain-name Default --os-endpoint-type internalURL --os-region-name RegionOne host-show compute-2'
[2019-03-20 11:17:46,169] 387 DEBUG MainThread ssh.expect :: Output:
+---------------------+--------------------------------------------------------------------------+
| Property | Value |
+---------------------+--------------------------------------------------------------------------+
| action | none |
| administrative | unlocked