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

yum package test failing on master branch

    XMLWordPrintable

Details

    • CI Blocker
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 4.6.0
    • None
    • None
    • platform puppet-agent suite
    • 2
    • Client 2016-08-10
    • Not Needed
    • Bugfix for unreleased feature

    Description

      The acceptance/tests/resource/package/yum.rb test is failing in CI with the following error:

      Error: /Stage[main]/Main/Package[guid]: Could not evaluate: undefined method `index' for :absent:Symbol
      

      Manually re-running puppet apply with the same manifest results in a passing run. The manifest is shown below:

      package {"guid": ensure => absent}
      

      Jenkins reference:
      https://jenkins.puppetlabs.com/view/puppet-agent/view/master/view/puppet-agent/job/platform_puppet-agent_intn-van-sys_suite-daily-puppet-master/177/SLAVE_LABEL=beaker,TEST_TARGET=fedora23-64a/testReport/junit/%28root%29/tests_resource_package/yum_rb/

      stacktrace

          psndbk2ro82hsg9.delivery.puppetlabs.net (psndbk2ro82hsg9.delivery.puppetlabs.net) 09:44:44$ puppet apply --verbose --trace /tmp/apply_manifest.pp.UiX72R
            Notice: Compiled catalog for psndbk2ro82hsg9.delivery.puppetlabs.net in environment production in 0.48 seconds
            Info: Applying configuration version '1470329087'
            Error: /Stage[main]/Main/Package[guid]: Could not evaluate: undefined method `index' for :absent:Symbol
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/package/rpm.rb:306:in `rpm_parse_evr'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/provider/package/rpm.rb:299:in `insync?'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/package.rb:194:in `block in insync?'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/package.rb:147:in `each'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/package.rb:147:in `insync?'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property.rb:385:in `insync_values?'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/event.rb:112:in `calculate_corrective_change'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:161:in `sync_if_needed'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:80:in `perform_changes'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:21:in `evaluate'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:224:in `apply'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:240:in `eval_resource'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `call'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block (2 levels) in evaluate'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:386:in `block in thinmark'
            /opt/puppetlabs/puppet/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:385:in `thinmark'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:163:in `block in evaluate'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction.rb:154:in `evaluate'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:222:in `block in apply'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/log.rb:155:in `with_destination'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/transaction/report.rb:137:in `as_logging_destination'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:221:in `apply'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:171:in `block in apply_catalog'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:223:in `block in benchmark'
            /opt/puppetlabs/puppet/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:222:in `benchmark'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:170:in `apply_catalog'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:343:in `run_internal'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:221: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:240:in `override'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/configurer.rb:195:in `run'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:350:in `apply_catalog'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:274: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:240:in `override'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:225:in `main'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/apply.rb:170:in `run_command'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344:in `block in run'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util.rb:540:in `exit_on_fail'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:344:in `run'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'
            /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/command_line.rb:72:in `execute'
            /opt/puppetlabs/puppet/bin/puppet:5:in `<main>'
            Notice: Applied catalog in 0.14 seconds
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support