Ask Your Question

Credidential Issue with booting OpenStack

asked 2019-03-28 20:31:28 -0500

BlueFrog gravatar image

So I set up DevStack Rocky on Ubuntu 18.04 with networking-odl plugin. I ran and everything ran just fine an I was able to source openrc and log into Horizon and launch 2 instances as normal. However, I powered off openstack to call it a night and when booting up today, I am unable to run openstack commands (even after sourcing openrc again). When I run openrc admin, I am able to use openstack commands, yet instances are unavailable and all data on horizon is inaccessible.

Is there something I need to do every time I reboot OpenStack? I feel as if I am missing something simple.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-03-29 01:36:52 -0500

What you are missing is the fact that Devstack was not created for rebooting. It was written for testing OpenStack code in small clouds that can be set up quickly, then removed. It is not completely started up when you reboot the server.

In my experience (which doesn't include ODL), after a restart the network bridge has no IP address and is DOWN, and the loop devices for Cinder and Swift are not set up. You would have to correct that first, then restart Swift and Cinder. However I don't know if there are other complications due to ODL.

FYI the script I use to complete a restart of Devstack.

echo reviving network
sudo ip a add dev br-ex
sudo ip l set dev br-ex up

echo setting up 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

echo mounting Swift FS and restarting Swift
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
sudo systemctl restart devstack@s-*
sudo systemctl status devstack@s-* --no-pager

echo restarting Cinder
sudo systemctl restart devstack@c-*

Your IP address, interface name and path names may vary.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2019-03-28 20:31:28 -0500

Seen: 54 times

Last updated: Mar 29 '19