Ask Your Question
0

Devstack: Invalid credentials after reboot. Keyostone error 404

asked 2017-02-18 11:37:23 -0500

ge0rgi gravatar image

I am trying to run Devstack, my local.conf looks like this

[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD

When I run ./stack.sh everything works as expected. I am able to access horizon, create instances, etc. Before shutting down the machine I run ./unstack.sh. When I later start the machine again I start devstack by using screen -c stack-screenrc. I am able to access horion, however when I try to log in I get an invalid credentials error. I looken in horizon screen and I saw the following errors

2017-02-18 16:51:18.687058 DEBUG:keystoneauth.identity.v3.base:Making authentication request to http://192.168.2.102/identity/v3/auth/tokens
2017-02-18 16:51:18.725239 DEBUG:keystoneauth.session:Request returned failure status: 404
2017-02-18 16:51:18.725569 Login failed for user "demo", remote address 192.168.2.101.

If I run ./stack.sh again everything works until reboot/shutdown. Am I doing somehting wrong wrong when starting devstack after reboot? I don't wan't to run ./stack.sh evrytime since it takes a long time to complete and I don't want to wipe my data.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2017-02-18 18:17:56 -0500

Devstack is not made for rebooting.

Packstack may be an alternative. It's as simple to set up as Devstack (or simpler), and it survives reboots, but you are limited to RHEL or a derivative as the underlying OS.

Running your Devstack on a VM that you save and restore rather than reboot is another option.

edit flag offensive delete link more
0

answered 2017-02-18 14:50:33 -0500

volenbovsky gravatar image

Hi,

Probably you saw 'devstack after reboot of host' in Google and note that rejoin-stack.sh was removed. Hmm, 'screen -c stack-screenrc' was an option before...

Maybe having a snapshot of VM and restoring from snapshot after reboot/shutdown is an option?

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-02-18 11:37:23 -0500

Seen: 288 times

Last updated: Feb 18 '17