<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 25, 2016 at 10:47 AM, Ramesh Nachimuthu <span dir="ltr">&lt;<a href="mailto:rnachimu@redhat.com" target="_blank">rnachimu@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
<br>
<br>
----- Original Message -----<br>
&gt; From: &quot;Piotr Kliczewski&quot; &lt;<a href="mailto:pkliczew@redhat.com">pkliczew@redhat.com</a>&gt;<br>
&gt; To: &quot;Ramesh Nachimuthu&quot; &lt;<a href="mailto:rnachimu@redhat.com">rnachimu@redhat.com</a>&gt;<br>
&gt; Cc: &quot;devel&quot; &lt;<a href="mailto:devel@ovirt.org">devel@ovirt.org</a>&gt;, &quot;Dan Kenigsberg&quot; &lt;<a href="mailto:danken@redhat.com">danken@redhat.com</a>&gt;, &quot;Yaniv Bronheim&quot; &lt;<a href="mailto:ybronhei@redhat.com">ybronhei@redhat.com</a>&gt;<br>
&gt; Sent: Wednesday, May 25, 2016 1:46:45 PM<br>
&gt; Subject: Re: Gluster verbs are not working in latest VDSM build<br>
&gt;<br>
&gt; Ramesh,<br>
&gt;<br>
&gt; In Bridge.py we only load gluster schema when:<br>
&gt;<br>
&gt;         if _glusterEnabled:<br>
&gt;             paths.append(vdsmapi.find_schema(&#39;vdsm-api-gluster&#39;))<br>
&gt;<br>
&gt; which is determine by:<br>
&gt;<br>
&gt; try:<br>
&gt;     import gluster.apiwrapper as gapi<br>
&gt;     import gluster.exception as ge<br>
&gt;     _glusterEnabled = True<br>
&gt; except ImportError:<br>
&gt;     _glusterEnabled = False<br>
&gt;<br>
<br>
</span>This import is failing since gluster modules are not yet moved to site-packages. Will this be fixed by Yaniv&#39;s patch <a href="https://gerrit.ovirt.org/#/c/57530/" rel="noreferrer" target="_blank">https://gerrit.ovirt.org/#/c/57530/</a><br>
<span class=""><br></span></blockquote><div><br></div><div>The issue should be fixed by above patch. The api would not work if the packages are not there anyway.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
&gt; New yml schema should be available in<br>
&gt; /usr/lib/python2.7/site-packages/vdsm/rpc/vdsm-api-gluster.yml<br>
&gt;<br>
<br>
</span>yml schema is available at /usr/lib/python2.7/site-packages/vdsm/rpc/vdsm-api-gluster.yml<br>
<br>
[root@dhcp42-217 rpc]# ls /usr/lib/python2.7/site-packages/vdsm/rpc/vdsm-api-gluster.yml<br>
/usr/lib/python2.7/site-packages/vdsm/rpc/vdsm-api-gluster.yml<br>
[root@dhcp42-217 rpc]#<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Piotr<br>
&gt;<br>
&gt; On Wed, May 25, 2016 at 9:37 AM, Ramesh Nachimuthu &lt;<a href="mailto:rnachimu@redhat.com">rnachimu@redhat.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt;   None of the Gluster verbs are working in the new VDSM build. I see<br>
&gt; &gt; following error in vdsm.log when I try &#39; vdsClient -s 0  glusterHostsList&#39;.<br>
&gt; &gt; I am not able to create a Cluster with Gluster service in oVirt. Please<br>
&gt; &gt; help.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; jsonrpc.Executor/5::DEBUG::2016-05-25<br>
&gt; &gt; 12:53:03,790::__init__::510::jsonrpc.JsonRpcServer::(_serveRequest) Calling<br>
&gt; &gt; &#39;GlusterHost.list&#39; in bridge with {}<br>
&gt; &gt; jsonrpc.Executor/5::ERROR::2016-05-25<br>
&gt; &gt; 12:53:03,791::executor::193::Executor::(_execute_task) Unhandled exception<br>
&gt; &gt; in Task(callable=&lt;functools.partial object at 0x5b20368&gt;, timeout=None)<br>
&gt; &gt; Traceback (most recent call last):<br>
&gt; &gt;   File &quot;/usr/lib/python2.7/site-packages/vdsm/executor.py&quot;, line 191, in<br>
&gt; &gt; _execute_task<br>
&gt; &gt;     task.callable()<br>
&gt; &gt;   File &quot;/usr/lib/python2.7/site-packages/yajsonrpc/__init__.py&quot;, line 512,<br>
&gt; &gt; in _serveRequest<br>
&gt; &gt;     method = self._bridge.dispatch(req.method)<br>
&gt; &gt;   File &quot;/usr/lib/python2.7/site-packages/vdsm/rpc/Bridge.py&quot;, line 102, in<br>
&gt; &gt; dispatch<br>
&gt; &gt;     self._schema.get_method(className, methodName)<br>
&gt; &gt;   File &quot;/usr/lib/python2.7/site-packages/api/vdsmapi.py&quot;, line 124, in<br>
&gt; &gt; get_method<br>
&gt; &gt;     raise MethodNotFound(verb_name)<br>
&gt; &gt; MethodNotFound: GlusterHost.list<br>
&gt; &gt;<br>
&gt; &gt; VDSM Packages installed:<br>
&gt; &gt; [root@dhcp42-217 ~]# rpm -qa|grep vdsm<br>
&gt; &gt; vdsm-api-4.18.0-43.git6f7fc83.el7.centos.noarch<br>
&gt; &gt; vdsm-cli-4.18.0-43.git6f7fc83.el7.centos.noarch<br>
&gt; &gt; vdsm-python-4.18.0-43.git6f7fc83.el7.centos.noarch<br>
&gt; &gt; vdsm-jsonrpc-4.18.0-43.git6f7fc83.el7.centos.noarch<br>
&gt; &gt; vdsm-4.18.0-43.git6f7fc83.el7.centos.x86_64<br>
&gt; &gt; vdsm-gluster-4.18.0-43.git6f7fc83.el7.centos.noarch<br>
&gt; &gt; vdsm-infra-4.18.0-43.git6f7fc83.el7.centos.noarch<br>
&gt; &gt; vdsm-xmlrpc-4.18.0-43.git6f7fc83.el7.centos.noarch<br>
&gt; &gt; vdsm-yajsonrpc-4.18.0-43.git6f7fc83.el7.centos.noarch<br>
&gt; &gt; vdsm-hook-vmfex-dev-4.18.0-43.git6f7fc83.el7.centos.noarch<br>
&gt; &gt; [root@dhcp42-217 ~]#<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; I have attached the vdsm log here.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div></div>