AnsiballZ_proxmox_kvm.py and API's

Status
Not open for further replies.

smcracraft

Member
Nov 27, 2019
31
0
6
124
California, USA
This file is retained in ~/.ansible/tmp/ansible-tmp-########.##-########/AnsiballZ_proxmox_kvm.py

Using it from an Ansible playbook from the module

ansible.modules.proxmox_kvm

producing the error ending the run without a VM create...

creation of qemu VM centos-static with vmid 137 failed with exception=500 Internal Server Error: {\"data\": null"}

So the obvious question is how to debug the API to see exactly why the Internal server error is happening given that all the necessary services are up on the proxmox server.

If my assumptions above are wrong or you have seen this rabbithole before, let me know.
 
So I looked at /var/log/access.log on the hypervisor for that 500 internal server error.

Here is the pertinent additional data:

Code:
10.138.0.17 - - [06/12/2019:22:55:59 +0000] "POST /api2/json/access/ticket HTTP/1.1" 200 664
10.138.0.17 - root@pam [06/12/2019:22:55:59 +0000] "GET /api2/json/version HTTP/1.1" 200 79
10.138.0.17 - root@pam [06/12/2019:22:56:00 +0000] "GET /api2/json/cluster/nextid HTTP/1.1" 200 14
10.138.0.17 - root@pam [06/12/2019:22:56:00 +0000] "GET /api2/json/cluster/resources?type=vm HTTP/1.1" 200 6313
10.138.0.17 - root@pam [06/12/2019:22:56:00 +0000] "GET /api2/json/cluster/resources?type=vm HTTP/1.1" 200 6320
10.138.0.17 - root@pam [06/12/2019:22:56:00 +0000] "GET /api2/json/nodes HTTP/1.1" 200 744
10.138.0.17 - root@pam [06/12/2019:22:56:00 +0000] "POST /api2/json/nodes/ceph-hv-01/qemu HTTP/1.1" 500 13

So the particular proxmox server which is "ceph-hv-01" is failing.

Anyone know why that would happen?
 
please stop spamming your ansible setup problems all over the forum. I already told you what you need to do, multiple times - debug ansible to find out which exact HTTP query (including parameters) it attempts to do, then continue from there. you can of course also modify the API server to dump all incoming API calls including parameters (if this is a test system).
 
Status
Not open for further replies.

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!