Bug 1356033 - gluster --mode=script --xml --remote-host=$host volume info $volume returns nothing
Summary: gluster --mode=script --xml --remote-host=$host volume info $volume returns n...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: GlusterFS
Classification: Community
Component: cli
Version: 3.7.13
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-13 10:03 UTC by Jiri Belka
Modified: 2016-07-13 17:13 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-13 17:13:28 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Jiri Belka 2016-07-13 10:03:04 UTC
Description of problem:

In RHEVM environment we deploy Self-Hosted Engine on glusterfs storage. SHE setup runs:

~~~
/sbin/gluster', '--mode=script', '--xml', 'volume', 'info', 'Jiri', '--remote-host=<HOST>'
~~~

and this returns nothing with RC 2.

Although running this via ssh and without '--remote-host' it returns volume info:

~~~
# ssh  <HOST> "gluster --mode=script --xml volume info Jiri" | head
root@<HOST>'s password: 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput>
  <opRet>0</opRet>
  <opErrno>0</opErrno>
  <opErrstr/>
  <volInfo>
    <volumes>
      <volume>
        <name>Jiri</name>
        <id>538318f2-8d99-4111-af2c-247e570b7f1c</id>
~~~

If I run following, it also works OK:

~~~
ssh  <HOST> "gluster --mode=script --xml volume info Jiri --remote-host=<HOST>"
~~~

Version-Release number of selected component (if applicable):
client: glusterfs 3.7.13 built on Jul  8 2016 15:26:18
server: glusterfs 3.7.5 built on Nov 10 2015 00:13:38

How reproducible:
100%

Steps to Reproduce:
1. gluster --mode=script --xml volume info <VOLUME> --remote-host=<HOST> from
   a client
2.
3.

Actual results:
does not return volume info

Expected results:
should work, it impacts RHEVM 3.6 SHE

Additional info:
for testing you can try TLV RHEVM QE

Comment 2 Atin Mukherjee 2016-07-13 10:25:05 UTC
Are you running a heterogeneous cluster? In that case, this is expected as CLI is not backward compatible.

Comment 3 Jiri Belka 2016-07-13 12:09:36 UTC
(In reply to Atin Mukherjee from comment #2)
> Are you running a heterogeneous cluster? In that case, this is expected as
> CLI is not backward compatible.

What do you mean 'heterogeneous cluster'? Different version on client and server?

Comment 4 Atin Mukherjee 2016-07-13 12:28:38 UTC
(In reply to Jiri Belka from comment #3)
> (In reply to Atin Mukherjee from comment #2)
> > Are you running a heterogeneous cluster? In that case, this is expected as
> > CLI is not backward compatible.
> 
> What do you mean 'heterogeneous cluster'? Different version on client and
> server?

If you are referring cli (/sbin/gluster) as client then the answer is yes.

Comment 5 Jiri Belka 2016-07-13 17:08:23 UTC
Yep, feel free to close as not a bug if this compat is mandatory. Thx!


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