Browse Source

[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
changes/50/706450/1
Martin Schuppert 3 months ago
parent
commit
fa7401afcc
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      playbooks/nova_cellv2_host_discover.yaml

+ 1
- 0
playbooks/nova_cellv2_host_discover.yaml 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

Loading…
Cancel
Save