Bug 1169215

Summary: swift-init does not interoperate with systemd swift service files
Product: [Community] RDO Reporter: Bill Owen <wwowen>
Component: openstack-swiftAssignee: Pete Zaitcev <zaitcev>
Status: CLOSED EOL QA Contact: nlevinki <nlevinki>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: JunoCC: derekh, pasik, srevivo, zaitcev
Target Milestone: ---   
Target Release: Juno   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-19 16:11:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bill Owen 2014-12-01 04:31:56 UTC
Description of problem:  Swift services started using swift-init cannot be managed with systemctl and vice versa.


Version-Release number of selected component (if applicable):  RDO Juno / RHEL7


How reproducible: 100%


Steps to Reproduce for object-server, same for all swift service files:
1.  run "swift-init start object"
2.  run "systemctl status openstack-swift-object.service"
3.  The object-server started by swift-init is not detected by "systemctl status" command.  It must be stopped using "swift-init stop object"
4.  run "systemctl start openstack-swift-object.service"
5.  run "swift-init status object"
6.  The object server started by systemctl is not detected by "swift-init status" command.


Additional info:  swift-init relies on pid file being created in /var/run/swift.  The swift service files do not result in pid files being created.  The two service management interfaces should be integrated better or should swift-init should be deprecated?

Comment 1 Pete Zaitcev 2014-12-01 15:44:04 UTC
We always discouraged swift-init, because launching with swift-init
makes processes run with the wrong SElinux context. It was the case even
in RHEL 6, where you had to run service openstack-swift-blah start,
despite the two using the same PID-based accounting.

There should be no mention of swift-init in any of RDO, RHOS, or
RHEL OSP documentation.

Comment 2 Chandan Kumar 2016-05-19 16:11:27 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.