← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1173017] Re: No cleanup done when file transfer fails with powervm driver

 

** Changed in: nova/grizzly
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1173017

Title:
  No cleanup done when file transfer fails with powervm driver

Status in OpenStack Compute (Nova):
  Fix Released
Status in OpenStack Compute (nova) grizzly series:
  Fix Released

Bug description:
  When deploye one instance with powervm driver ,  it will transfer
  image file to host , and l leave the file on host when image file
  transfer fails . Need clean the file  in this situation .

  see https://github.com/openstack/nova/blob/master/nova/virt/powervm/blockdev.py#L423
              if not output:
                  LOG.error(_("Unable to get checksum"))
                  raise exception.PowerVMFileTransferFailed()
              if source_cksum != output.split(' ')[0]:
                  LOG.error(_("Image checksums do not match"))
                  raise exception.PowerVMFileTransferFailed()

  We need cleanup the  failed  file before raising exception.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1173017/+subscriptions