From 6729799c9aefcda594f8dbe6f7c831fcb2bd4d08 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Fri, 20 Oct 2023 11:05:12 +0200 Subject: [PATCH] ovn: Fix wording in limit check Change-Id: Ib659203d83201d24054c52db0ab33c3f7ee2304f --- ansible/roles/ovn-db/tasks/lookup_cluster.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ansible/roles/ovn-db/tasks/lookup_cluster.yml b/ansible/roles/ovn-db/tasks/lookup_cluster.yml index 15711427a7..d97d358c77 100644 --- a/ansible/roles/ovn-db/tasks/lookup_cluster.yml +++ b/ansible/roles/ovn-db/tasks/lookup_cluster.yml @@ -32,9 +32,10 @@ - name: Check if running on all OVN NB DB hosts fail: msg: > - Some hosts ({{ groups['ovn-nb-db'] | join(', ') }}) need database - bootstrapping, but not all OVN NB DB hosts are in the target - list. Stopping as it may be unsafe to proceed. Please run without --limit + Some hosts need database bootstrapping, but not all OVN NB DB hosts + ({{ groups['ovn-nb-db'] | join(', ') }}) are in the target list + ({{ groups['ovn-nb-db'] | difference(ansible_play_batch) | list | join(', ') }}). + Stopping as it may be unsafe to proceed. Please run without --limit or --serial to bootstrap these hosts. when: - ovn_nb_db_cluster_exists @@ -84,9 +85,10 @@ - name: Check if running on all OVN SB DB hosts fail: msg: > - Some hosts ({{ groups['ovn-sb-db'] | join(', ') }}) need database - bootstrapping, but not all OVN SB DB hosts are in the target - list. Stopping as it may be unsafe to proceed. Please run without --limit + Some hosts need database bootstrapping, but not all OVN SB DB hosts + ({{ groups['ovn-sb-db'] | join(', ') }}) are in the target list + ({{ groups['ovn-sb-db'] | difference(ansible_play_batch) | list | join(', ') }}). + Stopping as it may be unsafe to proceed. Please run without --limit or --serial to bootstrap these hosts. when: - ovn_sb_db_cluster_exists