Bug 805149

Summary: Allow for multiple instances of swift's systemd services
Product: [Fedora] Fedora Reporter: Mark McLoughlin <markmc>
Component: openstack-swiftAssignee: Alan Pevec <apevec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: apevec, apevec, david, jonathansteffan, markmc, rbryant, silas, zaitcev
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-swift-1.4.8-1.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-12 03:02:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Mark McLoughlin 2012-03-20 15:40:18 UTC
For a "swift all in one" installation, you need multiple instances of the account, container and object servers on the one machine

It should be possible to do e.g.

  $> systemctl start openstack-swift-account
  $> systemctl start openstack-swift-account

and have two instances of the account service.

You would also need to have e.g. /etc/swift/account-server/1.conf and /etc/swift/account-server/2.conf

This should just be a matter of adding openstack-swift-account@.service with e.g.

  ExecStart=/usr/bin/swift-account-server /etc/swift/account-server/%i.conf

See the systemd.unit(5) manpage for information about %i and instance names. Also this blog post: http://0pointer.de/blog/projects/instances.html

Comment 1 Mark McLoughlin 2012-03-20 15:42:56 UTC
Forgot to mention that this is actually a regression caused by #734594 and credit goes to Derek Higgins for the idea.

Comment 2 Fedora Update System 2012-03-20 23:05:43 UTC
openstack-swift-1.4.7-2.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/openstack-swift-1.4.7-2.fc17

Comment 3 Fedora Update System 2012-03-21 18:18:54 UTC
Package openstack-swift-1.4.7-2.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openstack-swift-1.4.7-2.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-4343/openstack-swift-1.4.7-2.fc17
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-03-23 00:43:24 UTC
Package openstack-swift-1.4.8-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openstack-swift-1.4.8-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-4343/openstack-swift-1.4.8-1.fc17
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-04-12 03:02:01 UTC
openstack-swift-1.4.8-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.