I executed this test manually and it passed. So the issue is from the test.
cmd used:
export OS_CLOUD=openstack_helm && openstack image create --file /home/sysadmin//CentOS-7-x86_64-GenericCloud.qcow2 --disk-format qcow2 --public 97centos-image
export OS_CLOUD=openstack_helm && openstack flavor create --ram 2048 --disk 20 --vcpus 1 --public --id auto 97centos-flavor
export OS_CLOUD=openstack_helm && openstack server create --image 97centos-image --flavor 97centos-flavor --nic net-id=53c63ac7-ed89-42ce-b3a1-0536bd1195e8 97centos
openstack server show 97centos
Then I reboot the compute-1
openstack server show 97centos and it migrated to compute-0 after a period of time.
I executed this test manually and it passed. So the issue is from the test. openstack_ helm && openstack image create --file /home/sysadmin/ /CentOS- 7-x86_64- GenericCloud. qcow2 --disk-format qcow2 --public 97centos-image openstack_ helm && openstack flavor create --ram 2048 --disk 20 --vcpus 1 --public --id auto 97centos-flavor openstack_ helm && openstack server create --image 97centos-image --flavor 97centos-flavor --nic net-id= 53c63ac7- ed89-42ce- b3a1-0536bd1195 e8 97centos
cmd used:
export OS_CLOUD=
export OS_CLOUD=
export OS_CLOUD=
openstack server show 97centos
Then I reboot the compute-1
openstack server show 97centos and it migrated to compute-0 after a period of time.
Conclusion: This defect can be closed.