Bug 768012

Summary: manifest import fails - 404 Resource Not Found
Product: Red Hat Satellite Reporter: Garik Khachikyan <gkhachik>
Component: APIAssignee: Ivan Necas <inecas>
Status: CLOSED CURRENTRELEASE QA Contact: Garik Khachikyan <gkhachik>
Severity: high Docs Contact:
Priority: urgent    
Version: 6.0.1CC: mkoci, tsanders
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: 2012-08-22 18:14:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 747354    

Description Garik Khachikyan 2011-12-15 14:20:00 UTC
Description of problem:
on very last commits seems manifest import got broken.

Version-Release number of selected component (if applicable):
katello-0.1.144-1.git.3.fac6c90.el6.noarch
katello-cli-0.1.27-1.el6.noarch

How reproducible:
always on latest code

Steps to Reproduce:
1.on clean katello do import manifest from cli
2.
3.
  
Actual results:
exception dump: http://pastebin.test.redhat.com/71231

Expected results:
no errors, manifest gets imported.

Additional info:
http://pastebin.test.redhat.com/71231

Comment 1 Garik Khachikyan 2011-12-15 14:28:07 UTC
removing "Regression" - as on the "older" katello the same issue happens.

seems something on CDN side (format or anything else) got changed.

Comment 2 Todd Sanders 2011-12-15 14:31:10 UTC
Seeing same issue on EL6.1.

From production.log -> http://pastebin.test.redhat.com/71236

katello-trusted-ssl-cert-1.0-1.noarch
katello-glue-pulp-0.1.144-1.el6.noarch
katello-cli-common-0.1.27-1.el6.noarch
katello-certs-tools-1.0.1-1.el6.noarch
katello-httpd-ssl-key-pair-1.0-1.noarch
katello-all-0.1.144-1.el6.noarch
katello-glue-foreman-0.1.144-1.el6.noarch
katello-glue-candlepin-0.1.144-1.el6.noarch
katello-cli-0.1.27-1.el6.noarch
katello-configure-0.1.37-1.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-common-0.1.144-1.el6.noarch
katello-0.1.144-1.el6.noarch
katello-repos-0.1.4-1.el6.noarch

Comment 3 Garik Khachikyan 2011-12-15 15:05:28 UTC
There was a missing listing file on CDN side:
---
<inecas> gkhachik: the import fails on CDN:
/content/beta/rhel/server/5/5Server/listing file missing
<gkhachik> broken cdn ?
---

tsanders> gkhachik, dgregor just put the missing listing file back in place.
can you retest?

And now it fixed.
I'll keep the bug open - I think we need to provide better error
handling/rollback scenario in such case(s).

lowering priority for now

Comment 4 Ivan Necas 2012-01-05 14:58:46 UTC
I slightly changed the algorithm for computing substitutions in content url:
all substitutions get calculated before starting creating repositories in Pulp. This way, we notice the problem before messing up the Pulp repositories, which enables reimporting the manifest once the CDN problem is gone.

It also gives much more descriptive error, something like:

 CDN loading error: https://cdn.redhat.com/content/dist/rhel/server/6/6.1/listing not found

Added in commit 87aaa9248d69945b10cc1135053b932ff2e87cc2

Comment 5 Garik Khachikyan 2012-01-13 14:40:57 UTC
# VERIFIED

The symptoms above are not reproducible any more. moving to verified.

Import of manifest works fine now.

feel free to reopen with details if it would start to fail :)

checked on:

katello-0.1.174-2.el6.noarch
katello-cli-0.1.35-1.el6.noarch
pulp-0.0.256-1.el6.noarch
candlepin-0.5.8-1.el6.noarch

Comment 8 Mike McCune 2013-08-16 17:54:48 UTC
getting rid of 6.0.0 version since that doesn't exist