Comments (5)
The storage did not exist indeed (no ZFS). The additional error-message pointed me to where I had to fix things. So yes, the mentioned fix in #57 fixed my issue.
from proxmoxer.
I get the same kind of error using POST (HTTP):
192.168.1.2 - root@pam [29/11/2018:20:49:32 +0100] "POST /api2/json/nodes/pve/qemu HTTP/1.1" 500 13
And in Ansible the last error looks like this:
"msg": "creation of qemu VM prov-test3 with vmid 101 failed with exception=500 Internal Server Error: b'{\"data\":null}'"
$ pveversion
pve-manager/5.2-12/ba196e4b (running kernel: 4.15.18-9-pve)
from proxmoxer.
Here is some traceback:
---------------------------------------------------------------------------
ResourceException Traceback (most recent call last)
<ipython-input-35-7a21cf167f34> in <module>
1 for node in proxmox.nodes.get():
----> 2 for vm in proxmox.nodes(node['node']).qemu.get():
3 print(vm)
4
5
~/.virtualenvs/proxmox-dokuwiki-exporter/lib/python3.7/site-packages/proxmoxer/core.py in get(self, *args, **params)
82
83 def get(self, *args, **params):
---> 84 return self(args)._request("GET", params=params)
85
86 def post(self, *args, **data):
~/.virtualenvs/proxmox-dokuwiki-exporter/lib/python3.7/site-packages/proxmoxer/core.py in _request(self, method, data, params)
77 if resp.status_code >= 400:
78 raise ResourceException("{0} {1}: {2}".format(resp.status_code, httplib.responses[resp.status_code],
---> 79 resp.content))
80 elif 200 <= resp.status_code <= 299:
81 return self._store["serializer"].loads(resp)
ResourceException: 500 Internal Server Error:
from proxmoxer.
Using the fix mentioned in #57 ([FIX] Add reasons to error codes
) helped me one step further:
"msg": "creation of qemu VM prov-test3 with vmid 101 failed with exception=500 Internal Server Error: storage 'local-zfs' does not exists, Content:b'{\"data\":null}'"
from proxmoxer.
@hbokh does the storage really just exist? so your error message is valid and your fix is fixing the issue?
from proxmoxer.
Related Issues (20)
- KVM current disk space not showing
- TypeError: __call__() takes from 1 to 2 positional arguments but 7 were given HOT 2
- 2FA support?
- Converting a vm to a template doesn't return Unique Task ID
- Problems with version 5.3 HOT 3
- Is it possible to get all VMs config within in a pool by single API call?
- get vm config of current config
- Encryption of SSH keys
- how i can creeate VM with api ? HOT 7
- problems with custom post request. HOT 1
- i want create contener and i get this error
- creation problm
- How to add a disk to already created VM?
- PVE 6 Beta: 'authorization on proxmox cluster failed with exception: invalid literal for float(): 6-0.1' HOT 10
- Still working (python3)? HOT 3
- authorization on proxmox cluster failed with exception: invalid literal for float(): 6.0-7
- What is the status of this project? HOT 1
- IPv6 not supported
- boolean parameter not serialized correctly HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proxmoxer.