Bind mount /var/lib/container-config-scripts inside the restart bundles

Bind mounting the single files is never a good idea and
we're actually planning to potentially add one more script in there
to be used by the restart bundles, so best if we bind mount the whole
folder and use that directly.

Change-Id: I881f6fdb7f99575f017fb86d6ab2dc3d55348e46
This commit is contained in:
Michele Baldessari 2020-07-15 10:34:15 +02:00
parent 09b4d44d55
commit 233710ad5d
11 changed files with 11 additions and 12 deletions

View File

@ -220,7 +220,7 @@ outputs:
user: root user: root
environment: environment:
TRIPLEO_MINOR_UPDATE: '' TRIPLEO_MINOR_UPDATE: ''
command: /pacemaker_restart_bundle.sh cinder_backup openstack-cinder-backup openstack-cinder-backup _ Started command: /var/lib/container-config-scripts/pacemaker_restart_bundle.sh cinder_backup openstack-cinder-backup openstack-cinder-backup _ Started
image: {get_param: ContainerCinderBackupImage} image: {get_param: ContainerCinderBackupImage}
volumes: volumes:
list_concat: list_concat:

View File

@ -206,7 +206,7 @@ outputs:
user: root user: root
environment: environment:
TRIPLEO_MINOR_UPDATE: '' TRIPLEO_MINOR_UPDATE: ''
command: /pacemaker_restart_bundle.sh cinder_volume openstack-cinder-volume openstack-cinder-volume _ Started command: /var/lib/container-config-scripts/pacemaker_restart_bundle.sh cinder_volume openstack-cinder-volume openstack-cinder-volume _ Started
image: {get_param: ContainerCinderVolumeImage} image: {get_param: ContainerCinderVolumeImage}
volumes: volumes:
list_concat: list_concat:

View File

@ -155,8 +155,7 @@ outputs:
value: value:
list_concat: list_concat:
- *volumes_base - *volumes_base
- - /var/lib/container-config-scripts/pacemaker_restart_bundle.sh:/pacemaker_restart_bundle.sh:ro - - /var/lib/container-config-scripts:/var/lib/container-config-scripts:ro
- /var/lib/container-config-scripts/pacemaker_wait_bundle.sh:/pacemaker_wait_bundle.sh:ro
- /dev/shm:/dev/shm:rw - /dev/shm:/dev/shm:rw
# required for bootstrap_host_exec, facter # required for bootstrap_host_exec, facter
- /etc/puppet:/etc/puppet:ro - /etc/puppet:/etc/puppet:ro

View File

@ -301,7 +301,7 @@ outputs:
user: root user: root
environment: environment:
TRIPLEO_MINOR_UPDATE: '' TRIPLEO_MINOR_UPDATE: ''
command: /pacemaker_restart_bundle.sh mysql galera galera-bundle Master command: /var/lib/container-config-scripts/pacemaker_restart_bundle.sh mysql galera galera-bundle Master
image: {get_param: ContainerMysqlImage} image: {get_param: ContainerMysqlImage}
volumes: volumes:
list_concat: list_concat:

View File

@ -268,7 +268,7 @@ outputs:
user: root user: root
environment: environment:
TRIPLEO_MINOR_UPDATE: '' TRIPLEO_MINOR_UPDATE: ''
command: /pacemaker_restart_bundle.sh redis redis redis-bundle Slave Master command: /var/lib/container-config-scripts/pacemaker_restart_bundle.sh redis redis redis-bundle Slave Master
image: {get_param: ContainerRedisConfigImage} image: {get_param: ContainerRedisConfigImage}
volumes: volumes:
list_concat: list_concat:

View File

@ -291,7 +291,7 @@ outputs:
config_volume: haproxy config_volume: haproxy
environment: environment:
TRIPLEO_MINOR_UPDATE: '' TRIPLEO_MINOR_UPDATE: ''
command: /pacemaker_restart_bundle.sh haproxy haproxy-bundle haproxy-bundle Started command: /var/lib/container-config-scripts/pacemaker_restart_bundle.sh haproxy haproxy-bundle haproxy-bundle Started
image: {get_param: ContainerHAProxyImage} image: {get_param: ContainerHAProxyImage}
volumes: volumes:
list_concat: list_concat:

View File

@ -188,7 +188,7 @@ outputs:
user: root user: root
environment: environment:
TRIPLEO_MINOR_UPDATE: '' TRIPLEO_MINOR_UPDATE: ''
command: /pacemaker_restart_bundle.sh manila_share openstack-manila-share openstack-manila-share _ Started command: /var/lib/container-config-scripts/pacemaker_restart_bundle.sh manila_share openstack-manila-share openstack-manila-share _ Started
image: {get_param: ContainerManilaShareImage} image: {get_param: ContainerManilaShareImage}
volumes: volumes:
list_concat: list_concat:

View File

@ -254,7 +254,7 @@ outputs:
user: root user: root
environment: environment:
TRIPLEO_MINOR_UPDATE: '' TRIPLEO_MINOR_UPDATE: ''
command: /pacemaker_restart_bundle.sh ovn_dbs ovndb_servers ovn-dbs-bundle Slave Master command: /var/lib/container-config-scripts/pacemaker_restart_bundle.sh ovn_dbs ovndb_servers ovn-dbs-bundle Slave Master
image: {get_param: ContainerOvnDbsConfigImage} image: {get_param: ContainerOvnDbsConfigImage}
volumes: volumes:
list_concat: list_concat:

View File

@ -233,7 +233,7 @@ outputs:
user: root user: root
environment: environment:
TRIPLEO_MINOR_UPDATE: '' TRIPLEO_MINOR_UPDATE: ''
command: /pacemaker_restart_bundle.sh oslo_messaging_notify rabbitmq rabbitmq-bundle Started command: /var/lib/container-config-scripts/pacemaker_restart_bundle.sh oslo_messaging_notify rabbitmq rabbitmq-bundle Started
image: {get_param: ContainerRabbitmqImage} image: {get_param: ContainerRabbitmqImage}
volumes: volumes:
list_concat: list_concat:

View File

@ -233,7 +233,7 @@ outputs:
user: root user: root
environment: environment:
TRIPLEO_MINOR_UPDATE: '' TRIPLEO_MINOR_UPDATE: ''
command: /pacemaker_restart_bundle.sh rabbitmq rabbitmq rabbitmq-bundle Started command: /var/lib/container-config-scripts/pacemaker_restart_bundle.sh rabbitmq rabbitmq rabbitmq-bundle Started
image: {get_param: ContainerRabbitmqImage} image: {get_param: ContainerRabbitmqImage}
volumes: volumes:
list_concat: list_concat:

View File

@ -239,7 +239,7 @@ outputs:
user: root user: root
environment: environment:
TRIPLEO_MINOR_UPDATE: '' TRIPLEO_MINOR_UPDATE: ''
command: /pacemaker_restart_bundle.sh oslo_messaging_rpc rabbitmq rabbitmq-bundle Started command: /var/lib/container-config-scripts/pacemaker_restart_bundle.sh oslo_messaging_rpc rabbitmq rabbitmq-bundle Started
image: {get_param: ContainerRabbitmqImage} image: {get_param: ContainerRabbitmqImage}
volumes: volumes:
list_concat: list_concat: