Public bug reported:

By doing this:

tox -e py36 -- nova.tests.unit.test_rpc --until-failure

I'm able to trigger this setup failure:

nova.tests.unit.test_rpc.TestRPC.test_add_extra_exmods
------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    b'Traceback (most recent call last):'
    b'  File "/home/osboxes/git/nova/nova/tests/unit/test_rpc.py", line 54, in 
setUp'
    b'    super(TestRPC, self).setUp()'
    b'  File "/home/osboxes/git/nova/nova/test.py", line 238, in setUp'
    b"    group='oslo_messaging_notifications')"
    b'  File 
"/home/osboxes/git/nova/.tox/py36/lib/python3.6/site-packages/oslo_config/cfg.py",
 line 2041, in __inner'
    b'    result = f(self, *args, **kwargs)'
    b'  File 
"/home/osboxes/git/nova/.tox/py36/lib/python3.6/site-packages/oslo_config/cfg.py",
 line 2445, in set_default'
    b'    opt_info = self._get_opt_info(name, group)'
    b'  File 
"/home/osboxes/git/nova/.tox/py36/lib/python3.6/site-packages/oslo_config/cfg.py",
 line 2828, in _get_opt_info'
    b'    group = self._get_group(group)'
    b'  File 
"/home/osboxes/git/nova/.tox/py36/lib/python3.6/site-packages/oslo_config/cfg.py",
 line 2797, in _get_group'
    b'    raise NoSuchGroupError(group_name)'
    b'oslo_config.cfg.NoSuchGroupError: no such group 
[oslo_messaging_notifications]'
    b''


It looks like that's because the notification setup in the base test class 
isn't taking into account when the RPCFixture is being used:

https://github.com/openstack/nova/blob/b7a018f1265d9e0354e26822d32cbdc789819c35/nova/test.py#L237

That should probably be nested under the "if self.STUB_RPC:"
conditional.

** Affects: nova
     Importance: Low
     Assignee: Matt Riedemann (mriedem)
         Status: In Progress


** Tags: rpc testing

** Changed in: nova
   Importance: Undecided => Low

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

Title:
  nova.tests.unit.test_rpc.TestRPC intermittently fails if run in
  isolation

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  By doing this:

  tox -e py36 -- nova.tests.unit.test_rpc --until-failure

  I'm able to trigger this setup failure:

  nova.tests.unit.test_rpc.TestRPC.test_add_extra_exmods
  ------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      b'Traceback (most recent call last):'
      b'  File "/home/osboxes/git/nova/nova/tests/unit/test_rpc.py", line 54, 
in setUp'
      b'    super(TestRPC, self).setUp()'
      b'  File "/home/osboxes/git/nova/nova/test.py", line 238, in setUp'
      b"    group='oslo_messaging_notifications')"
      b'  File 
"/home/osboxes/git/nova/.tox/py36/lib/python3.6/site-packages/oslo_config/cfg.py",
 line 2041, in __inner'
      b'    result = f(self, *args, **kwargs)'
      b'  File 
"/home/osboxes/git/nova/.tox/py36/lib/python3.6/site-packages/oslo_config/cfg.py",
 line 2445, in set_default'
      b'    opt_info = self._get_opt_info(name, group)'
      b'  File 
"/home/osboxes/git/nova/.tox/py36/lib/python3.6/site-packages/oslo_config/cfg.py",
 line 2828, in _get_opt_info'
      b'    group = self._get_group(group)'
      b'  File 
"/home/osboxes/git/nova/.tox/py36/lib/python3.6/site-packages/oslo_config/cfg.py",
 line 2797, in _get_group'
      b'    raise NoSuchGroupError(group_name)'
      b'oslo_config.cfg.NoSuchGroupError: no such group 
[oslo_messaging_notifications]'
      b''

  
  It looks like that's because the notification setup in the base test class 
isn't taking into account when the RPCFixture is being used:

  
https://github.com/openstack/nova/blob/b7a018f1265d9e0354e26822d32cbdc789819c35/nova/test.py#L237

  That should probably be nested under the "if self.STUB_RPC:"
  conditional.

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to