ia64/xen-unstable

changeset 2136:05bd2a6ec4b2

bitkeeper revision 1.1159.6.4 (41177393RXYTn_RK_wu6NpLesN04YA)

Raise an error when vbd grow fails.
author mjw@wray-m-3.hpl.hp.com
date Mon Aug 09 12:52:35 2004 +0000 (2004-08-09)
parents 9c32df6c75a7
children 614fc165efa6 1157e187afb2
files tools/python/xen/xend/server/blkif.py
line diff
     1.1 --- a/tools/python/xen/xend/server/blkif.py	Mon Aug 09 12:30:34 2004 +0000
     1.2 +++ b/tools/python/xen/xend/server/blkif.py	Mon Aug 09 12:52:35 2004 +0000
     1.3 @@ -5,6 +5,7 @@ from twisted.internet import defer
     1.4  
     1.5  from xen.xend import sxp
     1.6  from xen.xend.XendLogging import log
     1.7 +from xen.xend.XendError import XendError
     1.8  
     1.9  import channel
    1.10  import controller
    1.11 @@ -193,13 +194,11 @@ class BlkifControllerFactory(controller.
    1.12          @type  d: Deferred or None
    1.13          """
    1.14          val = unpackMsg('blkif_be_vbd_grow_t', msg)
    1.15 -        # Check status?
    1.16  	status = val['status']
    1.17  	if status != BLKIF_BE_STATUS_OKAY:
    1.18 -            log.debug("Error: Adding extent to vbd failed! (device %x)",
    1.19 -		      val['extent.device'])
    1.20 -            # what to do here to abort????
    1.21 -
    1.22 +            raise XendError("Adding extent to vbd failed: device %x, error %d",
    1.23 +                            val['extent.device'],
    1.24 +                            status)
    1.25          if self.attached:
    1.26              if d:
    1.27                  d.callback(dev)