Skip to content

Commit

Permalink
Merge pull request #137 from ceph/mergify/bp/pacific/pr-134
Browse files Browse the repository at this point in the history
tests: test node removal with ceph_orch_host module (backport #134)
  • Loading branch information
guits authored Jun 21, 2022
2 parents 82fe0d2 + 71a69cf commit d986967
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/functional/deploy-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,24 @@
- "orch apply prometheus --placement=label:monitoring"
- "orch apply node-exporter --placement=*"

- name: remove ceph-node5
hosts: "{{ groups.get('mons')[0] }}"
become: true
gather_facts: false
tasks:
- name: drain ceph-node5
ceph_orch_host:
state: drain
name: ceph-node5

- name: remove ceph-node5
ceph_orch_host:
state: absent
name: ceph-node5
retries: 20
delay: 1
until: result is succeeded
register: result
# TODO(guits): address the following tasks:
# - name: show ceph orchestrator services
# command: "{{ cephadm_cmd }} shell -- ceph --cluster {{ cluster }} orch ls --refresh"
Expand Down

0 comments on commit d986967

Please sign in to comment.