Resize instance fails after creating host aggregate
Bug #1444841 reported by
Qin Zhao
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Latest Kilo code
Reproduce steps:
1. Do not define any host aggregate. AZ of host is 'nova'. Boot one instance named 'zhaoqin-nova' whose AZ is 'nova'
2. Create host aggregate 'zhaoqin' whose AZ is 'zhaoqin-az'. Add host to 'zhaoqin' aggregate. Now AZ of instance 'zhaoqin-nova' in db is still 'nova'; and 'nova list' displays AZ of 'zhaoqin-nova' is 'zhaoqin-az'.
3. Resize 'zhaoqin-nova' fails, no valid host.
4. Boot another instance 'zhaoqin-my-az' whose AZ is 'zhaoqin-az'. Resize 'zhaoqin-my-az' succeed.
5. Remove host from aggregate 'zhaoqin'.
6. Resize 'zhaoqin-nova' succeed. Resize 'zhaoqin-my-az' fails, no valid host.
Changed in nova: | |
importance: | Undecided → Medium |
tags: | added: kilo-backport-potential |
tags: | added: juno-backport-potential |
tags: | removed: juno-backport-potential |
Changed in nova: | |
assignee: | lee jian (leejian0612) → Qin Zhao (zhaoqin) |
Changed in nova: | |
assignee: | Qin Zhao (zhaoqin) → nobody |
status: | In Progress → Confirmed |
To post a comment you must log in.
nova-scheduler reports 'no valid host', because AvailabilityZon eFilter gets AZ from instance property. If instance availability_zone column in db is inconsistent with host AZ, this filter will not select the host.
When we add one host to a host aggregate, should we update instance AZ who running on this host? Or should we make instance AZ obsolete, and make AvailabilityZon eFilter to get AZ from host as 'nova list' does?