mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[GH-ISSUE #170] "No 'get' handler defined for 'host/path'" error after upgrading to 2.1.0 when using openssh backend #93
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#93
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 @matikij on GitHub (Aug 21, 2024).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/170
Originally assigned to: @jhollowe on GitHub.
given script
from proxmoxer import ProxmoxAPI
p=ProxmoxAPI('10.10.10.10', user=None, sudo=True, backend='openssh', timeout=30)
print(p.nodes.get())
I get an exception under 2.1.0:
Traceback (most recent call last):
File ".../repro.py", line 4, in
print(p.nodes.get())
^^^^^^^^^^^^^
File ".../lib/python3.11/site-packages/proxmoxer/core.py", line 167, in get
return self(args)._request("GET", params=params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../lib/python3.11/site-packages/proxmoxer/core.py", line 156, in _request
raise ResourceException(
proxmoxer.core.ResourceException: 500 Internal Server Error: b"No 'get' handler defined for '10.10.10.10/nodes'"
The same script works when using 2.0.1
@jhollowe commented on GitHub (Aug 22, 2024):
If you run
pvesh get nodes, do you get an error?What version of PVE are you trying to connect to?
@matikij commented on GitHub (Aug 22, 2024):
czw., 22 sie 2024 o 14:59 John Hollowell @.***>
napisał(a):
No, but also exactly the same code works on 2.0.1
7.4
Message ID: @.***>
@laugrean commented on GitHub (Oct 7, 2024):
Is there any update on this?
We also face this issue with proxmoxer 2.1.0?
@tobytes commented on GitHub (Oct 22, 2024):
Same issue on 2.1.0, 2.0.1 it works fine.
PVE: 8.2.7
@cloudcodger commented on GitHub (Nov 3, 2024):
I have encountered this same issue and can reproduce it 100% of the time.
Steps.
apt updateandapt upgradeas well) on three systemsThis works under
proxmoxer2.0.1 but get these 500 errors with the latest version 2.1.0 as mentioned here.The Ansible modules are in https://github.com/cloudcodger/proxmox_openssh that this has broken. A good starting point would be the module
cloudcodger.proxmox_openssh.proxmox_group. Also, downloadable in Ansible Galaxy.@asdorsey commented on GitHub (Nov 21, 2024):
I'm also seeing this error with the
ssh_paramikobackend.@asdorsey commented on GitHub (Nov 21, 2024):
From what I can tell, this is caused by the host component in the API path. I've replicated the issue on our Proxmox host using
pvesh.@asdorsey commented on GitHub (Nov 21, 2024):
I've created a PR at #186 to fix this issue by overriding
get_base_urlfor both SSH backends. This works for me locally, but I would always appreciate more testing if anyone is willing.