Bind mount /var/lib/iscsi in containers using iSCSI
Services that create iSCSI connections need to share the connection info that gets created in /var/lib/iscsi. It's especially important that the host has knowledge of *all* connections so that it can disconnect them whenever the host shuts down or reboots. Closes-Bug: #1810338 Change-Id: I803ed2ba9ff52f9a02c550a28d21cc9102568c8e
This commit is contained in:
parent
0f62b10039
commit
243cb34615
@ -468,6 +468,7 @@ outputs:
|
||||
- cinder_backend_enabled
|
||||
- - /dev:/dev
|
||||
- /etc/iscsi:/etc/iscsi
|
||||
- /var/lib/iscsi:/var/lib/iscsi:z
|
||||
- []
|
||||
environment:
|
||||
- KOLLA_BOOTSTRAP=True
|
||||
|
@ -145,8 +145,9 @@ outputs:
|
||||
- /dev/:/dev/
|
||||
- /run/:/run/
|
||||
- /sys:/sys
|
||||
- /var/lib/cinder:/var/lib/cinder
|
||||
- /var/log/containers/cinder:/var/log/cinder
|
||||
- /var/lib/cinder:/var/lib/cinder:z
|
||||
- /var/lib/iscsi:/var/lib/iscsi:z
|
||||
- /var/log/containers/cinder:/var/log/cinder:z
|
||||
|
||||
cinder_volume_environment:
|
||||
description: Docker environment for the cinder-volume container (HA or non-HA)
|
||||
@ -171,6 +172,7 @@ outputs:
|
||||
- /sys:/sys
|
||||
- /lib/modules:/lib/modules:ro
|
||||
- /var/lib/cinder:/var/lib/cinder:z
|
||||
- /var/lib/iscsi:/var/lib/iscsi:z
|
||||
- /var/log/containers/cinder:/var/log/cinder:z
|
||||
|
||||
cinder_backup_environment:
|
||||
|
@ -100,6 +100,7 @@ outputs:
|
||||
- /sys:/sys
|
||||
- /lib/modules:/lib/modules:ro
|
||||
- /etc/iscsi:/var/lib/kolla/config_files/src-iscsid:ro
|
||||
- /var/lib/iscsi:/var/lib/iscsi:z
|
||||
environment:
|
||||
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||
host_prep_tasks:
|
||||
|
@ -83,7 +83,8 @@ outputs:
|
||||
- /run/:/run/
|
||||
- /sys:/sys
|
||||
- /lib/modules:/lib/modules:ro
|
||||
- /var/lib/cinder:/var/lib/cinder
|
||||
- /var/lib/cinder:/var/lib/cinder:z
|
||||
- /var/lib/iscsi:/var/lib/iscsi:z
|
||||
environment:
|
||||
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||
host_prep_tasks:
|
||||
|
@ -238,6 +238,7 @@ outputs:
|
||||
- /dev:/dev
|
||||
- /lib/modules:/lib/modules:ro
|
||||
- /run:/run
|
||||
- /var/lib/iscsi:/var/lib/iscsi:z
|
||||
- /var/lib/nova:/var/lib/nova:shared,z
|
||||
- /var/lib/libvirt:/var/lib/libvirt:shared,z
|
||||
- /sys/class/net:/sys/class/net
|
||||
|
@ -141,6 +141,7 @@ outputs:
|
||||
- /etc/iscsi:/var/lib/kolla/config_files/src-iscsid:ro
|
||||
- /run:/run
|
||||
- /dev:/dev
|
||||
- /var/lib/iscsi:/var/lib/iscsi:z
|
||||
- /var/lib/nova/:/var/lib/nova:shared,z
|
||||
- /var/log/containers/nova:/var/log/nova:z
|
||||
environment:
|
||||
|
Loading…
x
Reference in New Issue
Block a user