Re: [Engine-devel] NPE during addStorageServer command

2013-02-06 Thread Sahina Bose
Looking at the code, it looks like you need a Storage helper called 
GLUSTERFSStorageHelper in package org.ovirt.engine.core.bll.storage. The 
NPE seems to be because the Storage helper is null for the storage type.


On 02/06/2013 04:42 PM, Deepak C Shetty wrote:

Hi All,
   I am trying to compile ovirt engine after applying sharad's 
glusterfs domain support patches @
http://gerrit.ovirt.org/#/q/project:ovirt-engine+branch:master+topic:glusterfs,n,z 



After compiling, deploying the engine ( by following the steps in 
wiki.ovirt.org/Building_Ovirt_Engine )
I connect to the weadmin GUI, add a VDSM host ( this is my own vdsm 
host with VDSM glsuter domain support ) and the host is Up state.


Then I select New SD-None in DC - select my vdsm host-provide the 
args (remote path = volfileserver:volume, vfstype=glusterfs, mount = 
left blank) and click on OK


I see NPE in the engine side during addStorageServer cmd ( IIUC ) and 
then engine tries to send disconnectStorageServer, which reaches my 
VDSM host and it throws a excp, since the domain is not mounted at all.


I have captured the logs on the engien and vdsm side and attached here.

I am looking for some help on why the NPE is being seen on the engien 
side during adding a new SD ?


thanx,
deepak



___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] NPE during addStorageServer command

2013-02-06 Thread Yair Zaslavsky
- Original Message -

 From: Sahina Bose sab...@redhat.com
 To: engine-devel@ovirt.org
 Sent: Wednesday, February 6, 2013 1:25:05 PM
 Subject: Re: [Engine-devel] NPE during addStorageServer command

 Looking at the code, it looks like you need a Storage helper called
 GLUSTERFSStorageHelper in package org.ovirt.engine.core.bll.storage.
 The NPE seems to be because the Storage helper is null for the
 storage type.
 Corret, this is based on reflection - if you have an enum literal of
 X then you must have an XStorageHelper, even if it has no meaningful
 functionality of its own (as in the case of POSIXFSStorageHelper). I
 assume such class can extend BaseFsStorageHelper
 I

 9
 On 02/06/2013 04:42 PM, Deepak C Shetty wrote:

  Hi All,
 
  I am trying to compile ovirt engine after applying sharad's
  glusterfs
  domain support patches @
 
  http://gerrit.ovirt.org/#/q/project:ovirt-engine+branch:master+topic:glusterfs,n,z
 

  After compiling, deploying the engine ( by following the steps in
  wiki.ovirt.org/Building_Ovirt_Engine )
 
  I connect to the weadmin GUI, add a VDSM host ( this is my own vdsm
  host with VDSM glsuter domain support ) and the host is Up state.
 

  Then I select New SD-None in DC - select my vdsm host-provide
  the
  args (remote path = volfileserver:volume, vfstype=glusterfs, mount
  = left blank) and click on OK
 

  I see NPE in the engine side during addStorageServer cmd ( IIUC )
  and
  then engine tries to send disconnectStorageServer, which reaches my
  VDSM host and it throws a excp, since the domain is not mounted at
  all.
 

  I have captured the logs on the engien and vdsm side and attached
  here.
 

  I am looking for some help on why the NPE is being seen on the
  engien
  side during adding a new SD ?
 

  thanx,
 
  deepak
 

  ___
 
  Engine-devel mailing list Engine-devel@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/engine-devel
 
 ___
 Engine-devel mailing list
 Engine-devel@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/engine-devel
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] NPE during addStorageServer command

2013-02-06 Thread Sahina Bose


On 02/06/2013 05:36 PM, Shireesh Anjal wrote:

On 02/06/2013 04:55 PM, Sahina Bose wrote:
Looking at the code, it looks like you need a Storage helper called 
GLUSTERFSStorageHelper in package org.ovirt.engine.core.bll.storage. 


Which is introduced by Sharad's this patch: http://gerrit.ovirt.org/8834
I guess you don't have this patch in your local repository.
In this patch, you will need to rename the file as it's case sensitive 
on linux- GlusterFsStorageHelper should be GLUSTERFSStorageHelper.


Hope this helps,
cheers
sahina


The NPE seems to be because the Storage helper is null for the 
storage type.


On 02/06/2013 04:42 PM, Deepak C Shetty wrote:

Hi All,
   I am trying to compile ovirt engine after applying sharad's 
glusterfs domain support patches @
http://gerrit.ovirt.org/#/q/project:ovirt-engine+branch:master+topic:glusterfs,n,z 



After compiling, deploying the engine ( by following the steps in 
wiki.ovirt.org/Building_Ovirt_Engine )
I connect to the weadmin GUI, add a VDSM host ( this is my own vdsm 
host with VDSM glsuter domain support ) and the host is Up state.


Then I select New SD-None in DC - select my vdsm host-provide the 
args (remote path = volfileserver:volume, vfstype=glusterfs, mount 
= left blank) and click on OK


I see NPE in the engine side during addStorageServer cmd ( IIUC ) 
and then engine tries to send disconnectStorageServer, which reaches 
my VDSM host and it throws a excp, since the domain is not mounted 
at all.


I have captured the logs on the engien and vdsm side and attached here.

I am looking for some help on why the NPE is being seen on the 
engien side during adding a new SD ?


thanx,
deepak



___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel




___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel




___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel