Ask Your Question
0

Cannot use swift-init to check swift services status on Fedora 21

asked 2014-12-30 06:58:47 -0500

Wilson gravatar image

updated 2014-12-30 19:01:59 -0500

smaffulli gravatar image

Hello,

I have encountered one problem in one of my swift storage nodes on Fedora 21. I first followed installation manual to enable swift services by using a series of "systemctl enable xxx". But after reboot the node, I could not use swift-init to check those service status. (swift-init all status) Thus, if I run swift-init all start and get errors!

I found that the reason is because the service process id files (.pid) have not been created in folder /var/run/swift, thus swift-init utility cannot detect those running process.

Can someone help to tell how to enable Fedora to create those pid files or how to configure swift-init tool to detect running swift processes?

Thanks

Wilson

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-12 16:48:33 -0500

zaitcev gravatar image

updated 2015-01-12 16:49:43 -0500

I don't think you can do what you want, sorry. The reason being that SystemD uses process control groups, therefore (in most cases) PID files are not created at all.

If you want to use swift-init to manage your cluster, you should use it to start it as well check status. If you use systemctl command to start the cluster, you should use systemctl status subcommand. This actually applies to older systems too, such as RHEL 6, where you either use swift-init for everything, or you use service/chkconfig for everything. So even before systemd you could not mix them, although status checking happened to work because of PID files being compatible. But we always discouraged this practice.

Note that if you use swift-init, the SElinux context is not going to be set correctly. Therefore, it may only be used on systems where SElinux is not run in Enforcing more.

edit flag offensive delete link more

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: 2014-12-30 06:58:47 -0500

Seen: 459 times

Last updated: Jan 12 '15