[N->O] Fix wrong database connection for cell0 during upgrade.
authorSofer Athlan-Guyot <sathlang@redhat.com>
Thu, 23 Mar 2017 11:10:48 +0000 (12:10 +0100)
committerEmilien Macchi <emilien@redhat.com>
Fri, 31 Mar 2017 14:32:21 +0000 (14:32 +0000)
commitd99a06705489b1d63d72b0f2296d7236b3ccf7aa
treea4f0bdba0f0be340a53b220933af8d2aac047aa4
parent51813d8b3407cb31d8d2c501c4d8b60f0b06bfe9
[N->O] Fix wrong database connection for cell0 during upgrade.

During upgrade the cell0 database has the connection pointing to

   mysql+pymysql://nova:c2cdagE8PyAbnpers3AD88Hge@10.0.0.19/nova_cell0?bind_address=10.0.0.20

where 10.0.0.20 was the ip of the bootstrap node.  This makes the
nova-api fails on 2/3 node at the end of the
major-upgrade-composable-steps.yaml step.

We do have the right value in the hiera database so make sure we use
it for cell0 creation and not the nova.conf file which hasn't been
updated yet.

Change-Id: I09775206cb8fc5e15934f7e4475506a7fe17271e
Closes-Bug: #1675359
(cherry picked from commit c9c3813b6a0811a262068d0aab28d0bd535be3e1)
puppet/services/nova-api.yaml
puppet/services/nova-base.yaml