summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSalvatore Orlando <salvatore.orlando@eu.citrix.com>2010-12-14 17:02:43 +0000
committerSalvatore Orlando <salvatore.orlando@eu.citrix.com>2010-12-14 17:02:43 +0000
commit1dfcd8e6cdd58a0737a8667f8d2b18190527657a (patch)
tree34c1af87998d9cc1fcf24691338bd2f67cf38d82 /plugins
parent41203e726fd3e43bcce7f800c6bf042e9dd70531 (diff)
downloadnova-1dfcd8e6cdd58a0737a8667f8d2b18190527657a.tar.gz
nova-1dfcd8e6cdd58a0737a8667f8d2b18190527657a.tar.xz
nova-1dfcd8e6cdd58a0737a8667f8d2b18190527657a.zip
nothing
Diffstat (limited to 'plugins')
-rw-r--r--plugins/xenapi/etc/xapi.d/plugins/objectstore8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/xenapi/etc/xapi.d/plugins/objectstore b/plugins/xenapi/etc/xapi.d/plugins/objectstore
index bc9e783cf..e748742b1 100644
--- a/plugins/xenapi/etc/xapi.d/plugins/objectstore
+++ b/plugins/xenapi/etc/xapi.d/plugins/objectstore
@@ -49,20 +49,26 @@ def is_vdi_pv(session,args):
pv=False
pv=with_vdi_in_dom0(session, vdi, False,
lambda dev: _is_vdi_pv('/dev/%s' % dev))
+ logging.debug("HERE - bye bye")
return pv
def _is_vdi_pv(dest):
logging.debug("Running pygrub against %s",dest)
output=os.popen('pygrub -qn %s' % dest)
+ logging.debug("HERE - 1")
pv=False
+ logging.debug("HERE - 2")
for line in output.readlines():
- logging.debug("line:",line)
+ #logging.debug("line:",line)
+ logging.debug("HERE - loop")
#try to find kernel string
m=re.search('(?<=kernel:)/.*(?:>)',line)
if (m<>None):
if m.group(0).find('xen')<>-1:
pv=True
+ logging.debug("HERE - 3")
logging.debug("PV:%d",pv)
+ logging.debug("HERE - 4")
return pv
def get_vdi(session, args):