← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1697873] Re: neutron-vpnaas failed to execute tox -e dsvm-functional-sswan

 

I think this is a question about how to run VPNaaS functional tests. Can
you ask on openstack-dev with [neutron] and [vpnaas] in the subject
please?

** Changed in: neutron
       Status: New => Invalid

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

Title:
  neutron-vpnaas failed to execute tox -e dsvm-functional-sswan

Status in neutron:
  Invalid

Bug description:
  After I installed openstack with devstack,
  Execute in the neutron-vpnaas directory
  Tox -e dsvm-functional-sswan
  The results are as follows:
  ======
  Totals
  ======
  Ran: 27 tests in 7.0000 sec.
   - Passed: 0
   - Skipped: 7
   - Expected Fail: 0
   - Unexpected Success: 0
   - Failed: 20
  Sum of execute time for each test: 5.5638 sec.

  Some error info:
   Traceback (most recent call last):
        File "/opt/stack/neutron/neutron/tests/functional/db/test_migrations.py", line 136, in setUp
          super(_TestModelsMigrations, self).setUp()
        File "/opt/stack/neutron/neutron/tests/unit/testlib_api.py", line 289, in setUp
          self._setup_database_fixtures()
        File "/opt/stack/neutron/neutron/tests/unit/testlib_api.py", line 326, in _setup_database_fixtures
          self.fail(msg)
        File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 690, in fail
          raise self.failureException(msg)
      AssertionError: backend 'mysql' unavailable

  Traceback (most recent call last):
        File "/opt/stack/neutron/neutron/tests/functional/db/test_migrations.py", line 136, in setUp
          super(_TestModelsMigrations, self).setUp()
        File "/opt/stack/neutron/neutron/tests/unit/testlib_api.py", line 289, in setUp
          self._setup_database_fixtures()
        File "/opt/stack/neutron/neutron/tests/unit/testlib_api.py", line 326, in _setup_database_fixtures
          self.fail(msg)
        File "/usr/lib/python2.7/site-packages/unittest2/case.py", line 690, in fail
          raise self.failureException(msg)
      AssertionError: backend 'postgresql' unavailable

  Traceback (most recent call last):
        File "neutron_vpnaas/tests/functional/strongswan/test_strongswan_driver.py", line 142, in setUp
          self.router.router_namespace.create()
        File "/opt/stack/neutron/neutron/agent/l3/namespaces.py", line 93, in create
          ip_wrapper = self.ip_wrapper_root.ensure_namespace(self.name)
        File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 210, in ensure_namespace
          if not self.netns.exists(name):
        File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 905, in exists
          run_as_root=cfg.CONF.AGENT.use_helper_for_ns_read)
        File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 109, in _execute
          log_fail_as_error=log_fail_as_error)
        File "/opt/stack/neutron/neutron/agent/linux/utils.py", line 127, in execute
          execute_rootwrap_daemon(cmd, process_input, addl_env))
        File "/opt/stack/neutron/neutron/agent/linux/utils.py", line 114, in execute_rootwrap_daemon
          LOG.error(_LE("Rootwrap error running command: %s"), cmd)
        File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
          self.force_reraise()
        File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
          six.reraise(self.type_, self.value, self.tb)
        File "/opt/stack/neutron/neutron/agent/linux/utils.py", line 111, in execute_rootwrap_daemon
          return client.execute(cmd, process_input)
        File "/usr/lib/python2.7/site-packages/oslo_rootwrap/client.py", line 125, in execute
          self._ensure_initialized()
        File "/usr/lib/python2.7/site-packages/oslo_rootwrap/client.py", line 110, in _ensure_initialized
          self._initialize()
        File "/usr/lib/python2.7/site-packages/oslo_rootwrap/client.py", line 80, in _initialize
          (stderr,))
      Exception: Failed to spawn rootwrap process.
      stderr:
      sudo: /opt/stack/neutron-vpnaas/.tox/dsvm-functional-sswan/bin/neutron-rootwrap-daemon: command not found

  Why does this happen? What should I do?

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


References