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