Bug 1624424
| Summary: | [RFE] searching on a specific host's hosts/<id>/interfaces should only return the matching interface | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Dylan Gross <dgross> |
| Component: | Hosts | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED ERRATA | QA Contact: | tstrych |
| Severity: | low | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.3.2 | CC: | bkearney, inecas, pcreech |
| Target Milestone: | 6.7.0 | Keywords: | FutureFeature, Triaged |
| Target Release: | Unused | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-04-14 13:23:24 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
Dylan Gross
2018-08-31 14:20:01 UTC
Created redmine issue https://projects.theforeman.org/issues/24798 from this bug Upstream bug assigned to akarsale Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/24798 has been resolved. Reproduced with this setup : two fake interfaces with mac address aa:bb:cc:dd:ee:ff and aa:bb:cc:dd:ee:85
curl -k -u <user>:<password> https://<hostname>/api/hosts/5/interfaces?search=mac~aa:bb:cc:dd:ee:ff
results for sat 6.7
output:
{
"total": 3,
"subtotal": 1,
"page": 1,
"per_page": 20,
"search": "mac~aa:bb:cc:dd:ee:ff",
"sort": {
"by": null,
"order": null
},
"results": # ommitted
}
and here I am searching for mac~aa:bb:cc:dd:ee
curl -k -u <user>:<password> https://<hostname>/api/hosts/5/interfaces?search=mac~aa:bb:cc:dd:ee
{
"total": 3,
"subtotal": 2,
"page": 1,
"per_page": 20,
"search": "mac~aa:bb:cc:dd:ee",
"sort": {
"by": null,
"order": null
},
"results": # ommitted
}
I was able to reproduce the problem on sat 6.6 snap 24
same setup,
curl -k -u <user>:<password> https://<hostname>/api/hosts/5/interfaces?search=mac~aa:bb:cc:dd:ee:ff
{
"total": 3,
"subtotal": 3,
"page": 1,
"per_page": 20,
"search": "mac~aa:bb:cc:dd:ee:ff",
"sort": {
"by": null,
"order": null
},
"result": # ommitted
}
Verified.
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-2020:1454 |