Replies: 2 comments 5 replies
-
@bdruth Proxmox uses this site for their bug tracking https://bugzilla.proxmox.com/index.cgi |
Beta Was this translation helpful? Give feedback.
4 replies
-
In some situations, the upstream SDK we use attempts to get items that might not exist. The reason for this is that returning every resource costs a lot of data for bigger instances. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just a PSA / heads-up / request for roast, if wrong ... I recently setup my provisioning to use the PVE API through my nginx proxy and made a disconcerting and, frankly, enraging discovery. The provider makes certain requests to PVE that (knowingly?) result in a 500 response, in my case, querying
/api2/json/cluster/ha/resources/103
when I don't have HA, for an LXC. This is not the source of my rage - I assume this is like this for a reason, it is what it is. However, PVE responds withNow, I'm not an RFC expert, but it's my understanding that the start-line having the extra
no such resource 'ct:103'
is a no-no ... maybe in particular because of the'ct:103'
? In any case,nginx
marks the upstream as temporarily unavailable when it sees this response (upstream server temporarily disabled while reading response header from upstream
), and subsequent requests fail with a 502 gateway error because there aren't any upstreams available to handle the request (no live upstreams while connecting to upstream
).Net effect? This renders the provider unusable. The workaround? Well, this took me a frustratingly long time to figure out, because I'm not an
nginx
guru, but you can define theupstream { ... }
block in your nginx configuration, and on theserver ...
line, you can appendmax_fails=0
which effectively tellsnginx
to never disable the backend. This ends up looking like this:You then use this
upstream
in yourproxy_pass
configuration line, e.g.:proxy_pass https://proxmox/;
As I was trying to sort this, I posted to the proxmox forum ... hoping someone else that had used
nginx
would have seen this / solved this before, but as of this writing, no responses ... I haven't found anyplace to actually post bugs or issues for the PVE API, their github projects are read-only replicas of their git infrastructure, and so far I've only found pointers to the forum. If anyone knows where it would be appropriate to post the details of this issue, I'm happy to do so.Beta Was this translation helpful? Give feedback.
All reactions