Project

General

Profile

Feature #20689

Remote execution interface not accessible by API

Added by Adam Ruzicka almost 4 years ago. Updated 9 months 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

Has duplicate Foreman Remote Execution - Bug #20713: REST API /api/hosts/:id/interfaces doesn't show REX attributeDuplicate2017-08-23
Has duplicate Foreman Remote Execution - Bug #31002: Execution parameter not documentedClosed
Blocks Foreman Remote Execution - Feature #20688: Remote execution interface not accessible by hammerNew2017-08-22
Blocked by Foreman - Feature #3763: Ability for engine/plugin to extend RABL responsesClosed2013-11-26

Associated revisions

Revision 76fc9129 (diff)
Added by Maria Agaphontzev 11 months ago

Fixes #20689 - make REX interface accessible by API

Revision ef399679 (diff)
Added by Maria 11 months ago

Refs #20689 - add execution flag to interface (#35)

History

#1 Updated by Adam Ruzicka almost 4 years ago

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

#2 Updated by Adam Ruzicka almost 4 years ago

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

#3 Updated by Adam Ruzicka almost 4 years ago

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

#4 Updated by Ivan Necas almost 4 years ago

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

#5 Updated by Ivan Necas almost 4 years ago

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

#6 Updated by The Foreman Bot 11 months ago

  • Fixed in Releases added

#7 Updated by Maria Agaphontzev 11 months ago

  • Status changed from New to Closed

#8 Updated by Adam Ruzicka 11 months ago

  • Fixed in Releases foreman_remote_execution 4.1.0 added
  • Fixed in Releases deleted ()

#9 Updated by Adam Ruzicka 10 months ago

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

#10 Updated by Adam Ruzicka 10 months ago

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

#11 Updated by Adam Ruzicka 9 months ago

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

Also available in: Atom PDF