Merge "Introduce restart_bundle containers to detect config changes and restart pacemaker resources"
This commit is contained in:
commit
f9ad91703c
@ -52,6 +52,11 @@ parameters:
|
||||
default: false
|
||||
description: Whether to run config management (e.g. Puppet) in debug mode.
|
||||
type: boolean
|
||||
PcmkConfigRestartTimeout:
|
||||
default: 600
|
||||
description: Time in seconds to wait for a pcmk resource to restart when
|
||||
a config change is detected and the resource is being restarted
|
||||
type: number
|
||||
|
||||
conditions:
|
||||
puppet_debug_enabled: {get_param: ConfigDebug}
|
||||
@ -170,6 +175,28 @@ outputs:
|
||||
- /var/log/containers/cinder:/var/log/cinder
|
||||
command: ['/bin/bash', '-c', 'chown -R cinder:cinder /var/log/cinder']
|
||||
step_5:
|
||||
cinder_backup_restart_bundle:
|
||||
start_order: 0
|
||||
config_volume: cinder
|
||||
detach: false
|
||||
net: host
|
||||
user: root
|
||||
command:
|
||||
- '/usr/bin/bootstrap_host_exec'
|
||||
- 'cinder_backup'
|
||||
- str_replace:
|
||||
template:
|
||||
'if /usr/sbin/pcs resource show openstack-cinder-backup; then /usr/sbin/pcs resource restart --wait=PCMKTIMEOUT openstack-cinder-backup; echo "openstack-cinder-backup restart invoked"; fi'
|
||||
params:
|
||||
PCMKTIMEOUT: {get_param: PcmkConfigRestartTimeout}
|
||||
image: {get_param: DockerCinderBackupImage}
|
||||
volumes:
|
||||
list_concat:
|
||||
- {get_attr: [ContainersCommon, volumes]}
|
||||
-
|
||||
- /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
|
||||
- /dev/shm:/dev/shm:rw
|
||||
- /var/lib/config-data/puppet-generated/cinder/:/var/lib/kolla/config_files/src:ro
|
||||
cinder_backup_init_bundle:
|
||||
start_order: 1
|
||||
detach: false
|
||||
|
@ -49,6 +49,11 @@ parameters:
|
||||
default: false
|
||||
description: Whether to run config management (e.g. Puppet) in debug mode.
|
||||
type: boolean
|
||||
PcmkConfigRestartTimeout:
|
||||
default: 600
|
||||
description: Time in seconds to wait for a pcmk resource to restart when
|
||||
a config change is detected and the resource is being restarted
|
||||
type: number
|
||||
|
||||
conditions:
|
||||
puppet_debug_enabled: {get_param: ConfigDebug}
|
||||
@ -164,8 +169,30 @@ outputs:
|
||||
- /var/log/containers/cinder:/var/log/cinder
|
||||
command: ['/bin/bash', '-c', 'chown -R cinder:cinder /var/log/cinder']
|
||||
step_5:
|
||||
cinder_volume_init_bundle:
|
||||
cinder_volume_restart_bundle:
|
||||
start_order: 0
|
||||
config_volume: cinder
|
||||
detach: false
|
||||
net: host
|
||||
user: root
|
||||
command:
|
||||
- '/usr/bin/bootstrap_host_exec'
|
||||
- 'cinder_volume'
|
||||
- str_replace:
|
||||
template:
|
||||
'if /usr/sbin/pcs resource show openstack-cinder-volume; then /usr/sbin/pcs resource restart --wait=PCMKTIMEOUT openstack-cinder-volume; echo "openstack-cinder-volume restart invoked"; fi'
|
||||
params:
|
||||
PCMKTIMEOUT: {get_param: PcmkConfigRestartTimeout}
|
||||
image: {get_param: DockerCinderVolumeImage}
|
||||
volumes:
|
||||
list_concat:
|
||||
- {get_attr: [ContainersCommon, volumes]}
|
||||
-
|
||||
- /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
|
||||
- /dev/shm:/dev/shm:rw
|
||||
- /var/lib/config-data/puppet-generated/cinder/:/var/lib/kolla/config_files/src:ro
|
||||
cinder_volume_init_bundle:
|
||||
start_order: 1
|
||||
detach: false
|
||||
net: host
|
||||
user: root
|
||||
|
@ -61,6 +61,11 @@ parameters:
|
||||
description: >
|
||||
Setting this to a unique value will re-run any deployment tasks which
|
||||
perform configuration on a Heat stack-update.
|
||||
PcmkConfigRestartTimeout:
|
||||
default: 600
|
||||
description: Time in seconds to wait for a pcmk resource to restart when
|
||||
a config change is detected and the resource is being restarted
|
||||
type: number
|
||||
|
||||
resources:
|
||||
|
||||
@ -247,6 +252,28 @@ outputs:
|
||||
- /usr/bin:/usr/bin:ro
|
||||
- /var/run/docker.sock:/var/run/docker.sock:rw
|
||||
step_2:
|
||||
mysql_restart_bundle:
|
||||
start_order: 0
|
||||
config_volume: mysql
|
||||
detach: false
|
||||
net: host
|
||||
user: root
|
||||
command:
|
||||
- '/usr/bin/bootstrap_host_exec'
|
||||
- 'mysql'
|
||||
- str_replace:
|
||||
template:
|
||||
'if /usr/sbin/pcs resource show galera-bundle; then /usr/sbin/pcs resource restart --wait=PCMKTIMEOUT galera-bundle; echo "galera-bundle restart invoked"; fi'
|
||||
params:
|
||||
PCMKTIMEOUT: {get_param: PcmkConfigRestartTimeout}
|
||||
image: {get_param: DockerMysqlImage}
|
||||
volumes:
|
||||
list_concat:
|
||||
- {get_attr: [ContainersCommon, volumes]}
|
||||
-
|
||||
- /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
|
||||
- /dev/shm:/dev/shm:rw
|
||||
- /var/lib/config-data/puppet-generated/mysql/:/var/lib/kolla/config_files/src:ro
|
||||
mysql_init_bundle:
|
||||
start_order: 1
|
||||
detach: false
|
||||
|
@ -47,6 +47,11 @@ parameters:
|
||||
default: false
|
||||
description: Enable IPv6 in Redis
|
||||
type: boolean
|
||||
PcmkConfigRestartTimeout:
|
||||
default: 600
|
||||
description: Time in seconds to wait for a pcmk resource to restart when
|
||||
a config change is detected and the resource is being restarted
|
||||
type: number
|
||||
|
||||
conditions:
|
||||
puppet_debug_enabled: {get_param: ConfigDebug}
|
||||
@ -201,6 +206,28 @@ outputs:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:rw
|
||||
step_2:
|
||||
map_merge:
|
||||
- redis_restart_bundle:
|
||||
start_order: 1
|
||||
config_volume: redis
|
||||
detach: false
|
||||
net: host
|
||||
user: root
|
||||
command:
|
||||
- '/usr/bin/bootstrap_host_exec'
|
||||
- 'redis'
|
||||
- str_replace:
|
||||
template:
|
||||
'if /usr/sbin/pcs resource show redis-bundle; then /usr/sbin/pcs resource restart --wait=PCMKTIMEOUT redis-bundle; echo "redis-bundle restart invoked"; fi'
|
||||
params:
|
||||
PCMKTIMEOUT: {get_param: PcmkConfigRestartTimeout}
|
||||
image: {get_param: DockerRedisConfigImage}
|
||||
volumes:
|
||||
list_concat:
|
||||
- {get_attr: [ContainersCommon, volumes]}
|
||||
-
|
||||
- /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
|
||||
- /dev/shm:/dev/shm:rw
|
||||
- /var/lib/config-data/puppet-generated/redis/:/var/lib/kolla/config_files/src:ro
|
||||
- redis_init_bundle:
|
||||
start_order: 2
|
||||
detach: false
|
||||
|
@ -76,6 +76,11 @@ parameters:
|
||||
default: false
|
||||
description: Whether to run config management (e.g. Puppet) in debug mode.
|
||||
type: boolean
|
||||
PcmkConfigRestartTimeout:
|
||||
default: 600
|
||||
description: Time in seconds to wait for a pcmk resource to restart when
|
||||
a config change is detected and the resource is being restarted
|
||||
type: number
|
||||
|
||||
conditions:
|
||||
puppet_debug_enabled: {get_param: ConfigDebug}
|
||||
@ -215,6 +220,28 @@ outputs:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:rw
|
||||
image: {get_param: DockerHAProxyImage}
|
||||
step_2:
|
||||
haproxy_restart_bundle:
|
||||
start_order: 2
|
||||
detach: false
|
||||
net: host
|
||||
user: root
|
||||
config_volume: haproxy
|
||||
command:
|
||||
- '/usr/bin/bootstrap_host_exec'
|
||||
- 'haproxy'
|
||||
- str_replace:
|
||||
template:
|
||||
'if /usr/sbin/pcs resource show haproxy-bundle; then /usr/sbin/pcs resource restart --wait=PCMKTIMEOUT haproxy-bundle; echo "haproxy-bundle restart invoked"; fi'
|
||||
params:
|
||||
PCMKTIMEOUT: {get_param: PcmkConfigRestartTimeout}
|
||||
image: {get_param: DockerHAProxyImage}
|
||||
volumes:
|
||||
list_concat:
|
||||
- {get_attr: [ContainersCommon, volumes]}
|
||||
-
|
||||
- /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
|
||||
- /dev/shm:/dev/shm:rw
|
||||
- /var/lib/config-data/puppet-generated/haproxy/:/var/lib/kolla/config_files/src:ro
|
||||
haproxy_init_bundle:
|
||||
start_order: 3
|
||||
detach: false
|
||||
|
@ -40,6 +40,11 @@ parameters:
|
||||
default: false
|
||||
description: Whether to run config management (e.g. Puppet) in debug mode.
|
||||
type: boolean
|
||||
PcmkConfigRestartTimeout:
|
||||
default: 600
|
||||
description: Time in seconds to wait for a pcmk resource to restart when
|
||||
a config change is detected and the resource is being restarted
|
||||
type: number
|
||||
|
||||
conditions:
|
||||
puppet_debug_enabled: {get_param: ConfigDebug}
|
||||
@ -140,8 +145,30 @@ outputs:
|
||||
- /var/log/containers/manila:/var/log/manila
|
||||
command: ['/bin/bash', '-c', 'chown -R manila:manila /var/log/manila']
|
||||
step_5:
|
||||
manila_share_init_bundle:
|
||||
manila_share_restart_bundle:
|
||||
start_order: 0
|
||||
config_volume: manila
|
||||
detach: false
|
||||
net: host
|
||||
user: root
|
||||
command:
|
||||
- '/usr/bin/bootstrap_host_exec'
|
||||
- 'manila-share'
|
||||
- str_replace:
|
||||
template:
|
||||
'if /usr/sbin/pcs resource show manila-share; then /usr/sbin/pcs resource restart --wait=PCMKTIMEOUT manila-share; echo "manila-share restart invoked"; fi'
|
||||
params:
|
||||
PCMKTIMEOUT: {get_param: PcmkConfigRestartTimeout}
|
||||
image: {get_param: DockerManilaShareImage}
|
||||
volumes:
|
||||
list_concat:
|
||||
- {get_attr: [ContainersCommon, volumes]}
|
||||
-
|
||||
- /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
|
||||
- /dev/shm:/dev/shm:rw
|
||||
- /var/lib/config-data/puppet-generated/manila/:/var/lib/kolla/config_files/src:ro
|
||||
manila_share_init_bundle:
|
||||
start_order: 1
|
||||
detach: false
|
||||
net: host
|
||||
user: root
|
||||
|
@ -44,6 +44,11 @@ parameters:
|
||||
default: false
|
||||
description: Whether to run config management (e.g. Puppet) in debug mode.
|
||||
type: boolean
|
||||
PcmkConfigRestartTimeout:
|
||||
default: 600
|
||||
description: Time in seconds to wait for a pcmk resource to restart when
|
||||
a config change is detected and the resource is being restarted
|
||||
type: number
|
||||
|
||||
conditions:
|
||||
puppet_debug_enabled: {get_param: ConfigDebug}
|
||||
@ -186,8 +191,30 @@ outputs:
|
||||
- /usr/bin:/usr/bin:ro
|
||||
- /var/run/docker.sock:/var/run/docker.sock:rw
|
||||
step_2:
|
||||
rabbitmq_init_bundle:
|
||||
rabbitmq_restart_bundle:
|
||||
start_order: 0
|
||||
config_volume: rabbitmq
|
||||
detach: false
|
||||
net: host
|
||||
user: root
|
||||
command:
|
||||
- '/usr/bin/bootstrap_host_exec'
|
||||
- 'rabbitmq'
|
||||
- str_replace:
|
||||
template:
|
||||
'if /usr/sbin/pcs resource show rabbitmq-bundle; then /usr/sbin/pcs resource restart --wait=PCMKTIMEOUT rabbitmq-bundle; echo "rabbitmq-bundle restart invoked"; fi'
|
||||
params:
|
||||
PCMKTIMEOUT: {get_param: PcmkConfigRestartTimeout}
|
||||
image: {get_param: DockerRabbitmqImage}
|
||||
volumes:
|
||||
list_concat:
|
||||
- {get_attr: [ContainersCommon, volumes]}
|
||||
-
|
||||
- /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
|
||||
- /dev/shm:/dev/shm:rw
|
||||
- /var/lib/config-data/puppet-generated/rabbitmq/:/var/lib/kolla/config_files/src:ro
|
||||
rabbitmq_init_bundle:
|
||||
start_order: 1
|
||||
detach: false
|
||||
net: host
|
||||
user: root
|
||||
|
@ -48,6 +48,11 @@ parameters:
|
||||
default: false
|
||||
description: Whether to run config management (e.g. Puppet) in debug mode.
|
||||
type: boolean
|
||||
PcmkConfigRestartTimeout:
|
||||
default: 600
|
||||
description: Time in seconds to wait for a pcmk resource to restart when
|
||||
a config change is detected and the resource is being restarted
|
||||
type: number
|
||||
|
||||
conditions:
|
||||
puppet_debug_enabled: {get_param: ConfigDebug}
|
||||
@ -105,6 +110,28 @@ outputs:
|
||||
docker_config_scripts: {get_attr: [ContainersCommon, docker_config_scripts]}
|
||||
docker_config:
|
||||
step_3:
|
||||
ovn_dbs_restart_bundle:
|
||||
start_order: 0
|
||||
config_volume: ovn_dbs
|
||||
detach: false
|
||||
net: host
|
||||
user: root
|
||||
command:
|
||||
- '/usr/bin/bootstrap_host_exec'
|
||||
- 'ovn_dbs'
|
||||
- str_replace:
|
||||
template:
|
||||
'if /usr/sbin/pcs resource show ovn-dbs-bundle; then /usr/sbin/pcs resource restart --wait=PCMKTIMEOUT ovn-dbs-bundle; echo "ovn-dbs-bundle restart invoked"; fi'
|
||||
params:
|
||||
PCMKTIMEOUT: {get_param: PcmkConfigRestartTimeout}
|
||||
image: {get_param: DockerOvnDbsConfigImage}
|
||||
volumes:
|
||||
list_concat:
|
||||
- {get_attr: [ContainersCommon, volumes]}
|
||||
-
|
||||
- /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
|
||||
- /dev/shm:/dev/shm:rw
|
||||
- /var/lib/config-data/puppet-generated/ovn_dbs/:/var/lib/kolla/config_files/src:ro
|
||||
ovn_dbs_init_bundle:
|
||||
start_order: 1
|
||||
detach: false
|
||||
|
@ -44,6 +44,11 @@ parameters:
|
||||
default: false
|
||||
description: Whether to run config management (e.g. Puppet) in debug mode.
|
||||
type: boolean
|
||||
PcmkConfigRestartTimeout:
|
||||
default: 600
|
||||
description: Time in seconds to wait for a pcmk resource to restart when
|
||||
a config change is detected and the resource is being restarted
|
||||
type: number
|
||||
|
||||
conditions:
|
||||
puppet_debug_enabled: {get_param: ConfigDebug}
|
||||
@ -185,8 +190,30 @@ outputs:
|
||||
- /usr/bin:/usr/bin:ro
|
||||
- /var/run/docker.sock:/var/run/docker.sock:rw
|
||||
step_2:
|
||||
rabbitmq_init_bundle:
|
||||
rabbitmq_restart_bundle:
|
||||
start_order: 0
|
||||
config_volume: rabbitmq
|
||||
detach: false
|
||||
net: host
|
||||
user: root
|
||||
command:
|
||||
- '/usr/bin/bootstrap_host_exec'
|
||||
- 'rabbitmq'
|
||||
- str_replace:
|
||||
template:
|
||||
'if /usr/sbin/pcs resource show rabbitmq-bundle; then /usr/sbin/pcs resource restart --wait=PCMKTIMEOUT rabbitmq-bundle; echo "rabbitmq-bundle restart invoked"; fi'
|
||||
params:
|
||||
PCMKTIMEOUT: {get_param: PcmkConfigRestartTimeout}
|
||||
image: {get_param: DockerRabbitmqImage}
|
||||
volumes:
|
||||
list_concat:
|
||||
- {get_attr: [ContainersCommon, volumes]}
|
||||
-
|
||||
- /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
|
||||
- /dev/shm:/dev/shm:rw
|
||||
- /var/lib/config-data/puppet-generated/rabbitmq/:/var/lib/kolla/config_files/src:ro
|
||||
rabbitmq_init_bundle:
|
||||
start_order: 1
|
||||
detach: false
|
||||
net: host
|
||||
user: root
|
||||
|
@ -44,6 +44,11 @@ parameters:
|
||||
default: false
|
||||
description: Whether to run config management (e.g. Puppet) in debug mode.
|
||||
type: boolean
|
||||
PcmkConfigRestartTimeout:
|
||||
default: 600
|
||||
description: Time in seconds to wait for a pcmk resource to restart when
|
||||
a config change is detected and the resource is being restarted
|
||||
type: number
|
||||
|
||||
conditions:
|
||||
puppet_debug_enabled: {get_param: ConfigDebug}
|
||||
@ -186,8 +191,30 @@ outputs:
|
||||
- /usr/bin:/usr/bin:ro
|
||||
- /var/run/docker.sock:/var/run/docker.sock:rw
|
||||
step_2:
|
||||
rabbitmq_init_bundle:
|
||||
rabbitmq_restart_bundle:
|
||||
start_order: 0
|
||||
config_volume: rabbitmq
|
||||
detach: false
|
||||
net: host
|
||||
user: root
|
||||
command:
|
||||
- '/usr/bin/bootstrap_host_exec'
|
||||
- 'rabbitmq'
|
||||
- str_replace:
|
||||
template:
|
||||
'if /usr/sbin/pcs resource show rabbitmq-bundle; then /usr/sbin/pcs resource restart --wait=PCMKTIMEOUT rabbitmq-bundle; echo "rabbitmq-bundle restart invoked"; fi'
|
||||
params:
|
||||
PCMKTIMEOUT: {get_param: PcmkConfigRestartTimeout}
|
||||
image: {get_param: DockerRabbitmqImage}
|
||||
volumes:
|
||||
list_concat:
|
||||
- {get_attr: [ContainersCommon, volumes]}
|
||||
-
|
||||
- /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
|
||||
- /dev/shm:/dev/shm:rw
|
||||
- /var/lib/config-data/puppet-generated/rabbitmq/:/var/lib/kolla/config_files/src:ro
|
||||
rabbitmq_init_bundle:
|
||||
start_order: 1
|
||||
detach: false
|
||||
net: host
|
||||
user: root
|
||||
|
Loading…
x
Reference in New Issue
Block a user