Bug 1331085

Summary: Attempting to sync in a file repo with incorrect data failed with no real reason
Product: Red Hat Satellite Reporter: Bryan Kearney <bkearney>
Component: Content ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, bmbouter, daviddavis, dkliban, ehelms, ggainey, ipanova, jcallaha, jomitsch, jsherril, mhrivnak, pcreech, rchan, ttereshc
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:49:54 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:
Attachments:
Description Flags
foreman-debug from the machine none

Description Bryan Kearney 2016-04-27 16:37:28 UTC
Created attachment 1151473 [details]
foreman-debug from the machine

I created a new product, with a new file based repository. I pointed it at 

https://www.redhat.com/security/data/oval

which has a PULP_MANIFEST. Some of the line seem to have the wrong size:

Red_Hat_Enterprise_Linux_3.xml,742e60b5c523bb3d338aab83ad0ecfe4b5975a22878fa1b5ade8bcf7c0d1af94,25
Red_Hat_Enterprise_Linux_4.xml,e8c5250c1cf2c205adc37be24701e34d80770dc33f69cb9ef38c6f165dec07ff,25
Red_Hat_Enterprise_Linux_5.xml,b4d4bd7d2e885ad2a687c5472cc19c7b4c9b106b70053f7b8dde3ccc439105e1,25
Red_Hat_Enterprise_Linux_6.xml,4b18a4387bde59901286277a464f07427339cfb8382c9360249bf0e809f0cb24,25
Red_Hat_Enterprise_Linux_7.xml,62581bdcde36e8cd0922c7f8d71ccf02722209b8913b283f006d713dbe214e39,25


The failed task is:

https://sat-r220-06.lab.eng.rdu2.redhat.com/foreman_tasks/tasks/3e5e8ac1-b06b-4759-9132-47daa5c54b23

foreman debug is attached.

Comment 1 Justin Sherrill 2016-04-27 16:41:19 UTC
Pulp task:


{"pulp_tasks"=>
  [{"exception"=>nil,
    "task_type"=>"pulp.server.managers.repo.sync.sync",
    "_href"=>"/pulp/api/v2/tasks/16ce2fc9-a214-422b-a902-b02ccd47bc52/",
    "task_id"=>"16ce2fc9-a214-422b-a902-b02ccd47bc52",
    "tags"=>
     ["pulp:repository:Default_Organization-OVAL_Data-Red_Hat_Security",
      "pulp:action:sync"],
    "finish_time"=>"2016-04-27T16:06:40Z",
    "_ns"=>"task_status",
    "start_time"=>"2016-04-27T16:03:21Z",
    "traceback"=>
     "Traceback (most recent call last):\n  File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 240, in trace_task\n    R = retval = fun(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 473, in __call__\n    return super(Task, self).__call__(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\", line 103, in __call__\n    return super(PulpTask, self).__call__(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n    return self.run(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py\", line 810, in sync\n    raise pulp_exceptions.PulpExecutionException(_('Importer indicated a failed response'))\nPulpExecutionException: Importer indicated a failed response\n",
    "spawned_tasks"=>[],
    "progress_report"=>
     {"iso_importer"=>
       {"error_message"=>nil,
        "traceback"=>nil,
        "finished_bytes"=>197828744,
        "num_isos"=>2927,
        "state"=>"isos_failed",
        "total_bytes"=>153780117,
        "state_times"=>
         {"not_started"=>"2016-04-27T16:03:21",
          "manifest_in_progress"=>"2016-04-27T16:03:21",
          "isos_failed"=>"2016-04-27T16:06:39",
          "isos_in_progress"=>"2016-04-27T16:03:30"},
        "num_isos_finished"=>2922,
        "iso_error_messages"=>
         [{"name"=>"Red_Hat_Enterprise_Linux_5.xml", "error"=>{}},
          {"name"=>"Red_Hat_Enterprise_Linux_4.xml", "error"=>{}},
          {"name"=>"Red_Hat_Enterprise_Linux_6.xml", "error"=>{}},
          {"name"=>"Red_Hat_Enterprise_Linux_3.xml", "error"=>{}},
          {"name"=>"Red_Hat_Enterprise_Linux_7.xml", "error"=>{}}]}},
    "queue"=>
     "reserved_resource_worker-2.eng.rdu2.redhat.com.dq",
    "state"=>"error",
    "worker_name"=>
     "reserved_resource_worker-2.eng.rdu2.redhat.com",
    "result"=>nil,
    "error"=>
     {"code"=>"PLP0000",
      "data"=>{},
      "description"=>"Importer indicated a failed response",
      "sub_errors"=>[]},
    "_id"=>{"$oid"=>"5720e2c9ef75c7ea69aa4f43"},
    "id"=>"5720e2c9ef75c7ea69aa4f43"}],
 "contents_changed"=>true,
 "poll_attempts"=>{"total"=>33, "failed"=>1}}


shows  

"error" => {} 

but does not indicate what the error was (size mismatch)

Comment 2 Brad Buckingham 2016-06-01 17:44:50 UTC
Hi Michael, can we clone this to redmine to get the error message improved?  Thanks!

Comment 4 pulp-infra@redhat.com 2016-11-21 18:53:31 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.

Comment 5 pulp-infra@redhat.com 2016-11-21 18:53:34 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 6 pulp-infra@redhat.com 2016-12-12 21:01:54 UTC
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.

Comment 7 pulp-infra@redhat.com 2017-01-06 19:02:37 UTC
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.

Comment 8 pulp-infra@redhat.com 2017-01-09 20:32:26 UTC
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.

Comment 9 pulp-infra@redhat.com 2017-01-09 21:02:41 UTC
All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST.

Comment 10 pulp-infra@redhat.com 2017-01-10 02:02:53 UTC
The Pulp upstream bug status is at ON_QA. Updating the external tracker on this bug.

Comment 11 pulp-infra@redhat.com 2017-01-16 21:03:10 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 12 John Mitsch 2017-08-02 19:13:16 UTC
Verified in 6.3.0 snap 9

I was able to successfully sync a "file" type repo with https://www.redhat.com/security/data/oval as the URL

Comment 13 Bryan Kearney 2018-02-21 16:44:21 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/RHSA-2018:0336

Comment 14 Satellite Program 2018-02-21 16:49:54 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/RHSA-2018:0336