swift service cannot restart after inserting ceilometer in pipeline parameter of proxy-server.conf

asked 2015-01-23 22:33:31 -0500

sk91 gravatar image

im installing openstack legacy juno ubuntu, im at the "Configure the Object Storage service for Telemetry part", ( http://docs.openstack.org/juno/install-guide/install/apt/content/ceilometer-agent-swift.html (http://docs.openstack.org/juno/instal...) )

when i add ceilometer to pipeline of /etc/swift/proxy-server.conf file

pipeline = healthcheck cache authtoken keystoneauth ceilometer proxy-server

and attempt to :

# service swift-proxy restart

it stops the service and cannot start again

stop/wait service
start : job failed to start

there are nothing in /var/log/ceilometer*

but i found this in /var/log/upstat/swift-proxy.log

Signal proxy-server  pid: 3923  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', **options))
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 445, in run_wsgi
    loadapp(conf_path, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 361, 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 233, in ceilometer_filter
    return CeilometerMiddleware(app, conf)
  File "/usr/lib/python2.7/dist-packages/ceilometer/objectstore/swift_middleware.py", line 99, in __init__
  File "/usr/lib/python2.7/dist-packages/ceilometer/service.py", line 125, in prepare_service
  File "/usr/lib/python2.7/dist-packages/ceilometer/openstack/common/log.py", line 422, in setup
    _setup_logging_from_conf(product_name, version)
  File "/usr/lib/python2.7/dist-packages/ceilometer/openstack/common/log.py", line 490, 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'

Signal proxy-server  pid: 3973  signal: 15
No proxy-server running

i have also entered :

# usermod -a -G ceilometer swift

oh and i have to say there was no swift-proxy-server.log in /var/log/ceilometer/, even i created and used :

#    chown ceilometer:ceilometer /var/log/ceilometer/swift-proxy-server.log

but didnt help

edit retag flag offensive close merge delete


are you sure you have followed all the 7 steps per http://docs.openstack.org/juno/instal... looks like the logging module cannot write log file for the swift-proxy-server.log

9lives gravatar image9lives ( 2015-01-24 08:53:36 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-02-03 02:53:47 -0500

I think you also need run below command. chmod g+w /var/log/ceilometer/swift-proxy-server.log

edit flag offensive delete link more


chmod 775 /var/log/ceilometer/swift-proxy-server.log will also do the same trick.

vaibhavhyd2014 gravatar imagevaibhavhyd2014 ( 2015-03-27 09:49:30 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2015-01-23 22:33:31 -0500

Seen: 865 times

Last updated: Jan 23 '15