Upgrade-check id controller is enabled
It was found that when running Ironic upgrade
on conductor node nova compute service is also being
upgraded - it checks the controller version to find out
whether to run offline sycn and since there is no controller pillar
on ironic conductor node the state fails. The patch adds a check
if nova:controller is enabled
Change-Id: Ie50a522d9e92d102cc529662c5829b12e3cd674a
Related-PROD: PROD-24546
diff --git a/nova/upgrade/upgrade/init.sls b/nova/upgrade/upgrade/init.sls
index 31f23f8..061e474 100644
--- a/nova/upgrade/upgrade/init.sls
+++ b/nova/upgrade/upgrade/init.sls
@@ -9,5 +9,7 @@
- nova.upgrade.service_stopped
- nova.upgrade.pkgs_latest
- nova.upgrade.render_config
+{%- if controller.get('enabled', False) %}
- nova.db.offline_sync
+{%- endif %}
- nova.upgrade.service_running