Description of problem: Manifest import hangs indefinitely on automation box qe-sat6-rhel7, this is most likely easy to reproduce after running automation. 2016-04-08 17:17:35 [app] [E] Error during manifest import: {"displayMessage"=>"undefined method `any?' for nil:NilClass", "conflicts"=>["UNKNOWN"]} 2016-04-08 17:17:35 [foreman-tasks/action] [E] undefined method `any?' for nil:NilClass (NoMethodError) | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.15/app/models/katello/glue/candlepin/pool.rb:127:in `block in create_activation_key_associations' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.15/app/models/katello/glue/candlepin/pool.rb:126:in `collect' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.15/app/models/katello/glue/candlepin/pool.rb:126:in `create_activation_key_associations' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.15/app/models/katello/glue/candlepin/pool.rb:117:in `import_data' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.15/app/models/katello/glue/candlepin/candlepin_object.rb:44:in `block in import_all' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in `each' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib Version-Release number of selected component (if applicable): sat6-snap7 How reproducible: on automation box after running automation Steps to Reproduce: 1. 2. 3. Actual results: Manifest import continues indefinitely with the below traceback in production.log, 2016-04-08 17:17:35 [app] [E] Error during manifest import: {"displayMessage"=>"undefined method `any?' for nil:NilClass", "conflicts"=>["UNKNOWN"]} 2016-04-08 17:17:35 [foreman-tasks/action] [E] undefined method `any?' for nil:NilClass (NoMethodError) Expected results: Manifest import should be successful Additional info:
Created attachment 1146097 [details] Errors during manifest import Try "grep -R "undefined method" *" for /var/log/foreman/production*
I have checked when parallel test execution was introduced on Robottelo and it is dated since from December 2015. Not sure if this issue is related to running tests in parallel.
Created redmine issue http://projects.theforeman.org/issues/14600 from this bug
The suggested error trace doesn't seem related to manifest import in particular. Rather seems like a bad activation key that no longer exists. That being said I am going to address the error reported "displayMessage"=>"undefined method `any?' for nil:NilClass", "conflicts"=>["UNKNOWN"]}
Upstream bug component is Content Management
Moving to POST since upstream bug http://projects.theforeman.org/issues/14600 has been closed ------------- Partha Aji Applied in changeset commit:katello|21abefc70eaaf254ee1f0642517eb15fe407ab0d.
*** Bug 1332650 has been marked as a duplicate of this bug. ***
Verified in Satellite 6.2 Beta Snap 16. Manifest import no longer takes much longer than usual, even after running our automation. Occasionally an separate error does occur, but out of scope for this bug.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1501