Ask Your Question
1

ERROR keystone.common.environment.eventlet_server [-] Could not bind to 0.0.0.0:35357

asked 2015-05-13 04:36:50 -0600

Rajesh Chaturvedi gravatar image

updated 2015-05-18 03:59:03 -0600

root@controller:~# /usr/bin/python /usr/bin/keystone-all --config-file=/etc/keystone/keystone.conf --log-file=/var/log/keystone/keystone.log
2015-05-13 15:04:39.216 32500 WARNING root [-] Running keystone via eventlet is deprecated as of Kilo in favor of running in a WSGI server (e.g. mod_wsgi). Support for keystone under eventlet will be removed in the "M"-Release.
2015-05-13 15:04:39.217 32500 ERROR keystone.common.environment.eventlet_server [-] Could not bind to 0.0.0.0:35357
2015-05-13 15:04:39.218 32500 ERROR root [-] Failed to start the admin server
2015-05-13 15:04:39.218 32500 TRACE root Traceback (most recent call last):
2015-05-13 15:04:39.218 32500 TRACE root   File "/usr/lib/python2.7/dist-packages/keystone/server/eventlet.py", line 88, in serve
2015-05-13 15:04:39.218 32500 TRACE root     server.launch_with(launcher)
2015-05-13 15:04:39.218 32500 TRACE root   File "/usr/lib/python2.7/dist-packages/keystone/server/eventlet.py", line 54, in launch_with
2015-05-13 15:04:39.218 32500 TRACE root     self.server.listen()
2015-05-13 15:04:39.218 32500 TRACE root   File "/usr/lib/python2.7/dist-packages/keystone/common/environment/eventlet_server.py", line 105, in listen
2015-05-13 15:04:39.218 32500 TRACE root     backlog=backlog)
2015-05-13 15:04:39.218 32500 TRACE root   File "/usr/lib/python2.7/dist-packages/eventlet/convenience.py", line 43, in listen
2015-05-13 15:04:39.218 32500 TRACE root     sock.bind(addr)
2015-05-13 15:04:39.218 32500 TRACE root   File "/usr/lib/python2.7/socket.py", line 224, in meth
2015-05-13 15:04:39.218 32500 TRACE root     return getattr(self._sock,name)(*args)
2015-05-13 15:04:39.218 32500 TRACE root error: [Errno 98] Address already in use
2015-05-13 15:04:39.218 32500 TRACE root 
2015-05-13 15:04:39.219 32500 CRITICAL keystone [-] error: [Errno 98] Address already in use
2015-05-13 15:04:39.219 32500 TRACE keystone Traceback (most recent call last):
2015-05-13 15:04:39.219 32500 TRACE keystone   File "/usr/bin/keystone-all", line 36, in <module>
2015-05-13 15:04:39.219 32500 TRACE keystone     eventlet_server.run(possible_topdir)
2015-05-13 15:04:39.219 32500 TRACE keystone   File "/usr/lib/python2.7/dist-packages/keystone/server/eventlet.py", line 156, in run
2015-05-13 15:04:39.219 32500 TRACE keystone     serve(*servers)
2015-05-13 15:04:39.219 32500 TRACE keystone   File "/usr/lib/python2.7/dist-packages/keystone/server/eventlet.py", line 88, in serve
2015-05-13 15:04:39.219 32500 TRACE keystone     server.launch_with(launcher)
2015-05-13 15:04:39.219 32500 TRACE keystone   File "/usr/lib/python2.7/dist-packages/keystone/server/eventlet.py", line 54, in launch_with
2015-05-13 15:04:39.219 32500 TRACE keystone     self.server.listen()
2015-05-13 15:04:39.219 32500 TRACE keystone   File "/usr/lib/python2.7/dist-packages/keystone/common/environment/eventlet_server.py", line 105, in listen
2015-05-13 15:04:39.219 32500 TRACE keystone     backlog=backlog)
2015-05-13 15:04:39.219 32500 TRACE keystone   File "/usr/lib/python2.7/dist-packages/eventlet/convenience.py", line 43, in listen ...
(more)
edit retag flag offensive close merge delete

Comments

$ netstat -lntp | grep 35357 if you will get pid (xxxx) of process listening at port, then

ps -ef | grep xxxx
dbaxps gravatar imagedbaxps ( 2015-05-19 01:33:12 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-03-01 12:15:43 -0600

Keystone and httpd were listening to same port and hostname, so kindly try this approach. ( centos7 )

check for the services : systemctl status openstack-keystone httpd.service;

If any one is up stop the services in order: systemctl stop httpd.service; systemctl stop openstack-keystone

Edit the following in /etc/keystone/keystone.conf

connection = mysql://keystone:KEYSTONE_PWD@localhost/keystone

admin_bind_host = controller ip

public_bind_host =controller ip

Edit the following in /etc/httpd/conf.d/wsgi-keystone.conf modify the Listen & Virualhost line to below

Listen 127.0.0.1:5000

Listen 127.0.0.1:35357

<virtualhost 127.0.0.1:5000=""> <virtualhost 127.0.0.1:35357="">

Start the service in order systemctl startopenstack-keystone; systemctl start httpd;

edit flag offensive delete link more

Comments

Even i had the same issue, i did as per you told and was able to bring both openstack-keystone and httpd service up.

but when you try to create the keystone service by this command $ openstack service create --name keystone --description "OpenStack Identity" identity Not Found (HTTP 404) any ideas

John Bernad gravatar imageJohn Bernad ( 2016-04-13 04:41:37 -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: 2015-05-13 04:36:50 -0600

Seen: 3,350 times

Last updated: Mar 01 '16