Bug 805149 - Allow for multiple instances of swift's systemd services
Summary: Allow for multiple instances of swift's systemd services
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openstack-swift
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alan Pevec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-20 15:40 UTC by Mark McLoughlin
Modified: 2012-04-12 03:02 UTC (History)
8 users (show)

Fixed In Version: openstack-swift-1.4.8-1.fc17
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-12 03:02:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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