[Yahoo-eng-team] [Bug 1282185] Re: Unable to edit metadata with key that contains forward slash (/)

2014-02-26 Thread David Koo
Hi Justin, This is not a bug. According to the JSON-pointer RFC (rfc6901): Because the characters '~' (%x7E) and '/' (%x2F) have special meanings in JSON Pointer, '~' needs to be encoded as '~0' and '/' needs to be encoded as '~1' when these characters appear in a reference token. **

[Yahoo-eng-team] [Bug 1284523] [NEW] Log messages should be passed to the underscore function to prepare for translation

2014-02-25 Thread David Koo
Public bug reported: Log messages should be passed to the _() function to prepare them for translation. Raising this "bug" for the sake of patchset: https://review.openstack.org/#/c/75832/ ** Affects: glance Importance: Undecided Status: New ** Tags: i18n -- You received this b

[Yahoo-eng-team] [Bug 1282437] [NEW] Glance server PATCH operations should use 0-based indices for location entries

2014-02-20 Thread David Koo
: Undecided Assignee: David Koo (kpublicmail) Status: In Progress ** Changed in: glance Assignee: (unassigned) => David Koo (kpublicmail) ** Changed in: glance Status: New => In Progress -- You received this bug notification because you are a member of Yahoo! Engin

[Yahoo-eng-team] [Bug 1281453] [NEW] Replace exception "re-raises" with excutils.save_and_reraise_exception()

2014-02-18 Thread David Koo
Public bug reported: There are quite a few places in the Glance code where exceptions are re- raised: try: some_operation() except FooException as e: do_something1() raise except BarException as e: do_something2() raise These places should use the excutils.save_and_rer

[Yahoo-eng-team] [Bug 1273087] [NEW] Image status stuck at 'saving' when an upload fails using v2 APIs

2014-01-26 Thread David Koo
Public bug reported: Step 1: Create an empty image (using v1 or v2 - doesn't matter). glance image-show will show the image status as "queued". Step 2: Upload an image file for the image, but cancel the upload midway. glance image-show will show the image status as "saving" even though

[Yahoo-eng-team] [Bug 1265446] [NEW] v2 upload returns '500' when quota exceeded on local filesystem storage

2014-01-01 Thread David Koo
-H 'User-Agent: python-glanceclient' \ --data-binary @$HOME/testImg.qcow2 http://127.0.0.1:9292/v2/images/$img_id/file HTTP/1.1 100 Continue HTTP/1.1 500 Internal Server Error Content-Type: text/plain Content-Length: 0 Date: Thu, 02 Jan 2014 07:27:26 GMT Connection: close ** Affects

[Yahoo-eng-team] [Bug 1264639] [NEW] Glance v1 unit test code can do with some refactoring

2013-12-28 Thread David Koo
action item to track the review comment for https://review.openstack.org/#/c/64079/4 raised by Steve Kowalik. ** Affects: glance Importance: Undecided Assignee: David Koo (kpublicmail) Status: In Progress ** Changed in: glance Assignee: (unassigned) => David Koo (kpublicm

[Yahoo-eng-team] [Bug 1264428] [NEW] Incorrect URL requested in Glance v1 API test_get_images_unauthorized test

2013-12-26 Thread David Koo
** Affects: glance Importance: Undecided Assignee: David Koo (kpublicmail) Status: In Progress ** Changed in: glance Assignee: (unassigned) => David Koo (kpublicmail) ** Changed in: glance Status: New => In Progress -- You received this bug notification b

[Yahoo-eng-team] [Bug 1264029] [NEW] Glance API layer doesn't catch some store exceptions leading to 500 errors

2013-12-24 Thread David Koo
tions raised by the lower layers so that the user never gets to see a 500 error. ** Affects: glance Importance: Undecided Assignee: David Koo (kpublicmail) Status: In Progress ** Changed in: glance Assignee: (unassigned) => David Koo (kpublicmail) ** Changed in: gla

[Yahoo-eng-team] [Bug 1263639] [NEW] glance/tests/unit/test_migrations.py does not calculate the tmp db path properly for sqlite

2013-12-23 Thread David Koo
which is in /tmp/test_migrations.db) the test finds that the DB hasn't been reset and so fails. The fix for this should be not to strip all leading "/"s from the "path" component of the result of step (1) but rather to just strip the first leading "/". ** Affects: