swift proxy-server fails to start after configuring ceilometer

asked 2014-05-28 04:31:47 -0600

San gravatar image

updated 2015-01-26 00:19:35 -0600

9lives gravatar image

I was setting up 3 node openstack icehouse on ubuntu 14.04. swift was working fine till I added following lines into "/etc/swift/proxy-server.conf"

use = egg:ceilometer#swift

pipeline = healthcheck cache authtoken keystoneauth ceilometer proxy-server

Trace log : -

root@controller:/etc/cinder# swift-init proxy restart
Signal proxy-server  pid: 12109  signal: 15
No proxy-server running
Starting proxy-server...(/etc/swift/proxy-server.conf)
Traceback (most recent call last):
  File "/usr/bin/swift-proxy-server", line 23, in <module>
    sys.exit(run_wsgi(conf_file, 'proxy-server', default_port=8080, **options))
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 389, in run_wsgi
    loadapp(conf_path, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 323, in loadapp
    return ctx.create()
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 207, in invoke
    app = filter(app)
  File "/usr/lib/python2.7/dist-packages/ceilometer/objectstore/swift_middleware.py", line 187, in ceilometer_filter
    return CeilometerMiddleware(app, conf)
  File "/usr/lib/python2.7/dist-packages/ceilometer/objectstore/swift_middleware.py", line 80, in __init__
  File "/usr/lib/python2.7/dist-packages/ceilometer/service.py", line 150, in prepare_service
  File "/usr/lib/python2.7/dist-packages/ceilometer/openstack/common/log.py", line 440, in setup
    _setup_logging_from_conf(product_name, version)
  File "/usr/lib/python2.7/dist-packages/ceilometer/openstack/common/log.py", line 504, in _setup_logging_from_conf
    filelog = logging.handlers.WatchedFileHandler(logpath)
  File "/usr/lib/python2.7/logging/handlers.py", line 391, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python2.7/logging/__init__.py", line 903, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.7/logging/__init__.py", line 928, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/var/log/ceilometer/swift-proxy-server.log'

I ran this command to add swift to ceilometer group but no luck. usermod -g ceilometer -G swift swift

Can any one help to resolve this?

edit retag flag offensive close merge delete


Have you found a solution for this?

Henrique Zambon gravatar imageHenrique Zambon ( 2014-12-23 11:59:18 -0600 )edit

Have you found a solution to this error?

bala2014 gravatar imagebala2014 ( 2015-01-07 00:46:39 -0600 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2014-07-01 02:46:47 -0600

Vinoth gravatar image


chmod -R 777 /var/log/ceilometer/

Then restart the swift service

edit flag offensive delete link more


awesome... i had the same error got it fixed by running the above command..

warlord gravatar imagewarlord ( 2015-02-25 07:20:10 -0600 )edit

thanks for this. it also fixed my issue..

vaibhavhyd2014 gravatar imagevaibhavhyd2014 ( 2015-03-27 09:22:24 -0600 )edit

thanks ! your post solved my problem toooo!

hpetwal gravatar imagehpetwal ( 2015-04-26 14:53:02 -0600 )edit

answered 2015-01-25 22:17:24 -0600

yoshitan gravatar image

In my case (CentOS 7), after disabling SELinux (setenforce 0) and restarting openstack-swift-proxy, it works fine.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2014-05-28 04:31:47 -0600

Seen: 1,606 times

Last updated: Jan 26 '15