Bug 1381129
Summary: | Post & GET /api/v2/discovery_rules/ doesn't return all attributes like locations, organizations | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> |
Component: | Discovery Plugin | Assignee: | Lukas Zapletal <lzap> |
Status: | CLOSED WONTFIX | QA Contact: | Jan Hutař <jhutar> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.3.0 | CC: | jcallaha, jhutar, oshtaier, rabajaj |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://projects.theforeman.org/issues/19647 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-09-04 17:44:22 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
Sachin Ghai
2016-10-03 07:52:27 UTC
Similar issue with PUT requests.. MissingValueError: Cannot find a value for the "location" field. Searched for keys named ('location_ids', 'location', 'locations'), but available keys are [u'name', u'updated_at', u'created_at', u'hostname', u'enabled', u'hostgroup_id', u'max_count', u'priority', 'search_', u'id']. Now we show it in Discovery 9.1. $ curl-foreman /api/v2/discovery_rules/ { "total": 1, "subtotal": 1, "page": 1, "per_page": 100, "search": null, "sort": { "by": null, "order": null }, "results": [ { "name": "always", "enabled": true, "hostgroup_id": 1, "hostgroup_name": "CentOS 7.0", "hostname": "somehost-<%= rand(999999) %>", "priority": 200, "search": "cpu_count > 0", "hosts_limit": 0, "id": 1, "hosts": [ ], "organizations": [ { "id": 1, "name": "MyOrg" }, { "id": 4, "name": "OtherOrg" } ], "locations": [ { "id": 2, "name": "MyLoc" }, { "id": 3, "name": "SecondLoc" } ] } ] } Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/19647 has been resolved. So, documentation says both "discovery_rule[location_ids]" and "discovery_rule[organization_ids]" are optional for POST, but they seem to be required. Created bug 1494585 for that. Upstream bug assigned to lzap Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you. |