From 1393728a5a061564a478ae6683a2382ac33de041 Mon Sep 17 00:00:00 2001 From: Steven Danna Date: Tue, 10 Jun 2014 16:32:05 -0700 Subject: [PATCH 1/2] [OC-11575] Don't start services by default in HA topology. In the HA topology, keepalived is responsible for starting and stopping services based on its master election. Without rendering a down file, runsv would attempt to start services automatically, leading to a number of race conditions on boot. The `down` file is a runsv convention that prevents the service from being started automatically. It can still be started manually by sending the start command via sv. --- definitions/component_runit_service.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/definitions/component_runit_service.rb b/definitions/component_runit_service.rb index cd7faee..ecbb4e0 100644 --- a/definitions/component_runit_service.rb +++ b/definitions/component_runit_service.rb @@ -57,6 +57,10 @@ file "#{node['runit']['sv_dir']}/#{component}/keepalive_me" do action is_keepalive_service ? :create : :delete end + + file "#{node['runit']['sv_dir']}/#{component}/down" do + action is_keepalive_service ? :create : :delete + end end end From 4d4db166129c85df0dff4d706410c52f8ec966ba Mon Sep 17 00:00:00 2001 From: Irving Popovetsky Date: Fri, 18 Jul 2014 11:24:20 -0700 Subject: [PATCH 2/2] Bump version to 0.4.3 and update changelog --- CHANGELOG.md | 3 +++ metadata.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd364f7..b6b866d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,5 @@ +# 0.4.3 - 2014-07-18 +- [OC-11575] Don't start services by default in HA topology + # 0.4.2 - 2014-05-13 - Enable a cluster's default encoding to be specified diff --git a/metadata.rb b/metadata.rb index c8a6b3d..783d208 100644 --- a/metadata.rb +++ b/metadata.rb @@ -2,6 +2,6 @@ license 'All rights reserved' description 'Installs common libraries and resources for Enterprise Chef and closed-source additions' long_description 'Installs common libraries and resources for Enterprise Chef and closed-source additions' -version '0.4.2' +version '0.4.3' depends 'runit', '> 1.0.0'