← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1336677] [NEW] nova.tests.db.test_db_api.SecurityGroupTestCase.test_security_group_get_no_instances failed in python2.7 unittest

 

Public bug reported:

http://logs.openstack.org/36/98036/6/check/gate-nova-
python27/3e5ee07/testr_results.html.gz


ft1.5430: nova.tests.db.test_db_api.SecurityGroupTestCase.test_security_group_get_no_instances_StringException: Empty attachments:
  stdout

pythonlogging:'': {{{
ERROR [nova.scheduler.driver] Exception during scheduler.run_instance
Traceback (most recent call last):
  File "nova/conductor/manager.py", line 607, in build_instances
    request_spec, filter_properties)
  File "nova/scheduler/rpcapi.py", line 107, in select_destinations
    request_spec=request_spec, filter_properties=filter_properties)
  File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/oslo/messaging/rpc/client.py", line 150, in call
    wait_for_reply=True, timeout=timeout)
  File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/oslo/messaging/transport.py", line 90, in _send
    timeout=timeout)
  File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/oslo/messaging/_drivers/impl_fake.py", line 166, in send
    return self._send(target, ctxt, message, wait_for_reply, timeout)
  File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/oslo/messaging/_drivers/impl_fake.py", line 161, in _send
    'No reply on topic %s' % target.topic)
MessagingTimeout: No reply on topic scheduler
WARNING [nova.scheduler.driver] Setting instance to ERROR state.
}}}

stderr: {{{
Traceback (most recent call last):
  File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 346, in fire_timers
    timer()
  File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/eventlet/hubs/timer.py", line 56, in __call__
    cb(*args, **kw)
  File "nova/utils.py", line 952, in wrapper
    return func(*args, **kwargs)
  File "nova/conductor/manager.py", line 611, in build_instances
    instance.uuid, request_spec)
  File "nova/scheduler/driver.py", line 63, in handle_schedule_error
    'task_state': None})
  File "nova/db/api.py", line 780, in instance_update_and_get_original
    columns_to_join=columns_to_join)
  File "nova/db/sqlalchemy/api.py", line 164, in wrapper
    return f(*args, **kwargs)
  File "nova/db/sqlalchemy/api.py", line 2229, in instance_update_and_get_original
    columns_to_join=columns_to_join)
  File "nova/db/sqlalchemy/api.py", line 2259, in _instance_update
    session = get_session()
  File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 765, in __call__
    return mock_method(*params, **named_params)
  File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 1002, in __call__
    expected_method = self._VerifyMethodCall()
  File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 1060, in _VerifyMethodCall
    raise UnexpectedMethodCallError(self, expected)
UnexpectedMethodCallError: Unexpected method call.  unexpected:-  expected:+
- get_session.__call__() -> None
+ get_session.__call__(use_slave=False) -> <sqlalchemy.orm.session.Session object at 0x7f028024f090>
}}}

Traceback (most recent call last):
  File "nova/tests/db/test_db_api.py", line 1237, in test_security_group_get_no_instances
    security_group = db.security_group_get(self.ctxt, sid)
  File "nova/db/api.py", line 1269, in security_group_get
    columns_to_join)
  File "nova/db/sqlalchemy/api.py", line 164, in wrapper
    return f(*args, **kwargs)
  File "nova/db/sqlalchemy/api.py", line 3658, in security_group_get
    query = _security_group_get_query(context, project_only=True).\
  File "nova/db/sqlalchemy/api.py", line 3625, in _security_group_get_query
    read_deleted=read_deleted, project_only=project_only)
  File "nova/db/sqlalchemy/api.py", line 234, in model_query
    session = kwargs.get('session') or get_session(use_slave=use_slave)
  File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 765, in __call__
    return mock_method(*params, **named_params)
  File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 1002, in __call__
    expected_method = self._VerifyMethodCall()
  File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 1049, in _VerifyMethodCall
    expected = self._PopNextMethod()
  File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 1035, in _PopNextMethod
    raise UnexpectedMethodCallError(self, None)
UnexpectedMethodCallError: Unexpected method call get_session.__call__(use_slave=False) -> None

** Affects: nova
     Importance: Undecided
         Status: New

-- 
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/1336677

Title:
  nova.tests.db.test_db_api.SecurityGroupTestCase.test_security_group_get_no_instances
  failed in python2.7 unittest

Status in OpenStack Compute (Nova):
  New

Bug description:
  http://logs.openstack.org/36/98036/6/check/gate-nova-
  python27/3e5ee07/testr_results.html.gz

  
  ft1.5430: nova.tests.db.test_db_api.SecurityGroupTestCase.test_security_group_get_no_instances_StringException: Empty attachments:
    stdout

  pythonlogging:'': {{{
  ERROR [nova.scheduler.driver] Exception during scheduler.run_instance
  Traceback (most recent call last):
    File "nova/conductor/manager.py", line 607, in build_instances
      request_spec, filter_properties)
    File "nova/scheduler/rpcapi.py", line 107, in select_destinations
      request_spec=request_spec, filter_properties=filter_properties)
    File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/oslo/messaging/rpc/client.py", line 150, in call
      wait_for_reply=True, timeout=timeout)
    File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/oslo/messaging/transport.py", line 90, in _send
      timeout=timeout)
    File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/oslo/messaging/_drivers/impl_fake.py", line 166, in send
      return self._send(target, ctxt, message, wait_for_reply, timeout)
    File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/oslo/messaging/_drivers/impl_fake.py", line 161, in _send
      'No reply on topic %s' % target.topic)
  MessagingTimeout: No reply on topic scheduler
  WARNING [nova.scheduler.driver] Setting instance to ERROR state.
  }}}

  stderr: {{{
  Traceback (most recent call last):
    File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 346, in fire_timers
      timer()
    File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/eventlet/hubs/timer.py", line 56, in __call__
      cb(*args, **kw)
    File "nova/utils.py", line 952, in wrapper
      return func(*args, **kwargs)
    File "nova/conductor/manager.py", line 611, in build_instances
      instance.uuid, request_spec)
    File "nova/scheduler/driver.py", line 63, in handle_schedule_error
      'task_state': None})
    File "nova/db/api.py", line 780, in instance_update_and_get_original
      columns_to_join=columns_to_join)
    File "nova/db/sqlalchemy/api.py", line 164, in wrapper
      return f(*args, **kwargs)
    File "nova/db/sqlalchemy/api.py", line 2229, in instance_update_and_get_original
      columns_to_join=columns_to_join)
    File "nova/db/sqlalchemy/api.py", line 2259, in _instance_update
      session = get_session()
    File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 765, in __call__
      return mock_method(*params, **named_params)
    File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 1002, in __call__
      expected_method = self._VerifyMethodCall()
    File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 1060, in _VerifyMethodCall
      raise UnexpectedMethodCallError(self, expected)
  UnexpectedMethodCallError: Unexpected method call.  unexpected:-  expected:+
  - get_session.__call__() -> None
  + get_session.__call__(use_slave=False) -> <sqlalchemy.orm.session.Session object at 0x7f028024f090>
  }}}

  Traceback (most recent call last):
    File "nova/tests/db/test_db_api.py", line 1237, in test_security_group_get_no_instances
      security_group = db.security_group_get(self.ctxt, sid)
    File "nova/db/api.py", line 1269, in security_group_get
      columns_to_join)
    File "nova/db/sqlalchemy/api.py", line 164, in wrapper
      return f(*args, **kwargs)
    File "nova/db/sqlalchemy/api.py", line 3658, in security_group_get
      query = _security_group_get_query(context, project_only=True).\
    File "nova/db/sqlalchemy/api.py", line 3625, in _security_group_get_query
      read_deleted=read_deleted, project_only=project_only)
    File "nova/db/sqlalchemy/api.py", line 234, in model_query
      session = kwargs.get('session') or get_session(use_slave=use_slave)
    File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 765, in __call__
      return mock_method(*params, **named_params)
    File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 1002, in __call__
      expected_method = self._VerifyMethodCall()
    File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 1049, in _VerifyMethodCall
      expected = self._PopNextMethod()
    File "/home/jenkins/workspace/gate-nova-python27/.tox/py27/local/lib/python2.7/site-packages/mox.py", line 1035, in _PopNextMethod
      raise UnexpectedMethodCallError(self, None)
  UnexpectedMethodCallError: Unexpected method call get_session.__call__(use_slave=False) -> None

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1336677/+subscriptions


Follow ups

References