beaker-pe 2.1.6 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/beaker-pe/install/pe_utils.rb +3 -3
- data/lib/beaker-pe/version.rb +1 -1
- data/spec/beaker-pe/install/pe_utils_spec.rb +10 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b724e458fae680e87975fd6f1bf24d872bdf0888
|
|
4
|
+
data.tar.gz: 6e16e7c23979b270f97c4562872eb6d23fce24e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 86d1babe1df0dd57d6086a71961be8f1b7427267087e3f9c66a086ad939202f35a8a9af7385e8fb74879fbabfce2f24006d500d91ef2598e84e8e6d858bd7528
|
|
7
|
+
data.tar.gz: 1cd6e4986bc8fe70b102fd1f101e5de36461283c1cb50244f74f53e155afc0fb3063ad34e998ac181c17a7619e89cfc759740578b9462852dd4b2a365849c01a
|
|
@@ -472,7 +472,7 @@ module Beaker
|
|
|
472
472
|
# If we are connecting through loadbalancer, download the agent tarballs to compile masters
|
|
473
473
|
if lb_connect_loadbalancer_exists?
|
|
474
474
|
hosts.each do |h|
|
|
475
|
-
if h['roles'].include?('compile_master')
|
|
475
|
+
if h['roles'].include?('compile_master') || h['roles'].include?('pe_compiler')
|
|
476
476
|
retry_on(h, puppet("agent -t"), retry_opts)
|
|
477
477
|
end
|
|
478
478
|
end
|
|
@@ -529,7 +529,7 @@ module Beaker
|
|
|
529
529
|
# @api private
|
|
530
530
|
def verify_vm_resources(hosts)
|
|
531
531
|
logger.notify("Checking the status of system (CPU/Mem) resources on PE Infrastructure nodes.")
|
|
532
|
-
pe_infrastructure = select_hosts({:roles => ['master', 'compile_master', 'dashboard', 'database']}, hosts)
|
|
532
|
+
pe_infrastructure = select_hosts({:roles => ['master', 'compile_master', 'pe_compiler', 'dashboard', 'database']}, hosts)
|
|
533
533
|
pe_infrastructure.each do |host|
|
|
534
534
|
on host, "top -bn1", :accept_all_exit_codes => true
|
|
535
535
|
end
|
|
@@ -1001,7 +1001,7 @@ module Beaker
|
|
|
1001
1001
|
# Runs puppet on all nodes, unless they have the roles: master,database,console/dashboard
|
|
1002
1002
|
# @param [Array<Host>] hosts The sorted hosts to install or upgrade PE on
|
|
1003
1003
|
def run_puppet_on_non_infrastructure_nodes(all_hosts)
|
|
1004
|
-
pe_infrastructure = select_hosts({:roles => ['master', 'compile_master', 'dashboard', 'database']}, all_hosts)
|
|
1004
|
+
pe_infrastructure = select_hosts({:roles => ['master', 'compile_master', 'pe_compiler', 'dashboard', 'database']}, all_hosts)
|
|
1005
1005
|
non_infrastructure = all_hosts.reject{|host| pe_infrastructure.include? host}
|
|
1006
1006
|
on non_infrastructure, puppet_agent('-t'), :acceptable_exit_codes => [0,2], :run_in_parallel => true
|
|
1007
1007
|
end
|
data/lib/beaker-pe/version.rb
CHANGED
|
@@ -59,12 +59,13 @@ describe ClassMixedWithDSLInstallUtils do
|
|
|
59
59
|
let(:lei_hosts) { make_hosts( { :pe_ver => '3.0',
|
|
60
60
|
:platform => 'linux',
|
|
61
61
|
:roles => [ 'agent' ],
|
|
62
|
-
:type => 'pe'},
|
|
62
|
+
:type => 'pe'}, 5 ) }
|
|
63
63
|
let(:lb_test_hosts) { lei_hosts[0][:roles] = ['master', 'database', 'dashboard']
|
|
64
64
|
lei_hosts[1][:roles] = ['loadbalancer', 'lb_connect']
|
|
65
65
|
lei_hosts[2][:roles] = ['compile_master']
|
|
66
66
|
lei_hosts[3][:roles] = ['frictionless', 'lb_connect']
|
|
67
67
|
lei_hosts[3][:working_dir] = '/tmp'
|
|
68
|
+
lei_hosts[4][:roles] = ['pe_compiler']
|
|
68
69
|
lei_hosts }
|
|
69
70
|
|
|
70
71
|
let(:logger) do
|
|
@@ -1603,6 +1604,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
|
1603
1604
|
let(:master) { make_host('master', :pe_ver => '2017.2', :platform => 'ubuntu-16.04-x86_64', :roles => ['master', 'database', 'dashboard']) }
|
|
1604
1605
|
let(:agent) { make_host('agent', :pe_ver => '2017.2', :platform => 'el-7-x86_64', :roles => ['frictionless']) }
|
|
1605
1606
|
let(:compile_master) { make_host('agent', :pe_ver => '2017.2', :roles => ['frictionless', 'compile_master']) }
|
|
1607
|
+
let(:pe_compiler) { make_host('agent', :pe_ver => '2019.2', :roles => ['frictionless', 'pe_compiler']) }
|
|
1606
1608
|
let(:dispatcher) { double('dispatcher') }
|
|
1607
1609
|
let(:node_group) { { 'classes' => {} } }
|
|
1608
1610
|
|
|
@@ -1615,6 +1617,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
|
1615
1617
|
allow(dispatcher).to receive(:get_node_group_by_name).and_return(node_group)
|
|
1616
1618
|
allow(dispatcher).to receive(:create_new_node_group_model) {|model| node_group.update(model)}
|
|
1617
1619
|
allow(subject).to receive(:compile_masters).and_return([compile_master])
|
|
1620
|
+
allow(subject).to receive(:pe_compilers).and_return([pe_compiler])
|
|
1618
1621
|
end
|
|
1619
1622
|
|
|
1620
1623
|
it 'adds the right pe_repo class to the PE Master group' do
|
|
@@ -2283,6 +2286,9 @@ describe ClassMixedWithDSLInstallUtils do
|
|
|
2283
2286
|
let(:compiler) { make_host( 'compiler', { :platform => 'linux',
|
|
2284
2287
|
:pe_ver => '4.0',
|
|
2285
2288
|
:roles => ['agent', 'compile_master']})}
|
|
2289
|
+
let(:pe_compiler) { make_host( 'pe_compiler', { :platform => 'linux',
|
|
2290
|
+
:pe_ver => '4.0',
|
|
2291
|
+
:roles => ['agent', 'pe_compiler']})}
|
|
2286
2292
|
|
|
2287
2293
|
it 'sorts hosts with common PE roles' do
|
|
2288
2294
|
these_hosts = [master, db, console, agent1, frictionless]
|
|
@@ -2298,12 +2304,13 @@ describe ClassMixedWithDSLInstallUtils do
|
|
|
2298
2304
|
|
|
2299
2305
|
# Possibly needed for NetDev and Scale testing
|
|
2300
2306
|
it 'defaults to classifying custom roles as "agent only"' do
|
|
2301
|
-
these_hosts = [monolith, compiler, agent1, agent2]
|
|
2307
|
+
these_hosts = [monolith, compiler, pe_compiler, agent1, agent2]
|
|
2302
2308
|
agent_only, non_agent = subject.create_agent_specified_arrays(these_hosts)
|
|
2303
|
-
expect(agent_only.length).to be
|
|
2309
|
+
expect(agent_only.length).to be 4
|
|
2304
2310
|
expect(agent_only).to include(agent1)
|
|
2305
2311
|
expect(agent_only).to include(agent2)
|
|
2306
2312
|
expect(agent_only).to include(compiler)
|
|
2313
|
+
expect(agent_only).to include(pe_compiler)
|
|
2307
2314
|
expect(non_agent.length).to be 1
|
|
2308
2315
|
expect(non_agent).to include(monolith)
|
|
2309
2316
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: beaker-pe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Puppetlabs
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-06-
|
|
11
|
+
date: 2019-06-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|