Skip to content
Snippets Groups Projects
Commit 23c27ed8 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Make Ceph upgrade check Ceph release to avoid EPERM"

parents 16186537 0ea991e4
No related branches found
No related tags found
No related merge requests found
...@@ -35,11 +35,17 @@ ...@@ -35,11 +35,17 @@
- enable_ceph_nfs | bool - enable_ceph_nfs | bool
- inventory_hostname in groups['ceph-nfs'] - inventory_hostname in groups['ceph-nfs']
# NOTE(chenxing): Disallowing pre-luminous OSDs and enabling all - name: Check final release (as running on MONs)
# new Luminous-only functionality
- name: Enabling all new Luminous-only functionality
become: true become: true
command: docker exec ceph_mon ceph osd require-osd-release luminous shell: docker exec ceph_mon ceph version | cut -d' ' -f5
changed_when: false
register: ceph_release_command
delegate_to: "{{ groups['ceph-mon'][0] }}" delegate_to: "{{ groups['ceph-mon'][0] }}"
changed_when: False run_once: true
run_once: True
- name: Finalize the upgrade by disallowing older OSDs
become: true
command: docker exec ceph_mon ceph osd require-osd-release {{ ceph_release_command.stdout }}
changed_when: false
delegate_to: "{{ groups['ceph-mon'][0] }}"
run_once: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment