From 2bec70787014decfafb88edc10b3869b6f06b5c0 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Mon, 5 Jul 2021 10:11:57 -0400 Subject: [PATCH] ceph-crash: add install checkpoint The ceph crash insatll checkpoint callback was missing in the main playbooks. Signed-off-by: Dimitri Savineau (cherry picked from commit 993d06c4d92f8a0be6441dd7647a27d6b58bcb9b) --- plugins/callback/installer_checkpoint.py | 5 +++++ site-container.yml.sample | 16 ++++++++++++++++ site.yml.sample | 17 +++++++++++++++++ 3 files changed, 38 insertions(+) diff --git a/plugins/callback/installer_checkpoint.py b/plugins/callback/installer_checkpoint.py index 9c7cbc58c..eb4d72bf1 100644 --- a/plugins/callback/installer_checkpoint.py +++ b/plugins/callback/installer_checkpoint.py @@ -34,6 +34,7 @@ class CallbackModule(CallbackBase): 'installer_phase_ceph_dashboard', 'installer_phase_ceph_grafana', 'installer_phase_ceph_node_exporter', + 'installer_phase_ceph_crash', ] # Define the attributes of the installer phases @@ -90,6 +91,10 @@ class CallbackModule(CallbackBase): 'title': 'Install Ceph Node Exporter', 'playbook': 'roles/ceph-node-exporter/tasks/main.yml' }, + 'installer_phase_ceph_crash': { + 'title': 'Install Ceph Crash', + 'playbook': 'roles/ceph-crash/tasks/main.yml' + }, } # Find the longest phase title diff --git a/site-container.yml.sample b/site-container.yml.sample index a3e97d404..ed6a063d6 100644 --- a/site-container.yml.sample +++ b/site-container.yml.sample @@ -439,6 +439,14 @@ gather_facts: false become: True any_errors_fatal: true + pre_tasks: + - name: set ceph crash install 'In Progress' + run_once: true + set_stats: + data: + installer_phase_ceph_crash: + status: "In Progress" + start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" tasks: - import_role: @@ -451,6 +459,14 @@ - import_role: name: ceph-crash + post_tasks: + - name: set ceph crash install 'Complete' + run_once: true + set_stats: + data: + installer_phase_ceph_crash: + status: "Complete" + end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" - hosts: mons gather_facts: false diff --git a/site.yml.sample b/site.yml.sample index 0f2c76c0c..6d0b956d3 100644 --- a/site.yml.sample +++ b/site.yml.sample @@ -462,6 +462,14 @@ gather_facts: false become: True any_errors_fatal: true + pre_tasks: + - name: set ceph crash install 'In Progress' + run_once: true + set_stats: + data: + installer_phase_ceph_crash: + status: "In Progress" + start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" tasks: - import_role: @@ -474,6 +482,15 @@ - import_role: name: ceph-crash + post_tasks: + - name: set ceph crash install 'Complete' + run_once: true + set_stats: + data: + installer_phase_ceph_crash: + status: "Complete" + end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" + - hosts: mons gather_facts: false become: True -- 2.39.5