Bug 1925673
Summary: | fence_vmware_rest: Handle error 507 or 500 for more than 4000 VMs in vSphere 7 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Reid Wahl <nwahl> |
Component: | fence-agents | Assignee: | Oyvind Albrigtsen <oalbrigt> |
Status: | CLOSED NOTABUG | QA Contact: | cluster-qe <cluster-qe> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 8.3 | CC: | cluster-maint, mjuricek, sbradley |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 8.5 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-11-30 12:42:24 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1906502 |
Description
Reid Wahl
2021-02-05 20:21:59 UTC
It's been reported that the error code 507 for too many VMs is not an issue in current testing. I looked into that, and here's what I found. In comment 0 I said: > - vSphere Automation API 7.0 (https://code.vmware.com/apis/991/vsphere-automation) > - This redirects to the developer.vmware.com documentation that I linked near the top. > - This says that the limit is now 4000 VMs, and that the GET call for the list operation returns error **507** if there are more than 4000 VMs. If you go to that URL now and follow it to the vcenter/vm GET endpoint page, the page now says error code **500** for too many VMs. The other (direct) link I provided, https://developer.vmware.com/docs/vsphere-automation/latest/vcenter/rest/vcenter/vm/get/, also says error code **500** for too many VMs. So the documentation has changed between the day I filed this bug and today. It looks as if VMware has reverted the error code from **507** to **500** since then. ----- I want to point something else out: fence_vmware_rest connects to "{api_host}/rest". This is deprecated as of v7.0 U2. The new REST APIs are served under "{api_host}/api". VMware says: "There is no immediate impact out of this change as the old REST APIs will continue to work. We are not removing the old REST APIs or their support. We intend to remove it only after 2 major vSphere releases, also subject to customer feedback." - https://core.vmware.com/blog/vsphere-7-update-2-rest-api-modernization So that's good news for us. However, it is something we need to be aware of. At some point we'll want to update fence_vmware_rest to make "/api" the default api_path; users on legacy vSphere deployments can still override this by setting api_path="/rest". **Eventually**, using "/rest" may break. We could either change our default in RHEL 9 (or 10, since we've probably got a while); or just wait until we're working on officially supporting vSphere 9. Either way, that's a separate BZ. Nice to know. Do you know how far back support for /api is available? If it's only 7.0+ (In reply to Oyvind Albrigtsen from comment #8) > Do you know how far back support for /api is available? If it's only 7.0+ All I can do is read the VMware announcement that's linked above: All REST APIs from 6.0 to 6.7 were served under /rest and referred to as old REST APIs. Starting from vSphere 7, REST APIs are served under /api and referred to as new REST APIs. With the release of vSphere 7 Update 2, VMware announces the deprecation of old REST APIs. "/api" didn't appear in the docs I was looking through until 7.0 Update 2. Closing since 500/507 issue has been fixed in the API. |