Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

keystone didnot start

while i was stacking, i got the error for: (./stack.sh)

Waiting for keystone to start... + timeout 60 sh -c 'while ! curl --noproxy '\''*'\'' -s http://192.168.1.17:5000/v2.0/ >/dev/null; do sleep 1; done' + die 378 'keystone did not start' + local exitcode=0 + set +o xtrace [Call Trace] ./stack.sh:858:start_keystone /home/win7/devstack-master/lib/keystone:378:die [ERROR] /home/win7/devstack-master/lib/keystone:378 keystone did not start win7@ubuntu:~/devstack-master$

when i unstacked it: win7@ubuntu:~/devstack-master$ ./unstack.sh * Stopping web server apache2 [ OK ] tgtadm: can't send the request to the tgt daemon, Transport endpoint is not connected tgtd seems to be in a bad state, restarting... stop: Unknown instance: tgt start/running, process 22558 tgt stop/waiting Volume group "stack-volumes" not found Skipping volume group stack-volumes Volume group "stack-volumes" not found Skipping volume group stack-volumes /opt/stack/data/stack-volumes-backing-file: No such file or directory

i am getting the error keystone did not start when i did screen -x stack one screen showed the results as : win7@ubuntu:/opt/stack/tempest$ cd /opt/stack/keystone && /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug || echo "key failed to start" | tee "/opt/stack/status/stack/key.failure" Traceback (most recent call last): File "/opt/stack/keystone/bin/keystone-all", line 43, in <module> gettextutils.install('keystone') File "/opt/stack/keystone/keystone/openstack/common/gettextutils.py", line 114, in install if six.PY3: AttributeError: 'module' object has no attribute 'PY3' key failed to start


FOR MORE REFERENCE


after the mysql setup in ./stack.sh mysql stop/waiting mysql start/running, process 24359 ++ trueorfalse True True ++ local default=True ++ local testval=True ++ [[ -z True ]] ++ [[ 0 no No NO false False FALSE =~ True ]] ++ [[ 1 yes Yes YES true True TRUE =~ True ]] ++ echo True ++ return + USE_SCREEN=True + [[ True == \T\r\u\e ]] + screen -d -m -S stack -t shell -s /bin/bash + sleep 1 + '[' -z '' ']' + SCREEN_HARDSTATUS='%{= .} %-Lw%{= .}%> %n%f %t%{= .}%+Lw%< %-=%{g}(%{d}%H/%l%{g})' + screen -r stack -X hardstatus alwayslastline '%{= .} %-Lw%{= .}%> %n%f %t%{= .}%+Lw%< %-=%{g}(%{d}%H/%l%{g})' + screen -r stack -X setenv PROMPT_COMMAND /bin/true + SCREENRC=/home/win7/devstack-master/stack-screenrc + [[ -e /home/win7/devstack-master/stack-screenrc ]] + rm -f /home/win7/devstack-master/stack-screenrc + init_service_check + SCREEN_NAME=stack + SERVICE_DIR=/opt/stack/status + [[ ! -d /opt/stack/status/stack ]] + rm -f /opt/stack/status/stack/key.failure + is_service_enabled sysstat + services=sysstat + 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, =~ ,sysstat, ]] + [[ sysstat == n-cell-* ]] + [[ sysstat == \n\o\v\a ]] + [[ sysstat == \c\i\n\d\e\r ]] + [[ sysstat == \c\e\i\l\o\m\e\t\e\r ]] + [[ sysstat == \g\l\a\n\c\e ]] + [[ sysstat == \n\e\u\t\r\o\n ]] + [[ sysstat == \t\r\o\v\e ]] + [[ sysstat == \s\w\i\f\t ]] + [[ sysstat == s-* ]] + return 1 + 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 + echo_summary 'Starting Keystone' + [[ -t 3 ]] + [[ True != \T\r\u\e ]] + echo -e Starting Keystone Starting Keystone + init_keystone + recreate_database keystone utf8 + local db=keystone + local charset=utf8 + recreate_database_mysql keystone utf8 + local db=keystone + local charset=utf8 + mysql -uroot -pkanike -h127.0.0.1 -e 'DROP DATABASE IF EXISTS keystone;' + mysql -uroot -pkanike -h127.0.0.1 -e 'CREATE DATABASE keystone CHARACTER SET utf8;' + /opt/stack/keystone/bin/keystone-manage db_sync Traceback (most recent call last): File "/opt/stack/keystone/bin/keystone-manage", line 35, in <module> gettextutils.install('keystone') File "/opt/stack/keystone/keystone/openstack/common/gettextutils.py", line 114, in install if six.PY3: AttributeError: 'module' object has no attribute 'PY3' + [[ PKI == \P\K\I ]] + rm -rf /etc/keystone/ssl + /opt/stack/keystone/bin/keystone-manage pki_setup Traceback (most recent call last): File "/opt/stack/keystone/bin/keystone-manage", line 35, in <module> gettextutils.install('keystone') File "/opt/stack/keystone/keystone/openstack/common/gettextutils.py", line 114, in install if six.PY3: AttributeError: 'module' object has no attribute 'PY3' + sudo mkdir -p /var/cache/keystone + sudo chown win7 /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-cell- ]] + [[ 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 == \t\r\o\v\e ]] + [[ tls-proxy == \s\w\i\f\t ]] + [[ tls-proxy == s-* ]] + return 1 + is_apache_enabled_service key + services=key + for service in '${services}' + [[ ,, =~ ,key, ]] + 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 No NO false False FALSE =~ True ]] ++ [[ 1 yes Yes 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/win7/devstack-master/stack-screenrc + [[ ! -e /home/win7/devstack-master/stack-screenrc ]] + echo 'sessionname stack' + echo 'hardstatus alwayslastline '\''%{= .} %-Lw%{= .}%> %n%f %t*%{= .}%+Lw%< %-=%{g}(%{d}%H/%l%{g})'\''' + echo 'setenv PROMPT_COMMAND /bin/true' + echo 'screen -t shell bash' + grep key /home/win7/devstack-master/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 -d --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/keystone/logging.conf -d --debug || echo "key f'iled to start" | tee "/opt/stack/status/stack/key.failure" + echo 'Waiting for keystone to start...'

please help anyone