← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1255539] Re: --copy-from a non existent/accessible source should raise a 404 Not Found

 

** Changed in: glance
       Status: New => Invalid

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

Title:
  --copy-from a non existent/accessible source should raise a 404 Not
  Found

Status in OpenStack Image Registry and Delivery Service (Glance):
  Invalid

Bug description:
  Currently, when doing a --copy-from in v1 with a non-existent/non-
  accessible image url, two errors messages are logged :

  * From the stores themselves (get function) : Swift could not find image at URI. (in this specific case it was the Swift backend) 
  * From the v1/images.py (_upload function) : Copy from external source failed

  but the program processes normally and creates an actual image entry,
  without binary data.

  I think an HTTPNotFound exception should be raised and the image entry
  should not be created.

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