Re: [PVE-User] Simultaneous API call

2016-03-07 Thread lyt_yudi
hi, the same problem here. simultaneous modify rate and tag vaules or first to modify rate vaules, after modify the tag vaules it’s failed, here no tc rules. After the tested found, it’s must to modify the tag first, and to modify the rate at end will succeed! must do so? maybe it’s a

Re: [PVE-User] Simultaneous API call

2016-03-07 Thread lyt_yudi
hi, > 在 2016年3月8日,下午1:39,lyt_yudi 写道: > > the same problem here. > > simultaneous modify rate and tag vaules > or > first to modify rate vaules, after modify the tag vaules > > it’s failed, here no tc rules. > > After the tested found, it’s must to modify the tag first,

Re: [PVE-User] Simultaneous API call

2016-02-13 Thread Mohamed Sadok Ben Jazia
Hello, to describe my purpose, i'm supposed to create a commercial plateform for providing IAAS and PAAS using proxmox. For this step, i'm planning to develop a full API for third pary users, the development will be done in PHP as start. The API will contain 3 main parts (clustering and managing

Re: [PVE-User] Simultaneous API call

2016-02-13 Thread ad...@extremeshok.com
Might be easier to just use the module garden proxmox modules for whmcs. Instead of reinventing the wheel Sent from my iPhone > On 13 Feb 2016, at 1:36 PM, Thomas Lamprecht wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Hi, > > Al 13.02.2016 a

Re: [PVE-User] Simultaneous API call

2016-02-13 Thread Mohamed Sadok Ben Jazia
I see you didn't approve the fact that API calls an API, i see that it's a necessity especially for handling the multi host and multi node in case we install proxmox in different datacenters. Thank you for your answer, i care about the answer, not the act of being direct or not. Anycase, can you

Re: [PVE-User] Simultaneous API call

2016-02-13 Thread Thomas Lamprecht
Hi, can you show a (simple) example how you do it? Are you making next id calls from all over the cluster (in parallel)? If you're doing it in serial like: new_vmid = call-to-nextid(); create-ct(new_vmid) you're fine, doing parallel calls you get race conditions and atomicity violations.

[PVE-User] Simultaneous API call

2016-02-10 Thread Mohamed Sadok Ben Jazia
Hello list, I'm creating LXC container using the API on proxmox 4.1 I use get("/cluster/nextid") to get the next free id to use. The issue i encountered is when i do simultaneous number of API calls I get proxmox trying to create containers with the same ID which gave me this error trying to