nova-scheduler does not use image_metadata when resizing instances
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Description
===========
We found that nova-scheduler does not use image_metadata when resizing instances.
Steps to reproduce
==================
We have several type of hosts using aggregate.
TypeA:
- aggregate metadata
- image_host_type=A
TypeB:
- aggregate metadata
- image_host_type=B
And we set image_metadata to use aggregation host.
$ glance image-show da8a7cfd-
+------
| Property | Value |
+------
| checksum | aad97895eef6615
| container_format | bare |
| created_at | 2019-08-
| disk_format | qcow2 |
| id | da8a7cfd-
| host_type | A |
~~~
Looks good when creating VM.
But, does not work when resizing VM.
$ nova show 5c56d203-
+------
| Property | 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 | |
| config_drive | True |
| created | 2019-08-
| flavor | m1.small (dfe0448b-
| hostId | 163e1b25a943504
| id | 5c56d203-
~~~
$ nova resize 5c56d203-
$ nova show 5c56d203-
+------
| Property | 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 | |
| config_drive | True |
| created | 2019-08-
| flavor | m1.medium (0911497d-
| hostId | 9b5388ea10622a3
| id | 5c56d203-
~~~
Expected result
===============
After resizing the VM, it will be booted on the specified host
Actual result
=============
Image metadata ignored and scheduled VM boots
Environment
===========
1. Exact version of OpenStack you are running.
* Community OpenStack Rocky
2. Which hypervisor did you use?
* CentOS 7
3. Which networking type did you use?
* Neutron ML2 Driver
Could you please give us sanitized (and ideally at a DEBUG level) n-sch and n-conductor logs so we could see why it looks it doesn't run for you ?
Putting the state to Incomplete, please put back to New once you reply.