Problems with Eve Ng REST API

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
unkn0wn
Posts: 2
Joined: Wed Feb 12, 2020 2:35 pm

Problems with Eve Ng REST API

Post by unkn0wn » Tue Feb 18, 2020 8:44 am

My last post has been removed by an admin.

Don't really know why but I'll post it again.

We are currently trying to get some endpoints of the Eve NG REST API working but kinda seem to get it not right.

Certain endpoints such as:

- labs/<lab-path>/nodes/start -> does not work. API responds with an 400 BAD REQUEST and we don't quite know why
- labs/<lab-path>/nodes/<node_id>/start -> API responds with an 200 but in the lab nothing has changed
- labs/<lab-path>/nodes/<node_id>/stop -> API responds with an 400 BAD REQUEST and we also don't quite know why
- labs/<lab-path>/nodes/stop -> API responds with an 200 but in the lab nothing has changed

Hope anybody had similar issues and knows how to fix them.

Looking forward to your replies.

ecze
Posts: 533
Joined: Wed Mar 15, 2017 1:54 pm

Re: Problems with Eve Ng REST API

Post by ecze » Tue Feb 18, 2020 12:01 pm

1. global stop/start is not supported anymore due to network interconnections sequence required...
2. Pro edition requires stopmode arg with stop
3. Use your browser with developer tools to see how API works, that's the best approach....

Regards,

E.

unkn0wn
Posts: 2
Joined: Wed Feb 12, 2020 2:35 pm

Re: Problems with Eve Ng REST API

Post by unkn0wn » Tue Feb 18, 2020 1:20 pm

Hi ecze,

thanks for your reply.

1. Okay we will leave out stop and start all operations for now.
2. Okay we will look into the stopmode arg
3. Thank you for the information we will test this later and see if we have any errors in the api requests

But one thing is still bugging us.

If we do a labs/<lab-path>/nodes/<node_id>/start operation the api responds with a 200 but when looking at the lab in the web interface the node hasn't been started.

Do you have any idea what could be wrong here ?

Best regards
unkn0wn

ecze
Posts: 533
Joined: Wed Mar 15, 2017 1:54 pm

Re: Problems with Eve Ng REST API

Post by ecze » Tue Feb 18, 2020 5:40 pm

Check the files under /opt/unetlab/data/Logs/....

E.

Post Reply