Project

General

Profile

Actions

Bug #14214

closed

syncing a repo throws 500 ISE

Added by John Mitsch about 8 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Repositories
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1317505
Description of problem:

Syncing a repo throws 500 ISE, but the sync does finish.

2016-03-14 08:00:21 [app] [I] Processing by Katello::Api::V2::RepositoriesController#sync_complete as */*
2016-03-14 08:00:21 [app] [I] Parameters: {"_json"=>"{\"call_report\": {\"exception\": null, \"task_type\": \"pulp.server.managers.repo.sync.sync\", \"_href\": \"/pulp/api/v2/tasks/1c5269b6-6eed-4c45-928a-e8bc34f552f9/\", \"task_id\": \"1c5269b6-6eed-4c45-928a-e8bc34f552f9\", \"tags\": [\"pulp:repository:Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Satellite_Tools_6_1_for_RHEL_6_Server_RPMs_x86_64\", \"pulp:action:sync\"], \"finish_time\": null, \"_ns\": \"task_status\", \"start_time\": \"2016-03-14T11:59:55Z\", \"traceback\": null, \"spawned_tasks\": [], \"progress_report\": {\"yum_importer\": {\"content\": {\"items_total\": 84, \"state\": \"FINISHED\", \"error_details\": [], \"details\": {\"rpm_total\": 84, \"rpm_done\": 84, \"drpm_total\": 0, \"drpm_done\": 0}, \"size_total\": 12918556, \"size_left\": 0, \"items_left\": 0}, \"comps\": {\"state\": \"FINISHED\"}, \"purge_duplicates\": {\"state\": \"FINISHED\"}, \"distribution\": {\"items_total\": 0, \"state\": \"FINISHED\", \"error_details\": [], \"items_left\": 0}, \"errata\": {\"state\": \"FINISHED\"}, \"metadata\": {\"state\": \"FINISHED\"}}}, \"state\": \"running\", \"worker_name\": \"\", \"result\": null, \"error\": null, \"_id\": {\"$oid\": \"56e6a7ba322f0b20136c551e\"}, \"id\": \"56e6a7ba322f0b20136c551e\"}, \"event_type\": \"repo.sync.finish\", \"payload\": {\"importer_id\": \"yum_importer\", \"exception\": null, \"repo_id\": \"Default_Organization-Red_Hat_Enterprise_Linux_Server-Red_Hat_Satellite_Tools_6_1_for_RHEL_6_Server_RPMs_x86_64\", \"traceback\": null, \"started\": \"2016-03-14T11:59:55Z\", \"_ns\": \"repo_sync_results\", \"completed\": \"2016-03-14T12:00:21Z\", \"importer_type_id\": \"yum_importer\", \"error_message\": null, \"summary\": {\"content\": {\"state\": \"FINISHED\"}, \"comps\": {\"state\": \"FINISHED\"}, \"purge_duplicates\": {\"state\": \"FINISHED\"}, \"distribution\": {\"state\": \"FINISHED\"}, \"errata\": {\"state\": \"FINISHED\"}, \"metadata\": {\"state\": \"FINISHED\"}}, \"added_count\": 92, \"result\": \"success\", \"updated_count\": 0, \"details\": {\"content\": {\"size_total\": 12918556, \"items_left\": 0, \"items_total\": 84, \"state\": \"FINISHED\", \"size_left\": 0, \"details\": {\"rpm_total\": 84, \"rpm_done\": 84, \"drpm_total\": 0, \"drpm_done\": 0}, \"error_details\": []}, \"comps\": {\"state\": \"FINISHED\"}, \"purge_duplicates\": {\"state\": \"FINISHED\"}, \"distribution\": {\"items_total\": 0, \"state\": \"FINISHED\", \"error_details\": [], \"items_left\": 0}, \"errata\": {\"state\": \"FINISHED\"}, \"metadata\": {\"state\": \"FINISHED\"}}, \"id\": \"56e6a7d5952da6b12a30e99a\", \"removed_count\": 0}}", "token"=>"Vdh9zWpETDGdTvhDbjstM5FhAYrQ8G3o", "api_version"=>"v2", "repository"=>{}}
2016-03-14 08:00:21 [app] [E] NoMethodError: undefined method `[]' for nil:NilClass | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.6/app/controllers/katello/api/v2/repositories_controller.rb:234:in `sync_complete' | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/action_controller/metal/implicit_render.rb:4:in `send_action' | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/abstract_controller/base.rb:189:in `process_action' | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/action_controller/metal/rendering.rb:10:in `process_action' | /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/abstract_controller/callbacks.rb:20:in `block in process_action' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:113:in `call' | /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/callbacks.rb:113:in `call'

Version-Release number of selected component (if applicable):
SNAP3-compose1

How reproducible:

Steps to Reproduce:
1. impport a manifest, enable repos
2. sync a repo
3.

Actual results:
sync finishes but throws 500 ISE

Expected results:
sync should finish without any 500 ISE issues.

Additional info:

Actions #1

Updated by The Foreman Bot about 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to John Mitsch
  • Pull request https://github.com/Katello/katello/pull/5885 added
Actions #2

Updated by John Mitsch about 8 years ago

  • Status changed from Ready For Testing to New
  • Assignee deleted (John Mitsch)
  • translation missing: en.field_release set to 86
  • Pull request deleted (https://github.com/Katello/katello/pull/5885)
Actions #3

Updated by John Mitsch about 8 years ago

  • Status changed from New to Rejected

This is a pulp bug filed here: https://pulp.plan.io/issues/1776

Actions

Also available in: Atom PDF