Merge "Allow operators to use 'fallback mode' for Ceph disks"
This commit is contained in:
commit
d8180c52e1
@ -30,3 +30,8 @@ swift_internal_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{
|
||||
swift_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn }}:{{ rgw_port }}/swift/v1"
|
||||
|
||||
openstack_swift_auth: "{'auth_url':'{{ openstack_auth.auth_url }}','username':'{{ openstack_auth.username }}','password':'{{ openstack_auth.password }}','project_name':'{{ openstack_auth.project_name }}','domain_name':'default'}"
|
||||
|
||||
####################
|
||||
# Kolla
|
||||
####################
|
||||
kolla_ceph_use_udev: True
|
||||
|
@ -2,7 +2,7 @@
|
||||
- name: Looking up disks to bootstrap for Ceph OSDs
|
||||
command: docker exec -t kolla_toolbox sudo -E /usr/bin/ansible localhost
|
||||
-m find_disks
|
||||
-a "partition_name='KOLLA_CEPH_OSD_BOOTSTRAP' match_mode='prefix'"
|
||||
-a "partition_name='KOLLA_CEPH_OSD_BOOTSTRAP' match_mode='prefix' use_udev={{ kolla_ceph_use_udev }}"
|
||||
register: osd_lookup
|
||||
changed_when: "{{ osd_lookup.stdout.find('localhost | SUCCESS => ') != -1 and (osd_lookup.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
||||
failed_when: osd_lookup.stdout.split()[2] != 'SUCCESS'
|
||||
@ -14,7 +14,7 @@
|
||||
- name: Looking up disks to bootstrap for Ceph Cache OSDs
|
||||
command: docker exec -t kolla_toolbox sudo -E /usr/bin/ansible localhost
|
||||
-m find_disks
|
||||
-a "partition_name='KOLLA_CEPH_OSD_CACHE_BOOTSTRAP' match_mode='prefix'"
|
||||
-a "partition_name='KOLLA_CEPH_OSD_CACHE_BOOTSTRAP' match_mode='prefix' use_udev={{ kolla_ceph_use_udev }}"
|
||||
register: osd_cache_lookup
|
||||
changed_when: "{{ osd_cache_lookup.stdout.find('localhost | SUCCESS => ') != -1 and (osd_cache_lookup.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
||||
failed_when: osd_cache_lookup.stdout.split()[2] != 'SUCCESS'
|
||||
|
@ -12,7 +12,7 @@
|
||||
- name: Looking up OSDs for Ceph
|
||||
command: docker exec -t kolla_toolbox sudo -E /usr/bin/ansible localhost
|
||||
-m find_disks
|
||||
-a "partition_name='KOLLA_CEPH_DATA' match_mode='prefix'"
|
||||
-a "partition_name='KOLLA_CEPH_DATA' match_mode='prefix' use_udev={{ kolla_ceph_use_udev }}"
|
||||
register: osd_lookup
|
||||
changed_when: "{{ osd_lookup.stdout.find('localhost | SUCCESS => ') != -1 and (osd_lookup.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
||||
failed_when: osd_lookup.stdout.split()[2] != 'SUCCESS'
|
||||
|
@ -2,7 +2,7 @@
|
||||
- name: Looking up OSDs for Ceph
|
||||
command: docker exec -t kolla_toolbox sudo -E /usr/bin/ansible localhost
|
||||
-m find_disks
|
||||
-a "partition_name='KOLLA_CEPH_DATA' match_mode='prefix'"
|
||||
-a "partition_name='KOLLA_CEPH_DATA' match_mode='prefix' use_udev={{ kolla_ceph_use_udev }}"
|
||||
register: osd_lookup
|
||||
changed_when: "{{ osd_lookup.stdout.find('localhost | SUCCESS => ') != -1 and (osd_lookup.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
||||
failed_when: osd_lookup.stdout.split()[2] != 'SUCCESS'
|
||||
|
@ -0,0 +1,7 @@
|
||||
---
|
||||
features:
|
||||
- Add a new variable for the Ceph role, 'kolla_ceph_use_udev',
|
||||
which when set to 'False' relies on system tools such as
|
||||
sgdisk/blkid to read the necessary disk info required
|
||||
to bootstrap Ceph disks on older systems. Most operators
|
||||
should not need to change this.
|
Loading…
Reference in New Issue
Block a user