mirror of https://github.com/ceph/ceph-ansible.git
rolling-update: set/unset flags on the right container
Problem: we are delegating the set/unset flag to a monitor node but we
try to call an osd container
Solution: use the right container name.
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 90389864d8
)
Signed-off-by: Sébastien Han <seb@redhat.com>
pull/1566/head
parent
73881bb1c9
commit
cf547dc359
|
@ -186,7 +186,7 @@
|
||||||
|
|
||||||
- name: set containerized osd flags
|
- name: set containerized osd flags
|
||||||
command: |
|
command: |
|
||||||
docker exec ceph-osd-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }} ceph osd set {{ item }} --cluster {{ cluster }}
|
docker exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }} ceph osd set {{ item }} --cluster {{ cluster }}
|
||||||
with_items:
|
with_items:
|
||||||
- noout
|
- noout
|
||||||
- noscrub
|
- noscrub
|
||||||
|
@ -295,7 +295,7 @@
|
||||||
|
|
||||||
- name: unset containerized osd flags
|
- name: unset containerized osd flags
|
||||||
command: |
|
command: |
|
||||||
docker exec ceph-osd-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }} ceph osd unset {{ item }} --cluster {{ cluster }}
|
docker exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }} ceph osd unset {{ item }} --cluster {{ cluster }}
|
||||||
with_items:
|
with_items:
|
||||||
- noout
|
- noout
|
||||||
- noscrub
|
- noscrub
|
||||||
|
|
Loading…
Reference in New Issue