Skip to content

Commit 0f169d1

Browse files
authored
Merge pull request #1916 from skazi0/nova-early-upgrade
upgrade: Upgrade compute services early (SOC-10273)
2 parents 6019e8f + 4ff7a77 commit 0f169d1

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

chef/cookbooks/crowbar/templates/default/crowbar-pre-upgrade.sh.erb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ log "No HA setup found..."
8686

8787
<% if @compute_node %>
8888

89-
log "Restarting services for Pike"
89+
log "Upgrading packages needed for nova-compute node"
90+
91+
zypper --non-interactive up openstack-nova-compute
92+
93+
log "Restarting services for Rocky"
9094

9195
<% unless @remote_node %>
9296
systemctl restart <%= @neutron_agent %>

chef/cookbooks/crowbar/templates/default/crowbar-reload-nova-after-upgrade.sh.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# After the upgrade of all services on all nodes is finished, it's
3+
# After the upgrade of all compute services on all nodes is finished, it's
44
# necessary to signal all nova services so that they start using latest RPC API version.
55

66
LOGFILE=/var/log/crowbar/node-upgrade.log

crowbar_framework/app/models/api/upgrade.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,8 @@ def do_controllers_substep(substep)
817817
upgrade_controller_clusters
818818
upgrade_non_compute_nodes
819819
prepare_all_compute_nodes
820+
reload_nova_services
821+
820822
::Crowbar::UpgradeStatus.new.save_substep(substep, :finished)
821823
end
822824
end
@@ -887,10 +889,6 @@ def nodes(component = "all")
887889
if status.progress[:remaining_nodes].zero?
888890
status.save_substep(substep, :finished)
889891

890-
status.save_substep(:reload_nova, :running)
891-
reload_nova_services
892-
status.save_substep(:reload_nova, :finished)
893-
894892
status.save_substep(:run_online_migrations, :running)
895893
run_online_migrations
896894
status.save_substep(:run_online_migrations, :finished)

0 commit comments

Comments
 (0)