Merge lp:~james-page/swift/add-object-expirer into lp:~ubuntu-server-dev/swift/icehouse

Proposed by James Page
Status: Merged
Approved by: Chuck Short
Approved revision: 167
Merged at revision: 166
Proposed branch: lp:~james-page/swift/add-object-expirer
Merge into: lp:~ubuntu-server-dev/swift/icehouse
Diff against target: 170 lines (+100/-1)
9 files modified
debian/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)
To merge this branch: bzr merge lp:~james-page/swift/add-object-expirer
Reviewer Review Type Date Requested Status
Ubuntu Server Developers Pending
Review via email: mp+207883@code.launchpad.net

Description of the change

Add support for install of object-expirer

This is not bundled with swift-object by default.

To post a comment you must log in.
165. By James Page

Revert accidentally landed changes

166. By James Page

Rebase on parent, resolve issues

167. By James Page

Add missing files

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2014-02-24 10:36:52 +0000
+++ debian/changelog 2014-02-24 10:41:53 +0000
@@ -1,3 +1,18 @@
1swift (1.12.0-0ubuntu2) UNRELEASED; urgency=medium
2
3 * Add object-expirer package and associated configuration (LP: #1235495):
4 - d/control: Add swift-object-expirer package, break/replace swift-object
5 from earlier versions.
6 - d/swift-object.install: Drop install of swift-object-expirer.
7 - d/swift-object-expirer.{install,upstart}: Install swift-object-expirer
8 and associated upstart configuration.
9 - d/rules,object-expirer.conf: Provide basic object-expirer configuration.
10 - debian/swift-object-expirer.docs: Add full example configuration to docs.
11 * d/rules,swift-container.swift-container-sync.upstart: Add upstart
12 configuration for swift-container-sync process (LP: #1250171).
13
14 -- James Page <james.page@ubuntu.com> Mon, 24 Feb 2014 10:37:20 +0000
15
1swift (1.12.0-0ubuntu1) trusty; urgency=medium16swift (1.12.0-0ubuntu1) trusty; urgency=medium
217
3 * New upstream release.18 * New upstream release.
419
=== modified file 'debian/control'
--- debian/control 2014-02-24 10:36:52 +0000
+++ debian/control 2014-02-24 10:41:53 +0000
@@ -138,6 +138,39 @@
138 This package provides a proxy server on which clients can connect to store138 This package provides a proxy server on which clients can connect to store
139 object into Swift.139 object into Swift.
140140
141Package: swift-object-expirer
142Architecture: all
143Depends:
144 python-swift (=${binary:Version}),
145 ${misc:Depends},
146 ${python:Depends},
147 ${shlibs:Depends}
148Provides: ${python:Provides}
149Breaks: swift-object (<< 1.12.0-0ubuntu2)
150Replaces: swift-object (<< 1.12.0-0ubuntu2)
151Description: distributed virtual object store - object expirer
152 OpenStack Object Storage (code-named Swift) is open source software for
153 creating redundant, scalable object storage using clusters of standardized
154 servers to store petabytes of accessible data. It is not a file system or
155 real-time data storage system, but rather a long-term storage system for a
156 more permanent type of static data that can be retrieved, leveraged, and then
157 updated if necessary. Primary examples of data that best fit this type of
158 storage model are virtual machine images, photo storage, email storage and
159 backup archiving. Having no central "brain" or master point of control
160 provides greater scalability, redundancy and permanence.
161 .
162 Objects are written to multiple hardware devices in the data center, with
163 the OpenStack software responsible for ensuring data replication and
164 integrity across the cluster. Storage clusters can scale horizontally by
165 adding new nodes. Should a node fail, OpenStack works to replicate its
166 content from other active nodes. Because OpenStack uses software logic to
167 ensure data replication and distribution across different devices,
168 inexpensive commodity hard drives and servers can be used in lieu of more
169 expensive equipment.
170 .
171 This package provides the object-expirer service that provides scheduled
172 deletion of objects in Swift.
173
141Package: swift-object174Package: swift-object
142Architecture: all175Architecture: all
143Depends:176Depends:
144177
=== added file 'debian/object-expirer.conf'
--- debian/object-expirer.conf 1970-01-01 00:00:00 +0000
+++ debian/object-expirer.conf 2014-02-24 10:41:53 +0000
@@ -0,0 +1,18 @@
1[DEFAULT]
2
3[object-expirer]
4interval = 300
5
6[pipeline:main]
7pipeline = catch_errors cache proxy-server
8
9[app:proxy-server]
10use = egg:swift#proxy
11
12[filter:cache]
13use = egg:swift#memcache
14
15[filter:catch_errors]
16use = egg:swift#catch_errors
17
18# See object-expirer.conf-sample for options
019
=== modified file 'debian/rules'
--- debian/rules 2014-02-24 10:36:52 +0000
+++ debian/rules 2014-02-24 10:41:53 +0000
@@ -30,12 +30,14 @@
30 install -D -m 0640 $(CURDIR)/debian/account-server.conf $(CURDIR)/debian/swift-account/etc/swift/account-server.conf30 install -D -m 0640 $(CURDIR)/debian/account-server.conf $(CURDIR)/debian/swift-account/etc/swift/account-server.conf
31 install -D -m 0640 $(CURDIR)/debian/container-server.conf $(CURDIR)/debian/swift-container/etc/swift/container-server.conf31 install -D -m 0640 $(CURDIR)/debian/container-server.conf $(CURDIR)/debian/swift-container/etc/swift/container-server.conf
32 install -D -m 0640 $(CURDIR)/debian/object-server.conf $(CURDIR)/debian/swift-object/etc/swift/object-server.conf32 install -D -m 0640 $(CURDIR)/debian/object-server.conf $(CURDIR)/debian/swift-object/etc/swift/object-server.conf
33 install -D -m 0640 $(CURDIR)/debian/object-expirer.conf $(CURDIR)/debian/swift-object-expirer/etc/swift/object-expirer.conf
3334
34override_dh_installinit:35override_dh_installinit:
35 dh_installinit --no-start36 dh_installinit --no-start
36 dh_installinit --no-start -pswift-container --name=swift-container-replicator37 dh_installinit --no-start -pswift-container --name=swift-container-replicator
37 dh_installinit --no-start -pswift-container --name=swift-container-auditor38 dh_installinit --no-start -pswift-container --name=swift-container-auditor
38 dh_installinit --no-start -pswift-container --name=swift-container-updater39 dh_installinit --no-start -pswift-container --name=swift-container-updater
40 dh_installinit --no-start -pswift-container --name=swift-container-sync
39 dh_installinit --no-start -pswift-account --name=swift-account-replicator41 dh_installinit --no-start -pswift-account --name=swift-account-replicator
40 dh_installinit --no-start -pswift-account --name=swift-account-auditor42 dh_installinit --no-start -pswift-account --name=swift-account-auditor
41 dh_installinit --no-start -pswift-account --name=swift-account-reaper43 dh_installinit --no-start -pswift-account --name=swift-account-reaper
4244
=== added file 'debian/swift-container.swift-container-sync.upstart'
--- debian/swift-container.swift-container-sync.upstart 1970-01-01 00:00:00 +0000
+++ debian/swift-container.swift-container-sync.upstart 2014-02-24 10:41:53 +0000
@@ -0,0 +1,15 @@
1description "SWIFT Container Sync"
2author "James Page <james.page@ubuntu.com>"
3
4start on runlevel [2345]
5stop on runlevel [016]
6
7pre-start script
8 if [ -f "/etc/swift/container-server.conf" ]; then
9 exec /usr/bin/swift-init container-sync start
10 else
11 exit 1
12 fi
13end script
14
15post-stop exec /usr/bin/swift-init container-sync stop
016
=== added file 'debian/swift-object-expirer.docs'
--- debian/swift-object-expirer.docs 1970-01-01 00:00:00 +0000
+++ debian/swift-object-expirer.docs 2014-02-24 10:41:53 +0000
@@ -0,0 +1,1 @@
1etc/object-expirer.conf-sample
02
=== added file 'debian/swift-object-expirer.install'
--- debian/swift-object-expirer.install 1970-01-01 00:00:00 +0000
+++ debian/swift-object-expirer.install 2014-02-24 10:41:53 +0000
@@ -0,0 +1,1 @@
1usr/bin/swift-object-expirer
02
=== added file 'debian/swift-object-expirer.upstart'
--- debian/swift-object-expirer.upstart 1970-01-01 00:00:00 +0000
+++ debian/swift-object-expirer.upstart 2014-02-24 10:41:53 +0000
@@ -0,0 +1,15 @@
1description "SWIFT Object Expirer"
2author "Will Kelly <william.kelly@rackspace.com>"
3
4start on runlevel [2345]
5stop on runlevel [016]
6
7pre-start script
8 if [ -f "/etc/swift/object-expirer.conf" ]; then
9 exec /usr/bin/swift-init object-expirer start
10 else
11 exit 1
12 fi
13end script
14
15post-stop exec /usr/bin/swift-init object-expirer stop
016
=== modified file 'debian/swift-object.install'
--- debian/swift-object.install 2014-02-24 10:36:52 +0000
+++ debian/swift-object.install 2014-02-24 10:41:53 +0000
@@ -1,5 +1,4 @@
1usr/bin/swift-object-auditor1usr/bin/swift-object-auditor
2usr/bin/swift-object-expirer
3usr/bin/swift-object-info2usr/bin/swift-object-info
4usr/bin/swift-object-replicator3usr/bin/swift-object-replicator
5usr/bin/swift-object-server4usr/bin/swift-object-server

Subscribers

People subscribed via source and target branches