diff options
author | Oliver Walsh <owalsh@redhat.com> | 2017-03-23 13:50:55 +0000 |
---|---|---|
committer | Oliver Walsh <owalsh@redhat.com> | 2017-03-28 16:06:57 +0000 |
commit | c26c32519bfdd4eac09acf4763ae3ca12956cabd (patch) | |
tree | fcd374df3b0f9bc9b5a0d767418169f09475f093 | |
parent | f59578b4181709cffbf38ef091672cd365a503af (diff) |
[N->O] is creating 2 default cell_v2 cells
A side-effect of running map_cell_and_hosts is that a default cell is created
(unless host mappings already exists).
As we are explicitly creating the default cell we need to run discover_hosts
to create the host mappings.
Change-Id: I1a28e9b85a7c43561700faf692248c5fc06b8ad8
Closes-Bug: #1675418
(cherry picked from commit ab4adb9fb1b1ba003a8045ce4c3879f88ea243b3)
-rw-r--r-- | puppet/services/nova-api.yaml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/puppet/services/nova-api.yaml b/puppet/services/nova-api.yaml index f27b53f2..d5520522 100644 --- a/puppet/services/nova-api.yaml +++ b/puppet/services/nova-api.yaml @@ -241,15 +241,15 @@ outputs: command: nova-manage db sync async: {get_param: NovaDbSyncTimeout} poll: 10 - - name: Setup cell_v2 (migrate hosts) - tags: step5 - when: is_bootstrap_node - command: nova-manage cell_v2 map_cell_and_hosts - name: Setup cell_v2 (get cell uuid) tags: step5 when: is_bootstrap_node shell: nova-manage cell_v2 list_cells | sed -e '1,3d' -e '$d' | awk -F ' *| *' '$2 == "default" {print $4}' register: nova_api_cell_uuid + - name: Setup cell_v2 (migrate hosts) + tags: step5 + when: is_bootstrap_node + command: nova-manage cell_v2 discover_hosts --cell_uuid {{nova_api_cell_uuid.stdout}} --verbose - name: Setup cell_v2 (migrate instances) tags: step5 when: is_bootstrap_node |