Antsle Forum

Welcome to our Antsle community! This forum is to connect all Antsle users to post experiences, make user-generated content available for the entire community and more. 

Please note: This forum is about discussing one specific issue at a time. No generalizations. No judgments. Please check the Forum Rules before posting. If you have specific questions about your Antsle and expect a response from our team directly, please continue to use the appropriate channels (email: [email protected]) so every inquiry is tracked. 

Please or Register to create posts and topics.

curl - Could not zfs clone for antlet ...

I'm trying to use curl to create an antlet and I'm receiving the following error. I did read a previous post on the error that ran a few commands to ensure the antlet was removed, however, no matter what I change the dname too I get the same error.

Any help that can be provided would be appreciated.

Error

{"success":false,"message":"1 Could not zfs clone for antlet testserver1"}

I've tried the following commands

Without optional zpool-name

curl -X POST -H 'Authorization: Token ey.....' --header 'Content-Type: application/json' --header 'Accept: application/octet-stream' -d '{"dname": "testserver1","template": "Ubuntu16.04 - KVM","ram": 1,"cpu": 1,"antlet-num": 15,"compression": "inhert"}' 'http://domain.local/api/antlets'

With optional zpool-name

curl -X POST -H 'Authorization: Token ey...' --header 'Content-Type: application/json' --header 'Accept: application/octet-stream' -d '{"dname": "testserver1","template": "Ubuntu16.04 - KVM","ram": 1,"cpu": 1,"antlet-num": 15,"zpool-name": "antlets","compression": "inhert"}' 'http://domain.local/api/antlets'

I wanted to provide an update on this.  After some investigating, I was able to create the antlet successfully.  There were a few things that I changed.  First, the template name was incorrect.  In the portal it is advertised as Ubuntu16.04 - KVM, however, after doing a zfs list when logged into a terminal session it was listed as Ubuntu16.04.  Second I removed the zpool-name and changed the ram to MiB (megabytes).  Lastly, I changed the compression to on.

After that my antlet was created.  The full command to run on a Linux machine is below.  I hope this helps someone.  I also recommend reading the article about zfs . It was a great reference for me.  Click Here

As you test the API, clean up activities are necessary when things go wrong or error out.  It was a great reference for me.

$  curl -X POST --header "Content-Type: application/json" --header "Accept: application/octet-stream" "http://domain.local/api/antlets" -d '{ "dname": "servertest1","template": "Ubuntu16.04","ram": 1024,"cpu": 1,"antlet-num": 16,"compression": "on"}'