[SERVER-419] Investigate AIO 90_validate_sign_cert.rb failure (Error: /puppetserver.conf does not exist) Created: 2015/03/06  Updated: 2016/09/27  Resolved: 2015/03/09

Status: Closed
Project: Puppet Server
Component/s: Puppet Server
Affects Version/s: None
Fix Version/s: SERVER 2.0.0

Type: Task Priority: Normal
Reporter: Jeff McCune Assignee: Jeff McCune
Resolution: Done Votes: 0
Labels: AIO, updated_release_notes
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
Template:
Epic Link: Green: Puppet 4.0 Changes
Sub-team: emerald
Story Points: 2
Sprint: Server Emerald 2015-03-18
QA Contact: Erik Dasher

 Description   

In the aio branch of puppet-server, I'm seeing the following failure now that we're tracking beaker's master branch and QENG-1946 has been merged in.

#<RuntimeError: Error: /puppetserver.conf does not exist on bnck3n2w2tclnq8.delivery.puppetlabs.net>
/workspace/serious/src/beaker/lib/beaker/dsl/helpers.rb:778
/workspace/serious/src/beaker/lib/beaker/dsl/helpers.rb:584
/workspace/serious/src/puppet-server/acceptance/lib/helper.rb:102
/workspace/serious/src/puppet-server/acceptance/suites/pre_suite/foss/90_validate_sign_cert.rb:5
/workspace/serious/src/beaker/lib/beaker/test_case.rb:120
/workspace/serious/src/beaker/lib/beaker/test_case.rb:120
/opt/crossfader/versions/ruby/2.1.4/lib/ruby/2.1.0/benchmark.rb:294
/workspace/serious/src/beaker/lib/beaker/test_case.rb:117
/workspace/serious/src/beaker/lib/beaker/test_suite.rb:286
/workspace/serious/src/beaker/lib/beaker/test_suite.rb:283
/workspace/serious/src/beaker/lib/beaker/test_suite.rb:283
/workspace/serious/src/beaker/lib/beaker/test_suite.rb:325
/workspace/serious/src/beaker/lib/beaker/cli.rb:149
/workspace/serious/src/beaker/lib/beaker/cli.rb:89
/workspace/serious/src/beaker/bin/beaker:6
/workspace/serious/src/puppet-server/.bundle/gems/ruby/2.1.0/bin/beaker:23
/workspace/serious/src/puppet-server/.bundle/gems/ruby/2.1.0/bin/beaker:23
Warning: acceptance/suites/pre_suite/foss/90_validate_sign_cert.rb errored in 2.88 seconds

I suspect this is because our host configuration does not define puppetserver-confdir in:

puppetserver_conf = File.join("#{host['puppetserver-confdir']}", "puppetserver.conf")

at beaker lib/beaker/dsl/helpers.rb:583



 Comments   
Comment by Jeff McCune [ 2015/03/06 ]

Likely here:

+ bundle exec genconfig centos7-64mdca
+ cat hosts.cfg
---
HOSTS:
  centos7-64-1:
    roles:
    - agent
    - master
    - database
    - dashboard
    hypervisor: vcloud
    pe_dir: 
    pe_ver: 
    pe_upgrade_dir: 
    pe_upgrade_ver: 
    platform: el-7-x86_64
    template: Delivery/Quality Assurance/Templates/vCloud/centos-7-x86_64
CONFIG:
  nfs_server: none
  consoleport: 443
  datastore: instance0
  folder: Delivery/Quality Assurance/Enterprise/Dynamic
  resourcepool: delivery/Quality Assurance/Enterprise/Dynamic
  pooling_api: http://vcloud.delivery.puppetlabs.net/
+ set +x

Comment by Josh Cooper [ 2015/03/06 ]

This is because beaker removed puppetserver-confdir from AIO defaults. You should be able to add the following globally in your options.rb file (as opposed to each host file):

  :is_puppetserver => true,
  :puppetservice => 'puppetserver',
  :'puppetserver-confdir' => '/etc/puppetlabs/puppetserver/conf.d',

Comment by Jeff McCune [ 2015/03/06 ]

Thanks Josh, I'll try that out.

Comment by Jeff McCune [ 2015/03/09 ]

Adding the puppetserver-confdir key to options.rb resolved this problem in the aio branch of puppet-server. Moving to resolved.

Comment by Jeff McCune [ 2015/03/09 ]

commit 62e2ffb13810cc0b059c6f3be0fe819c3a977205
Author: Jeff McCune <jeff@puppetlabs.com>
Date:   Fri Mar 6 16:35:27 2015 -0800
 
    (SERVER-419) Add puppetserver-confdir to beaker options
 
diff --git a/acceptance/config/beaker/options.rb b/acceptance/config/beaker/options.rb
index 1570d37..08cb105 100644
--- a/acceptance/config/beaker/options.rb
+++ b/acceptance/config/beaker/options.rb
@@ -8,6 +8,7 @@
   "puppetservice" => 'puppetserver',
   "use-service" => true,
   "master-start-curl-retries" => 60,
-  "puppetpath" => "/etc/puppetlabs/agent"
+  "puppetpath" => "/etc/puppetlabs/puppet",
+  "puppetserver-confdir" => '/etc/puppetlabs/puppetserver/conf.d'
 }

Generated at Thu Nov 14 00:44:23 PST 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.