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

Serial execution with puppet device and ciscopuppet fails

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • PUP 6.0.5, PUP 6.0.7
    • None
    • Network Automation
    • Needs Assessment
    • Bug Fix
    • Hide
      puppet device would not manage multiple network devices in a single run. This was a regression introduced in 6.0.5 due to PUP-8766.
      Show
      puppet device would not manage multiple network devices in a single run. This was a regression introduced in 6.0.5 due to PUP-8766 .
    • Needs Assessment

    Description

      When executing puppet device with multiple instances of ciscopuppet  nodes beyond the first fail to execute:

      [root@h0wm6jin2afatag ~]# puppet device -v --trace
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Retrieving locales
      Info: starting applying configuration to nexus1 at file:///etc/puppetlabs/puppet/devices/nexus1.conf
      Info: Using configured environment 'production'
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Retrieving locales
      /opt/puppetlabs/puppet/lib/ruby/gems/2.5.0/gems/cisco_node_utils-2.0.0/lib/cisco_node_utils/node.rb:154: warning: constant ::Fixnum is deprecated
      Info: Caching catalog for nexus1
      Info: Applying configuration version '1553200309'
      Notice: Applied catalog in 0.12 seconds
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Retrieving locales
      Info: starting applying configuration to nexus2 at file:///etc/puppetlabs/puppet/devices/nexus2.conf
      Warning: Unable to fetch my node definition, but the agent run will continue:
      Warning: Error 403 on SERVER: Forbidden request: /puppet/v3/node/nexus2 (method :get). Please see the server logs for details.
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Retrieving locales
      /opt/puppetlabs/puppet/lib/ruby/gems/2.5.0/gems/cisco_node_utils-2.0.0/lib/cisco_node_utils/node.rb:154: warning: constant ::Fixnum is deprecated
      Error: Could not retrieve catalog from remote server: Error 403 on SERVER: Forbidden request: /puppet/v3/catalog/nexus2 (method :post). Please see the server logs for details.
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/rest.rb:241:in `is_http_200?'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/rest.rb:120:in `find'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:194:in `find'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:464:in `block in retrieve_new_catalog'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:518:in `block in thinmark'
      /opt/puppetlabs/puppet/lib/ruby/2.5.0/benchmark.rb:308:in `realtime'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:517:in `thinmark'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:463:in `retrieve_new_catalog'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:75:in `retrieve_catalog'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:167:in `prepare_and_retrieve_catalog'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:341:in `run_internal'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:239:in `block in run'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:252:in `override'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:217:in `run'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/device.rb:327:in `block (2 levels) in main'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/device.rb:256:in `each'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/device.rb:256:in `collect'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/device.rb:256:in `block in main'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:252:in `override'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/device.rb:241:in `main'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:390:in `run_command'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:382:in `block in run'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:671:in `exit_on_fail'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:382:in `run'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:135:in `run'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:73:in `execute'
      /opt/puppetlabs/puppet/bin/puppet:5:in `<main>'
      Error: Could not retrieve catalog; skipping run
      Error: Could not send report: Error 403 on SERVER: Forbidden request: /puppet/v3/report/nexus2 (method :put). Please see the server logs for details.
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/rest.rb:241:in `is_http_200?'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/rest.rb:190:in `save'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:285:in `save'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:416:in `send_report'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:388:in `run_internal'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:239:in `block in run'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:252:in `override'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:217:in `run'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/device.rb:327:in `block (2 levels) in main'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/device.rb:256:in `each'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/device.rb:256:in `collect'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/device.rb:256:in `block in main'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/context.rb:65:in `override'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:252:in `override'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/device.rb:241:in `main'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:390:in `run_command'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:382:in `block in run'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:671:in `exit_on_fail'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:382:in `run'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:135:in `run'
      /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:73:in `execute'
      /opt/puppetlabs/puppet/bin/puppet:5:in `<main>'
      
      

      Server Log 

      2019-03-21T20:31:49.135Z INFO  [qtp2129953650-177] [puppetserver] Puppet 'replace_facts' command for nexus1 submitted to PuppetDB with UUID 15cc8e0d-5e6c-4ee8-9c6f-2e1c0129763e
      2019-03-21T20:31:49.301Z WARN  [qtp2129953650-177] [puppetserver] Puppet Host is missing hostname and/or domain: nexus1
      2019-03-21T20:31:49.305Z INFO  [qtp2129953650-177] [puppetserver] Puppet Compiled catalog for nexus1 in environment production in 0.07 seconds
      2019-03-21T20:31:49.305Z INFO  [qtp2129953650-177] [puppetserver] Puppet Caching catalog for nexus1
      2019-03-21T20:31:49.342Z INFO  [qtp2129953650-177] [puppetserver] Puppet 'replace_catalog' command for nexus1 submitted to PuppetDB with UUID a0568882-d669-440d-b4ec-16379250973b
      2019-03-21T20:31:49.588Z INFO  [qtp2129953650-181] [puppetserver] Puppet 'store_report' command for nexus1 submitted to PuppetDB with UUID 06465d95-6019-4f82-8f76-1ea37d7d04b8
      2019-03-21T20:31:51.111Z ERROR [qtp2129953650-176] [p.t.a.rules] Forbidden request: nexus1(10.16.114.187) access to /puppet/v3/node/nexus2 (method :get) (authenticated: true) denied by rule 'puppetlabs node'.
      2019-03-21T20:31:55.961Z ERROR [qtp2129953650-176] [p.t.a.rules] Forbidden request: nexus1(10.16.114.187) access to /puppet/v3/catalog/nexus2 (method :post) (authenticated: true) denied by rule 'puppetlabs catalog'.
      2019-03-21T20:31:55.996Z ERROR [qtp2129953650-181] [p.t.a.rules] Forbidden request: nexus1(10.16.114.187) access to /puppet/v3/report/nexus2 (method :put) (authenticated: true) denied by rule 'puppetlabs report'
      

       

      Attachments

        Issue Links

          Activity

            People

              david.schmitt David Schmitt
              richard.sherman Rick Sherman
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support