]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-crash: add install checkpoint
authorDimitri Savineau <dsavinea@redhat.com>
Mon, 5 Jul 2021 14:11:57 +0000 (10:11 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 5 Jul 2021 16:11:42 +0000 (18:11 +0200)
The ceph crash insatll checkpoint callback was missing in the main
playbooks.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 993d06c4d92f8a0be6441dd7647a27d6b58bcb9b)

plugins/callback/installer_checkpoint.py
site-container.yml.sample
site.yml.sample

index 9c7cbc58ca7d7e2027187dba40dbcfdff48b31fa..eb4d72bf109770c4b57456bb91bdcfb7cbf080b3 100644 (file)
@@ -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
index 5e9cd82b2daeda2b0f122e82f4b0cf8964a82ecc..ffa4f771e2c71ee7976466e6824982573b8406f5 100644 (file)
   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:
     - 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
index de277303ebb5cec9d9746ec17a816d051e87f9fc..2dfb0c73109c7df759a09d0249a15f632b018207 100644 (file)
   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:
     - 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