RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1169215 - swift-init does not interoperate with systemd swift service files
Summary: swift-init does not interoperate with systemd swift service files
Keywords:
Status: CLOSED EOL
Alias: None
Product: RDO
Classification: Community
Component: openstack-swift
Version: Juno
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Juno
Assignee: Pete Zaitcev
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-01 04:31 UTC by Bill Owen
Modified: 2016-05-19 16:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-19 16:11:27 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.