Merge lp:~ahasenack/charms/precise/swift-proxy/restart-memcached into lp:~openstack-charmers/charms/precise/swift-proxy/ha-support

Proposed by Andreas Hasenack
Status: Merged
Merged at revision: 47
Proposed branch: lp:~ahasenack/charms/precise/swift-proxy/restart-memcached
Merge into: lp:~openstack-charmers/charms/precise/swift-proxy/ha-support
Diff against target: 18 lines (+2/-1)
2 files modified
hooks/swift_hooks.py (+1/-0)
revision (+1/-1)
To merge this branch: bzr merge lp:~ahasenack/charms/precise/swift-proxy/restart-memcached
Reviewer Review Type Date Requested Status
OpenStack Charmers Pending
Review via email: mp+158212@code.launchpad.net

Description of the change

We need to restart memcached at install time after changing its configuration, or else it will keep on listening on the 127.0.0.1 address while swift-proxy tries to reach it on the instance's ip where it gets a connection refused.

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 'hooks/swift_hooks.py'
2--- hooks/swift_hooks.py 2013-04-05 20:49:46 +0000
3+++ hooks/swift_hooks.py 2013-04-10 19:58:20 +0000
4@@ -45,6 +45,7 @@
5 ctxt = {'proxy_ip': utils.get_host_ip()}
6 with open(swift.MEMCACHED_CONF, 'w') as conf:
7 conf.write(swift.render_config(swift.MEMCACHED_CONF, ctxt))
8+ check_call(['service', 'memcached', 'restart'])
9
10 # initialize new storage rings.
11 for ring in swift.SWIFT_RINGS.iteritems():
12
13=== modified file 'revision'
14--- revision 2013-04-05 23:23:12 +0000
15+++ revision 2013-04-10 19:58:20 +0000
16@@ -1,1 +1,1 @@
17-124
18+125

Subscribers

People subscribed via source and target branches