Bug 1342328
| Summary: | Organization API, hosts endpoint is broken | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Bruno Rocha <rochacbruno> |
| Component: | API | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED ERRATA | QA Contact: | Patrik Segedy <psegedy> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.2.0 | CC: | bkearney, dyordano, kgaikwad, oprazak, psegedy |
| Target Milestone: | Unspecified | Keywords: | 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 17:31:59 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: | |||
|
Description
Bruno Rocha
2016-06-03 01:31:59 UTC
Moving 6.2 bugs out to sat-backlog. Moving 6.2 bugs out to sat-backlog. Hi, this seems to be already fixed in 6.2.8, I could not reproduce. curl -H "Accept: application/json" -H "Content-Type: application/json" -k -X GET -u admin:changeme https://sat-server/api/v2/organizations/1/hosts | json_reformat % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 151 0 151 0 0 33 0 --:--:-- 0:00:04 --:--:-- 44 { "total": 0, "subtotal": 0, "page": 1, "per_page": 20, "search": null, "sort": { "by": null, "order": null }, "results": [ ] } /var/log/foreman/production.log output: 2017-02-17 09:46:31 [app] [I] Started GET "/api/v2/organizations/1/hosts" for 10.16.70.13 at 2017-02-17 09:46:31 -0500 2017-02-17 09:46:31 [app] [I] Processing by Api::V2::HostsController#index as JSON 2017-02-17 09:46:31 [app] [I] Parameters: {"apiv"=>"v2", "organization_id"=>"1", :host=>{}} 2017-02-17 09:46:31 [app] [I] Authorized user admin(Admin User) 2017-02-17 09:46:31 [app] [I] Rendered api/v2/hosts/index.json.rabl within api/v2/layouts/index_layout (1.2ms) 2017-02-17 09:46:31 [app] [I] Completed 200 OK in 154ms (Views: 9.8ms | ActiveRecord: 25.1ms) /api/v2/organizations/:organization_id/hosts endpoint worked as expected for me, /katello/api/v2/organizations/:organization_id/hosts is supposed to return 404, because the route does not exist. Could QE verify? Verified in [root@cloud-qe-09 ~]# rpm -q satellite satellite-6.2.10-1.0.el7sat.noarch Results: Properly working: curl -H "Accept: application/json" -H "Content-Type: application/json" -k -X GET -u admin:changeme https://sat62/api/v2/organizations/1/hosts | jq { "total": 3, "subtotal": 3, "page": 1, "per_page": 100, "search": null, "sort": { "by": null, "order": null }, "results": [...] } will keep ON_QA until verification on 6.3 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 |