map_instances does not need to be run for pike+
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Nova Cloud Controller Charm |
Fix Released
|
High
|
Liam Young |
Bug Description
The map_instances nova-manage command is currently being run for every release that is >=Ocata. However, this only needs to be run for the transition from Newton to Ocata. Once the cloud is at Ocata all new instances will have an entry in the mapping table. The map_instances command is slow and will needlessly slow down upgrades to pike+.
Below is some testing done at Newton and Ocata:
*** Newton ***
⟫ nova boot --flavor m1.tiny --image cb240fa4-
⟫ nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| afd4d459-
+------
# dpkg -l | grep nova-common
ii nova-common
# mysql -u nova -p -D nova_api -h10.5.0.42 -e "select * from instance_mappings;"
Enter password:
#
juju config nova-cloud-
*** Ocata ***
# dpkg -l | grep nova-common
ii nova-common 2:15.0.
⟫ nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| afd4d459-
+------
# mysql -u nova -p -D nova_api -h10.5.0.42 -e "select * from instance_mappings;"
Enter password:
+------
| created_at | updated_at | id | instance_uuid | cell_id | project_id |
+------
| 2018-01-15 10:57:27 | NULL | 4 | afd4d459-
+------
⟫ nova boot --flavor m1.tiny --image cb240fa4-
⟫ nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| afd4d459-
| 5f856db3-
+------
# mysql -u nova -p -D nova_api -h10.5.0.42 -e "select * from instance_mappings;"
Enter password:
+------
| created_at | updated_at | id | instance_uuid | cell_id | project_id |
+------
| 2018-01-15 10:57:27 | NULL | 4 | afd4d459-
| 2018-01-15 11:00:49 | 2018-01-15 11:00:50 | 5 | 5f856db3-
+------
Changed in charm-nova-cloud-controller: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Liam Young (gnuoy) |
tags: | added: upgrade |
Changed in charm-nova-cloud-controller: | |
milestone: | none → 18.02 |
Changed in charm-nova-cloud-controller: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/533630
Review: https:/