184f01a0d6
This partially implements iscsi and lvm2 support for cinder in Kolla. Adds iscsid and tgtd docker containers. Change-Id: I7fb48c954e578772b90a2aa619c8bcfa990b3ae8 Partially-Implements: blueprint iscsi-lvm2-docker
15 lines
413 B
Bash
15 lines
413 B
Bash
#!/bin/bash
|
|
|
|
if [[ $(stat -c %U:%G /var/lib/cinder) != "cinder:kolla" ]]; then
|
|
sudo chown -R cinder:kolla /var/lib/cinder
|
|
fi
|
|
if [[ $(stat -c %a /var/lib/cinder) != "2775" ]]; then
|
|
sudo chmod 2775 /var/lib/cinder
|
|
fi
|
|
if [[ $(stat -c %U:%G /etc/iscsi) != "cinder:kolla" ]]; then
|
|
sudo chown -R cinder:kolla /etc/iscsi
|
|
fi
|
|
if [[ $(stat -c %a /etc/iscsi) != "2775" ]]; then
|
|
sudo chmod 2775 /etc/iscsi
|
|
fi
|