Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1080200

Summary: promoting Content View version results in ActionController::RoutingError (No route matches [POST] "/katello/api/v2/content_view_versions/promote")
Product: Red Hat Satellite Reporter: Jan Hutař <jhutar>
Component: WebUIAssignee: Justin Sherrill <jsherril>
Status: CLOSED CURRENTRELEASE QA Contact: Kedar Bidarkar <kbidarka>
Severity: high Docs Contact:
Priority: high    
Version: NightlyCC: cwelton, jsherril, kbidarka, mmccune
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: 2014-07-02 14:08:48 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:
Embargoed:
Attachments:
Description Flags
content used for publishing
none
publish version1 to Library successful none

Description Jan Hutař 2014-03-24 21:42:44 UTC
Description of problem:
Promoting Content View version results in ActionController::RoutingError (No route matches [POST] "/katello/api/v2/content_view_versions/promote")


Version-Release number of selected component (if applicable):
Satellite-6.0.3-RHEL-6-20140321.2


How reproducible:
always


Steps to Reproduce:
1. Sync RHEL 6.5 RPMs and Kickstart
2. Create Content View with these repos selected
3. Publish first version of that content view
4. Publish the CV to Library first


Actual results:
Got empty red box when promoting. And error in the logs.


Expected results:
Content should be promoted nicely


Additional info:
==> /var/log/foreman/production.log <==
ActionController::RoutingError (No route matches [POST] "/katello/api/v2/content_view_versions/promote"):
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.5/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'

Comment 1 RHEL Program Management 2014-03-24 21:54:31 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Justin Sherrill 2014-03-25 21:59:25 UTC
I'm 95% sure you are hitting:

http://projects.theforeman.org/issues/4847

along with http://projects.theforeman.org/issues/4782

The issue is that a rest call is made which takes over a minute to return, in the meantime the page should not be interacted with but the ui doesn't stop you from doing so.  So some inaccurate data is presented (the view is already in library by default), and the promote  button causes a failure.  The Good news is that  http://projects.theforeman.org/issues/4782 is already fixed upstream so the issue should not be very apparent now that the rest call returns within a second or two.

Comment 5 Kedar Bidarkar 2014-05-07 12:36:53 UTC
Verified as below:

1. Synced RHEL 6.5 RPMs and Kickstart
2. Created Content View with these repos selected
3. Published first version of that content view version1 to Library successfully
as seen from the screenshot attached.

Comment 6 Kedar Bidarkar 2014-05-07 12:37:46 UTC
Created attachment 893255 [details]
content used for publishing

Comment 7 Kedar Bidarkar 2014-05-07 12:38:27 UTC
Created attachment 893256 [details]
publish version1 to Library successful

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

Comment 9 Bryan Kearney 2014-07-02 14:10:15 UTC
This was delivered in 6.0.3, the Beta version of Satellite 6.0