Ask Your Question
0

Why the changes to keystone.conf gets back to same when I run ./stack.sh in devstack ?

asked 2013-07-30 06:07:28 -0600

Deepak gravatar image

updated 2013-07-30 10:27:13 -0600

Jobin gravatar image

Hi,

I am currently trying to make use of the federated keystone from git hub within my devstack environment. I am doing some changes in the /etc/keystone/keystone.conf with respect to my file root. But when I do the changes save it and try runnning ./stack.sh I get an error which is due to the root I have set for the certificates is not getting changed. I have attached the error please help.

OSError: [Errno 13] Permission denied: '/Users'
+ sudo mkdir -p /var/cache/keystone
+ sudo chown student /var/cache/keystone
+ rm -f '/var/cache/keystone/*'
+ start_keystone
+ local service_port=5000
+ is_service_enabled tls-proxy
+ services=tls-proxy
+ for service in '${services}'
+ [[ ,g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-cond,cinder,c-sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,n-cauth,horizon,rabbit,tempest,mysql, =~ ,tls-proxy, ]]
+ [[ tls-proxy == \n\o\v\a ]]
+ [[ tls-proxy == \c\i\n\d\e\r ]]
+ [[ tls-proxy == \c\e\i\l\o\m\e\t\e\r ]]
+ [[ tls-proxy == \g\l\a\n\c\e ]]
+ [[ tls-proxy == \n\e\u\t\r\o\n ]]
+ [[ tls-proxy == \s\w\i\f\t ]]
+ [[ tls-proxy == s-* ]]
+ return 1
+ screen_it key 'cd /opt/stack/keystone && /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug'
+ SCREEN_NAME=stack
+ SERVICE_DIR=/opt/stack/status
++ trueorfalse True True
++ local default=True
++ local testval=True
++ [[ -z True ]]
++ [[ 0 no false False FALSE =~ True ]]
++ [[ 1 yes true True TRUE =~ True ]]
++ echo True
++ return
+ USE_SCREEN=True
+ is_service_enabled key
+ services=key
+ for service in '${services}'
+ [[ ,g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-cond,cinder,c-sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,n-cauth,horizon,rabbit,tempest,mysql, =~ ,key, ]]
+ return 0
+ screen_rc key 'cd /opt/stack/keystone && /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug'
+ SCREEN_NAME=stack
+ SCREENRC=/home/student/devstack/stack-screenrc
+ [[ ! -e /home/student/devstack/stack-screenrc ]]
+ grep key /home/student/devstack/stack-screenrc
++ echo -ne '\015'
+ NL=$'\r'
+ echo 'screen -t key bash'
+ echo 'stuff "cd /opt/stack/keystone && /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf "' --debug
+ [[ True = \T\r\u\e ]]
+ screen -S stack -X screen -t key
+ [[ -n '' ]]
+ sleep 1.5
++ echo -ne '\015'
+ NL=$'\r'
+ screen -S stack -p key -X stuff 'cd /opt/stack/keystone && /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/ke'stone/logging.conf -d --debug || touch "/opt/stack/status/stack/key.failure"
+ echo 'Waiting for keystone to start...'
Waiting for keystone to start...
+ timeout 60 sh -c 'while ! http_proxy= curl -s <a href="http://129.12.44.77:5000/v2.0/">http://129.12.44.77:5000/v2.0/</a> >/dev/null; do sleep 1; done'
+ die 311 'keystone did not start'
+ local exitcode=0
+ set +o xtrace
[ERROR] ./stack.sh:311 keystone did not start
edit retag flag offensive close merge delete

Comments

Are you behind a proxy-server?

Jobin gravatar imageJobin ( 2013-07-30 10:28:11 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-07-30 09:30:28 -0600

@Deepak, stack.sh run will always change your settings to default as it picks the code from repo. its a development environment configuration script. you can update the individual components from github as required.

edit flag offensive delete link more

Comments

1

I remember reading that it does this by design to prevent individuals from using DevStack in production environments. Can't quote a source at the moment, but makes sense to me.

nosluoc gravatar imagenosluoc ( 2013-07-31 13:25:33 -0600 )edit

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: 2013-07-30 06:07:28 -0600

Seen: 435 times

Last updated: Jul 30 '13