Public bug reported:

When I run tests localy with ./run_tests.sh or tox -e py27, it
constantly fails in the oslo_policy package.

For instance :

$ ./run_tests.sh
neutron.tests.unit.extensions.test_securitygroup.TestSecurityGroups.test_create_security_group_rule_bad_tenant_security_group_rule

Running `tools/with_venv.sh python setup.py testr --slowest 
--testr-args='--subunit  
neutron.tests.unit.extensions.test_securitygroup.TestSecurityGroups.test_create_security_group_rule_bad_tenant_security_group_rule'`
running testr
No handlers could be found for logger "neutron.quota"
No handlers could be found for logger "neutron.quota"
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 
${PYTHON:-python} -m subunit.run discover -t ./ 
${OS_TEST_PATH:-./neutron/tests/unit} --list 
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 
${PYTHON:-python} -m subunit.run discover -t ./ 
${OS_TEST_PATH:-./neutron/tests/unit}  --load-list /tmp/tmpfLjMOq
neutron.tests.unit.extensions.test_securitygroup.TestSecurityGroups.test_create_security_group_rule_bad_tenant_security_group_rule
neutron.tests.unit.extensions.test_securitygroup.TestSecurityGroups.test_create_security_group_rule_bad_tenant_security_group_rule
 ... FAIL
Slowest Tests
Test id                                                                         
                                                    Runtime (s)
----------------------------------------------------------------------------------------------------------------------------------
  -----------
neutron.tests.unit.extensions.test_securitygroup.TestSecurityGroups.test_create_security_group_rule_bad_tenant_security_group_rule
  0.141

======================================================================
FAIL: 
neutron.tests.unit.extensions.test_securitygroup.TestSecurityGroups.test_create_security_group_rule_bad_tenant_security_group_rule
neutron.tests.unit.extensions.test_securitygroup.TestSecurityGroups.test_create_security_group_rule_bad_tenant_security_group_rule
----------------------------------------------------------------------
_StringException: Empty attachments:
  pythonlogging:'neutron.api.extensions'
  stderr
  stdout

pythonlogging:'': {{{2015-08-13 16:04:58,490  WARNING [oslo_config.cfg]
Option "verbose" from group "DEFAULT" is deprecated for removal.  Its
value may be silently ignored in the future.}}}

Traceback (most recent call last):
  File "neutron/tests/unit/extensions/test_securitygroup.py", line 229, in setUp
    self).setUp(plugin=plugin, ext_mgr=ext_mgr)
  File "neutron/tests/unit/db/test_db_base_plugin_v2.py", line 94, in setUp
    super(NeutronDbPluginV2TestCase, self).setUp()
  File "neutron/tests/unit/testlib_api.py", line 100, in setUp
    super(WebTestCase, self).setUp()
  File "neutron/tests/unit/testlib_api.py", line 92, in setUp
    super(SqlTestCase, self).setUp()
  File "neutron/tests/base.py", line 291, in setUp
    policy.init()
  File "neutron/policy.py", line 56, in init
    _ENFORCER.load_rules(True)
  File 
"/opt/stack/neutron/.venv/local/lib/python2.7/site-packages/oslo_policy/policy.py",
 line 401, in load_rules
    force_reload, False)
  File 
"/opt/stack/neutron/.venv/local/lib/python2.7/site-packages/oslo_policy/policy.py",
 line 424, in _walk_through_policy_directory
    policy_files = next(os.walk(path))[2]
StopIteration


----------------------------------------------------------------------
Ran 1 test in 5.117s

FAILED (failures=1)

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: unittest

** Tags added: unittest

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1484553

Title:
  running local tests fails in oslo_policy package

Status in neutron:
  New

Bug description:
  When I run tests localy with ./run_tests.sh or tox -e py27, it
  constantly fails in the oslo_policy package.

  For instance :

  $ ./run_tests.sh
  
neutron.tests.unit.extensions.test_securitygroup.TestSecurityGroups.test_create_security_group_rule_bad_tenant_security_group_rule

  Running `tools/with_venv.sh python setup.py testr --slowest 
--testr-args='--subunit  
neutron.tests.unit.extensions.test_securitygroup.TestSecurityGroups.test_create_security_group_rule_bad_tenant_security_group_rule'`
  running testr
  No handlers could be found for logger "neutron.quota"
  No handlers could be found for logger "neutron.quota"
  running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 
${PYTHON:-python} -m subunit.run discover -t ./ 
${OS_TEST_PATH:-./neutron/tests/unit} --list 
  running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 
${PYTHON:-python} -m subunit.run discover -t ./ 
${OS_TEST_PATH:-./neutron/tests/unit}  --load-list /tmp/tmpfLjMOq
  
neutron.tests.unit.extensions.test_securitygroup.TestSecurityGroups.test_create_security_group_rule_bad_tenant_security_group_rule
  
neutron.tests.unit.extensions.test_securitygroup.TestSecurityGroups.test_create_security_group_rule_bad_tenant_security_group_rule
 ... FAIL
  Slowest Tests
  Test id                                                                       
                                                      Runtime (s)
  
----------------------------------------------------------------------------------------------------------------------------------
  -----------
  
neutron.tests.unit.extensions.test_securitygroup.TestSecurityGroups.test_create_security_group_rule_bad_tenant_security_group_rule
  0.141

  ======================================================================
  FAIL: 
neutron.tests.unit.extensions.test_securitygroup.TestSecurityGroups.test_create_security_group_rule_bad_tenant_security_group_rule
  
neutron.tests.unit.extensions.test_securitygroup.TestSecurityGroups.test_create_security_group_rule_bad_tenant_security_group_rule
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:'neutron.api.extensions'
    stderr
    stdout

  pythonlogging:'': {{{2015-08-13 16:04:58,490  WARNING
  [oslo_config.cfg] Option "verbose" from group "DEFAULT" is deprecated
  for removal.  Its value may be silently ignored in the future.}}}

  Traceback (most recent call last):
    File "neutron/tests/unit/extensions/test_securitygroup.py", line 229, in 
setUp
      self).setUp(plugin=plugin, ext_mgr=ext_mgr)
    File "neutron/tests/unit/db/test_db_base_plugin_v2.py", line 94, in setUp
      super(NeutronDbPluginV2TestCase, self).setUp()
    File "neutron/tests/unit/testlib_api.py", line 100, in setUp
      super(WebTestCase, self).setUp()
    File "neutron/tests/unit/testlib_api.py", line 92, in setUp
      super(SqlTestCase, self).setUp()
    File "neutron/tests/base.py", line 291, in setUp
      policy.init()
    File "neutron/policy.py", line 56, in init
      _ENFORCER.load_rules(True)
    File 
"/opt/stack/neutron/.venv/local/lib/python2.7/site-packages/oslo_policy/policy.py",
 line 401, in load_rules
      force_reload, False)
    File 
"/opt/stack/neutron/.venv/local/lib/python2.7/site-packages/oslo_policy/policy.py",
 line 424, in _walk_through_policy_directory
      policy_files = next(os.walk(path))[2]
  StopIteration

  
  ----------------------------------------------------------------------
  Ran 1 test in 5.117s

  FAILED (failures=1)

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to