Rework container volumes as hostpath mounts
Also add upgrade_tasks to disable corresponding host services in order to not data race with containers Change-Id: I19c16aaa3e5a73436ca7aa7d06facf64feee2327 Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
This commit is contained in:
parent
8716d9f769
commit
9aaa5ba03d
@ -102,8 +102,8 @@ outputs:
|
||||
step_config: 'include ::tripleo::profile::base::database::mongodb'
|
||||
config_image: *mongodb_image
|
||||
volumes:
|
||||
- "mongodb:/var/lib/mongodb/"
|
||||
- "logs:/var/log/kolla:ro"
|
||||
- /var/lib/mongodb:/var/lib/mongodb
|
||||
- logs:/var/log/kolla:ro
|
||||
host_prep_tasks:
|
||||
- name: create /var/lib/mongodb
|
||||
file:
|
||||
|
@ -91,3 +91,7 @@ outputs:
|
||||
file:
|
||||
path: /var/lib/libvirt
|
||||
state: directory
|
||||
upgrade_tasks:
|
||||
- name: Stop and disable nova-compute service
|
||||
tags: step2
|
||||
service: name=nova-compute state=stopped enabled=no
|
||||
|
@ -85,6 +85,10 @@ outputs:
|
||||
- /run:/run
|
||||
- /dev:/dev
|
||||
- /etc/iscsi:/etc/iscsi
|
||||
- nova_compute:/var/lib/nova/
|
||||
- /var/lib/nova/:/var/lib/nova
|
||||
environment:
|
||||
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||
upgrade_tasks:
|
||||
- name: Stop and disable nova-compute service
|
||||
tags: step2
|
||||
service: name=nova-compute state=stopped enabled=no
|
||||
|
@ -100,3 +100,7 @@ outputs:
|
||||
with_items:
|
||||
- /etc/libvirt/qemu
|
||||
- /var/lib/libvirt
|
||||
upgrade_tasks:
|
||||
- name: Stop and disable libvirtd service
|
||||
tags: step2
|
||||
service: name=libvirtd state=stopped enabled=no
|
||||
|
Loading…
Reference in New Issue
Block a user