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.
Bug 1827561 - fence_vmware_rest: improve exception handling (RHEL7)
Summary: fence_vmware_rest: improve exception handling (RHEL7)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: fence-agents
Version: 7.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 7.9
Assignee: Oyvind Albrigtsen
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On: 1827559
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-24 08:16 UTC by Oyvind Albrigtsen
Modified: 2023-10-06 19:45 UTC (History)
4 users (show)

Fixed In Version: fence-agents-4.2.1-36.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1827559
Environment:
Last Closed: 2020-09-29 19:15:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ClusterLabs fence-agents pull 328 0 None closed fence_vmware_rest: improve exception handling in send_command() 2020-10-15 14:25:42 UTC
Red Hat Knowledge Base (Solution) 5188221 0 None None None 2020-06-28 20:39:07 UTC
Red Hat Product Errata RHBA-2020:3850 0 None None None 2020-09-29 19:16:21 UTC

Description Oyvind Albrigtsen 2020-04-24 08:16:02 UTC
+++ This bug was initially created as a clone of Bug #1827559 +++

Description of problem:
From PR:
If an exception occurs, simply raise it. pycurl's perform() method can
generate a pycurl.error object, which does not support indexing and
attempting to do so will generate an exception that hides the original
exception.

Also, don't assume that the remote will return a JSON formatted response.
If it doesn't, a exception will occur accessing result which will not
raise the intended exception.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Use wrong username/password or other parameter that makes the agent fail.
2.
3.

Actual results:
Might not get JSON response in some cases.

Expected results:
Handles the no JSON response case correctly.

Additional info:
https://github.com/ClusterLabs/fence-agents/pull/328

Comment 7 errata-xmlrpc 2020-09-29 19:15:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (fence-agents bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3850


Note You need to log in before you can comment on or make changes to this bug.