Activity log for bug #1308413

Date Who What changed Old value New value Message
2014-04-16 08:54:28 Erno Kuvaja bug added bug
2014-04-16 09:43:34 Erno Kuvaja bug added subscriber Stuart McLaren
2014-04-16 10:11:54 Stuart McLaren summary TENANT2 can see the image belonging to TENANT1 while using v2 api with registry TENANT2 can list the image belonging to TENANT1 while using v2 api with registry
2014-04-16 10:23:19 Thierry Carrez bug task added ossa
2014-04-16 10:23:27 Thierry Carrez ossa: status New Incomplete
2014-04-17 12:46:33 Stuart McLaren glance: status New Invalid
2014-04-17 14:03:48 Erno Kuvaja bug added subscriber Flavio Percoco
2014-04-18 07:27:21 Flavio Percoco glance: status Invalid Confirmed
2014-04-18 07:44:11 Flavio Percoco glance: status Confirmed Invalid
2014-04-18 10:00:44 Erno Kuvaja summary TENANT2 can list the image belonging to TENANT1 while using v2 api with registry Missing x-tenant-id header to registry will return all images while using v2 api with registry
2014-04-18 10:02:53 Erno Kuvaja description $ ./run_tests.sh --subunit glance.tests.functional.v2.test_images.TestImages.test_permissions Running `tools/with_venv.sh python -m glance.openstack.common.lockutils python setup.py testr --testr-args='--subunit --concurrency 1 --subunit glance.tests.functional.v2.test_images.TestImages.test_permissions'` glance.tests.functional.v2.test_images.TestImages test_permissions FAIL Slowest 1 tests took 12.91 secs: glance.tests.functional.v2.test_images.TestImages test_permissions 12.91 ====================================================================== FAIL: glance.tests.functional.v2.test_images.TestImages.test_permissions ---------------------------------------------------------------------- Traceback (most recent call last): _StringException: Traceback (most recent call last): File "/home/ubuntu/glance/glance/tests/functional/v2/test_images.py", line 488, in test_permissions self.assertEqual(0, len(images)) File "/home/ubuntu/glance/.venv/local/lib/python2.7/site-packages/testtools/testcase.py", line 321, in assertEqual self.assertThat(observed, matcher, message) File "/home/ubuntu/glance/.venv/local/lib/python2.7/site-packages/testtools/testcase.py", line 406, in assertThat raise mismatch_error MismatchError: 0 != 1 Ran 2 tests in 26.407s FAILED (failures=1) 482 # TENANT2 should not see the image in their list 483 path = self._url('/v2/images') 484 headers = self._headers({'X-Tenant-Id': TENANT2}) 485 response = requests.get(path, headers=headers) 486 self.assertEqual(200, response.status_code) 487 images = jsonutils.loads(response.text)['images'] 488 self.assertEqual(0, len(images)) $ ./run_tests.sh --subunit glance.tests.functional.v2.test_images.TestImages.test_permissions Running `tools/with_venv.sh python -m glance.openstack.common.lockutils python setup.py testr --testr-args='--subunit --concurrency 1 --subunit glance.tests.functional.v2.test_images.TestImages.test_permissions'` glance.tests.functional.v2.test_images.TestImages     test_permissions FAIL Slowest 1 tests took 12.91 secs: glance.tests.functional.v2.test_images.TestImages     test_permissions 12.91 ====================================================================== FAIL: glance.tests.functional.v2.test_images.TestImages.test_permissions ---------------------------------------------------------------------- Traceback (most recent call last): _StringException: Traceback (most recent call last):   File "/home/ubuntu/glance/glance/tests/functional/v2/test_images.py", line 488, in test_permissions     self.assertEqual(0, len(images))   File "/home/ubuntu/glance/.venv/local/lib/python2.7/site-packages/testtools/testcase.py", line 321, in assertEqual     self.assertThat(observed, matcher, message)   File "/home/ubuntu/glance/.venv/local/lib/python2.7/site-packages/testtools/testcase.py", line 406, in assertThat     raise mismatch_error MismatchError: 0 != 1 Ran 2 tests in 26.407s FAILED (failures=1)   482 # TENANT2 should not see the image in their list   483 path = self._url('/v2/images')   484 headers = self._headers({'X-Tenant-Id': TENANT2})   485 response = requests.get(path, headers=headers)   486 self.assertEqual(200, response.status_code)   487 images = jsonutils.loads(response.text)['images']   488 self.assertEqual(0, len(images)) The reason only one image seen by wrong tenant is purely because this test has populated glance only with one image. Missing x-tenant-id header in the GET request made to registry server listing images will return all images.
2014-04-18 10:03:02 Erno Kuvaja summary Missing x-tenant-id header to registry will return all images while using v2 api with registry Missing x-tenant-id header to registry will return list of all images while using v2 api with registry
2014-04-18 11:49:17 Thierry Carrez glance: status Invalid Incomplete
2014-04-22 14:26:48 Thierry Carrez information type Private Security Public
2014-04-22 14:26:57 Thierry Carrez ossa: status Incomplete Won't Fix
2014-09-12 12:36:20 Erno Kuvaja glance: status Incomplete Invalid