Feature #20689
closedRemote execution interface not accessible by API
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1424999
Description of problem:
The webinterface of Satellite 6.2 allows the specification of the interface used for remote exection: https://satellite.example.com/hosts/$HOSTNAME/edit#network
(Hosts / All Hosts / choose a host / Edit / Interfaces / choose an Interface / Edit)
API and Hammer lacks this feature.
Version-Release number of selected component (if applicable):
Satellite 6.2.7
How reproducible:
Always
Steps to Reproduce:
1. curl -X GET -s -k -u admin:redhat https://sat6.localdomain/api/hosts/1/interfaces | python -mjson.tool
Actual results:
{
"page": 1,
"per_page": 20,
"results": [
{
"created_at": "2016-08-19 16:06:11 UTC",
"domain_id": 1,
"domain_name": "localdomain",
"id": 1,
"identifier": "eth0",
"ip": "172.29.0.20",
"mac": "52:54:00:62:12:1c",
"managed": true,
"name": "sat62.localdomain",
"primary": true,
"provision": true,
"subnet_id": null,
"subnet_name": null,
"type": "interface",
"updated_at": "2017-02-20 10:00:11 UTC",
"virtual": false
}
],
"search": null,
"sort": {
"by": null,
"order": null
},
"subtotal": 1,
"total": 1
}
Expected results:
{
"page": 1,
"per_page": 20,
"results": [
{
"created_at": "2016-08-19 16:06:11 UTC",
"domain_id": 1,
"domain_name": "localdomain",
"id": 1,
"identifier": "eth0",
"ip": "172.29.0.20",
"mac": "52:54:00:62:12:1c",
"managed": true,
"name": "sat62.localdomain",
"primary": true,
"provision": true,
"remote_execution": true,
"subnet_id": null,
"subnet_name": null,
"type": "interface",
"updated_at": "2017-02-20 10:00:11 UTC",
"virtual": false
}
],
"search": null,
"sort": {
"by": null,
"order": null
},
"subtotal": 1,
"total": 1
}
Additional info:
The lack of hammer / API access to the remote execution interface blocks any automation / bulk update in the correction of wrongly assigned interfaces.