The output you’re showing indicates it’s still running, I believe if you hit it again shortly after, it should show it’s completed and metadata should point you to the right endpoints.
Operations disappear within 5s of them being complete.
In this case what you probably should do is get the UUID from the POST call and then immediately call /1.0/operations/UUID/wait. This will then return once it’s over.
I’m trying to do the same thing as lxdpls but using the unix-socket connection and I never get any results back. I get the following on a simple exec call:
A call to /1.0/operations/d71cca5b-6e1a-4f70-944d-6fbc6f1e7435 immediately after this call returns nothing. I also get nothing if I use wait or try to list all of the operations within 5 seconds of the original call.
How it to set to 5 minutes?? For example… I can’t have time to enter next API request into the curl after exec. I want to understand how websockets work, there is not a single example on Python in the world with LXD websockets :(( Websokets python working but not with LXD… I want understand… Why???
It’s set to 5s because operations hold pointers to a lot of internal data, it’s not just a DB record, keeping them around keeps a lot of files open and stuff in memory which could easily have LXD use 100MBs of RAM more than it normal does.
Operations are definitely meant to be used by code, not by humans, so if you want to play with them, you’re going to need a script so that it can connect and act against it within the 5s window.