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
=== modified file 'hooks/swift_hooks.py'
--- hooks/swift_hooks.py 2013-04-05 20:49:46 +0000
+++ hooks/swift_hooks.py 2013-04-10 19:58:20 +0000
@@ -45,6 +45,7 @@
45 ctxt = {'proxy_ip': utils.get_host_ip()}45 ctxt = {'proxy_ip': utils.get_host_ip()}
46 with open(swift.MEMCACHED_CONF, 'w') as conf:46 with open(swift.MEMCACHED_CONF, 'w') as conf:
47 conf.write(swift.render_config(swift.MEMCACHED_CONF, ctxt))47 conf.write(swift.render_config(swift.MEMCACHED_CONF, ctxt))
48 check_call(['service', 'memcached', 'restart'])
4849
49 # initialize new storage rings.50 # initialize new storage rings.
50 for ring in swift.SWIFT_RINGS.iteritems():51 for ring in swift.SWIFT_RINGS.iteritems():
5152
=== modified file 'revision'
--- revision 2013-04-05 23:23:12 +0000
+++ revision 2013-04-10 19:58:20 +0000
@@ -1,1 +1,1 @@
11241125

Subscribers

People subscribed via source and target branches