Bug 1379342

Summary: Routes for hosts bulk actions does not match api docs
Product: Red Hat Satellite Reporter: Martin Bacovsky <mbacovsk>
Component: API - ContentAssignee: Brad Buckingham <bbuckingham>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: high    
Version: NightlyCC: bbuckingham, jcallaha
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:49:54 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:

Description Martin Bacovsky 2016-09-26 12:28:01 UTC
Description of problem:
The API docs (https://fqdn/apidoc/v2/hosts_bulk_actions.html) states that the routes are prefixed with 'katello' e.g.:
 
PUT /katello/api/hosts/bulk/install_content 

when the actual routes are without the 'katello' prefix:

<pre>
# foreman-rake routes|grep install_content
                                   bulk_install_content_api_hosts PUT    /api(/:api_version)/hosts/bulk/install_content(.:format)                                                                                               katello/api/v2/hosts_bulk_actions#install_content {:api_version=>/v2/}
</pre>

Version-Release number of selected component (if applicable):
# rpm -qa|grep katello
katello-3.2.0-2.rc1.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. See the routes in https://fqdn/apidoc/v2/hosts_bulk_actions.html
2. foreman-rake routes|grep install_content
3. Check if they match

Actual results:
No

Expected results:
Yes 

Additional info:
(I'd expect no katello prefix in the apidoc)

Comment 1 Brad Buckingham 2016-10-27 19:45:01 UTC
Checked this Satellite 6.3 internal snap and am no longer seeing the katello prefix on the specified routes.

Going to move to ON_QA for QE verification.

Packages tested with includes:
  satellite-6.3.0-1.0.git.7.fb12bf2.el7sat.noarch
  tfm-rubygem-katello-3.2.0-0.2.rc2.el7.noarch

Comment 3 Peter Ondrejka 2016-11-28 09:11:39 UTC
Verified in Satellite 6.3 snap 6, the routes from the API doc are now correct.

Comment 4 Satellite Program 2018-02-21 16:49:54 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336