[ERROR] /opt/stack/stack/lib/keystone:565 keystone did not start

asked 2017-08-13 10:06:00 -0600

rhys gravatar image

Hello All,

I am staying to setup Devstack in a VM according to the instructions here;

https://docs.openstack.org/devstack/latest/ (https://docs.openstack.org/devstack/l...)

The ./stack.sh step fails after 15 minutes or so. It appears to be a problem with the keystone service;

+lib/keystone:start_keystone:556           echo 'Waiting for keystone to start...'

Waiting for keystone to start...
+lib/keystone:start_keystone:562           local service_uri=http://192.168.4.111/identity/v3/
+lib/keystone:start_keystone:564           wait_for_service 60 http://192.168.4.111/identity/v3/
+functions:wait_for_service:397            local timeout=60
+functions:wait_for_service:398            local url=http://192.168.4.111/identity/v3/
+functions:wait_for_service:399            local rval=0
+functions:wait_for_service:400            time_start wait_for_service
+functions-common:time_start:2495          local name=wait_for_service
+functions-common:time_start:2496          local start_time=
+functions-common:time_start:2497          [[ -n '' ]]
++functions-common:time_start:2500          date +%s%3N
+functions-common:time_start:2500          _TIME_START[$name]=1502631676673
+functions:wait_for_service:401            timeout 60 bash -x
++::                                        curl -g -k --noproxy '*' -s -o /dev/null -w '%{http_code}' http://192.168.4.111/identity/v3/
+functions:wait_for_service:401            rval=124
+functions:wait_for_service:406            time_stop wait_for_service
+functions-common:time_stop:2509           local name
+functions-common:time_stop:2510           local end_time
+functions-common:time_stop:2511           local elapsed_time
+functions-common:time_stop:2512           local total
+functions-common:time_stop:2513           local start_time
+functions-common:time_stop:2515           name=wait_for_service
+functions-common:time_stop:2516           start_time=1502631676673
+functions-common:time_stop:2518           [[ -z 1502631676673 ]]
++functions-common:time_stop:2521           date +%s%3N
+functions-common:time_stop:2521           end_time=1502631738041
+functions-common:time_stop:2522           elapsed_time=61368
+functions-common:time_stop:2523           total=0
+functions-common:time_stop:2525           _TIME_START[$name]=
+functions-common:time_stop:2526           _TIME_TOTAL[$name]=61368
+functions:wait_for_service:407            return 124
+lib/keystone:start_keystone:565           die 565 'keystone did not start'
+functions-common:die:186                  local exitcode=0
+functions-common:die:187                  set +o xtrace
[Call Trace]
./stack.sh:1124:start_keystone
/opt/stack/stack/lib/keystone:565:die
[ERROR] /opt/stack/stack/lib/keystone:565 keystone did not start
Error on exit
World dumping... see /opt/stack/logs/worlddump-2017-08-13-134221.txt for details

Here is my local.conf

[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=secret
RABBIT_PASSWORD=secret
SERVICE_PASSWORD=secret
HOST_IP=127.0.0.1
SERVICE_HOST=127.0.0.1

I added the HOST_IP/SERVICE_HOST lines after googling the error. I have tried the loopback and private network address. Both are reachable from the host machine.

I seem to be able to start/restart the keystone service without any issue;

service devstack@keystone status
Redirecting to /bin/systemctl status  devstack@keystone.service
● devstack@keystone.service - Devstack devstack@keystone.service
   Loaded: loaded (/etc/systemd/system/devstack@keystone.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2017-08-13 13:09:00 UTC; 1h 44min ago
 Main PID: 19615 (uwsgi)
   Status: "uWSGI is ready"
   CGroup: /system.slice/system-devstack.slice/devstack@keystone.service
           ├─19615 /usr/bin/uwsgi --ini /etc/keystone/keystone-uwsgi-public.ini
           ├─19616 /usr/bin/uwsgi --ini /etc/keystone/keystone-uwsgi-public.ini
           └─19617 /usr/bin/uwsgi --ini /etc/keystone/keystone-uwsgi-public.ini

I've attempted to install/remove & reinstall various packages as suggested by goodle. These include "python-pbr", "python2-pbr", "python-cinderclient", "python-urllib3". I am using a Vagrant/Ansible project to do this here; https://github.com ... (more)

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
2

answered 2017-10-24 08:46:18 -0600

tangmin gravatar image

have you solved the problem ?i met it too and has no answer,thank you

edit flag offensive delete link more
1

answered 2017-08-19 06:53:54 -0600

rhys gravatar image

I resolved this by changing a line in stackrc

SERVICE_TIMEOUT=${SERVICE_TIMEOUT:-60}

to

SERVICE_TIMEOUT=${SERVICE_TIMEOUT:-120}

But then ran into another error

edit flag offensive delete link more
0

answered 2020-06-01 22:13:56 -0600

Ianfree gravatar image

have you solved the problem ?i met it too and has no answer,thank you

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-08-13 10:06:00 -0600

Seen: 3,622 times

Last updated: Oct 24 '17