N->O undercloud upgrade creates a duplicate cell_v2 cell
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Oliver Walsh |
Bug Description
Upgrading the undercloud from newton to ocata creates a duplicate default cell_v2 cell:
[root@undercloud-0 stack]# mysql nova_api -e 'select * from cell_mappings; select * from host_mappings; select * from instance_mappings;'
+--
| created_at | updated_at | id | uuid | name | transport_url | database_connection |
+--
| 2018-05-24 15:39:07 | NULL | 1 | 00000000-
| 2018-05-24 15:39:16 | NULL | 2 | 65170299-
| 2018-05-24 15:39:36 | NULL | 3 | c87f607d-
+--
+--
| created_at | updated_at | id | cell_id | host |
+--
| 2018-05-24 15:39:36 | NULL | 1 | 3 | undercloud-
+--
+--
| created_at | updated_at | id | instance_uuid | cell_id | project_id |
+--
| 2018-05-24 15:39:45 | NULL | 1 | a08b73a1-
| 2018-05-24 15:39:45 | NULL | 2 | c4d7e66b-
+--
Instances that exist before upgrade reference the correct cell_id (2), any added after that will reference the incorrect cell_id (3).
Changed in tripleo: | |
milestone: | none → rocky-2 |
Changed in tripleo: | |
milestone: | rocky-2 → rocky-3 |
Changed in tripleo: | |
milestone: | rocky-3 → rocky-rc1 |
Changed in tripleo: | |
status: | In Progress → Fix Released |
milestone: | rocky-rc1 → rocky-3 |
Reviewed: https:/ /review. openstack. org/570081 /git.openstack. org/cgit/ openstack/ instack- undercloud/ commit/ ?id=9c00a1f9914 ca25cc0af497fa1 f7f15b49a18982
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit 9c00a1f9914ca25 cc0af497fa1f7f1 5b49a18982
Author: Oliver Walsh <email address hidden>
Date: Wed May 23 00:47:24 2018 +0100
Stop creating duplicate cell_v2 cells in N->O upgrade
map_ cell_and_ hosts creates a default cell_v2 cell if one does not exist with
host mappings. To avoid duplicate cells this change removes map_call_and_hosts
and reorders the deps to instead run discover_hosts followed by map_instances.
This also adds execs to clean up any exising duplicate cell_v2 cells in an
existing deployment.
Closes-bug: 1773398 841ab26bce796a3 3efce0510b2
Change-Id: I67c50fd5a5d2f4