API Node Status issue

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
bert
Posts: 2
Joined: Thu Jul 07, 2022 7:03 pm

API Node Status issue

Post by bert » Thu Jul 07, 2022 7:38 pm

Running EVE Professional Edition: 5.0.1-17. The API response for all nodes or single node is always 0 regardless of whether the node is active or not.

curl -s -c /tmp/cookie -b /tmp/cookie -X GET -H 'Content-type: application/json' http://127.0.0.1/api/labs/User1/Lab%201.unl/nodes
or
curl -s -c /tmp/cookie -b /tmp/cookie -X GET -H 'Content-type: application/json' http://127.0.0.1/api/labs/User1/Lab%201.unl/nodes/1

Code: Select all

{
    "code": 200,
    "status": "success",
    "message": "Successfully listed node (60025).",
    "data": {
        "console": "telnet",
        "config": "1",
        "delay": 0,
        "left": 561,
        "icon": "JuniperSRX.png",
        "image": "vsrxng-21.R41.12",
        "name": "NAME",
        "status": 0,
        "template": "vsrxng",
        "type": "qemu",
        "sat": 0,
        "top": 312,
        "url": "html5/#/client/unknowntoken",
        "cpulimit": 0,
        "cpu": 2,
        "ethernet": 3,
        "ram": 4096,
        "uuid": "1938dacd-6cf0-4130-9cf3-2b5d60e2ed53",
        "rdp_user": "",
        "rdp_password": "",
        "firstmac": "50:01:00:02:00:00",
        "qemu_options": "-machine type=pc,accel=kvm -cpu host -serial mon:stdio -nographic -no-user-config -nodefaults -rtc base=utc",
        "qemu_version": "4.1.0",
        "qemu_arch": "x86_64",
        "qemu_nic": "virtio-net-pci"
    }
}

bert
Posts: 2
Joined: Thu Jul 07, 2022 7:03 pm

Re: API Node Status issue

Post by bert » Thu Jul 07, 2022 8:33 pm

I see what the issue is. I was running the API as a different user then node was running under. Is there a way to see the status of other user's running nodes? or is this a part of the lab admin/lab user roles?

Post Reply