← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1732835] Re: Stage call fails with TypeError

 

Reviewed:  https://review.openstack.org/520945
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=ef5742cabb0652be513058939398208737a877cf
Submitter: Zuul
Branch:    master

commit ef5742cabb0652be513058939398208737a877cf
Author: Abhishek Kekane <akekane@xxxxxxxxxx>
Date:   Fri Nov 17 06:28:19 2017 +0000

    Fix unstage after staging store denies write
    
    If store_backend denies writing to store then glance_store will raise
    'StorageWriteDenied' error. After catching this exception at glance
    side, unstage call fails with TypeError as it requires 3 arguments
    and only two were provided.
    
    Passed 'staging_store' argument to _unstage call for correcting the
    same.
    
    Change-Id: I6d3d1b304e84fbfc1d653b3640ed92082f5b11cd
    Closes-Bug: #1732835


** Changed in: glance
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1732835

Title:
  Stage call fails with TypeError

Status in Glance:
  Fix Released

Bug description:
  If store_backend denies writing to store then glance_store will raise 'StorageWriteDenied' error.
  After catching this exception at glance side, unstage call [1] will fail with TypeError as it requires 3 arguments and only two were provided.

  Actual call:
  self._unstage(image_repo, image)

  Expected call:
  self._unstage(image_repo, image, staging_store)

  [1]
  https://github.com/openstack/glance/blob/master/glance/api/v2/image_data.py#L335

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


References