cloudbuilders/devstack — Issue #55: Keystone/Nova api-paste sed command fails if stack.sh run more than once
Author: gabrielhurley
Created: 2011-10-11 23:39:30+00:00
State: open

This line fails if stack.sh is run more than once:

https://github.com/cloudbuilders/devstack/blob/master/stack.sh#L385

Since the first time it's run it overwrites the default token with the new (autogenerated) token, the second time the script is run it won't replace anything, thus leaving the old token in place. This causes hard to trace authorization errors between nova and keystone farther down the line.

I believe a better solution would be to use a regex in the sed command to replace whatever token is on that line.