Skip to content

Add minor upgrade function to multinode.sh #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion ansible/files/multinode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,28 @@ function upgrade_prerequisites() {
[[ ! -f $KAYOBE_CONFIG_PATH/../../tools/upgrade-prerequisites.sh ]] || $KAYOBE_CONFIG_PATH/../../tools/upgrade-prerequisites.sh
}

function minor_upgrade() {
# Perform a minor upgrade of the cloud, upgrading host packages and
# containers

# Upgrade Seed host packages
run_kayobe seed host configure
set -f
run_kayobe seed host package update --packages '*'
set +f
run_kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/reboot.yml --limit seed

# Upgrade overcloud host packages
run_kayobe overcloud host configure
set -f
run_kayobe overcloud host package update --packages '*'
set +f
run_kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/reboot.yml --limit overcloud

# Upgrade overcloud containers
run_kayobe overcloud service deploy
}

function usage() {
set +x

Expand All @@ -394,6 +416,7 @@ function usage() {
echo " run_tempest"
echo " upgrade_overcloud"
echo " upgrade_prerequisites"
echo " minor_upgrade"
}

function main() {
Expand All @@ -416,7 +439,7 @@ function main() {
$cmd
;;
# Standard commands.
(build_kayobe_image|deploy_full|deploy_seed|deploy_overcloud|deploy_wazuh|create_resources|run_tempest|upgrade_overcloud|upgrade_prerequisites)
(build_kayobe_image|deploy_full|deploy_seed|deploy_overcloud|deploy_wazuh|create_resources|run_tempest|upgrade_overcloud|upgrade_prerequisites|minor_upgrade)
setup
$cmd
report_success
Expand Down