Ask Your Question
0

Openstack persistence after reboot

asked 2017-08-27 14:22:31 -0500

donmasters755 gravatar image

I am new to openstack. I installed openstack using devstack all on one server (for testing). All was well after installation but when I rebooted the server then openstack failed to work. Is this a normal issue? Is there additional steps to the installation so that my cloud installation survives a reboot?

I used this guide to install openstack on a single Ubuntu 16.04 server for testing and development:

This installation was installed on a FRESH install of Ubuntu 16.04 with all updates and upgrades applied. The only additional package installed outside of the default package of Ubuntu 16.04 was openssh-server.

After installation of Openstack (without rebooting) I was able to traverse all of the functions of the dashboard. I then shutdown for the evening. When I started up the next morning and started the dashboard I noticed many error messages (not able to retrieve usage data...etc...) but the big error was on Projects > Access and Security where I received the following error message:

ConnectionFailed at /project/access_and_security/

Connection to neutron failed: HTTPConnectionPool(host='192.168.1.8', port=9696): Max retries exceeded with url: //v2.0/extensions.json (Caused by NewConnectionError('<requests.packages.urllib3.connection.httpconnection object="" at="" 0x7f2551657850="">: Failed to establish a new connection: [Errno 111] Connection refused',))

Request Method: GET Request URL: http://192.168.1.8/dashboard/project/access_and_security/ (http://192.168.1.8/dashboard/project/...) Django Version: 1.8.14 Exception Type: ConnectionFailed Exception Value:

Connection to neutron failed: HTTPConnectionPool(host='192.168.1.8', port=9696): Max retries exceeded with url: //v2.0/extensions.json (Caused by NewConnectionError('<requests.packages.urllib3.connection.httpconnection object="" at="" 0x7f2551657850="">: Failed to establish a new connection: [Errno 111] Connection refused',))

Exception Location: /usr/local/lib/python2.7/dist-packages/neutronclient/client.py in _cs_request, line 111 Python Executable: /usr/bin/python Python Version: 2.7.12 Python Path:

['/opt/stack/horizon/openstack_dashboard/wsgi/../..', '/opt/stack/horizon', '/opt/stack/keystone', '/opt/stack/glance', '/opt/stack/cinder', '/opt/stack/neutron', '/opt/stack/nova', '/opt/stack/horizon', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/opt/stack/horizon/openstack_dashboard']

Server time: Sun, 27 Aug 2017 18:10:22 +0000

I have reproduced this 5 times, each time re-installing Linux and OpenStack fresh and rebooting. Each time I receive the error above.

I noticed there is NO /var/log/neutron directory so I do not know where the error logs are.

edit retag flag offensive close merge delete

Comments

1

hi, have you tried screen -c stack-screenrc after reboot ?? stack-screenrc is the screen name located under devstack directory

CloudEnthusiast gravatar imageCloudEnthusiast ( 2017-08-28 06:42:25 -0500 )edit

+1 @ CloudEnthousiast

hkominos gravatar imagehkominos ( 2017-08-28 08:38:09 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2017-08-28 02:38:39 -0500

I don't know what's the status these days, but devstack was never supposed to be rebooted. One problem is the way the physical LVM volume is created - it resides on a file that is turned into a disk device via losetup. When rebooting, you need to run losetup manually to recreate that physical volume.

I am sure there are more examples of resources that are not set up at reboot time. If you want an all-in-one cloud that survives a reboot, use packstack (not perfect, but much better). It seems that Ubuntu also has an all-in-one solution; shop around.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-08-27 14:22:31 -0500

Seen: 695 times

Last updated: Aug 28 '17