[Queens-only] make sure cellv2 host discovery task only run once

The discovery task is correct triggered via delegate only on a single node,
but all computes delegate the job to this single host. It is possible that
this rund multiple times in parallel and fails as nova-manage commands are
not meant to run multiple times at the same time.

This makes sure the task only gets triggered once.

Change-Id: I072baf357836c55ad37257158b83f25c16b7f46f
Closes-Bug: #1862321
This commit is contained in:
Martin Schuppert 2020-02-07 10:30:35 +01:00
parent c4839a8b09
commit fa7401afcc
1 changed files with 1 additions and 0 deletions

View File

@ -17,5 +17,6 @@
become: true
changed_when: false
delegate_to: '{{ groups[''nova_discovery_nodes''][0] }}'
run_once: true
when:
- discover_hosts|bool