yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #22863
[Bug 1349147] Re: test_db_api unit tests fail with: UnexpectedMethodCallError: Unexpected method call get_session.__call__(use_slave=False) -> None
** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => juno-rc1
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1349147
Title:
test_db_api unit tests fail with: UnexpectedMethodCallError:
Unexpected method call get_session.__call__(use_slave=False) -> None
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
http://logs.openstack.org/62/104262/7/gate/gate-nova-
python27/3adf0e2/console.html
2014-07-25 16:27:18.188 | Traceback (most recent call last):
2014-07-25 16:27:18.188 | File "nova/tests/db/test_db_api.py", line 1236, in test_security_group_get_no_instances
2014-07-25 16:27:18.188 | security_group = db.security_group_get(self.ctxt, sid)
2014-07-25 16:27:18.188 | File "nova/db/api.py", line 1269, in security_group_get
2014-07-25 16:27:18.188 | columns_to_join)
2014-07-25 16:27:18.188 | File "nova/db/sqlalchemy/api.py", line 167, in wrapper
2014-07-25 16:27:18.188 | return f(*args, **kwargs)
2014-07-25 16:27:18.188 | File "nova/db/sqlalchemy/api.py", line 3668, in security_group_get
2014-07-25 16:27:18.188 | query = _security_group_get_query(context, project_only=True).\
2014-07-25 16:27:18.188 | File "nova/db/sqlalchemy/api.py", line 3635, in _security_group_get_query
2014-07-25 16:27:18.188 | read_deleted=read_deleted, project_only=project_only)
2014-07-25 16:27:18.189 | File "nova/db/sqlalchemy/api.py", line 237, in model_query
2014-07-25 16:27:18.189 | session = kwargs.get('session') or get_session(use_slave=use_slave)
2014-07-25 16:27:18.189 | File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 765, in __call__
2014-07-25 16:27:18.189 | return mock_method(*params, **named_params)
2014-07-25 16:27:18.189 | File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 1002, in __call__
2014-07-25 16:27:18.189 | expected_method = self._VerifyMethodCall()
2014-07-25 16:27:18.189 | File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 1049, in _VerifyMethodCall
2014-07-25 16:27:18.189 | expected = self._PopNextMethod()
2014-07-25 16:27:18.189 | File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 1035, in _PopNextMethod
2014-07-25 16:27:18.189 | raise UnexpectedMethodCallError(self, None)
2014-07-25 16:27:18.189 | UnexpectedMethodCallError: Unexpected method call get_session.__call__(use_slave=False) -> None
http://logstash.openstack.org/#eyJzZWFyY2giOiJtZXNzYWdlOlwiVW5leHBlY3RlZE1ldGhvZENhbGxFcnJvcjogVW5leHBlY3RlZCBtZXRob2QgY2FsbCBnZXRfc2Vzc2lvbi5fX2NhbGxfXyh1c2Vfc2xhdmU9RmFsc2UpIC0+IE5vbmVcIiBBTkQgcHJvamVjdDpcIm9wZW5zdGFjay9ub3ZhXCIgQU5EIHRhZ3M6XCJjb25zb2xlXCIiLCJmaWVsZHMiOltdLCJvZmZzZXQiOjAsInRpbWVmcmFtZSI6ImN1c3RvbSIsImdyYXBobW9kZSI6ImNvdW50IiwidGltZSI6eyJmcm9tIjoiMjAxNC0wNy0xM1QxNjo0MDo1NiswMDowMCIsInRvIjoiMjAxNC0wNy0yN1QxNjo0MDo1NiswMDowMCIsInVzZXJfaW50ZXJ2YWwiOiIwIn0sInN0YW1wIjoxNDA2NDc5MzkzMjc0LCJtb2RlIjoiIiwiYW5hbHl6ZV9maWVsZCI6IiJ9
8 hits in 2 weeks, check and gate, all failures, looks like it started
around 7/21.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1349147/+subscriptions
References