Skip to content

Instantly share code, notes, and snippets.

@sombrafam
Created February 19, 2019 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sombrafam/c1e3965c2ae2f9318c3d16e9aa11ff51 to your computer and use it in GitHub Desktop.
Save sombrafam/c1e3965c2ae2f9318c3d16e9aa11ff51 to your computer and use it in GitHub Desktop.
jenkins@devstack-xenial-solidfire-provider-70-404117:/opt/stack/tempest$ tempest list-plugins
+--------------+--------------------------------------------------+
| Name | EntryPoint |
+--------------+--------------------------------------------------+
| cinder_tests | cinder_tempest_plugin.plugin:CinderTempestPlugin |
+--------------+--------------------------------------------------+
jenkins@devstack-xenial-solidfire-provider-70-404117:/opt/stack/tempest$ tox -eall-plugin 'tempest.api.volume(?!.*(_upload|_shelved|consistency|s_cryptsetup|s_luks))|cinder_tempest_plugin.*' -- --concurrency=1
all-plugin create: /opt/stack/tempest/.tox/all-plugin
^CERROR: KEYBOARDINTERRUPT
jenkins@devstack-xenial-solidfire-provider-70-404117:/opt/stack/tempest$ tox -eall-plugin 'cinder_tempest_plugin.*' -- --concurrency=1all-plugin create: /opt/stack/tempest/.tox/all-plugin
all-plugin installdeps: -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt, -r/opt/stack/tempest/requirements.txt
all-plugin develop-inst: /opt/stack/tempest
all-plugin installed: alabaster==0.7.12,alembic==1.0.7,amqp==2.4.1,aniso8601==4.1.0,appdirs==1.4.3,asn1crypto==0.24.0,astroid==1.6.5,atomicwrites==1.3.0,attrs==18.2.0,automaton==1.15.0,Babel==2.6.0,bandit==1.5.1,bashate==0.6.0,bcrypt==3.1.6,beautifulsoup4==4.7.1,blinker==1.3,cachetools==3.1.0,castellan==1.2.0,certifi==2018.11.29,cffi==1.12.1,chardet==3.0.4,-e git://git.openstack.org/openstack/cinder.git@45408cc4d98193c8f1e9e9b0226105b64239c23d#egg=cinder,-e git+https://status.openstack.netapp.com/p/openstack/cinder-tempest-plugin@9ef92d009f98df662dffb2813624aa5006c8eb77#egg=cinder_tempest_plugin,Click==7.0,cliff==2.14.0,cloud-init==18.4,cmd2==0.8.9,colorama==0.4.1,command-not-found==0.3,configobj==5.0.6,coverage==4.5.2,cryptography==2.5,cursive==0.2.2,ddt==1.2.0,debtcollector==1.20.0,decorator==4.3.2,defusedxml==0.5.0,dnspython==1.15.0,doc8==0.8.0,docutils==0.14,dogpile.cache==0.7.1,dulwich==0.19.11,etcd3==0.8.1,etcd3gw==0.2.4,eventlet==0.24.1,extras==1.0.0,fasteners==0.14.1,filelock==3.0.10,fixtures==3.0.0,flake8==2.6.2,flake8-docstrings==0.2.1.post1,flake8-import-order==0.11,Flask==1.0.2,Flask-RESTful==0.3.7,freezegun==0.3.11,future==0.17.1,futurist==1.8.0,gabbi==1.44.0,gitdb2==2.0.5,GitPython==2.1.11,-e git://git.openstack.org/openstack/glance.git@88a8ad78232cb53fbb2553247b62fedb8cf4dada#egg=glance,glance-store==0.27.0,google-api-python-client==1.7.8,google-auth==1.6.2,google-auth-httplib2==0.0.3,greenlet==0.4.15,grpcio==1.15.0,hacking==1.1.0,httplib2==0.12.1,idna==2.8,imagesize==1.1.0,iso8601==0.1.12,isort==4.3.4,itsdangerous==1.1.0,Jinja2==2.10,jmespath==0.9.3,jsonpatch==1.23,jsonpath-rw==1.4.0,jsonpath-rw-ext==1.2.0,jsonpointer==2.0,jsonschema==2.6.0,-e git://git.openstack.org/openstack/keystone.git@bf15bef678d28aa5732ade13ba67015a6c82192f#egg=keystone,keystoneauth1==3.11.2,keystonemiddleware==5.3.0,kombu==4.3.0,language-selector==0.1,lazy-object-proxy==1.3.1,libvirt-python==5.0.0,linecache2==1.0.0,logutils==0.3.5,lxml==4.3.1,Mako==1.0.7,MarkupSafe==1.1.0,mccabe==0.2.1,microversion-parse==0.2.1,mock==2.0.0,monotonic==1.5,more-itertools==6.0.0,mox3==0.26.0,msgpack==0.6.1,munch==2.3.2,netaddr==0.7.19,netifaces==0.10.9,networkx==2.2,-e git://git.openstack.org/openstack/neutron.git@53d3967827b0f5615b28629fa2c3f8fedbf211db#egg=neutron,neutron-lib==1.24.0,-e git://git.openstack.org/openstack/nova.git@d2a87a44468f91d5a468e1262e7e2fd8c7add35c#egg=nova,numpy==1.16.1,oauth2client==4.1.3,oauthlib==3.0.1,-e git://git.openstack.org/openstack/placement.git@530be3d3985f02e2eb7d45e6f2977b294eb9cc65#egg=openstack_placement,openstackdocstheme==1.29.1,openstacksdk==0.24.0,os-api-ref==1.6.0,os-brick==2.7.0,os-client-config==1.31.2,os-ken==0.3.1,os-resource-classes==0.2.0,os-service-types==1.5.0,os-testr==1.0.0,os-traits==0.11.0,os-vif==1.14.0,os-win==4.2.0,os-xenapi==0.3.4,osc-lib==1.12.0,osc-placement==1.4.0,oslo.cache==1.33.0,oslo.concurrency==3.29.0,oslo.config==6.8.0,oslo.context==2.22.0,oslo.db==4.44.0,oslo.i18n==3.23.0,oslo.log==3.42.2,oslo.messaging==9.4.0,oslo.middleware==3.37.0,oslo.policy==2.1.0,oslo.privsep==1.32.0,oslo.reports==1.29.1,oslo.rootwrap==5.15.1,oslo.serialization==2.28.1,oslo.service==1.37.0,oslo.upgradecheck==0.2.0,oslo.utils==3.40.2,oslo.versionedobjects==1.35.0,oslo.vmware==2.32.1,oslotest==3.7.0,osprofiler==2.6.0,ovs==2.10.0,ovsdbapp==0.15.0,packaging==19.0,paramiko==2.4.2,passlib==1.7.1,Paste==3.0.6,PasteDeploy==2.0.1,pathlib2==2.3.3,pbr==5.1.2,pecan==1.3.2,pep257==0.7.0,pep8==1.5.7,pluggy==0.8.1,ply==3.11,prettytable==0.7.2,protobuf==3.6.1,psutil==5.5.1,psycopg2==2.7.7,py==1.7.0,pyasn1==0.4.5,pyasn1-modules==0.2.4,pycadf==2.9.0,pycodestyle==2.5.0,pycparser==2.19,pycurl==7.43.0,pydot==1.4.1,pyflakes==0.8.1,Pygments==2.3.1,pygobject==3.20.0,pyinotify==0.9.6,PyJWT==1.7.1,pylint==1.9.2,PyMySQL==0.9.3,PyNaCl==1.3.0,pyOpenSSL==19.0.0,pyparsing==2.3.1,pyperclip==1.7.0,pypowervm==1.1.20,pyroute2==0.5.3,pysaml2==4.6.5,pysendfile==2.0.1,pyserial==3.0.1,pytest==4.3.0,python-apt==1.1.0b1+ubuntu0.16.4.2,python-barbicanclient==4.8.1,python-cinderclient==4.1.0,python-dateutil==2.8.0,python-debian==0.1.27,python-designateclient==2.11.0,python-editor==1.0.4,python-glanceclient==2.15.0,python-ironicclient==2.6.0,python-keystoneclient==3.18.0,python-memcached==1.59,python-mimeparse==1.6.0,python-neutronclient==6.11.0,python-novaclient==12.0.0,python-openstackclient==3.17.0,python-subunit==1.3.0,python-swiftclient==3.6.0,python-systemd==231,pytz==2018.9,pyudev==0.21.0,PyYAML==3.13,reno==2.11.2,repoze.lru==0.7,requests==2.21.0,requests-mock==1.5.2,requestsexceptions==1.4.0,restructuredtext-lint==1.2.2,retrying==1.3.3,rfc3986==1.2.0,Routes==2.4.1,rsa==4.0,rtslib-fb==2.1.66,scrypt==0.8.13,simplegeneric==0.8.1,simplejson==3.16.0,six==1.12.0,smmap2==2.0.5,snowballstemmer==1.2.1,sortedcontainers==2.1.0,soupsieve==1.8,Sphinx==1.8.4,sphinxcontrib-websupport==1.1.0,SQLAlchemy==1.2.18,sqlalchemy-migrate==0.12.0,sqlparse==0.2.4,ssh-import-id==5.5,statsd==3.3.0,stestr==2.2.0,stevedore==1.30.0,suds-jurko==0.6,systemd-python==234,taskflow==3.4.0,-e git://git.openstack.org/openstack/tempest.git@83e12b67c1e8796f406b50ae7d6afd560c1f82d7#egg=tempest,Tempita==0.5.2,tenacity==5.0.3,testrepository==0.0.20,testresources==2.0.1,testscenarios==0.5.0,testtools==2.3.0,tinyrpc==0.9.4,toml==0.10.0,tooz==1.64.1,tox==3.7.0,traceback2==1.4.0,ufw==0.35,unittest2==1.1.0,uritemplate==3.0.0,urllib3==1.24.1,uWSGI==2.0.18,vine==1.2.0,virtualenv==16.4.0,voluptuous==0.11.5,waitress==1.2.1,warlock==1.3.0,wcwidth==0.1.7,WebOb==1.8.5,websockify==0.8.0,WebTest==2.0.33,Werkzeug==0.14.1,wrapt==1.11.1,wsgi-intercept==1.8.0,WSME==0.9.3,xattr==0.9.6,yappi==0.99,zVMCloudConnector==1.4.0
all-plugin run-test-pre: PYTHONHASHSEED='426009329'
all-plugin runtests: commands[0] | echo 'WARNING: The all-plugin env is deprecated and will be removed'
WARNING: The all-plugin env is deprecated and will be removed
all-plugin runtests: commands[1] | echo 'WARNING Please use the '"'"'all'"'"' environment for Tempest plugins.'
WARNING Please use the 'all' environment for Tempest plugins.
all-plugin runtests: commands[2] | find . -type f -name '*.pyc' -delete
all-plugin runtests: commands[3] | tempest run --regex 'cinder_tempest_plugin.*' --concurrency=1
=========================
Failures during discovery
=========================
--- import errors ---
Failed to import test module: cinder_tempest_plugin.scenario.test_volume_revert
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/unittest2/loader.py", line 456, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/lib/python3.5/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
__import__(name)
File "/opt/stack/cinder-tempest-plugin/cinder_tempest_plugin/scenario/test_volume_revert.py", line 18, in <module>
import manager as scn_manager
ImportError: No module named 'manager'
================================================================================
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/tempest/.tox/all-plugin/bin/tempest run --regex cinder_tempest_plugin.* --concurrency=1' (exited with code 100)
_________________________________________________________________________________________________ summary _________________________________________________________________________________________________
ERROR: all-plugin: commands failed
jenkins@devstack-xenial-solidfire-provider-70-404117:/opt/stack/tempest$ ls /opt/stack/cinder-tempest-plugin/cinder_tempest_plugin/scenario/
__init__.py __pycache__ manager.py test_volume_revert.py
jenkins@devstack-xenial-solidfire-provider-70-404117:/opt/stack/tempest$ vi /opt/stack/cinder-tempest-plugin/cinder_tempest_plugin/scenario/test_volume_revert.py
jenkins@devstack-xenial-solidfire-provider-70-404117:/opt/stack/tempest$ tox --version
3.7.0 imported from /usr/local/lib/python3.5/dist-packages/tox/__init__.py
jenkins@devstack-xenial-solidfire-provider-70-404117:/opt/stack/tempest$ ls /opt/stack/cinder-tempest-plugin/cinder_tempest_plugin/scenario/
__init__.py __pycache__ manager.py test_volume_revert.py
jenkins@devstack-xenial-solidfire-provider-70-404117:/opt/stack/tempest$ vi /opt/stack/cinder-tempest-plugin/cinder_tempest_plugin/scenario/manager.py
jenkins@devstack-xenial-solidfire-provider-70-404117:/opt/stack/tempest$ head -20 /opt/stack/cinder-tempest-plugin/cinder_tempest_plugin/scenario/test_volume_revert.py
# Copyright (c) 2018 NetApp.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
import manager as scn_manager
from tempest import config
from tempest.lib import decorators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment