Re: [ovirt-devel] python path conflicts issues while running python scripts from vdsm verbs

2016-12-02 Thread Nir Soffer
בתאריך 2 בדצמ׳ 2016 10:04 לפנה״צ,‏ "Dan Kenigsberg" כתב: On Thu, Dec 01, 2016 at 11:32:07PM -0500, Ramesh Nachimuthu wrote: > Thank you all for helping me in this issue. Finally vdsm.gluster > modules are moved python site-packages. > Yay! There's a bit more work to be done:

Re: [ovirt-devel] python path conflicts issues while running python scripts from vdsm verbs

2016-12-02 Thread Dan Kenigsberg
On Thu, Dec 01, 2016 at 11:32:07PM -0500, Ramesh Nachimuthu wrote: > Thank you all for helping me in this issue. Finally vdsm.gluster > modules are moved python site-packages. > Yay! There's a bit more work to be done: https://travis-ci.org/oVirt/vdsm/jobs/180630800 is failing since its docker

Re: [ovirt-devel] python path conflicts issues while running python scripts from vdsm verbs

2016-12-01 Thread Dan Kenigsberg
On Thu, Dec 01, 2016 at 03:38:36AM -0500, Ramesh Nachimuthu wrote: > > > > > - Original Message - > > From: "Dan Kenigsberg" > > To: "Ramesh Nachimuthu" > > Cc: "Aravinda" , igoih...@redhat.com, "Nir Soffer" > >

Re: [ovirt-devel] python path conflicts issues while running python scripts from vdsm verbs

2016-12-01 Thread Ramesh Nachimuthu
- Original Message - > From: "Dan Kenigsberg" > To: "Ramesh Nachimuthu" > Cc: "Aravinda" , igoih...@redhat.com, "Nir Soffer" > , "devel" > , "Piotr Kliczewski" ,

Re: [ovirt-devel] python path conflicts issues while running python scripts from vdsm verbs

2016-11-30 Thread Aravinda
If vdsm setting PYTHONPATH as below export PYTHONPATH=/usr/share/vdsm:$PYTHONPATH change it as export PYTHONPATH=$PYTHONPATH:/usr/share/vdsm With this change, /usr/share/vdsm will not get first preference compared to /usr/lib*/python2.7/site-packages regards Aravinda On 11/30/2016

Re: [ovirt-devel] python path conflicts issues while running python scripts from vdsm verbs

2016-11-30 Thread Dan Kenigsberg
On Wed, Nov 30, 2016 at 03:49:02AM -0500, Ramesh Nachimuthu wrote: > > > > > - Original Message - > > From: "Dan Kenigsberg" > > To: "Aravinda" , igoih...@redhat.com > > Cc: "Ramesh Nachimuthu" , "Nir Soffer" > >

Re: [ovirt-devel] python path conflicts issues while running python scripts from vdsm verbs

2016-11-30 Thread Ramesh Nachimuthu
- Original Message - > From: "Dan Kenigsberg" > To: "Aravinda" , igoih...@redhat.com > Cc: "Ramesh Nachimuthu" , "Nir Soffer" > , "devel" , "Piotr > Kliczewski" ,

Re: [ovirt-devel] python path conflicts issues while running python scripts from vdsm verbs

2016-11-30 Thread Dan Kenigsberg
Regardless of the solution you plan to take, let it serve as a reminder about moving gluster bits out of /usr/share/vdsm/ and into site-packages. I am willing to pay the price of an ugly exception-handling in xmlrpc, if this is the cost. On Wed, Nov 30, 2016 at 11:27:06AM +0530, Aravinda wrote:

Re: [ovirt-devel] python path conflicts issues while running python scripts from vdsm verbs

2016-11-29 Thread Ramesh Nachimuthu
- Original Message - > From: "Nir Soffer" > To: "Ramesh Nachimuthu" > Cc: "devel" , "Dan Kenigsberg" , "Piotr > Kliczewski" , "Yaniv > Bronheim" , "Aravinda

Re: [ovirt-devel] python path conflicts issues while running python scripts from vdsm verbs

2016-11-29 Thread Nir Soffer
On Tue, Nov 29, 2016 at 3:26 PM, Ramesh Nachimuthu wrote: > Hi, > > I am trying to run a python script '/sbin/gluster-eventsapi' in vdsm verb > which internally imports some python modules from > /usr/lib/python2.7/site-packages/gluster/cliutils/. But it fails with the >