Swift object expirer upstart job missing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Fix Released
|
High
|
Unassigned | ||
swift (Ubuntu) |
Fix Released
|
Medium
|
James Page | ||
Trusty |
Fix Released
|
Medium
|
James Page |
Bug Description
The swift object expirer service is required to use the object expiration feature in swift. Currently, there is no upstart job to manage this service.
I encountered this bug on the grizzly packages in cloud archive (1.8.x) and verified that it persists on the latest saucy packages.
Here's a simple job that works:
root@spc-
# swift-object-
#
# The swift object expirer.
# Shamelessly copied from swift-object.conf by Marc Cluet
description "SWIFT Object Expirer"
author "Will Kelly <email address hidden>"
start on runlevel [2345]
stop on runlevel [016]
pre-start script
if [ -f "/etc/swift/
exec /usr/bin/swift-init object-expirer start
else
exit 1
fi
end script
post-stop exec /usr/bin/swift-init object-expirer stop
root@spc-
Related branches
- Ubuntu Server Developers: Pending requested
-
Diff: 170 lines (+100/-1)9 files modifieddebian/changelog (+15/-0)
debian/control (+33/-0)
debian/object-expirer.conf (+18/-0)
debian/rules (+2/-0)
debian/swift-container.swift-container-sync.upstart (+15/-0)
debian/swift-object-expirer.docs (+1/-0)
debian/swift-object-expirer.install (+1/-0)
debian/swift-object-expirer.upstart (+15/-0)
debian/swift-object.install (+0/-1)
Changed in swift (Ubuntu): | |
importance: | Undecided → Medium |
no longer affects: | swift |
Changed in swift (Ubuntu): | |
status: | New → Triaged |
Changed in cloud-archive: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in swift (Ubuntu): | |
assignee: | nobody → James Page (james-page) |
Changed in swift (Ubuntu Trusty): | |
status: | Triaged → In Progress |
Changed in swift (Ubuntu Trusty): | |
status: | In Progress → Fix Committed |
Changed in cloud-archive: | |
status: | Triaged → Fix Released |
Hi Will
I was going to put this in the swift-object package, but reading the docs in a bit more detail, this feels like something that needs to be in its own package as it does not run on object storage nodes - probably alongside the proxy server:
http:// docs.openstack. org/developer/ swift/overview_ expiring_ objects. html
How does this sound? I've proposed a merge for the icehouse packages on this basis.