After change Host's Availability Zone, the deployed VMs Availability Zone data(in novaapi.request_specs table) can not be updated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Stephen Finucane |
Bug Description
Description
===========
After change Host's Availability Zone, the deployed VMs Availability Zone data(in request_specs table) can not be updated
Steps to reproduce
==================
1.Create host aggregates block_az, add two hosts into this host aggregates, also set availability_zone to block_az.
2.Deploy a VM, named: rhel82-
3.Now remove 2 hosts from block_az host aggregates, these 2 hosts are in "Default_Group" AZ
4. openstack server show rhel82-
+------
| Field | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
5.From novaapi.
MariaDB [novaapi]> select * from request_specs where instance_
"availability_
Expected result
===============
"availability_
Actual result
=============
"availability_
Environment
===========
Ussuri release
summary: |
After change Host's Availability Zone, the deployed VMs Availability - Zone data(in request_specs table) can not be updated + Zone data(in novaapi.request_specs table) can not be updated |
This isn't something you should do, but we should prevent you doing so in the API. In general, making changes to the aggregate a host belongs to should not be done while there are instances on the host. It's for a similar reason that we prevent you making changes to the AZ information of an aggregate when there are instances in any of the aggregate's hosts.