missing registry api tests for glance tasks
Bug #1364570 reported by
Nikhil Komawar
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Low
|
Nikhil Komawar |
Bug Description
Although, https:/
Changed in glance: | |
assignee: | nobody → nikhil komawar (nikhil-komawar) |
Changed in glance: | |
milestone: | none → juno-rc1 |
Changed in glance: | |
importance: | Undecided → Low |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | juno-rc1 → 2014.2 |
To post a comment you must log in.
The tests when added to test_registry module cause the following error:
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.functiona l.db.test_ registry. TestTasksDriver .test_task_ create ------- ------- ------- ------- ------- ------- ------- ------- ------- tests/functiona l/db/base. py", line 1546, in test_task_create api.task_ create( self.context, task_values) db/registry/ api.py" , line 54, in wrapper db/registry/ api.py" , line 273, in task_create task_create( values= values, session=session) common/ rpc.py" , line 274, in method_proxy request( item, **kw) common/ rpc.py" , line 256, in do_request error[' val']) 6e3a-4f5e- 89c6-2e28cb0029 26 is not visible
FAIL: glance.
-------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
File "glance/
task = self.db_
File "glance/
return func(client, *args, **kwargs)
File "glance/
return client.
File "glance/
return self.do_
File "glance/
raise exc_cls(
Forbidden: Forbidding request, task 66b83163-
The root cause for this is the different request owner when making registry api calls and when creating tasks:- db.sqlalchemy. api [-] owner user, tenant user, task owner cc724434- 02df-4bc4- 98ee-8c052e35f6 f2
2014-09-02 16:45:05,333 INFO 2014-09-02 16:45:05.308 84135 WARNING glance.
Either the task tests for db.base are not setup correctly (as per the similar images tests) or there is something wrong about the way request is being made. Will do a bit more digging soon.