File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
stop_openstack_services/tasks Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 2323 src : manila_cephfs.yaml.j2
2424 dest : /tmp/manila_cephfs.yaml
2525 mode : " 0600"
26+ vars :
27+ tripleo_ganesha_vip : " {{ cephnfs_vip.stdout }}"
2628
2729 - name : Deploy podified Manila with cephfs backend
2830 ansible.builtin.shell : |
Original file line number Diff line number Diff line change 4848 cephfs_protocol_helper_type= {{ (manila_backend == "cephfs") | ternary('CEPHFS', 'NFS') }}
4949 {% if manila_backend == "cephnfs" -%}
5050 cephfs_nfs_cluster_id=cephfs
51- cephfs_ganesha_server_ip= {{ cephnfs_vip | default("") }}
51+ cephfs_ganesha_server_ip= {{ tripleo_ganesha_vip | default("") }}
5252 {% - endif %}
5353
5454 replicas: 1
Original file line number Diff line number Diff line change 66 CONTROLLER2_SSH="{{ controller2_ssh }}"
77 CONTROLLER3_SSH="{{ controller3_ssh }}"
88
9+ - name : Remove colocation constraints between manila-share and ceph-nfs
10+ when : manila_backend == "cephnfs"
11+ ansible.builtin.shell : |
12+ {{ shell_header }}
13+ {{ oc_header }}
14+ {{ stop_openstack_services_shell_vars }}
15+
16+ echo "Removing Pacemaker constraints between manila-share and ceph-nfs"
17+ for i in {1..3}; do
18+ SSH_CMD="CONTROLLER${i}_SSH"
19+ if [ ! -z "${!SSH_CMD}" ]; then
20+ echo "Using controller $i to run pacemaker commands"
21+ ${!SSH_CMD} sudo pcs constraint remove colocation-openstack-manila-share-ceph-nfs-INFINITY
22+ ${!SSH_CMD} sudo pcs constraint remove order-ceph-nfs-openstack-manila-share-Optional
23+ break
24+ fi
25+ done
26+
927 - name : stop control plane services
1028 no_log : " {{ use_no_log }}"
1129 ansible.builtin.shell : |
You can’t perform that action at this time.
0 commit comments