OpenStack Glance Problem

Asked by Chang Liwei

when run command
#glance-api
Starting the Token Authentication component
Traceback (most recent call last):
  File "/usr/local/bin/glance-api", line 5, in <module>
    pkg_resources.run_script('glance==2011.3.2', 'glance-api')
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 467, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1200, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/glance-2011.3.2-py2.7.egg/EGG-INFO/scripts/glance-api", line 66, in <module>
    server.start(app, int(conf['bind_port']), conf['bind_host'])
  File "/usr/local/lib/python2.7/dist-packages/glance-2011.3.2-py2.7.egg/glance/common/wsgi.py", line 65, in start
    socket = eventlet.listen((host, port), backlog=backlog)
  File "/usr/local/lib/python2.7/dist-packages/eventlet/convenience.py", line 38, in listen
    sock.bind(addr)

I don't knowolad how to fix it. Please help me.
I paste /etc/glance/glance-api.conf and glance-registry.conf at
http://paste2.org/p/1936212
and
http://paste2.org/p/1936215
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use

Question information

Language:
English Edit question
Status:
Solved
For:
Glance Edit question
Assignee:
No assignee Edit question
Solved by:
Ken Pepple
Solved:
Last query:
Last reply:
Revision history for this message
Best Ken Pepple (ken-pepple) said :
#1

It looks like you already have something running on port 9292 --- probably another copy of glance-api. Run this to find out :

$ netstat -an | grep 9292
tcp 0 0 0.0.0.0:9292 0.0.0.0:* LISTEN

If so, find the running copy of glance-api (most likely) and kill it.

Revision history for this message
Chang Liwei (changliwei) said :
#2

Thank you very much gru

Revision history for this message
Chang Liwei (changliwei) said :
#3

大恩不言谢 Thank you anain guru

Revision history for this message
Chang Liwei (changliwei) said :
#4

Thanks Ken Pepple, that solved my question.