Skip to content

Commit

Permalink
ceph-crash: add install checkpoint
Browse files Browse the repository at this point in the history
The ceph crash insatll checkpoint callback was missing in the main
playbooks.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 993d06c)
  • Loading branch information
dsavineau authored and guits committed Jul 5, 2021
1 parent 4366cb3 commit bbaa09e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/callback/installer_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def v2_playbook_on_stats(self, stats):
'installer_phase_ceph_dashboard',
'installer_phase_ceph_grafana',
'installer_phase_ceph_node_exporter',
'installer_phase_ceph_crash',
]

# Define the attributes of the installer phases
Expand Down Expand Up @@ -90,6 +91,10 @@ def v2_playbook_on_stats(self, stats):
'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
Expand Down
16 changes: 16 additions & 0 deletions site-container.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,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:
Expand All @@ -464,6 +472,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
Expand Down
17 changes: 17 additions & 0 deletions site.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,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:
Expand All @@ -487,6 +495,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
Expand Down

0 comments on commit bbaa09e

Please sign in to comment.