Perform package upgrades prior to zuul cluster node reboots

This serves two purposes. The first is that not all packages are updated
by unattended-upgrades beacuse it may not be safe to upgrade packages
while services are running. We should be safe in this situation because
we've gracefully stopped services and can proceed with package updates.
The other is unattended upgrades runs daily which means we could end up
almost 24 hours out of date prior to rebooting. This ensures we have the
latest and greatest packages installed just prior to rebooting.

Change-Id: Id351b5478e925ed1b4fbb6b3e27f2c0b6af8b897
This commit is contained in:
Clark Boylan 2022-05-26 14:04:24 -07:00
parent 383b1334b2
commit 4cbc5ee254

View File

@ -13,6 +13,10 @@
include_role: include_role:
name: zuul-executor name: zuul-executor
tasks_from: graceful tasks_from: graceful
- name: Upgrade executor server packages
apt:
update_cache: yes
upgrade: yes
- name: Reboot the executor server - name: Reboot the executor server
reboot: reboot:
- name: Start the executor - name: Start the executor
@ -28,6 +32,10 @@
include_role: include_role:
name: zuul-merger name: zuul-merger
tasks_from: graceful tasks_from: graceful
- name: Upgrade merger server packages
apt:
update_cache: yes
upgrade: yes
- name: Reboot the merger server - name: Reboot the merger server
reboot: reboot:
- name: Start the merger - name: Start the merger
@ -49,6 +57,10 @@
include_role: include_role:
name: zuul-web name: zuul-web
tasks_from: stop tasks_from: stop
- name: Upgrade scheduler server packages
apt:
update_cache: yes
upgrade: yes
- name: Reboot the scheduler server - name: Reboot the scheduler server
reboot: reboot:
- name: Start the scheduler process - name: Start the scheduler process