Skip to content

Commit 57be638

Browse files
committed
Simplify reboot strategy
1 parent b762c9b commit 57be638

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

ansible/files/multinode.sh

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -203,31 +203,6 @@ function generate_barbican_secrets() {
203203
rm /tmp/barbican-role-id
204204
}
205205

206-
function reboot_compute() {
207-
# Reboot a compute node
208-
run_kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/nova-compute-drain.yml --limit $1
209-
run_kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/nova-compute-disable.yml --limit $1
210-
run_kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/reboot.yml --limit $1
211-
run_kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/nova-compute-enable.yml --limit $1
212-
}
213-
214-
function reboot_storage() {
215-
# Reboot a storage node
216-
run_kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/ceph-enter-maintenance.yml --limit $1
217-
run_kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/reboot.yml --limit $1
218-
run_kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/ceph-exit-maintenance.yml --limit $1
219-
}
220-
221-
function reboot_overcloud() {
222-
# Reboot all overcloud nodes
223-
run_kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/reboot.yml --limit controllers
224-
reboot_compute compute[0]
225-
reboot_compute compute[1]
226-
reboot_storage storage[0]
227-
reboot_storage storage[1]
228-
reboot_storage storage[2]
229-
}
230-
231206
function deploy_overcloud() {
232207
run_kayobe overcloud host configure
233208

@@ -418,7 +393,7 @@ function minor_upgrade() {
418393
# Upgrade overcloud host packages
419394
run_kayobe overcloud host configure
420395
run_kayobe overcloud host package update --packages "*"
421-
reboot_overcloud
396+
run_kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/reboot.yml --limit overcloud
422397

423398
# Upgrade overcloud containers
424399
run_kayobe overcloud service deploy

0 commit comments

Comments
 (0)