Bug 1669935 - heketi is giving inappropriate Error when id is not present for "heketi-cli server operations info id"
Summary: heketi is giving inappropriate Error when id is not present for "heketi-cli s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: heketi
Version: ocs-3.11
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: OCS 3.11.z Batch Update 2
Assignee: John Mulligan
QA Contact: Nitin Goyal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-28 05:42 UTC by Nitin Goyal
Modified: 2019-03-27 04:55 UTC (History)
9 users (show)

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.
Clone Of:
Environment:
Last Closed: 2019-03-27 04:55:35 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:0663 0 None None None 2019-03-27 04:55:44 UTC

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


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