Merge "FFU support for ceph_nfs" into stable/ussuri
This commit is contained in:
commit
dd403e828f
|
@ -71,7 +71,49 @@ outputs:
|
||||||
dport:
|
dport:
|
||||||
# We support only NFS 4.1 to start
|
# We support only NFS 4.1 to start
|
||||||
- 2049
|
- 2049
|
||||||
upgrade_tasks: []
|
upgrade_tasks:
|
||||||
|
- name: Create hiera data to upgrade ceph_nfs in a stepwise manner.
|
||||||
|
when:
|
||||||
|
- step|int == 1
|
||||||
|
- cluster_recreate|bool
|
||||||
|
block:
|
||||||
|
- name: set ceph_nfs upgrade node facts in a single-node environment
|
||||||
|
set_fact:
|
||||||
|
ceph_nfs_short_node_names_upgraded: "{{ ceph_nfs_short_node_names }}"
|
||||||
|
cacheable: no
|
||||||
|
when: groups['ceph_nfs'] | length <= 1
|
||||||
|
- name: set ceph_nfs upgrade node facts from the limit option
|
||||||
|
set_fact:
|
||||||
|
ceph_nfs_short_node_names_upgraded: "{{ ceph_nfs_short_node_names_upgraded|default([]) + [item.split('.')[0]] }}"
|
||||||
|
cacheable: no
|
||||||
|
when:
|
||||||
|
- groups['ceph_nfs'] | length > 1
|
||||||
|
- item.split('.')[0] in ansible_limit.split(':')
|
||||||
|
loop: "{{ ceph_nfs_short_node_names | default([]) }}"
|
||||||
|
- fail:
|
||||||
|
msg: >
|
||||||
|
You can't upgrade ceph_nfs without staged
|
||||||
|
upgrade. You need to use the limit option in order
|
||||||
|
to do so.
|
||||||
|
when: >-
|
||||||
|
ceph_nfs_short_node_names_upgraded is not defined or
|
||||||
|
ceph_nfs_short_node_names_upgraded | length == 0
|
||||||
|
- debug:
|
||||||
|
msg: "Prepare ceph_nfs upgrade for {{ ceph_nfs_short_node_names_upgraded }}"
|
||||||
|
- name: add the ceph_nfs short name to hiera data for the upgrade.
|
||||||
|
include_role:
|
||||||
|
name: tripleo_upgrade_hiera
|
||||||
|
tasks_from: set.yml
|
||||||
|
vars:
|
||||||
|
tripleo_upgrade_key: ceph_nfs_short_node_names_override
|
||||||
|
tripleo_upgrade_value: "{{ceph_nfs_short_node_names_upgraded}}"
|
||||||
|
- name: remove the extra hiera data needed for the upgrade.
|
||||||
|
include_role:
|
||||||
|
name: tripleo_upgrade_hiera
|
||||||
|
tasks_from: remove.yml
|
||||||
|
vars:
|
||||||
|
tripleo_upgrade_key: ceph_nfs_short_node_names_override
|
||||||
|
when: ceph_nfs_short_node_names_upgraded | length == ceph_nfs_short_node_names | length
|
||||||
step_config: 'include tripleo::profile::pacemaker::ceph_nfs'
|
step_config: 'include tripleo::profile::pacemaker::ceph_nfs'
|
||||||
puppet_config:
|
puppet_config:
|
||||||
config_image: ''
|
config_image: ''
|
||||||
|
|
Loading…
Reference in New Issue