mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[GH-ISSUE #38] Qemu listing empty #17
Labels
No labels
backend:https
backend:local
backend:openssh
backend:ssh_paramiko
pull-request
status:ansible-issue
status:help-wanted
status:info-needed
status:proxmox-issue
status:review-needed
type:bug 🐞
type:dependency ⛓️
type:docs 📝
type:enhancement ⏫
type:maintenance 🛠️
type:meta
type:question ❓
type:request ✋
type:testing 🧪
version:1.x
version:latest
version:py2
version:py3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmoxer#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @d4vydm on GitHub (Oct 8, 2020).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/38
pvesh returns a list of vms under qemu:
With proxmoxer the list is empty:
Version:
Remark <node> should be replaced with your node name
@jhollowe commented on GitHub (Oct 8, 2020):
What python version and proxmoxer version are you using?
@jhollowe commented on GitHub (Oct 8, 2020):
Also, have you tested this using proxmoxer with the ssh backend (it uses pvesh under the hood)?
@d4vydm commented on GitHub (Oct 8, 2020):
proxmoxer 1.1.1
Python 3.7.3
@d4vydm commented on GitHub (Oct 8, 2020):
I get an auth failure, maybe doing something wrong, what is the right syntax for this using proxmoxer? I get 'private key is encrypted' when passing the key.
@jhollowe commented on GitHub (Oct 8, 2020):
hrm, well that is interesting.
@jhollowe commented on GitHub (Oct 8, 2020):
I figured out the original problem:
the filtering of the nodes happens at the
nodeslevel rather than thegetlevel.So it would be
proxmox.nodes('<node>').get('qemu')Feel free to close this issue if this works for you.
@d4vydm commented on GitHub (Oct 8, 2020):
Same result:
I can get info on a specific vm:
@jhollowe commented on GitHub (Oct 8, 2020):
Hrm,
proxmox.nodes('<node>').get('qemu')works for me. I'm on version6.2-11so you might try updating? This seems to be a weird error with PVE's API.can you try testing with the HTML api access (https://<ip>:<port>/api2/html) to see if it shows the data there?
@d4vydm commented on GitHub (Oct 8, 2020):
@jhollowe you nailed it. Testing the HTML api also returned empty list.
It's not a proxmoxer problem, but API permissions.
At the botom of the page https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/qemu it is mentioned:
Only list VMs where you have VM.Audit permissons on /vms/.
So I fixed the permissions of the user.
I'll close this, not a bug.
Thanks!