From 0be27ee963e32724dfb3de0eee0ff22983025682 Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Mon, 3 Sep 2018 17:05:27 +0200 Subject: [PATCH] Disable sync_power_state_interval in containerized undercloud On the non containerized undercloud we had the following snippet: """ nova_config { 'DEFAULT/sync_power_state_interval': value => hiera('nova_sync_power_state_interval'); } nova_sync_power_state_interval: -1 """ The reasons for which were described in: https://launchpad.net/bugs/1552842. This setting has been lost when we moved to containerized undercloud. Let's add a new NovaSyncPowerStateInterval parameter that is set to 0 (meaning uses the default) and set it to -1 on the undercloud. With this patch we have on the undercloud: undercloud: http://logs.openstack.org/23/599423/1/check/tripleo-ci-centos-7-undercloud-containers/73a1323/logs/undercloud/var/log/config-data/nova/etc/nova/nova.conf.txt.gz: sync_power_state_interval=-1 And on the overcloud: https://logs.rdoproject.org/23/599423/1/openstack-check/legacy-tripleo-ci-centos-7-ovb-3ctlr_1comp-featureset001-master/d372ea8/logs/overcloud-controller-0/var/log/config-data/nova/etc/nova/nova.conf.txt.gz sync_power_state_interval=0 Reported-By: Marian Krcmari Co-Authored-By: Emilien Macchi Change-Id: Ifc817ba77187d454c24090c93461b1edad9fe7c4 Closes-Bug: #1790504 --- environments/undercloud.yaml | 1 + puppet/services/nova-base.yaml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/environments/undercloud.yaml b/environments/undercloud.yaml index b4e319bf8f..a9d9910c31 100644 --- a/environments/undercloud.yaml +++ b/environments/undercloud.yaml @@ -60,6 +60,7 @@ parameter_defaults: # Ironic to be disabled in the case of multiple deployment failures. NovaAutoDisabling: '0' NovaCorsAllowedOrigin: '*' + NovaSyncPowerStateInterval: -1 NeutronDhcpAgentsPerNetwork: 2 HeatConvergenceEngine: true HeatCorsAllowedOrigin: '*' diff --git a/puppet/services/nova-base.yaml b/puppet/services/nova-base.yaml index 32c2e5aad0..f12b0d816d 100644 --- a/puppet/services/nova-base.yaml +++ b/puppet/services/nova-base.yaml @@ -195,6 +195,12 @@ parameters: default: '' tags: - role_specific + NovaSyncPowerStateInterval: + type: number + description: + Interval to sync power states between the database and the hypervisor. Set + to -1 to disable. Setting this to 0 will run at the default rate. + default: 0 RpcPort: default: 5672 description: The network port for messaging backend @@ -343,6 +349,7 @@ outputs: nova::cron::purge_shadow_tables::age: {get_param: NovaCronPurgeShadowTablesAge} nova::cron::purge_shadow_tables::verbose: {get_param: NovaCronPurgeShadowTablesVerbose} nova::cron::purge_shadow_tables::all_cells: {get_param: NovaCronPurgeShadowTablesAllCells} + nova::compute::sync_power_state_interval: {get_param: NovaSyncPowerStateInterval} - get_attr: [RoleParametersValue, value] - if: