From ff26cde6d651ada37f3cf92f390e200456316539 Mon Sep 17 00:00:00 2001 From: Stuart Cornell <52781016+stuartc-graphcore@users.noreply.github.com> Date: Mon, 3 Jul 2023 15:02:59 +0100 Subject: [PATCH 1/5] Update main.yml For case where mon[0] is being rebuilt we can't direct the bootstrap requests there. --- roles/pools/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/pools/tasks/main.yml b/roles/pools/tasks/main.yml index 4bea2cc..0ef9e73 100644 --- a/roles/pools/tasks/main.yml +++ b/roles/pools/tasks/main.yml @@ -15,5 +15,5 @@ application: "{{ item.application | default(omit) }}" allow_ec_overwrites: "{{ item.allow_ec_overwrites | default(omit) }}" with_items: "{{ cephadm_pools }}" - delegate_to: "{{ groups['mons'][0] }}" + delegate_to: "{{ cephadm_bootstrap_host }}" run_once: true From efe510e31c588bea620fecd920af3c1eabfa3c5b Mon Sep 17 00:00:00 2001 From: Stuart Cornell <52781016+stuartc-graphcore@users.noreply.github.com> Date: Mon, 3 Jul 2023 15:04:17 +0100 Subject: [PATCH 2/5] Update main.yml For the case where we are rebuilding mon[0] we need to direct commands to another host --- roles/commands/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/commands/tasks/main.yml b/roles/commands/tasks/main.yml index f8481c3..c69ed3f 100644 --- a/roles/commands/tasks/main.yml +++ b/roles/commands/tasks/main.yml @@ -8,5 +8,5 @@ changed_when: true when: cephadm_commands | length > 0 - delegate_to: "{{ groups['mons'][0] }}" + delegate_to: "{{ cephadm_bootstrap_host }}" run_once: true From bbd531b3021e5021c538cf254a65f819756d400b Mon Sep 17 00:00:00 2001 From: Stuart Cornell <52781016+stuartc-graphcore@users.noreply.github.com> Date: Mon, 3 Jul 2023 15:06:42 +0100 Subject: [PATCH 3/5] Update main.yml --- roles/keys/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/keys/tasks/main.yml b/roles/keys/tasks/main.yml index c2b6614..f62ad84 100644 --- a/roles/keys/tasks/main.yml +++ b/roles/keys/tasks/main.yml @@ -6,5 +6,5 @@ caps: "{{ item.caps }}" secret: "{{ item.key | default(omit) }}" with_items: "{{ cephadm_keys }}" - delegate_to: "{{ groups['mons'][0] }}" + delegate_to: "{{ cephadm_bootstrap_host }}" run_once: true From ad57e0cc6d28182a6e4e97f662b0a3381ee631c1 Mon Sep 17 00:00:00 2001 From: Stuart Cornell <52781016+stuartc-graphcore@users.noreply.github.com> Date: Mon, 3 Jul 2023 15:07:06 +0100 Subject: [PATCH 4/5] Update main.yml --- roles/ec_profiles/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ec_profiles/tasks/main.yml b/roles/ec_profiles/tasks/main.yml index cbbeb38..6b4845c 100644 --- a/roles/ec_profiles/tasks/main.yml +++ b/roles/ec_profiles/tasks/main.yml @@ -11,5 +11,5 @@ crush_root: "{{ item.crush_root | default(omit) }}" crush_device_class: "{{ item.crush_device_class | default(omit) }}" with_items: "{{ cephadm_ec_profiles }}" - delegate_to: "{{ groups['mons'][0] }}" + delegate_to: "{{ cephadm_bootstrap_host }}" run_once: true From 1e5e6b0071267cf3363fcf682bb18e4a4d1307b1 Mon Sep 17 00:00:00 2001 From: Stuart Cornell <52781016+stuartc-graphcore@users.noreply.github.com> Date: Mon, 3 Jul 2023 15:19:45 +0100 Subject: [PATCH 5/5] Update main.yml --- roles/crush_rules/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/crush_rules/tasks/main.yml b/roles/crush_rules/tasks/main.yml index 5988348..ffdd71c 100644 --- a/roles/crush_rules/tasks/main.yml +++ b/roles/crush_rules/tasks/main.yml @@ -9,5 +9,5 @@ device_class: "{{ item.device_class | default(omit) }}" profile: "{{ item.profile | default(omit) }}" with_items: "{{ cephadm_crush_rules }}" - delegate_to: "{{ groups['mons'][0] }}" + delegate_to: "{{ cephadm_bootstrap_host }}" run_once: true