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

Puppet device raises `undefined method` error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: PUP 6.0.0
    • Fix Version/s: PUP 6.0.0
    • Component/s: None
    • Labels:
      None
    • Template:
      PUP Bug Template
    • Team:
      Froyo
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 6.0.0
      Puppet Server Version:
      OS Name/Version:

      The following behaviour was found in `master` and `6.0.x` branches

      Desired Behavior:

      Running *`puppet device --verbose --trace --strict=error --modulepath spec/fixtures --target the_node`* should raise an error similar to:

      `Error: Target device / certificate 'the_node' not found in /Users/david.armstrong/.puppetlabs/etc/puppet/device.conf`

      Actual Behavior:

      Instead, the error received is:

      "undefined method `ca_location=' for Puppet::SSL::Host:Class`"

      This can be observed in the Travis job: https://travis-ci.org/puppetlabs/puppet-resource_api/builds/429478193?utm_source=github_status&utm_medium=notification

      Error: Could not prepare for execution: undefined method `ca_location=' for Puppet::SSL::Host:Class
      /home/travis/build/puppetlabs/puppet-resource_api/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-7a952fe11207/lib/puppet/application/device.rb:382:in `setup'
      /home/travis/build/puppetlabs/puppet-resource_api/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-7a952fe11207/lib/puppet/application.rb:374:in `block in run'
      /home/travis/build/puppetlabs/puppet-resource_api/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-7a952fe11207/lib/puppet/util.rb:667:in `exit_on_fail'
      /home/travis/build/puppetlabs/puppet-resource_api/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-7a952fe11207/lib/puppet/application.rb:374:in `run'
      /home/travis/build/puppetlabs/puppet-resource_api/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-7a952fe11207/lib/puppet/util/command_line.rb:136:in `run'
      /home/travis/build/puppetlabs/puppet-resource_api/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-7a952fe11207/lib/puppet/util/command_line.rb:73:in `execute'
      /home/travis/build/puppetlabs/puppet-resource_api/vendor/bundle/ruby/2.5.0/bundler/gems/puppet-7a952fe11207/bin/puppet:5:in `<top (required)>'
      /home/travis/build/puppetlabs/puppet-resource_api/vendor/bundle/ruby/2.5.0/bin/puppet:23:in `load'
      /home/travis/build/puppetlabs/puppet-resource_api/vendor/bundle/ruby/2.5.0/bin/puppet:23:in `<main>'
      

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              maggie Maggie Dreyer
              Reporter:
              david.armstrong David Armstrong
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support