Project

General

Profile

Actions

Feature #20689

closed

Remote execution interface not accessible by API

Added by Adam Ruzicka over 7 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
-
Target version:
-

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.


Related issues 4 (1 open3 closed)

Has duplicate Foreman Remote Execution - Bug #20713: REST API /api/hosts/:id/interfaces doesn't show REX attributeDuplicateNagoor Shaik08/23/2017Actions
Has duplicate Foreman Remote Execution - Bug #31002: Execution parameter not documentedClosedActions
Blocks Foreman Remote Execution - Feature #20688: Remote execution interface not accessible by hammerNew08/22/2017Actions
Blocked by Foreman - Feature #3763: Ability for engine/plugin to extend RABL responsesClosedTimo Goebel11/26/2013Actions
Actions #1

Updated by Adam Ruzicka over 7 years ago

  • Related to Feature #20688: Remote execution interface not accessible by hammer added
Actions #2

Updated by Adam Ruzicka over 7 years ago

  • Related to deleted (Feature #20688: Remote execution interface not accessible by hammer)
Actions #3

Updated by Adam Ruzicka over 7 years ago

  • Blocks Feature #20688: Remote execution interface not accessible by hammer added
Actions #4

Updated by Ivan Necas over 7 years ago

  • Has duplicate Bug #20713: REST API /api/hosts/:id/interfaces doesn't show REX attribute added
Actions #5

Updated by Ivan Necas over 7 years ago

  • Blocked by Feature #3763: Ability for engine/plugin to extend RABL responses added
Actions #6

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases added
Actions #7

Updated by Maria Agaphontzev over 4 years ago

  • Status changed from New to Closed
Actions #8

Updated by Adam Ruzicka over 4 years ago

  • Fixed in Releases foreman_remote_execution 4.1.0 added
  • Fixed in Releases deleted ()
Actions #9

Updated by Adam Ruzicka about 4 years ago

  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/529 added
Actions #10

Updated by Adam Ruzicka about 4 years ago

  • Has duplicate Bug #31002: Execution parameter not documented added
Actions #11

Updated by Adam Ruzicka about 4 years ago

  • Pull request https://github.com/theforeman/hammer_cli_foreman_remote_execution/pull/35 added
  • Fixed in Releases hammer_cli_foreman_remote_execution 0.2.0 added
Actions

Also available in: Atom PDF