Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
fence_rhevm REST-API URL needs to be updated to "/ovirt-engine/api/".
Version-Release number of selected component (if applicable):
fence-agents-common-4.0.11-27.el7_2.9.x86_64
How reproducible:
Always
Steps to Reproduce:
1.Run fence_rhevm commands.
2.
3.
Actual results:
Error saying /api does not exist.
Expected results:
Should work without issue.
Additional info:
After making changes in /usr/sbin/fence_rhevm it is working without issue.
# diff /usr/sbin/fence_rhevm /usr/sbin/fence_rhevm.orig
84c84
< url += "//" + opt["--ip"] + ":" + str(opt["--ipport"]) + "/ovirt-engine/api/" + command
---
> url += "//" + opt["--ip"] + ":" + str(opt["--ipport"]) + "/api/" + command
@Ameya:
Thanks for a report and we will add the fix for the RHEV-M 4.0 but proposed patch will (probably) break existing deployment againt RHEV-M 3. So we have to find more generic solution
@Juan:
We plan to use your PR:
https://github.com/ClusterLabs/fence-agents/pull/71/
but I'm not sure about change endpoint from /api to /ovirt-engine/api. According to documenation it looks like it should be enough to use /api + header 'version: 3'. Can you please confirm this?
Marek, in order to work with RHV 4 you need to use /ovirt-engine/api, as /api was removed. You also need to use the "Version: 3" header, as the agent isn't prepared to use version 4 of the API.
The patch proposed by Ameya shold work with RHV 3, as unlike RHV 4 it supports both /api and /ovirt-engine/api. But it shoud *not* work with RHV 4. I am really surprised to see that it works. May it be that it was tested with RHV 3?
I take the opportunity to remind you that in the future, probably in RHV 4.2, version 3 of the API will be removed, and then agent will need to use version 4 of the API. I'd suggest you start planning for that change. I'd also suggest that you consider using version 4 of the RVH Python SDK, instead of handling the HTTP details directly. You have documentation here:
https://github.com/oVirt/ovirt-engine-sdk/tree/master/sdkhttps://github.com/oVirt/ovirt-engine-sdk/tree/master/sdk/examples
Marek, that part of the documentation is wrong, it should say /ovirt-engine/api. The old /api path doesn't work with RHV 4. I opened bug 1391464 to track that.
Note that the package I am suggesting is 'python-ovirt-engine-sdk4', that is the one that implements version 4 of the API. Currently we distribute it via the RHV channels, and only for RHEL7, but we can consider adding them to other channels, if that helps you.
Description of problem: fence_rhevm REST-API URL needs to be updated to "/ovirt-engine/api/". Version-Release number of selected component (if applicable): fence-agents-common-4.0.11-27.el7_2.9.x86_64 How reproducible: Always Steps to Reproduce: 1.Run fence_rhevm commands. 2. 3. Actual results: Error saying /api does not exist. Expected results: Should work without issue. Additional info: After making changes in /usr/sbin/fence_rhevm it is working without issue. # diff /usr/sbin/fence_rhevm /usr/sbin/fence_rhevm.orig 84c84 < url += "//" + opt["--ip"] + ":" + str(opt["--ipport"]) + "/ovirt-engine/api/" + command --- > url += "//" + opt["--ip"] + ":" + str(opt["--ipport"]) + "/api/" + command