Skip to content

Commit df4b62f

Browse files
Merge pull request #1037 from fmount/manila_cephnfs
Remove pcs colocation constraints from manila-share when cephnfs
2 parents 45468f7 + c5d71c1 commit df4b62f

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

tests/roles/manila_adoption/tasks/ceph.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
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: |

tests/roles/manila_adoption/templates/manila_cephfs.yaml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ spec:
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

tests/roles/stop_openstack_services/tasks/main.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,24 @@
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: |

0 commit comments

Comments
 (0)