Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-6017

acceptance/direct_puppet/static_catalog_env_control fails on hostname

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 4.4.0
    • None
    • None
    • Solaris 10 sparc
      Solaris 11 sparc

    • 1
    • Client 2016-03-09
    • Not Needed

    Description

      The acceptance/direct_puppet/static_catalog_env_control.rb beaker test uses the agent hostname to assert catalog content. If the nodename does not match the hostname then this test fails.

      Example of failure

      * verify production environment
       
      sol10.delivery.puppetlabs.net (solaris-10-sparc) 13:34:01$ cat /opt/puppetlabs/puppet/cache/client_data/catalog/sol10.delivery.puppetlabs.net.json
        cat: cannot open /opt/puppetlabs/puppet/cache/client_data/catalog/sol10.delivery.puppetlabs.net.json
       
      sol10.delivery.puppetlabs.net (solaris-10-sparc) executed in 0.05 seconds
      Exited: 2
       
      h2g886gn5iowfhx.delivery.puppetlabs.net (master) 13:34:01$ puppet master --configprint config
        /etc/puppetlabs/puppet/puppet.conf
       
      h2g886gn5iowfhx.delivery.puppetlabs.net (master) executed in 0.66 seconds
       
      h2g886gn5iowfhx.delivery.puppetlabs.net (master) 13:34:02$ if [ -f '/tmp/static_catalog_env_control.rb.tiJrxA/code/puppet.conf.bak' ]; then cat '/tmp/static_catalog_env_control.rb.tiJrxA/code/puppet.conf.bak' > '/etc/puppetlabs/puppet/puppet.conf'; rm -f '/tmp/static_catalog_env_control.rb.tiJrxA/code/puppet.conf.bak'; fi
       
      h2g886gn5iowfhx.delivery.puppetlabs.net (master) executed in 0.02 seconds
       
      h2g886gn5iowfhx.delivery.puppetlabs.net (master) 13:34:02$ puppet resource service puppetserver ensure=stopped
        Notice: /Service[puppetserver]/ensure: ensure changed 'running' to 'stopped'
        service { 'puppetserver':
          ensure => 'stopped',
        }
       
      h2g886gn5iowfhx.delivery.puppetlabs.net (master) executed in 1.04 seconds
      RuntimeError: PuppetAcceptance::DSL::Helpers.with_puppet_running_on failed (check backtrace for location) because: Host 'sol10.delivery.puppetlabs.net' exited with 2 running:
       cat /opt/puppetlabs/puppet/cache/client_data/catalog/sol10.delivery.puppetlabs.net.json
      Last 10 lines of output were:
      	cat: cannot open /opt/puppetlabs/puppet/cache/client_data/catalog/sol10.delivery.puppetlabs.net.json
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            john.duarte John Duarte
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support