| Summary: | Templates Smart Proxy API does not pass Hostgroup provisioning - Satellite 6.2.z | |||
|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Lukas Zapletal <lzap> | |
| Component: | Provisioning Templates | Assignee: | Lukas Zapletal <lzap> | |
| Status: | CLOSED NEXTRELEASE | QA Contact: | ||
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 6.2.2 | CC: | bbuckingham, bkearney, jcallaha, mhulan, mmccune | |
| Target Milestone: | Unspecified | Keywords: | Triaged | |
| Target Release: | Unused | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| URL: | http://projects.theforeman.org/issues/17045 | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1403238 (view as bug list) | Environment: | ||
| Last Closed: | 2017-04-27 15:07:08 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: | ||
| Bug Depends On: | ||||
| Bug Blocks: | 1403238 | |||
Upstream bug assigned to lzap Upstream bug component is Uncategorized Upstream bug assigned to lzap Upstream bug component is Uncategorized Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17045 has been resolved. Since this is 6.2 and 6.3 bug, I am cloning this one into 6.3 as well. We are closing this as resolved in the next release as it is fixed in the upcoming rebase of 6.3 |
Templates API does proxy all templates kinds, but it requires URL to be in this form: /unattended/:kind In case of hostgroup provisioning, URLs are different: /unattended/template/XXX/YYY [lzap@lzapx foreman]$ curl -3 -H "Accept:application/json" -H "Content-Type: application/json" -d '{}' -k -X GET http://localhost:8448/unattended/template Failed to retrieve template template for {"splat"=>[], "captures"=>["template"], "kind"=>"template"}: Error retrieving template for {:url=>"http://192.168.122.1:8448"} from 127.0.0.1: Net::HTTPNotFound [lzap@lzapx foreman]$ curl -3 -H "Accept:application/json" -H "Content-Type: application/json" -d '{}' -k -X GET http://localhost:8448/unattended/template/clonetest/test-machines-rhel68 Requested url was not found Workaround: Configure Satellite for direct access (non-proxied mode).