Bug 1326089 - manifest import continues forever after running automation
Summary: manifest import continues forever after running automation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Partha Aji
QA Contact: jcallaha
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-11 19:16 UTC by Kedar Bidarkar
Modified: 2019-09-25 21:18 UTC (History)
4 users (show)

Fixed In Version: rubygem-katello-3.0.0.26-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:16:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Errors during manifest import (621.63 KB, application/x-xz)
2016-04-11 19:47 UTC, Kedar Bidarkar
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 14600 0 Normal Closed manifest import continues forever after running automation 2020-11-04 02:52:07 UTC

Description Kedar Bidarkar 2016-04-11 19:16:13 UTC
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:

Comment 2 Kedar Bidarkar 2016-04-11 19:47:53 UTC
Created attachment 1146097 [details]
Errors during manifest import

Try "grep -R "undefined method" *" for /var/log/foreman/production*

Comment 3 Elyézer Rezende 2016-04-12 13:26:43 UTC
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.

Comment 4 Partha Aji 2016-04-12 21:50:24 UTC
Created redmine issue http://projects.theforeman.org/issues/14600 from this bug

Comment 5 Partha Aji 2016-04-12 21:54:10 UTC
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"]}

Comment 6 Bryan Kearney 2016-04-12 22:03:52 UTC
Upstream bug component is Content Management

Comment 7 Bryan Kearney 2016-04-13 00:03:46 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/14600 has been closed
-------------
Partha Aji
Applied in changeset commit:katello|21abefc70eaaf254ee1f0642517eb15fe407ab0d.

Comment 8 Chris Duryee 2016-05-10 19:51:22 UTC
*** Bug 1332650 has been marked as a duplicate of this bug. ***

Comment 9 jcallaha 2016-06-20 20:12:14 UTC
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.

Comment 10 Bryan Kearney 2016-07-27 11:16:41 UTC
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


Note You need to log in before you can comment on or make changes to this bug.