← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1732835] [NEW] Stage call fails with TypeError

 

Public bug reported:

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

** Affects: glance
     Importance: Undecided
     Assignee: Abhishek Kekane (abhishek-kekane)
         Status: New

** Changed in: glance
     Assignee: (unassigned) => Abhishek Kekane (abhishek-kekane)

-- 
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:
  New

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


Follow ups