Bug 1108399 - Listing products is broken when content view publish in progress
Summary: Listing products is broken when content view publish in progress
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Eric Helms
QA Contact: Sachin Ghai
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-11 23:44 UTC by Eric Helms
Modified: 2019-09-26 17:40 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-02 14:05:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 4964 0 Normal Closed Listing products is broken when content view publish in progress 2021-02-06 21:40:46 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.