From 05414a743f777e01743c001574d0063cf7fc92fc Mon Sep 17 00:00:00 2001 From: Jiri Stransky Date: Tue, 23 Feb 2016 14:01:59 +0100 Subject: Add UpgradeLevelNovaCompute parameter This parameter can be used for pinning (and later unpinning) the Nova Compute RPC version. Change-Id: I2f181f3b01f0b8059566d01db0152a12bbbd1c3e --- .../tasks/major_upgrade_controller_pacemaker_1.sh | 2 +- extraconfig/tasks/major_upgrade_pacemaker.yaml | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) (limited to 'extraconfig') diff --git a/extraconfig/tasks/major_upgrade_controller_pacemaker_1.sh b/extraconfig/tasks/major_upgrade_controller_pacemaker_1.sh index bee9a939..5604bb0d 100755 --- a/extraconfig/tasks/major_upgrade_controller_pacemaker_1.sh +++ b/extraconfig/tasks/major_upgrade_controller_pacemaker_1.sh @@ -49,7 +49,7 @@ done yum update -y # Pin messages sent to compute nodes to kilo, these will be upgraded later -crudini --set /etc/nova/nova.conf upgrade_levels compute liberty +crudini --set /etc/nova/nova.conf upgrade_levels compute "$upgrade_level_nova_compute" # https://bugzilla.redhat.com/show_bug.cgi?id=1284047 # Change-Id: Ib3f6c12ff5471e1f017f28b16b1e6496a4a4b435 crudini --set /etc/ceilometer/ceilometer.conf DEFAULT rpc_backend rabbit diff --git a/extraconfig/tasks/major_upgrade_pacemaker.yaml b/extraconfig/tasks/major_upgrade_pacemaker.yaml index 12268b0e..1080fd18 100644 --- a/extraconfig/tasks/major_upgrade_pacemaker.yaml +++ b/extraconfig/tasks/major_upgrade_pacemaker.yaml @@ -16,7 +16,16 @@ parameters: type: json description: input values for the software deployments + UpgradeLevelNovaCompute: + type: string + description: Nova Compute upgrade level + default: '' + resources: + # TODO(jistr): for Mitaka->Newton upgrades and further we can use + # map_merge with input_values instead of feeding params into scripts + # via str_replace on bash snippets + ControllerPacemakerUpgradeConfig_Step1: type: OS::Heat::SoftwareConfig properties: @@ -24,7 +33,13 @@ resources: config: list_join: - '' - - - get_file: pacemaker_common_functions.sh + - - str_replace: + template: | + #!/bin/bash + upgrade_level_nova_compute='UPGRADE_LEVEL_NOVA_COMPUTE' + params: + UPGRADE_LEVEL_NOVA_COMPUTE: {get_param: UpgradeLevelNovaCompute} + - get_file: pacemaker_common_functions.sh - get_file: major_upgrade_controller_pacemaker_1.sh ControllerPacemakerUpgradeDeployment_Step1: -- cgit 1.2.3-korg