keystone service not starting when apache2 is running

Bug #1634058 reported by Dhanabalan Balasundaram
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Undecided
Unassigned

Bug Description

Hello,

Liberty on Ubuntu 14.04

I am unable to start keystone service when apache2 is running. Below is the error in log file

2016-10-17 11:46:08.929 6204 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.
2016-10-17 11:46:08.931 6204 ERROR keystone.common.environment.eventlet_server [-] Could not bind to 0.0.0.0:35357
2016-10-17 11:46:08.931 6204 ERROR root [-] Failed to start the admin server
2016-10-17 11:46:08.931 6204 ERROR root Traceback (most recent call last):
2016-10-17 11:46:08.931 6204 ERROR root File "/usr/lib/python2.7/dist-packages/keystone/server/eventlet.py", line 88, in serve
2016-10-17 11:46:08.931 6204 ERROR root server.launch_with(launcher)
2016-10-17 11:46:08.931 6204 ERROR root File "/usr/lib/python2.7/dist-packages/keystone/server/eventlet.py", line 54, in launch_with
2016-10-17 11:46:08.931 6204 ERROR root self.server.listen()
2016-10-17 11:46:08.931 6204 ERROR root File "/usr/lib/python2.7/dist-packages/keystone/common/environment/eventlet_server.py", line 110, in listen
2016-10-17 11:46:08.931 6204 ERROR root backlog=backlog)
2016-10-17 11:46:08.931 6204 ERROR root File "/usr/lib/python2.7/dist-packages/eventlet/convenience.py", line 44, in listen
2016-10-17 11:46:08.931 6204 ERROR root sock.listen(backlog)
2016-10-17 11:46:08.931 6204 ERROR root File "/usr/lib/python2.7/socket.py", line 228, in meth
2016-10-17 11:46:08.931 6204 ERROR root return getattr(self._sock,name)(*args)
2016-10-17 11:46:08.931 6204 ERROR root error: [Errno 98] Address already in use

Attached are the config files and if I stop apache2, keystone service starts but not apache2

Best regards,
Dhanabalan

Tags: keystone
Revision history for this message
Dhanabalan Balasundaram (dhanabalanb) wrote :
Revision history for this message
Dhanabalan Balasundaram (dhanabalanb) wrote :
Revision history for this message
Dhanabalan Balasundaram (dhanabalanb) wrote :
Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

Looks like this is a Keystone issue, not a Nova one, so I changed the affected project.

affects: nova → keystone
Revision history for this message
Boris Bobrov (bbobrov) wrote :

Keystone cannot run it by itself, you need to use apache to run it. Probably, when you launch apache, it launches keystone and that's why the port is already in use.

Don't try running service "keystone" and you will be good.

Changed in keystone:
status: New → Invalid
Revision history for this message
Dhanabalan Balasundaram (dhanabalanb) wrote :

Thank you Boris. But the keystone service is not running. It should be running right?

Revision history for this message
Boris Bobrov (bbobrov) wrote :

> Thank you Boris. But the keystone service is not running. It should be running right?

How do you determine that it is not running? Try doing something like `curl <address>:5000/`. If json is returned, then keystone is already running. If some error is returned, then probably something else in apache runs on port which should be dedicated to keystone (5000 or 35357).

Revision history for this message
Dhanabalan Balasundaram (dhanabalanb) wrote : Re: [Bug 1634058] Re: keystone service not starting when apache2 is running

Ok. Thank you. Let me check. The default domain is not created by db_sync
script and i manually created the domain and have to change domain_name to
domain_name to make it work and finding issues while creating tenants. How
do ensure tje default domain is created by default?

On Oct 18, 2016 3:01 PM, "Boris Bobrov" <email address hidden> wrote:

> Thank you Boris. But the keystone service is not running. It should be
running right?

How do you determine that it is not running? Try doing something like
`curl <address>:5000/`. If json is returned, then keystone is already
running. If some error is returned, then probably something else in
apache runs on port which should be dedicated to keystone (5000 or
35357).

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1634058

Title:
  keystone service not starting when apache2 is running

Status in OpenStack Identity (keystone):
  Invalid

Bug description:
  Hello,

  Liberty on Ubuntu 14.04

  I am unable to start keystone service when apache2 is running. Below
  is the error in log file

  2016-10-17 11:46:08.929 6204 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.
  2016-10-17 11:46:08.931 6204 ERROR
keystone.common.environment.eventlet_server
[-] Could not bind to 0.0.0.0:35357
  2016-10-17 11:46:08.931 6204 ERROR root [-] Failed to start the admin
server
  2016-10-17 11:46:08.931 6204 ERROR root Traceback (most recent call last):
  2016-10-17 11:46:08.931 6204 ERROR root File "/usr/lib/python2.7/dist-
packages/keystone/server/eventlet.py", line 88, in serve
  2016-10-17 11:46:08.931 6204 ERROR root server.launch_with(launcher)
  2016-10-17 11:46:08.931 6204 ERROR root File "/usr/lib/python2.7/dist-
packages/keystone/server/eventlet.py", line 54, in launch_with
  2016-10-17 11:46:08.931 6204 ERROR root self.server.listen()
  2016-10-17 11:46:08.931 6204 ERROR root File "/usr/lib/python2.7/dist-
packages/keystone/common/environment/eventlet_server.py", line 110, in
listen
  2016-10-17 11:46:08.931 6204 ERROR root backlog=backlog)
  2016-10-17 11:46:08.931 6204 ERROR root File "/usr/lib/python2.7/dist-
packages/eventlet/convenience.py", line 44, in listen
  2016-10-17 11:46:08.931 6204 ERROR root sock.listen(backlog)
  2016-10-17 11:46:08.931 6204 ERROR root File
"/usr/lib/python2.7/socket.py", line 228, in meth
  2016-10-17 11:46:08.931 6204 ERROR root return
getattr(self._sock,name)(*args)
  2016-10-17 11:46:08.931 6204 ERROR root error: [Errno 98] Address already
in use

  Attached are the config files and if I stop apache2, keystone service
  starts but not apache2

  Best regards,
  Dhanabalan

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1634058/+subscriptions

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.