Bug 1160181
Summary: | private method `select' called for nil:NilClass (NoMethodError) when trying to sync a repo | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Pavel Moravec <pmoravec> |
Component: | Content Management | Assignee: | Brad Buckingham <bbuckingham> |
Status: | CLOSED ERRATA | QA Contact: | Kedar Bidarkar <kbidarka> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.0.4 | CC: | bbuckingham, cwelton, greartes, kbidarka |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-07-27 09:11:44 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Pavel Moravec
2014-11-04 09:14:39 UTC
It seems like some intermittent error, maybe caused by some network issue. As now it works well. Trivial patch in adding "if action.external_task" around body of sync_task method workarounds it. I have tested this on a Satellite 6.1.1 GA install and have been unable to reproduce the behavior described. From the code, I do see changes to the abstract_sync_presenter to check for the existence of 'external_task' RPMs: ruby193-rubygem-katello-2.2.0.66-1.el7sat.noarch foreman-1.7.2.34-1.el7sat.noarch 2016-04-04 17:46:46 [app] [I] Processing by Katello::Api::V2::RepositoriesController#sync_complete as */* 2016-04-04 17:46:46 [app] [I] Parameters: {"call_report"=>"[FILTERED]", "event_type"=>"repo.sync.finish", "payload"=>{"importer_id"=>"yum_importer", "exception"=>nil, "repo_id"=>"Default_Organization-Red_Hat_Enterprise_MRG_Messaging-Red_Hat_Enterprise_MRG_Messaging_2_for_RHEL_6_Server_RPMs_x86_64_6_4", "traceback"=>nil, "started"=>"2016-04-04T21:46:37Z", "_ns"=>"repo_sync_results", "completed"=>"2016-04-04T21:46:46Z", "importer_type_id"=>"yum_importer", "error_message"=>nil, "summary"=>{"content"=>{"state"=>"FINISHED"}, "comps"=>{"state"=>"FINISHED"}, "purge_duplicates"=>{"state"=>"FINISHED"}, "distribution"=>{"state"=>"FINISHED"}, "errata"=>{"state"=>"FINISHED"}, "metadata"=>{"state"=>"FINISHED"}}, "added_count"=>0, "result"=>"success", "updated_count"=>0, "details"=>{"content"=>{"size_total"=>0, "items_left"=>0, "items_total"=>0, "state"=>"FINISHED", "size_left"=>0, "details"=>{"rpm_total"=>0, "rpm_done"=>0, "drpm_total"=>0, "drpm_done"=>0}, "error_details"=>nil}, "comps"=>{"state"=>"FINISHED"}, "purge_duplicates"=>{"state"=>"FINISHED"}, "distribution"=>{"items_total"=>0, "state"=>"FINISHED", "error_details"=>nil, "items_left"=>0}, "errata"=>{"state"=>"FINISHED"}, "metadata"=>{"state"=>"FINISHED"}}, "id"=>"5702e0c6c758a1122af8ac7d", "removed_count"=>0}, "token"=>"zDmuAddkcdRfV3Bstebbf8W8XMisfAG5", "api_version"=>"v2", "repository"=>{}} 2016-04-04 17:46:46 [app] [I] Sync_complete called for Red Hat Enterprise MRG Messaging 2 for RHEL 6 Server RPMs x86_64 6.4, running after_sync. 2016-04-04 17:46:46 [app] [I] Completed 200 OK in 99ms (Views: 1.2ms | ActiveRecord: 4.8ms) VERIFIED With sat63-2-snap6-compose2 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 |