Ask Your Question
0

Centos7: swift proxy-server fails to start after configuring ceilometer

asked 2015-01-07 01:14:46 -0500

bala2014 gravatar image

OS: Centos 7, Swift Version:swift 2.3.1, Ceilometer:1.0.12, Python: 2.7.5

After configuring Ceilometer, Swift proxy-server fails to start.

Error: openstack-swift-proxy.service - OpenStack Object Storage (swift) - Proxy Server Loaded: loaded (/usr/lib/systemd/system/openstack-swift-proxy.service; enabled) Active: failed (Result: exit-code) since Tue 2015-01-06 21:32:38 IST; 2s ago Process: 19988 ExecStart=/usr/bin/swift-proxy-server /etc/swift/proxy-server.conf (code=exited, status=1/FAILURE) Main PID: 19988 (code=exited, status=1/FAILURE)

Jan 06 21:32:38 localhost.localdomain swift-proxy-server[19988]: filelog = logging.handlers.WatchedFileHandler(logpath) Jan 06 21:32:38 localhost.localdomain swift-proxy-server[19988]: File "/usr/lib64/python2.7/logging/handlers.py", line 392, in __init__ Jan 06 21:32:38 localhost.localdomain swift-proxy-server[19988]: logging.FileHandler.__init__(self, filename, mode, encoding, delay) Jan 06 21:32:38 localhost.localdomain swift-proxy-server[19988]: File "/usr/lib64/python2.7/logging/__init__.py", line 902, in __init__ Jan 06 21:32:38 localhost.localdomain swift-proxy-server[19988]: StreamHandler.__init__(self, self._open()) Jan 06 21:32:38 localhost.localdomain swift-proxy-server[19988]: File "/usr/lib64/python2.7/logging/__init__.py", line 925, in _open Jan 06 21:32:38 localhost.localdomain swift-proxy-server[19988]: stream = open(self.baseFilename, self.mode) Jan 06 21:32:38 localhost.localdomain swift-proxy-server[19988]: IOError: [Errno 13] Permission denied: '/var/log/ceilometer/swift-proxy-....log' Jan 06 21:32:38 localhost.localdomain systemd[1]: openstack-swift-proxy.service: main process exited, code=exited, status=1/FAILURE Jan 06 21:32:38 localhost.localdomain systemd[1]: Unit openstack-swift-proxy.service entered failed state.

I referred the previous post: https://ask.openstack.org/en/question...

as well as the bug reports: a) https://bugs.launchpad.net/swift/+bug... (Privilege drop/escalation does not pick up secondary UNIX groups) b) https://bugs.launchpad.net/ceilometer... ( When adding ceilometer to the pipeline, swift-proxy cannot start )

I assume the fix suggested in Bug #1269473 is part of latest swift version(Swift Version:swift 2.3.1). I tried all those directory permissions mentioned in above posts. I did not try code changes mentioned in Bug:1262264 (in /usr/lib/python2.7/site-packages/swift/common/utils.py (in my case))

Problem still persists.

Any help or suggestions?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-12 16:38:16 -0500

zaitcev gravatar image

updated 2015-01-12 16:39:10 -0500

You cannot follow the suggestions in bug 1262264 blindly. People were trying to hash out a good combination of permissions there, so none of what they propose appears to help you directly. The root problem you're trying to solve is to let Ceilometerer middleware to write, while running inside Swift (it's a middleware, duh). So, just chown swift.swift for everything it needs, such as /var/log/ceilometer/swift-proxy*.log and chmod a+r on it so that Ceilometer itself can read it after its middleware wrote it. Probably not the most elegant way to do it, but should be bulletproof.

edit flag offensive delete link more

Comments

Thanks for the suggestion. The above mentioned changes did not solve the issue.

bala2014 gravatar imagebala2014 ( 2015-01-23 05:33:24 -0500 )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-01-07 01:14:46 -0500

Seen: 770 times

Last updated: Jan 12 '15