UQ-RCC / nimrodg

Nimrod/G
https://rcc.uq.edu.au/nimrod
Apache License 2.0
1 stars 0 forks source link

External Execution Actuator #4

Open vs49688 opened 5 years ago

vs49688 commented 5 years ago

Rather simple concept, invoke a program that will start agents.

The program shall have two commands:

Usage:
  ./extlaunch.py launch
  ./extlaunch.py kill <uuid>
{
    "resource_path": "fl012",
    "amqp_uri": "amqp://user:pass@asdfasdfasd",
    "no_verify_peer": true,
    "no_verify_host": true,
    "cert_data": "asdfasd==",
    "amqp_routing_key": "iamthemaster",
    "uuids": [
        "ef449411-1407-4702-ad12-06a639c065fb",
        "a72188ba-24a7-4dd8-95c0-dea896a70141",
        "b725ad16-db6c-4744-995e-b254e4fcfd08"
    ],
    "config": {
        "limit": 10,
        "program": "/home/user/Desktop/nimrod-embedded/extlaunch.py"
    }
}

How it invokes the agents, Nimrod doesn't care. For the case of Embedded Nimrod, it'll generate a script and invoke ssh to another node, bypassing the requirement of needing access to the host's keys.

Any nonzero return value is considered a failure.