Bug 1669935

Summary: heketi is giving inappropriate Error when id is not present for "heketi-cli server operations info id"
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Nitin Goyal <nigoyal>
Component: heketiAssignee: John Mulligan <jmulligan>
Status: CLOSED ERRATA QA Contact: Nitin Goyal <nigoyal>
Severity: medium Docs Contact:
Priority: medium    
Version: ocs-3.11CC: akrishna, hchiramm, jmulligan, kramdoss, madam, pkundra, rhs-bugs, sankarshan, storage-qa-internal
Target Milestone: ---Keywords: ZStream
Target Release: OCS 3.11.z Batch Update 2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: heketi-8.0.0-9.el7rhgs Doc Type: Bug Fix
Doc Text:
Previously, providing an unknown operation identifier to the `heketi-cli server operations info` command or triggering other errors on the server produced an improper error response with "invalid character" from Heketi-cli. With this fix, the Heketi-cli tool reports the correct error message.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-27 04:55:35 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:

Description Nitin Goyal 2019-01-28 05:42:40 UTC
Description of problem:
heketi is giving inappropriate Error when id is not present in "heketi-cli server operations info 0b4f1426f0f4372c10ef67eaab265f36". It was giving information when id was present there. (See the output in Additional info)


Version-Release number of selected component (if applicable):
heketi-8.0.0-8.el7rhgs.x86_64

How reproducible:


Steps to Reproduce:
1. create block volume
2. check the operations list
3. check the info of operations

Actual results:
Error: invalid character 'I' looking for beginning of value


Expected results:
It should give error like "id not found" or similar to it


Additional info:
# heketi-cli server operations info 0b4f1426f0f4372c10ef67eaab265f36

Id: 0b4f1426f0f4372c10ef67eaab265f36
Type: create-block-volume
Status: New 
Changes:
    Add block volume: 8e6e92432a124a96befb357d41b39ce8

# heketi-cli server operations info 0b4f1426f0f4372c10ef67eaab265f36
Error: invalid character 'I' looking for beginning of value

Comment 9 Anjana KD 2019-03-15 02:56:12 UTC
Hi John,

I have updated the doc text. Kindly review.

Comment 10 John Mulligan 2019-03-15 14:58:22 UTC
I would not capitalize 'heketi-cli' since that the command name rather than a reference to the Heketi project or Heketi system. Users who want to copy and paste the capitalized version would need to fix the command as well.

Comment 12 errata-xmlrpc 2019-03-27 04:55:35 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, 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-2019:0663