Hello, big proxmox fan and ansible user here. I am trying to create new LXC containers in proxmox using ansible. I believe this is same issue as: https://github.com/ansible/ansible/issues/25113
I'd like to help fix it and maybe do a pull request for the ansible module.
I can't say with 100% certainty, but I think its perhaps calling the API wrong. Here is what I get in my pve-proxy/access.log (note 500 error in last line)
10.128.30.241 - - [29/Aug/2017:20:47:13 -0700] "POST /api2/json/access/ticket HTTP/1.1" 200 643
10.128.30.241 - root@pam [29/Aug/2017:20:47:14 -0700] "GET /api2/json/version HTTP/1.1" 200 80
10.128.30.241 - root@pam [29/Aug/2017:20:47:14 -0700] "GET /api2/json/cluster/nextid HTTP/1.1" 200 14
10.128.30.241 - root@pam [29/Aug/2017:20:47:14 -0700] "GET /api2/json/cluster/resources?type=vm HTTP/1.1" 200 347
10.128.30.241 - root@pam [29/Aug/2017:20:47:14 -0700] "GET /api2/json/cluster/resources?type=vm HTTP/1.1" 200 334
10.128.30.241 - root@pam [29/Aug/2017:20:47:14 -0700] "GET /api2/json/nodes HTTP/1.1" 200 193
10.128.30.241 - root@pam [29/Aug/2017:20:47:14 -0700] "GET /api2/json/nodes/z3/storage/debian-8.0-standard_8.7-1_amd64.tar.gz/content HTTP/1.1" 500 13
This debian tarball LXC template is located on my /var/lib/vz/template/cache/ directory, /var/lib/vz is mounted as 'local' in proxmox. At first I thought maybe the API is not finding it in that path, so I tried moving other places but then I got another error indicating the template doesnt exist, so I don't think that is the problem.
Any help appreciated thanks!
I'd like to help fix it and maybe do a pull request for the ansible module.
I can't say with 100% certainty, but I think its perhaps calling the API wrong. Here is what I get in my pve-proxy/access.log (note 500 error in last line)
10.128.30.241 - - [29/Aug/2017:20:47:13 -0700] "POST /api2/json/access/ticket HTTP/1.1" 200 643
10.128.30.241 - root@pam [29/Aug/2017:20:47:14 -0700] "GET /api2/json/version HTTP/1.1" 200 80
10.128.30.241 - root@pam [29/Aug/2017:20:47:14 -0700] "GET /api2/json/cluster/nextid HTTP/1.1" 200 14
10.128.30.241 - root@pam [29/Aug/2017:20:47:14 -0700] "GET /api2/json/cluster/resources?type=vm HTTP/1.1" 200 347
10.128.30.241 - root@pam [29/Aug/2017:20:47:14 -0700] "GET /api2/json/cluster/resources?type=vm HTTP/1.1" 200 334
10.128.30.241 - root@pam [29/Aug/2017:20:47:14 -0700] "GET /api2/json/nodes HTTP/1.1" 200 193
10.128.30.241 - root@pam [29/Aug/2017:20:47:14 -0700] "GET /api2/json/nodes/z3/storage/debian-8.0-standard_8.7-1_amd64.tar.gz/content HTTP/1.1" 500 13
This debian tarball LXC template is located on my /var/lib/vz/template/cache/ directory, /var/lib/vz is mounted as 'local' in proxmox. At first I thought maybe the API is not finding it in that path, so I tried moving other places but then I got another error indicating the template doesnt exist, so I don't think that is the problem.
Any help appreciated thanks!