beaker-pe 2.1.6 → 2.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a2d9c6c78aa9f221e4b2bb52d491706c289ba2d
4
- data.tar.gz: 047895154080e79a127ddcfc6ce1472933c63e45
3
+ metadata.gz: b724e458fae680e87975fd6f1bf24d872bdf0888
4
+ data.tar.gz: 6e16e7c23979b270f97c4562872eb6d23fce24e3
5
5
  SHA512:
6
- metadata.gz: 887d9e30921f79f80dc9f841584164077f6d3b56622d6fb85d4618409446f81892bcfd8acdf50711bbb519e8e76a17f3f1d9f032e5cf17d5dbe54a61703a364c
7
- data.tar.gz: 04321b38d606f86326a9054bd539b03ba088f9708a536c0a5379c89700c8896019783c2377b885e13f418f07ba70ce8841c2c163166f2b5fa30f8e096ab5cc6f
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
@@ -3,7 +3,7 @@ module Beaker
3
3
  module PE
4
4
 
5
5
  module Version
6
- STRING = '2.1.6'
6
+ STRING = '2.1.7'
7
7
  end
8
8
 
9
9
  end
@@ -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'}, 4 ) }
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 3
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.6
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-04 00:00:00.000000000 Z
11
+ date: 2019-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec