kolla-ansible/ansible/roles/nova
Pierre Riteau 3458a7b28a Stop duplicating Nova cells
Check if a base Nova cell already exists before calling `nova-manage
cell_v2 create_cell`, which would otherwise create a duplicate cell when
the transport URL or database connection change.

If a base cell already exists but the connection values have changed, we
now call `nova-manage cell_v2 update_cell` instead. This is only
possible if a duplicate cell has not yet been created. If one already
exists, we print a warning inviting the operator to perform a manual
cleanup. We don't use a hard fail to avoid an abrupt change of behavior
if this is backported to stable branches.

Change-Id: I7841ce0cff08e315fd7761d84e1e681b1a00d43e
Closes-Bug: #1734872
(cherry picked from commit 19b8dbe460)
2019-06-13 19:58:01 +01:00
..
defaults Fix booting instances after nova-compute upgrade 2019-03-26 10:12:05 +00:00
handlers Update usage of "|" to "is" 2018-08-13 12:40:10 +05:30
meta Remove unused project_yaml parameter from role metadata files 2016-08-07 22:18:17 +02:00
tasks Stop duplicating Nova cells 2019-06-13 19:58:01 +01:00
templates nova: Fix DBNotAllowed during compute startup 2019-06-05 11:37:01 +00:00