Bug 759533

Summary: Can't promote a product with a distribution
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: APIAssignee: Mike McCune <mmccune>
Status: CLOSED CURRENTRELEASE QA Contact: Jitendra Yejare <jyejare>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: kbidarka, lzap
Target Milestone: Unspecified   
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:10:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 747354    
Attachments:
Description Flags
Promotion success none

Description Mike McCune 2011-12-02 15:47:14 UTC
You get an error when trying to promote a product (repo) with a distribution

Steps:

1) If you sync: "Red Hat Enterprise Linux 6 Server RPMs 61 x86_64" it should pull down 1 Distribution associated with that repo.  

2) Setup a DEV env

3) Create changeset, add "Red Hat Enterprise Linux" proudct

4) Review -> Promote

5) Notice error dialog: 

"Pulp::Distribution: 404 Resource Not Found not found (GET /pulp/api/distribution/ks-Red%20Hat%20Enterprise%20Linux-Server-6.1-x86_64/): not found"

Comment 1 Mike McCune 2011-12-02 22:48:13 UTC
the problem is in the path above:

/pulp/api/distribution/

should be:

/pulp/api/distributions/

fixed in: 

commit 4f256020689e7034aaba1ea3845df6f124775694
Author: Mike McCune <mmccune>
Date:   Fri Dec 2 14:46:23 2011 -0800

    759533 - proper path for distributions

Comment 2 Lukas Zapletal 2011-12-06 15:47:34 UTC
Mike, I have to revert your change:

5f04fc8 Revert "759533 - proper path for distributions"

You have been using pulp-testing build, this is planned for community release next week. It broke it.

Please note this BZ:

https://bugzilla.redhat.com/show_bug.cgi?id=753813

and all dependencies.

Setting back to ASSIGNED, once CR is ready we should commit it again.

Comment 4 Mike McCune 2011-12-07 02:18:03 UTC
reverted the revert and mailed katello-devel:

https://www.redhat.com/archives/katello-devel/2011-December/msg00033.html

Comment 5 Lukas Zapletal 2011-12-07 09:38:47 UTC
Okay, sorry about that. Marking the other one as FIXED too.

Comment 6 Kedar Bidarkar 2011-12-21 13:19:29 UTC
Created attachment 549023 [details]
Promotion success

Comment 7 Kedar Bidarkar 2011-12-21 13:20:44 UTC
WE no longer face this issue with RHEL6.1 distribution