Merge lp:~james-page/swift/fixup-cache-perms into lp:~ubuntu-server-dev/swift/havana

Proposed by James Page
Status: Merged
Approved by: Chuck Short
Approved revision: 150
Merged at revision: 150
Proposed branch: lp:~james-page/swift/fixup-cache-perms
Merge into: lp:~ubuntu-server-dev/swift/havana
Diff against target: 29 lines (+14/-0)
2 files modified
debian/changelog (+7/-0)
debian/python-swift.postinst (+7/-0)
To merge this branch: bzr merge lp:~james-page/swift/fixup-cache-perms
Reviewer Review Type Date Requested Status
Ubuntu Server Developers Pending
Review via email: mp+189044@code.launchpad.net

Description of the change

The swift daemons need write permissions on /var/cache/swift

Allow then to have this!

I think this causes occasional 503 messages on havana swift.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-09-25 15:11:53 +0000
3+++ debian/changelog 2013-10-03 11:13:28 +0000
4@@ -1,3 +1,10 @@
5+swift (1.9.1-0ubuntu3) UNRELEASED; urgency=low
6+
7+ * d/python-swift.postinst: Allow swift user to write to /var/cache/swift,
8+ resolving repeated errors in swift syslog (LP: #1234657).
9+
10+ -- James Page <james.page@ubuntu.com> Thu, 03 Oct 2013 12:01:38 +0100
11+
12 swift (1.9.1-0ubuntu2) saucy; urgency=low
13
14 * d/control: Add missing dependency on python-dnspython >= 1.10.0.
15
16=== modified file 'debian/python-swift.postinst'
17--- debian/python-swift.postinst 2011-12-16 14:45:33 +0000
18+++ debian/python-swift.postinst 2013-10-03 11:13:28 +0000
19@@ -8,3 +8,10 @@
20
21 usermod -G adm swift
22
23+if [ -d /var/cache/swift ] ; then
24+ # Allow swift user to write to cache directory
25+ chown root:swift /var/cache/swift
26+ chmod 0775 /var/cache/swift
27+fi
28+
29+exit 0

Subscribers

People subscribed via source and target branches