Skip to content

Commit d296e01

Browse files
committed
Temporarily revert change that break HA deployment
crowbar/barclamp-provisioner#351 breaks the detection of availability of HAE repos when using the DEPS ISO.
1 parent 2ef0c42 commit d296e01

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

vagrant/Vagrantfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ def provision_admin(admin)
233233
# can result in very sluggish VMs, especially when low on memory
234234
'increase-SBD-timeout-30s.patch',
235235

236+
# revert a change to detection mechanism of HAE availability, that
237+
# breaks when using the DEPS ISO
238+
'barclamp-provisioner-hae-check.patch',
239+
236240
# handy utility for setting up node aliases in Crowbar
237241
'setup-node-aliases.sh',
238242

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From 53fad1f305466427bf8d5f71faa2bc845314d28e Mon Sep 17 00:00:00 2001
2+
From: Dirk Mueller <[email protected]>
3+
Date: Wed, 8 Oct 2014 16:46:55 +0200
4+
Subject: [PATCH] Tighten check for HAE repos
5+
6+
Just an empty directory is not enough, there should be
7+
repomd metadata in there. so check for the availability
8+
of the metadata.
9+
---
10+
chef/cookbooks/provisioner/libraries/repositories.rb | 2 +-
11+
1 file changed, 1 insertion(+), 1 deletion(-)
12+
13+
diff --git a/chef/cookbooks/provisioner/libraries/repositories.rb b/chef/cookbooks/provisioner/libraries/repositories.rb
14+
index 3b1e9ac..64734f5 100644
15+
--- a/chef/cookbooks/provisioner/libraries/repositories.rb
16+
+++ b/chef/cookbooks/provisioner/libraries/repositories.rb
17+
@@ -48,7 +48,7 @@ def inspect_repos(node)
18+
suse_optional_repos.each do |name|
19+
repos[name] ||= Mash.new
20+
next unless repos[name][:url].nil?
21+
- missing ||= !(File.exists? "#{node[:provisioner][:root]}/repos/#{name}")
22+
+ missing ||= !(File.exists? "#{node[:provisioner][:root]}/repos/#{name}/repodata/repomd.xml")
23+
end
24+
25+
# set an attribute about missing repos so that cookbooks and crowbar

vagrant/provisioning/admin/prep-admin.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ cd /tmp
77
patch -d /opt/dell -p1 < barclamp-network-ignore-eth0.patch
88
patch -d /opt/dell -p1 < barclamp-provisioner-nfs-export.patch
99
patch -d /opt/dell -p1 < barclamp-pacemaker-ignore-target-role-changes.patch
10+
patch -d /opt/dell -p1 -R < barclamp-provisioner-hae-check.patch
1011

1112
# Scrap pointless 45 second tcpdump per interface
1213
sed -i 's/45/1/' /opt/dell/chef/cookbooks/ohai/files/default/plugins/crowbar.rb

0 commit comments

Comments
 (0)