requesting empty task list fails when using v2 api with registry
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
$ ./run_tests.sh --subunit glance.
Running `tools/with_venv.sh python -m glance.
glance.
test_
Slowest 1 tests took 12.51 secs:
glance.
test_
=======
FAIL: glance.
-------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
File "/home/
self.
File "/home/
self.
File "/home/
raise mismatch_error
MismatchError: 200 != 500
Ran 2 tests in 26.697s
FAILED (failures=1)
2014-04-16 08:56:22,297 INFO File "/home/
2014-04-16 08:56:22,297 INFO result = self.applicatio
2014-04-16 08:56:22,297 INFO File "/home/
2014-04-16 08:56:22,297 INFO resp = self.call_func(req, *args, **self.kwargs)
2014-04-16 08:56:22,297 INFO File "/home/
2014-04-16 08:56:22,297 INFO return self.func(req, *args, **kwargs)
2014-04-16 08:56:22,297 INFO File "glance/
2014-04-16 08:56:22,297 INFO response = req.get_
2014-04-16 08:56:22,297 INFO File "/home/
2014-04-16 08:56:22,297 INFO application, catch_exc_
2014-04-16 08:56:22,298 INFO File "/home/
2014-04-16 08:56:22,298 INFO app_iter = application(
2014-04-16 08:56:22,298 INFO File "/home/
2014-04-16 08:56:22,298 INFO resp = self.call_func(req, *args, **self.kwargs)
2014-04-16 08:56:22,298 INFO File "/home/
2014-04-16 08:56:22,298 INFO return self.func(req, *args, **kwargs)
2014-04-16 08:56:22,298 INFO File "glance/
2014-04-16 08:56:22,298 INFO response = req.get_
2014-04-16 08:56:22,298 INFO File "/home/
2014-04-16 08:56:22,298 INFO application, catch_exc_
2014-04-16 08:56:22,298 INFO File "/home/
2014-04-16 08:56:22,298 INFO app_iter = application(
2014-04-16 08:56:22,298 INFO File "/home/
2014-04-16 08:56:22,298 INFO resp = self.call_func(req, *args, **self.kwargs)
2014-04-16 08:56:22,298 INFO File "/home/
2014-04-16 08:56:22,299 INFO return self.func(req, *args, **kwargs)
2014-04-16 08:56:22,299 INFO File "glance/
2014-04-16 08:56:22,299 INFO response = req.get_
2014-04-16 08:56:22,299 INFO File "/home/
2014-04-16 08:56:22,299 INFO application, catch_exc_
2014-04-16 08:56:22,299 INFO File "/home/
2014-04-16 08:56:22,299 INFO app_iter = application(
2014-04-16 08:56:22,299 INFO File "/home/
2014-04-16 08:56:22,299 INFO return app(environ, start_response)
2014-04-16 08:56:22,299 INFO File "/home/
2014-04-16 08:56:22,299 INFO return resp(environ, start_response)
2014-04-16 08:56:22,299 INFO File "/home/
2014-04-16 08:56:22,299 INFO response = self.app(environ, start_response)
2014-04-16 08:56:22,299 INFO File "/home/
2014-04-16 08:56:22,299 INFO return resp(environ, start_response)
2014-04-16 08:56:22,299 INFO File "/home/
2014-04-16 08:56:22,300 INFO resp = self.call_func(req, *args, **self.kwargs)
2014-04-16 08:56:22,300 INFO File "/home/
2014-04-16 08:56:22,300 INFO return self.func(req, *args, **kwargs)
2014-04-16 08:56:22,300 INFO File "glance/
2014-04-16 08:56:22,300 INFO request, **action_args)
2014-04-16 08:56:22,300 INFO File "glance/
2014-04-16 08:56:22,300 INFO return method(*args, **kwargs)
2014-04-16 08:56:22,300 INFO File "glance/
2014-04-16 08:56:22,300 INFO filters)
2014-04-16 08:56:22,300 INFO File "glance/
2014-04-16 08:56:22,300 INFO tasks = self.task_
2014-04-16 08:56:22,300 INFO File "glance/
2014-04-16 08:56:22,300 INFO tasks = self.base.
2014-04-16 08:56:22,300 INFO File "glance/
2014-04-16 08:56:22,300 INFO return super(TaskRepoP
2014-04-16 08:56:22,300 INFO File "glance/
2014-04-16 08:56:22,301 INFO tasks = self.base.
2014-04-16 08:56:22,301 INFO File "glance/
2014-04-16 08:56:22,301 INFO db_api_tasks = self.db_
2014-04-16 08:56:22,301 INFO AttributeError: 'module' object has no attribute 'task_get_all'
67 # Task list should be empty
68 path = self._url(
69 response = requests.get(path, headers=
70 self.assertEqua
Changed in glance: | |
status: | New → Invalid |
Changed in glance: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | juno-2 → 2014.2 |
This test has been ran with change: https:/ /review. openstack. org/#/c/ 87726/