Run nova_cell_v2_discover_hosts.py on every deploy run

Change I1a159a7c2ac286373df2b7c566426b37b7734961 moved the dicovery
to run on a single compute host to not race on simultanious nova-manage
commands. This change make sure we run the discover on every deploy run
which is required for scaling up events.

Change-Id: Iba7a4aeeeeb94ffbbaf4bb757672091807301494
Related-bug: 1824445
(cherry picked from commit dfc99bad08)
This commit is contained in:
Martin Schuppert 2019-04-26 12:27:37 +02:00
parent 3911fe71b1
commit 2c07850699
2 changed files with 14 additions and 0 deletions

View File

@ -635,6 +635,13 @@ outputs:
- /var/lib/container-config-scripts/:/container-config-scripts/
user: root
command: "/usr/bin/bootstrap_host_exec nova_compute su nova -s /bin/bash -c '/container-config-scripts/pyshim.sh /container-config-scripts/nova_cell_v2_discover_hosts.py'"
environment:
# NOTE: this should force this container to re-run on each
# update (scale-out, etc.)
- list_join:
- ''
- - 'TRIPLEO_DEPLOY_IDENTIFIER='
- {get_param: DeployIdentifier}
- {}
host_prep_tasks:
list_concat:

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Change-Id: I1a159a7c2ac286373df2b7c566426b37b7734961 moved the dicovery
to run on a single compute host to not race on simultanious nova-manage
commands. This change make sure we run the discover on every deploy run
which is required for scaling up events.