Skip to content

Instantly share code, notes, and snippets.

@flavio-fernandes
Created February 12, 2021 12:36
Show Gist options
  • Save flavio-fernandes/1bea8030c04edb0723f7630a23533a6d to your computer and use it in GitHub Desktop.
Save flavio-fernandes/1bea8030c04edb0723f7630a23533a6d to your computer and use it in GitHub Desktop.
functional tests on stable/train fail when using ovn after the split
https://review.opendev.org/c/openstack/ovsdbapp/+/775370
vagrant@stack:/opt/stack/networking-ovn$ tox -e dsvm-functional
dsvm-functional create: /opt/stack/networking-ovn/.tox/dsvm-functional
dsvm-functional installdeps: -chttps://releases.openstack.org/constraints/upper/train, -r/opt/stack/networking-ovn/requirements.txt, -r/opt/stack/networking-ovn/test-requirements.txt, -r/opt/stack/networking-ovn/networking_ovn/tests/functional/requirements.txt
dsvm-functional develop-inst: /opt/stack/networking-ovn
dsvm-functional installed: alembic==1.1.0,amqp==2.5.2,appdirs==1.4.3,astroid==2.4.0,attrs==19.1.0,Babel==2.7.0,bandit==1.7.0,bcrypt==3.1.7,beautifulsoup4==4.8.0,cachetools==3.1.1,certifi==2019.6.16,cffi==1.12.3,chardet==3.0.4,cliff==2.16.0,cmd2==0.8.9,coverage==4.5.4,cryptography==2.8,debtcollector==1.22.0,decorator==4.4.0,dnspython==1.15.0,dogpile.cache==0.7.1,eventlet==0.25.2,extras==1.0.0,fasteners==0.14.1,fixtures==3.0.0,flake8==3.8.4,flake8-import-order==0.12,future==0.17.1,futurist==1.9.0,gitdb2==2.0.5,GitPython==3.0.2,greenlet==0.4.15,hacking==4.0.0,httplib2==0.13.1,idna==2.8,importlib-metadata==0.20,iso8601==0.1.12,isort==4.3.21,Jinja2==2.10.1,jmespath==0.9.4,jsonpatch==1.24,jsonpointer==2.0,jsonschema==3.0.2,keystoneauth1==3.17.3,keystonemiddleware==7.0.1,kombu==4.6.6,lazy-object-proxy==1.4.3,linecache2==1.0.0,logutils==0.3.5,Mako==1.1.0,MarkupSafe==1.1.1,mccabe==0.6.1,mock==3.0.5,monotonic==1.5,more-itertools==7.2.0,mox3==0.28.0,msgpack==0.6.1,munch==2.3.2,netaddr==0.7.19,netifaces==0.10.9,-e git+https://opendev.org/openstack/networking-ovn.git@43dfc62e1a4f1d37e86444649f0640a32a1ae73c#egg=networking_ovn,neutron==15.3.2,neutron-lib==1.29.1,octavia-lib==1.4.0,openstacksdk==0.36.5,os-client-config==1.33.0,os-ken==0.4.1,os-service-types==1.7.0,os-testr==1.1.0,os-traits==0.16.0,os-vif==1.17.0,os-xenapi==0.3.4,osc-lib==1.14.1,oslo.cache==1.37.0,oslo.concurrency==3.30.1,oslo.config==6.11.3,oslo.context==2.23.1,oslo.db==5.0.2,oslo.i18n==3.24.0,oslo.log==3.44.3,oslo.messaging==10.2.2,oslo.middleware==3.38.1,oslo.policy==2.3.4,oslo.privsep==1.33.5,oslo.reports==1.30.0,oslo.rootwrap==5.16.1,oslo.serialization==2.29.3,oslo.service==1.40.2,oslo.upgradecheck==0.3.2,oslo.utils==3.41.6,oslo.versionedobjects==1.36.1,oslotest==3.8.1,osprofiler==2.8.2,ovs==2.11.0,ovsdbapp==0.17.5,paramiko==2.6.0,Paste==3.2.0,PasteDeploy==2.0.1,pbr==5.4.3,pecan==1.3.3,prettytable==0.7.2,psutil==5.6.3,pycadf==2.10.0,pycodestyle==2.6.0,pycparser==2.19,pyflakes==2.2.0,pyinotify==0.9.6,pylint==2.5.3,PyMySQL==0.9.3,PyNaCl==1.3.0,pyOpenSSL==19.1.0,pyparsing==2.4.2,pyperclip==1.7.0,pyroute2==0.5.6,pyrsistent==0.15.4,python-dateutil==2.8.0,python-designateclient==3.0.0,python-editor==1.0.4,python-keystoneclient==3.21.0,python-mimeparse==1.6.0,python-neutronclient==6.14.1,python-novaclient==15.1.1,python-subunit==1.4.0,pytz==2019.2,PyYAML==5.1.2,repoze.lru==0.7,requests==2.22.0,requestsexceptions==1.4.0,rfc3986==1.3.2,Routes==2.4.1,setproctitle==1.1.10,simplejson==3.16.0,six==1.12.0,smmap2==2.0.5,sortedcontainers==2.1.0,soupsieve==1.9.3,SQLAlchemy==1.3.8,sqlalchemy-migrate==0.12.0,sqlparse==0.3.0,statsd==3.3.0,stestr==2.5.1,stevedore==1.31.0,Tempita==0.5.2,tenacity==5.1.1,testresources==2.0.1,testscenarios==0.5.0,testtools==2.3.0,tinyrpc==1.0.3,toml==0.10.2,tooz==1.66.3,traceback2==1.4.0,typed-ast==1.4.0,unittest2==1.1.0,urllib3==1.25.3,vine==1.3.0,voluptuous==0.11.7,waitress==1.3.1,wcwidth==0.1.7,WebOb==1.8.5,WebTest==2.0.33,wrapt==1.11.2,yappi==1.0,zipp==0.6.0
dsvm-functional run-test-pre: PYTHONHASHSEED='62277838'
dsvm-functional run-test: commands[0] | /opt/stack/networking-ovn/tools/ostestr_compat_shim.sh
/opt/stack/networking-ovn/.tox/dsvm-functional/lib/python3.6/site-packages/os_testr/ostestr.py:241: UserWarning: Deprecate: ostestr command is deprecated now. Use stestr command instead. For more information: https://docs.openstack.org/os-testr/latest/user/ostestr.html
warnings.warn(msg)
/opt/stack/networking-ovn/.tox/dsvm-functional/lib/python3.6/site-packages/future/standard_library/__init__.py:65: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
/opt/stack/networking-ovn/.tox/dsvm-functional/lib/python3.6/site-packages/eventlet/patcher.py:1: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
/opt/stack/networking-ovn/.tox/dsvm-functional/lib/python3.6/site-packages/neutron/common/eventlet_utils.py:28: DeprecationWarning: Please provide `is_available()` function in your custom Eventlet hub <module 'oslo_service' from '/opt/stack/networking-ovn/.tox/dsvm-functional/lib/python3.6/site-packages/oslo_service/__init__.py'>.
It must return bool: whether hub supports current platform. See eventlet/hubs/{epoll,kqueue} for example.
eventlet.hubs.get_hub()
ovsdb-tool: failed to read schema: "/usr/local/share/openvswitch/ovn-sb.ovsschema" could not be read as JSON (error opening "/usr/local/share/openvswitch/ovn-sb.ovsschema": No such file or directory)
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/opt/stack/networking-ovn/.tox/dsvm-functional/lib/python3.6/site-packages/fixtures/fixture.py", line 125, in cleanUp
return self._cleanups(raise_errors=raise_first)
TypeError: 'NoneType' object is not callable
=========================
Failures during discovery
=========================
--- import errors ---
Failed to import test module: networking_ovn.tests.functional.test_impl_idl
Traceback (most recent call last):
File "/opt/stack/networking-ovn/.tox/dsvm-functional/lib/python3.6/site-packages/fixtures/fixture.py", line 197, in setUp
self._setUp()
File "/opt/stack/networking-ovn/.tox/dsvm-functional/lib/python3.6/site-packages/ovsdbapp/venv.py", line 80, in _setUp
self.setup_dbs()
File "/opt/stack/networking-ovn/.tox/dsvm-functional/lib/python3.6/site-packages/ovsdbapp/venv.py", line 166, in setup_dbs
self.create_db('ovnsb.db', self.ovnsb_schema)
File "/opt/stack/networking-ovn/.tox/dsvm-functional/lib/python3.6/site-packages/ovsdbapp/venv.py", line 111, in create_db
return self.call(['ovsdb-tool', '-v', 'create', name, schema])
File "/opt/stack/networking-ovn/.tox/dsvm-functional/lib/python3.6/site-packages/ovsdbapp/venv.py", line 116, in call
cmd, *args, env=self.env, cwd=cwd, **kwargs)
File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ovsdb-tool', '-v', 'create', 'ovnsb.db', '/usr/local/share/openvswitch/ovn-sb.ovsschema']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/opt/stack/networking-ovn/networking_ovn/tests/functional/test_impl_idl.py", line 18, in <module>
from ovsdbapp.tests.functional import base
File "/opt/stack/networking-ovn/.tox/dsvm-functional/lib/python3.6/site-packages/ovsdbapp/tests/functional/base.py", line 23, in <module>
class FunctionalTestCase(base.TestCase):
File "/opt/stack/networking-ovn/.tox/dsvm-functional/lib/python3.6/site-packages/ovsdbapp/tests/functional/base.py", line 30, in FunctionalTestCase
ovsvenv.setUp()
File "/opt/stack/networking-ovn/.tox/dsvm-functional/lib/python3.6/site-packages/fixtures/fixture.py", line 212, in setUp
raise MultipleExceptions(*errors)
testtools.runtest.MultipleExceptions: ((<class 'subprocess.CalledProcessError'>, CalledProcessError(1, ['ovsdb-tool', '-v', 'create', 'ovnsb.db', '/usr/local/share/openvswitch/ovn-sb.ovsschema']), <traceback object at 0x7f523eefa8c8>), (<class 'fixtures.fixture.SetupError'>, SetupError({},), <traceback object at 0x7f523eefa848>))
================================================================================
The above traceback was encountered during test discovery which imports all the found test modules in the specified test_path.
ERROR: InvocationError for command /opt/stack/networking-ovn/tools/ostestr_compat_shim.sh (exited with code 100)
________________________________________________________________________________________ summary _________________________________________________________________________________________
ERROR: dsvm-functional: commands failed
vagrant@stack:/opt/stack/networking-ovn$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment