Revision history [back]

This may or may not be applicable to you, depending on your configuration:

In case of reboot

$ grep -e mount.*swift -e losetup -e "sudo ip.*br-ex" ~/devstack/stack.sh.log.<timestamp>

then run the commands you find.

1- remount the Swift filesystem

sudo mount -t xfs -o loop,noatime,nodiratime,nobarrier,logbufs=8 \
                   /opt/stack/data/swift/drives/images/swift.img \
               /opt/stack/data/swift/drives/sdb1

2- recreate the LVM physical volumes for Cinder

sudo losetup -f --show /opt/stack/data/stack-volumes-default-backing-file
sudo losetup -f --show /opt/stack/data/stack-volumes-lvmdriver-1-backing-file

3- configure the external bridge

sudo ip addr add 172.24.4.1/24 dev br-ex
sudo ip link set br-ex up

This may or may not be applicable to you, depending on your configuration:

In case of rebootAfter rebooting Devstack, search the stack.sh log for commands to recreate volatile elements:

$ grep -e mount.*swift -e losetup -e "sudo ip.*br-ex" ~/devstack/stack.sh.log.<timestamp>

then run the These commands you find.are probably as follows:

1- remount the Swift filesystem

sudo mount -t xfs -o loop,noatime,nodiratime,nobarrier,logbufs=8 \
                   /opt/stack/data/swift/drives/images/swift.img \
                /opt/stack/data/swift/drives/sdb1

2- recreate the LVM physical volumes for Cinder

sudo losetup -f --show /opt/stack/data/stack-volumes-default-backing-file
sudo losetup -f --show /opt/stack/data/stack-volumes-lvmdriver-1-backing-file

3- configure the external bridge

sudo ip addr add 172.24.4.1/24 dev br-ex
sudo ip link set br-ex up

This may or may not be applicable to you, depending on your configuration:

After rebooting Devstack, search the stack.sh log for commands to recreate volatile elements:

$ grep -e mount.*swift -e losetup -e "sudo ip.*br-ex" ~/devstack/stack.sh.log.<timestamp>

These commands are probably as follows:

1- remount the Swift filesystem

sudo mount -t xfs -o loop,noatime,nodiratime,nobarrier,logbufs=8 \
                   /opt/stack/data/swift/drives/images/swift.img \
                   /opt/stack/data/swift/drives/sdb1

2- recreate the LVM physical volumes for Cinder

sudo losetup -f --show /opt/stack/data/stack-volumes-default-backing-file
sudo losetup -f --show /opt/stack/data/stack-volumes-lvmdriver-1-backing-file

3- configure the external bridge

sudo ip addr add 172.24.4.1/24 dev br-ex
sudo ip link set br-ex up

You can use /etc/fstab and netplan to persist the Swift mount and the br-ex config. Persisting the losetup commands is left as an exercise (i.e. I currently don’t know).