Merge "Provide multipath.conf to containers that need it"

This commit is contained in:
Zuul 2019-08-16 02:14:43 +00:00 committed by Gerrit Code Review
commit 438f07e2d7
5 changed files with 11 additions and 0 deletions

View File

@ -172,6 +172,7 @@ outputs:
if:
- multipathd_enabled
- - /etc/multipath:/etc/multipath:z
- /etc/multipath.conf:/etc/multipath.conf:ro
- []
cinder_volume_environment:

View File

@ -529,6 +529,7 @@ outputs:
if:
- cinder_multipathd_enabled
- - /etc/multipath:/etc/multipath:z
- /etc/multipath.conf:/etc/multipath.conf:ro
- []
environment:
- KOLLA_BOOTSTRAP=True

View File

@ -94,6 +94,8 @@ outputs:
- 'y'
- 'n'
config_image: {get_param: ContainerMultipathdConfigImage}
volumes:
- /etc/multipath.conf:/etc/multipath.conf:z
kolla_config:
/var/lib/kolla/config_files/multipathd.json:
command: /usr/sbin/multipathd -d
@ -153,6 +155,11 @@ outputs:
path: /etc/multipath
state: directory
setype: svirt_sandbox_file_t
- name: ensure /etc/multipath.conf exists
file:
path: /etc/multipath.conf
state: touch
setype: svirt_sandbox_file_t
upgrade_tasks: []
post_upgrade_tasks:
- when: step|int == 1

View File

@ -705,6 +705,7 @@ outputs:
if:
- {equals: [{get_param: MultipathdEnable}, true]}
- - /etc/multipath:/etc/multipath:z
- /etc/multipath.conf:/etc/multipath.conf:ro
- []
environment:
list_concat:

View File

@ -184,6 +184,7 @@ outputs:
if:
- {equals: [{get_param: MultipathdEnable}, true]}
- - /etc/multipath:/etc/multipath:z
- /etc/multipath.conf:/etc/multipath.conf:ro
- []
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS