Bug 1108399

Summary: Listing products is broken when content view publish in progress
Product: Red Hat Satellite Reporter: Eric Helms <ehelms>
Component: Content ManagementAssignee: Eric Helms <ehelms>
Status: CLOSED CURRENTRELEASE QA Contact: Sachin Ghai <sghai>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: jmontleo, omaciel, sghai
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/4964
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-02 14:05:48 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:

Description Eric Helms 2014-06-11 23:44:42 UTC
1. promote content view
2. list the products in the mean time
3. the products listing fails on 404 from Pulp, because the repo was not yet created in Pulp

<pre>
RestClient::ResourceNotFound: 404 Resource Not Found
Body: {"http_request_method": "GET", "exception": null, "error_message": "Missing resource(s): resource_id=ACME_Corporation-Library-rhel-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6Server", "_href": "/pulp/api/v2/repositories/ACME_Corporation-Library-rhel-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6Server/history/sync/", "http_status": 404, "traceback": null, "resources": {"resource_id": "ACME_Corporation-Library-rhel-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6Server"}}
/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb:48:in `return!'
</pre>

With respect to #4963, it would be nice to eliminate the number of calls needed for listing the products (and ideally not calling to pulp unless unnecessary), which should fix also this issue

Comment 1 Eric Helms 2014-06-11 23:44:44 UTC
Created from redmine issue http://projects.theforeman.org/issues/4964

Comment 2 Eric Helms 2014-06-11 23:44:49 UTC
Upstream bug assigned to ehelms

Comment 3 Eric Helms 2014-06-11 23:46:47 UTC
https://github.com/Katello/katello/pull/4255

Comment 5 Bryan Kearney 2014-06-12 13:25:58 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/4964 has been closed

Comment 8 Sachin Ghai 2014-06-17 07:31:35 UTC
Verified with sat6 beta snap9 compose2

I created a new product/repo and published/promoted to next 2 envs and while publish and promote was on-going navigate to products listing page. I didn't see any error in production.log and /var/log/messages(since all pulp logs re-directed here),

Comment 9 Bryan Kearney 2014-07-02 14:05:48 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.