Bug 1351646

Summary: 404: heketi-cli cluster/device/node/volume info
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Anoop <annair>
Component: heketiAssignee: Raghavendra Talur <rtalur>
Status: CLOSED ERRATA QA Contact: Prasanth <pprakash>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: annair, hchiramm, madam, mliyazud, mzywusko, pprakash, rcyriac
Target Milestone: ---Keywords: Reopened
Target Release: CNS 3.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-18 21:55:52 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: 1385246    

Description Anoop 2016-06-30 13:27:50 UTC
heketi vol info is not working:

[root@dhcp42-41 ~]# heketi-cli volume info heketidbstorage
Error: 404 page not found

Comment 2 Humble Chirammal 2016-07-04 12:03:59 UTC
(In reply to Anoop from comment #0)
> heketi vol info is not working:
> 
> [root@dhcp42-41 ~]# heketi-cli volume info heketidbstorage
> Error: 404 page not found

@Anoop, can you provide the volume ID of 'heketidbstorage' instead of 'name'. afaict, the  'info' commands in heketi works only with 'IDs'. That is causing this behaviour.

Comment 3 Luis Pabón 2016-07-06 16:10:36 UTC
That is not the way it works, you must provide the volume id.

Also, I do see a bug, where it should say, "Not Found" instead of 404 page not found.

I will create a new bug for that.

Comment 4 Luis Pabón 2016-07-06 16:12:38 UTC
New bug for error: BZ 1353257

Comment 5 Anoop 2016-07-07 01:29:44 UTC
Dupe it instead of closing it as "Not a bug"

Comment 6 Luis Pabón 2016-07-07 02:28:43 UTC

*** This bug has been marked as a duplicate of bug 1353257 ***

Comment 7 Anoop 2016-07-07 06:01:43 UTC
This is the original bug (filed by QE),hence re-opening.
1353257 was filed pos that.

Comment 8 Neha 2016-07-07 09:35:06 UTC
Same applicable for cluster/device/node

#heketi-cli cluster info t
Error: 404 page not found

# heketi-cli device info t
Error: 404 page not found

#heketi-cli node info t
Error: 404 page not found

Comment 9 Luis Pabón 2016-07-07 11:09:03 UTC
*** Bug 1353257 has been marked as a duplicate of this bug. ***

Comment 12 Michael Adam 2016-10-19 17:01:18 UTC
Patch exists upstream by virtue of

https://github.com/heketi/heketi/pull/548

Comment 17 Prasanth 2016-11-03 08:03:01 UTC
(In reply to Luis Pabón from comment #3)

> Also, I do see a bug, where it should say, "Not Found" instead of 404 page
> not found.
> 

This does not seems to be fixed properly in the latest build (heketi-client-3.0.0-2.el7rhgs.x86_64). See below:

######
# heketi-cli volume info heketidbstorage
Error: 404 page not found

# heketi-cli cluster info t
Error: 404 page not found

# heketi-cli device info t
Error: 404 page not found

# heketi-cli node info t
Error: 404 page not found
######

Moving it back to Assigned.

Comment 18 Humble Chirammal 2016-11-14 11:02:05 UTC
Ashiq is looking into this bug. He will give an update soon.

Comment 19 Mohamed Ashiq 2016-11-14 11:42:00 UTC
Hi,

PR fixing this issue is available upstream under review. The issue is unexpected as it passed all the test-case. 

https://github.com/heketi/heketi/pull/573

-- Ashiq

Comment 20 Raghavendra Talur 2016-11-17 08:56:09 UTC
Ashiq and I debugged this. The required patch is missing downstream at https://code.engineering.redhat.com/gerrit/#/q/status:merged+project:heketi+branch:cns-3.4 branch. 


Have sent the patch at https://code.engineering.redhat.com/gerrit/90437

Comment 21 Prasanth 2016-11-25 09:33:09 UTC
Verified as fixed in heketi-client-3.1.0-3.el7rhgs.x86_64

It's now returning the error message as "Error: Invalid path or request".

#######
# heketi-cli volume info heketidbstorage
Error: Invalid path or request

# heketi-cli cluster info t
Error: Invalid path or request

# heketi-cli device info t
Error: Invalid path or request

#  heketi-cli node info t
Error: Invalid path or request
#######

Comment 23 errata-xmlrpc 2017-01-18 21:55:52 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://rhn.redhat.com/errata/RHEA-2017-0148.html