Skip to content

Commit 041b6e7

Browse files
committed
Fix scaleup when using volume_quota parameter
1 parent 45e28eb commit 041b6e7

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

templates/var/lib/ansible/playbooks/scaleup.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
mkdir -p /var/lib/os-apply-config/templates/var/lib/ansible/playbooks
22
cat << 'EOF' > /var/lib/os-apply-config/templates/var/lib/ansible/playbooks/scaleup.yml
33
{{=<% %>=}}
4+
- include: /var/lib/ansible/playbooks/quota.yml
5+
46
- include: /var/lib/ansible/playbooks/dns.yml
57

68
- include: /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-node/scaleup.yml

templates/var/lib/ansible/roles/reboot/tasks/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,26 @@ mkdir -p /var/lib/os-apply-config/templates/var/lib/ansible/roles/reboot/tasks/
22
cat << 'EOF' > /var/lib/os-apply-config/templates/var/lib/ansible/roles/reboot/tasks/main.yml
33
{{=<% %>=}}
44
---
5+
- name: check if grpquota mount options are already set
6+
shell: /usr/bin/findmnt / | grep grpquota
7+
register: proc_line
8+
changed_when: False
9+
ignore_errors: yes
10+
511
- name: Reboot server
612
command: /usr/bin/systemd-run --on-active=5 /usr/bin/systemctl reboot
713
async: 0
814
poll: 0
15+
when: proc_line.rc == 1
916

1017
- name: Wait for the server to reboot
1118
sudo: no
1219
local_action: wait_for host="{{ inventory_hostname }}" search_regex=OpenSSH port=22 timeout=300 state=stopped
20+
when: proc_line.rc == 1
1321

1422
- name: Wait for the server to finish rebooting
1523
sudo: no
1624
local_action: wait_for host="{{ inventory_hostname }}" search_regex=OpenSSH port=22 timeout=300 state=started
25+
when: proc_line.rc == 1
1726
<%={{ }}=%>
1827
EOF

0 commit comments

Comments
 (0)