Bug 1030514

Summary: xml is being displayed for every shell command
Product: Red Hat Gluster Storage Reporter: Dustin Tsang <dtsang>
Component: rhsc-cliAssignee: Shubhendu Tripathi <shtripat>
Status: CLOSED ERRATA QA Contact: Dustin Tsang <dtsang>
Severity: high Docs Contact:
Priority: medium    
Version: 2.1CC: dpati, dtsang, knarra, mmahoney, mmccune, pprakash, ssampat
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 2.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cb8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-25 08:03:56 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:

Description Dustin Tsang 2013-11-14 15:36:39 UTC
Description of problem:

Xml should not be displayed for every shell command.

This will be a significant change to our cli automation suite.

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

How reproducible:
every time

Steps to Reproduce:
1. in rhsc create 2 node cluster
2. log in to rhsc-shell
3. list hosts

Actual results:

<?xml version="1.0" ?>
<keyValuePair>
    <host href="/api/hosts/a880b0b7-86bf-4e87-8bda-69623b2bfbdc" id="a880b0b7-86bf-4e87-8bda-69623b2bfbdc">
        <actions>
            <link href="/api/hosts/a880b0b7-86bf-4e87-8bda-69623b2bfbdc/forceselectspm" rel="forceselectspm"/>
            <link href="/api/hosts/a880b0b7-86bf-4e87-8bda-69623b2bfbdc/iscsilogin" rel="iscsilogin"/>
            <link href="/api/hosts/a880b0b7-86bf-4e87-8bda-69623b2bfbdc/iscsidiscover" rel="iscsidiscover"/>
            <link href="/api/hosts/a880b0b7-86bf-4e87-8bda-69623b2bfbdc/commitnetconfig" rel="commitnetconfig"/>
            <link href="/api/hosts/a880b0b7-86bf-4e87-8bda-69623b2bfbdc/approve" rel="approve"/>
            <link href="/api/hosts/a880b0b7-86bf-4e87-8bda-69623b2bfbdc/fence" rel="fence"/>
            <link href="/api/hosts/a880b0b7-86bf-4e87-8bda-69623b2bfbdc/install" rel="install"/>
            <link href="/api/hosts/a880b0b7-86bf-4e87-8bda-69623b2bfbdc/deactivate" rel="deactivate"/>
            <link href="/api/hosts/a880b0b7-86bf-4e87-8bda-69623b2bfbdc/activate" rel="activate"/>
        </actions>
        <name>server23</name>
        <link href="/api/hosts/a880b0b7-86bf-4e87-8bda-69623b2bfbdc/storage" rel="storage"/>
        <link href="/api/hosts/a880b0b7-86bf-4e87-8bda-69623b2bfbdc/nics" rel="nics"/>
        <link href="/api/hosts/a880b0b7-86bf-4e87-8bda-69623b2bfbdc/tags" rel="tags"/>
        <link href="/api/hosts/a880b0b7-86bf-4e87-8bda-69623b2bfbdc/permissions" rel="permissions"/>
        <link href="/api/hosts/a880b0b7-86bf-4e87-8bda-69623b2bfbdc/statistics" rel="statistics"/>
        <link href="/api/hosts/a880b0b7-86bf-4e87-8bda-69623b2bfbdc/hooks" rel="hooks"/>
        <address>10.70.37.158</address>
        <certificate>
            <organization>redhat.com</organization>
            <subject>O=redhat.com,CN=10.70.37.158</subject>
        </certificate>
        <status>
            <state>up</state>
        </status>
        <cluster href="/api/clusters/b72d56b4-1271-41dd-b119-d1e8671d325c" id="b72d56b4-1271-41dd-b119-d1e8671d325c"/>
        <port>54321</port>
        <type>rhel</type>
        <storage_manager priority="5">false</storage_manager>
        <version major="4" full_version="vdsm-4.13.0-21.el6rhs" build="0" minor="13" revision="0"/>
        <hardware_information>
            <manufacturer>Red Hat</manufacturer>
            <version>RHEL 6.4.0 PC</version>
            <serial_number>Not Specified</serial_number>
            <product_name>KVM</product_name>
            <uuid>ecddce47-5145-b8f0-d8ea-af0ad29fdfe5</uuid>
            <family>Red Hat Enterprise Linux</family>
        </hardware_information>
        <power_management type="apc">
            <enabled>false</enabled>
            <options/>
        </power_management>
        <ksm>
            <enabled>false</enabled>
        </ksm>
        <transparent_hugepages>
            <enabled>true</enabled>
        </transparent_hugepages>
        <iscsi>
            <initiator>iqn.1994-05.com.redhat:cf11676a6228</initiator>
        </iscsi>
        <ssh>
            <port>22</port>
            <fingerprint>89:92:2b:37:d1:88:57:da:72:c7:74:ae:5c:83:8c:2a</fingerprint>
        </ssh>
        <cpu>
            <topology cores="1" threads="1" sockets="1"/>
            <name>QEMU Virtual CPU version (cpu64-rhel6)</name>
            <speed>2000.</speed>
        </cpu>
        <memory>2103443456</memory>
        <max_scheduling_memory>1698693120</max_scheduling_memory>
        <summary>
            <active>0</active>
            <migrating>0</migrating>
            <total>0</total>
        </summary>
        <os type="RHEL">
            <version full_version="6Server - 6.4.0.4.el6"/>
        </os>
        <libvirt_version major="0" full_version="libvirt-0.10.2-18.el6_4.13" build="2" minor="10" revision="0"/>
    </host>
    <host href="/api/hosts/11570f39-6d1a-4c47-b9e3-16126a96c773" id="11570f39-6d1a-4c47-b9e3-16126a96c773">
        <actions>
            <link href="/api/hosts/11570f39-6d1a-4c47-b9e3-16126a96c773/forceselectspm" rel="forceselectspm"/>
            <link href="/api/hosts/11570f39-6d1a-4c47-b9e3-16126a96c773/iscsilogin" rel="iscsilogin"/>
            <link href="/api/hosts/11570f39-6d1a-4c47-b9e3-16126a96c773/iscsidiscover" rel="iscsidiscover"/>
            <link href="/api/hosts/11570f39-6d1a-4c47-b9e3-16126a96c773/commitnetconfig" rel="commitnetconfig"/>
            <link href="/api/hosts/11570f39-6d1a-4c47-b9e3-16126a96c773/approve" rel="approve"/>
            <link href="/api/hosts/11570f39-6d1a-4c47-b9e3-16126a96c773/fence" rel="fence"/>
            <link href="/api/hosts/11570f39-6d1a-4c47-b9e3-16126a96c773/install" rel="install"/>
            <link href="/api/hosts/11570f39-6d1a-4c47-b9e3-16126a96c773/deactivate" rel="deactivate"/>
            <link href="/api/hosts/11570f39-6d1a-4c47-b9e3-16126a96c773/activate" rel="activate"/>
        </actions>
        <name>server24</name>
        <link href="/api/hosts/11570f39-6d1a-4c47-b9e3-16126a96c773/storage" rel="storage"/>
        <link href="/api/hosts/11570f39-6d1a-4c47-b9e3-16126a96c773/nics" rel="nics"/>
        <link href="/api/hosts/11570f39-6d1a-4c47-b9e3-16126a96c773/tags" rel="tags"/>
        <link href="/api/hosts/11570f39-6d1a-4c47-b9e3-16126a96c773/permissions" rel="permissions"/>
        <link href="/api/hosts/11570f39-6d1a-4c47-b9e3-16126a96c773/statistics" rel="statistics"/>
        <link href="/api/hosts/11570f39-6d1a-4c47-b9e3-16126a96c773/hooks" rel="hooks"/>
        <address>10.70.37.151</address>
        <certificate>
            <organization>redhat.com</organization>
            <subject>O=redhat.com,CN=10.70.37.151</subject>
        </certificate>
        <status>
            <state>up</state>
        </status>
        <cluster href="/api/clusters/b72d56b4-1271-41dd-b119-d1e8671d325c" id="b72d56b4-1271-41dd-b119-d1e8671d325c"/>
        <port>54321</port>
        <type>rhel</type>
        <storage_manager priority="5">false</storage_manager>
        <version major="4" full_version="vdsm-4.13.0-21.el6rhs" build="0" minor="13" revision="0"/>
        <hardware_information>
            <manufacturer>Red Hat</manufacturer>
            <version>RHEL 6.4.0 PC</version>
            <serial_number>Not Specified</serial_number>
            <product_name>KVM</product_name>
            <uuid>1f3d91b3-86d0-bd64-6643-db402b552024</uuid>
            <family>Red Hat Enterprise Linux</family>
        </hardware_information>
        <power_management type="apc">
            <enabled>false</enabled>
            <options/>
        </power_management>
        <ksm>
            <enabled>false</enabled>
        </ksm>
        <transparent_hugepages>
            <enabled>true</enabled>
        </transparent_hugepages>
        <iscsi>
            <initiator>iqn.1994-05.com.redhat:53aa7237493f</initiator>
        </iscsi>
        <ssh>
            <port>22</port>
            <fingerprint>e1:1a:7b:b7:a2:99:b5:50:93:08:e4:c6:1c:5d:c3:d6</fingerprint>
        </ssh>
        <cpu>
            <topology cores="1" threads="1" sockets="1"/>
            <name>QEMU Virtual CPU version (cpu64-rhel6)</name>
            <speed>2000.</speed>
        </cpu>
        <memory>2103443456</memory>
        <max_scheduling_memory>1698693120</max_scheduling_memory>
        <summary>
            <active>0</active>
            <migrating>0</migrating>
            <total>0</total>
        </summary>
        <os type="RHEL">
            <version full_version="6Server - 6.4.0.4.el6"/>
        </os>
        <libvirt_version major="0" full_version="libvirt-0.10.2-18.el6_4.13" build="2" minor="10" revision="0"/>
    </host>
</keyValuePair>

id         : a880b0b7-86bf-4e87-8bda-69623b2bfbdc
name       : server23

id         : 11570f39-6d1a-4c47-b9e3-16126a96c773
name       : server24



Expected results:
id         : a880b0b7-86bf-4e87-8bda-69623b2bfbdc
name       : server23

id         : 11570f39-6d1a-4c47-b9e3-16126a96c773
name       : server24

Additional info:

Comment 2 Dustin Tsang 2013-11-19 20:35:28 UTC
all the output above is being received from the cli. The xml should not be returned to the user.

Comment 3 Dusmant 2013-11-20 03:58:15 UTC
Submitter's extra input :

The XML is returned in ALL cli responses, which 1) is a major regression for end users 2) breaks ALL of our CLI automation tests which we are depending on for regression testing.

Note: The XML is also returned in all REST calls, but according to Dustin because it is XML it does pose an issue with parsing expected XML content.

Comment 4 Shubhendu Tripathi 2013-11-20 13:24:54 UTC
Comments from Aravinda - "It was a SDK fix. As per the ovirt wiki we need to use generateDS of 2.9a version only, but cb7 used different version of generateDS for code generation.:

Comment 6 errata-xmlrpc 2014-02-25 08:03:56 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.

http://rhn.redhat.com/errata/RHEA-2014-0208.html