ubuntu@xenial1:/opt/stack/new/tempest$ tox -e all-plugin -- manila_tempest_tests.tests.api.admin.test_export_locations all-plugin develop-inst-noop: /opt/stack/new/tempest all-plugin installed: alabaster==0.7.9,alembic==0.8.9,amqp==1.4.9,anyjson==0.3.3,appdirs==1.4.0,astroid==1.3.8,automaton==1.6.0,Babel==2.3.4,bandit==1.3.0,bashate==0.5.1,beautifulsoup4==4.5.1,cachetools==2.0.0,castellan==0.4.0,cffi==1.9.1,chardet==2.3.0,-e git://git.openstack.org/openstack/cinder.git@8200a13e7b72bafa2eb3e91e8d65950cb38933ba#egg=cinder,cliff==2.3.0,cmd2==0.6.9,colorama==0.3.7,contextlib2==0.5.4,coverage==4.2,cryptography==1.7.1,cursive==0.1.1,ddt==1.1.1,debtcollector==1.10.0,decorator==4.0.10,Django==1.8.17,django-appconf==1.0.2,django-babel==0.5.1,django-compressor==2.1,django-nose==1.4.4,django-openstack-auth==3.0.0,django-pyscss==2.0.2,dnspython==1.15.0,docutils==0.12,dogpile.cache==0.6.2,dulwich==0.15.0,enum34==1.1.6,eventlet==0.19.0,extras==1.0.0,fasteners==0.14.1,fixtures==3.0.0,flake8==2.5.5,flake8-docstrings==0.2.1.post1,freezegun==0.3.8,funcsigs==1.0.2,functools32==3.2.3.post2,futures==3.0.5,futurist==0.20.0,gabbi==1.29.1,git-review==1.25.0,gitdb2==2.0.0,GitPython==2.1.1,-e git://git.openstack.org/openstack/glance.git@03567be314d0929122f40600649ed3d0bc6568f4#egg=glance,glance-store==0.19.0,google-api-python-client==1.5.5,greenlet==0.4.10,hacking==0.12.0,-e git://git.openstack.org/openstack/horizon.git@e5dac64cb0aac2176d5a608b155976f5375d6a7e#egg=horizon,httplib2==0.9.2,idna==2.2,ipaddress==1.0.17,iso8601==0.1.11,Jinja2==2.8,jsonpatch==1.14,jsonpath-rw==1.4.0,jsonpath-rw-ext==1.0.0,jsonpointer==1.10,jsonschema==2.5.1,-e git://git.openstack.org/openstack/keystone.git@28b2b88c6467d0135ed05fd945db0bad0615ef55#egg=keystone,keystoneauth1==2.16.0,keystonemiddleware==4.12.0,kombu==3.0.37,libvirt-python==2.5.0,linecache2==1.0.0,logilab-common==1.3.0,logutils==0.3.3,lxml==3.6.4,Mako==1.0.6,-e git://git.openstack.org/openstack/manila@490cbaf3ae131075e7da69bf2f1df840f47cc7b2#egg=manila,MarkupSafe==0.23,mccabe==0.2.1,microversion-parse==0.1.4,mock==2.0.0,monotonic==1.2,mox3==0.18.0,msgpack-python==0.4.8,mysqlclient==1.3.7,ndg-httpsclient==0.4.0,netaddr==0.7.18,netifaces==0.10.5,networkx==1.11,-e git://git.openstack.org/openstack/neutron.git@7653301bf6d1d610c725a09834618fa965224074#egg=neutron,neutron-lib==1.0.0,nodeenv==1.0.0,nose==1.3.7,nose-exclude==0.5.0,nosehtmloutput==0.0.5,nosexcover==1.0.11,-e git://git.openstack.org/openstack/nova.git@a74d3ae4e815e3727961ef67bd801dada0267a0b#egg=nova,numpy==1.11.3,oauth2client==3.0.0,oauthlib==2.0.1,openstack.nose-plugin==0.11,openstackdocstheme==1.5.0,openstacksdk==0.9.10,os-api-ref==1.1.0,os-brick==1.8.0,os-client-config==1.24.0,os-testr==0.8.0,os-vif==1.3.0,os-win==1.2.1,osc-lib==1.2.0,oslo.cache==1.16.0,oslo.concurrency==3.16.0,oslo.config==3.21.0,oslo.context==2.11.0,oslo.db==4.16.0,oslo.i18n==3.11.0,oslo.log==3.19.0,oslo.messaging==5.16.0,oslo.middleware==3.22.0,oslo.policy==1.17.0,oslo.privsep==1.15.0,oslo.reports==1.16.0,oslo.rootwrap==5.3.0,oslo.serialization==2.15.0,oslo.service==1.18.0,oslo.utils==3.21.0,oslo.versionedobjects==1.20.0,oslo.vmware==2.16.0,oslosphinx==4.9.0,oslotest==2.12.0,osprofiler==1.4.0,ovs==2.6.1,paramiko==2.1.1,passlib==1.7.0,Paste==2.0.3,PasteDeploy==1.5.2,pathlib==1.0.1,pbr==1.10.0,pecan==1.2.1,pep257==0.7.0,pep8==1.5.7,pika==0.10.0,pika-pool==0.1.3,Pint==0.7.2,pluggy==0.4.0,ply==3.9,positional==1.1.1,prettytable==0.7.2,psutil==1.2.1,psycopg2==2.6.2,py==1.4.32,pyasn1==0.1.9,pyasn1-modules==0.0.8,pycadf==2.4.0,pycparser==2.17,pycrypto==2.6.1,pyeclib==1.4.0,pyflakes==0.8.1,Pygments==2.1.3,pyinotify==0.9.6,pylint==1.4.5,pymongo==3.4.0,PyMySQL==0.7.9,pyOpenSSL==16.2.0,pyparsing==2.1.10,pyroute2==0.4.11,pysaml2==4.0.2,pyScss==1.3.4,pysendfile==2.0.1,pytest==3.0.5,python-barbicanclient==4.1.0,python-cinderclient==1.9.0,python-dateutil==2.6.0,python-designateclient==2.4.0,python-editor==1.0.3,python-glanceclient==2.5.0,python-heatclient==1.7.0,python-ironicclient==1.8.0,python-keystoneclient==3.8.0,-e git+https://github.com/openstack/python-manilaclient.git@c9f8009eb2c62cbc01e3a8537f95ebbe4c2d9e5b#egg=python_manilaclient,python-memcached==1.58,python-mimeparse==1.6.0,python-neutronclient==6.0.0,python-novaclient==6.0.0,python-openstackclien all-plugin runtests: PYTHONHASHSEED='358338278' all-plugin runtests: commands[0] | find . -type f -name *.pyc -delete all-plugin runtests: commands[1] | tempest run --regex manila_tempest_tests.tests.api.admin.test_export_locations running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \ OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \ OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-500} \ OS_TEST_LOCK_PATH=${OS_TEST_LOCK_PATH:-${TMPDIR:-'/tmp'}} \ ${PYTHON:-python} -m subunit.run discover -t ${OS_TOP_LEVEL:-./} ${OS_TEST_PATH:-./tempest/test_discover} --list running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \ OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \ OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-500} \ OS_TEST_LOCK_PATH=${OS_TEST_LOCK_PATH:-${TMPDIR:-'/tmp'}} \ ${PYTHON:-python} -m subunit.run discover -t ${OS_TOP_LEVEL:-./} ${OS_TEST_PATH:-./tempest/test_discover} --load-list /tmp/tmpMmf0kS {0} manila_tempest_tests.tests.api.admin.test_export_locations.ExportLocationsTest.test_get_share_export_location [0.310452s] ... ok {0} manila_tempest_tests.tests.api.admin.test_export_locations.ExportLocationsTest.test_get_share_export_location_by_member [0.151225s] ... FAILED {0} manila_tempest_tests.tests.api.admin.test_export_locations.ExportLocationsTest.test_get_share_instance_export_location [0.139446s] ... ok {0} manila_tempest_tests.tests.api.admin.test_export_locations.ExportLocationsTest.test_list_share_export_locations [0.095112s] ... ok {0} manila_tempest_tests.tests.api.admin.test_export_locations.ExportLocationsTest.test_list_share_export_locations_by_member [0.058563s] ... FAILED {0} manila_tempest_tests.tests.api.admin.test_export_locations.ExportLocationsTest.test_list_share_export_locations_with_preferred_flag [0.099918s] ... ok {0} manila_tempest_tests.tests.api.admin.test_export_locations.ExportLocationsTest.test_list_share_instance_export_locations [0.064475s] ... ok {0} manila_tempest_tests.tests.api.admin.test_export_locations.ExportLocationsTest.test_list_share_instance_export_locations_with_preferred_flag [0.059136s] ... ok {0} manila_tempest_tests.tests.api.admin.test_export_locations.ExportLocationsTest.test_share_contains_all_export_locations_of_all_share_instances [0.159295s] ... ok {0} manila_tempest_tests.tests.api.admin.test_export_locations_negative.ExportLocationsAPIOnlyNegativeTest.test_get_export_locations_by_nonexistent_share [0.130818s] ... ok {0} manila_tempest_tests.tests.api.admin.test_export_locations_negative.ExportLocationsAPIOnlyNegativeTest.test_get_export_locations_by_nonexistent_share_instance [0.114897s] ... ok {0} manila_tempest_tests.tests.api.admin.test_export_locations_negative.ExportLocationsNegativeTest.test_get_inexistent_share_export_location [0.108037s] ... ok {0} manila_tempest_tests.tests.api.admin.test_export_locations_negative.ExportLocationsNegativeTest.test_get_inexistent_share_instance_export_location [0.052158s] ... ok {0} manila_tempest_tests.tests.api.admin.test_export_locations_negative.ExportLocationsNegativeTest.test_get_share_instance_export_location_by_member [0.097402s] ... ok {0} manila_tempest_tests.tests.api.admin.test_export_locations_negative.ExportLocationsNegativeTest.test_list_share_instance_export_locations_by_member [0.037613s] ... ok ============================== Failed 2 tests - output below: ============================== manila_tempest_tests.tests.api.admin.test_export_locations.ExportLocationsTest.test_get_share_export_location_by_member[api_with_backend,positive] -------------------------------------------------------------------------------------------------------------------------------------------------- Captured pythonlogging: ~~~~~~~~~~~~~~~~~~~~~ 2017-01-09 18:45:05,576 30828 INFO [tempest.lib.common.rest_client] Request (ExportLocationsTest:test_get_share_export_location_by_member): 200 GET http://192.168.0.125:8786/v2/80ef11fa4c944ffcae4a97c7e58ada42/shares/bebb96fd-a13e-4df7-b3c7-3a0eb652eba5/export_locations 0.090s 2017-01-09 18:45:05,577 30828 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Accept': 'application/json', 'x-openstack-manila-api-version': '2.25', 'Content-Type': 'application/json', 'X-Auth-Token': ''} Body: None Response - Headers: {'x-openstack-manila-api-version': '2.25', 'content-type': 'application/json', 'date': 'Mon, 09 Jan 2017 18:45:05 GMT', 'x-compute-request-id': 'req-7bc3634f-749d-43e0-8764-4dd325acb4fb', 'connection': 'close', 'content-location': 'http://192.168.0.125:8786/v2/80ef11fa4c944ffcae4a97c7e58ada42/shares/bebb96fd-a13e-4df7-b3c7-3a0eb652eba5/export_locations', 'content-length': '259', 'vary': 'X-OpenStack-Manila-API-Version', 'status': '200'} Body: {"export_locations": [{"path": "xenial1:/manila-glusterfs-vol/share-2c406e4c-cb5b-4f5f-8e3b-b9d63c0f4385", "share_instance_id": "2c406e4c-cb5b-4f5f-8e3b-b9d63c0f4385", "is_admin_only": false, "id": "33a4e2ec-2ce4-47dd-89fe-060e4bdcfe90", "preferred": false}]} 2017-01-09 18:45:05,635 30828 INFO [tempest.lib.common.rest_client] Request (ExportLocationsTest:test_get_share_export_location_by_member): 403 GET http://192.168.0.125:8786/v2/957617b209d74f66b422f1935ef4d5de/shares/bebb96fd-a13e-4df7-b3c7-3a0eb652eba5/export_locations/33a4e2ec-2ce4-47dd-89fe-060e4bdcfe90 0.058s 2017-01-09 18:45:05,636 30828 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Accept': 'application/json', 'x-openstack-manila-api-version': '2.25', 'Content-Type': 'application/json', 'X-Auth-Token': ''} Body: None Response - Headers: {'x-openstack-manila-api-version': '2.25', 'content-type': 'application/json; charset=UTF-8', 'date': 'Mon, 09 Jan 2017 18:45:05 GMT', 'x-compute-request-id': 'req-c4ff3597-6b77-4177-a8cf-a339bccfd62c', 'connection': 'close', 'content-location': 'http://192.168.0.125:8786/v2/957617b209d74f66b422f1935ef4d5de/shares/bebb96fd-a13e-4df7-b3c7-3a0eb652eba5/export_locations/33a4e2ec-2ce4-47dd-89fe-060e4bdcfe90', 'content-length': '90', 'vary': 'X-OpenStack-Manila-API-Version', 'status': '403'} Body: {"forbidden": {"message": "Policy doesn't allow share:get to be performed.", "code": 403}} Captured traceback: ~~~~~~~~~~~~~~~~~ Traceback (most recent call last): File "/opt/stack/new/manila/manila_tempest_tests/tests/api/admin/test_export_locations.py", line 147, in test_get_share_export_location_by_member self.share['id'], export_location['id']) File "/opt/stack/new/manila/manila_tempest_tests/services/share/v2/json/shares_client.py", line 256, in get_share_export_location version=version) File "/opt/stack/new/manila/manila_tempest_tests/services/share/v2/json/shares_client.py", line 68, in get return super(SharesV2Client, self).get(url, headers=headers) File "tempest/lib/common/rest_client.py", line 291, in get return self.request('GET', url, extra_headers, headers) File "tempest/lib/common/rest_client.py", line 664, in request self._error_checker(resp, resp_body) File "tempest/lib/common/rest_client.py", line 756, in _error_checker raise exceptions.Forbidden(resp_body, resp=resp) tempest.lib.exceptions.Forbidden: Forbidden Details: {u'code': 403, u'message': u"Policy doesn't allow share:get to be performed."} manila_tempest_tests.tests.api.admin.test_export_locations.ExportLocationsTest.test_list_share_export_locations_by_member[api_with_backend,positive] ---------------------------------------------------------------------------------------------------------------------------------------------------- Captured pythonlogging: ~~~~~~~~~~~~~~~~~~~~~ 2017-01-09 18:45:05,942 30828 INFO [tempest.lib.common.rest_client] Request (ExportLocationsTest:test_list_share_export_locations_by_member): 403 GET http://192.168.0.125:8786/v2/957617b209d74f66b422f1935ef4d5de/shares/bebb96fd-a13e-4df7-b3c7-3a0eb652eba5/export_locations 0.057s 2017-01-09 18:45:05,942 30828 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Accept': 'application/json', 'x-openstack-manila-api-version': '2.25', 'Content-Type': 'application/json', 'X-Auth-Token': ''} Body: None Response - Headers: {'x-openstack-manila-api-version': '2.25', 'content-type': 'application/json; charset=UTF-8', 'date': 'Mon, 09 Jan 2017 18:45:05 GMT', 'x-compute-request-id': 'req-2985217d-ae1e-4a50-83ea-dec955133745', 'connection': 'close', 'content-location': 'http://192.168.0.125:8786/v2/957617b209d74f66b422f1935ef4d5de/shares/bebb96fd-a13e-4df7-b3c7-3a0eb652eba5/export_locations', 'content-length': '90', 'vary': 'X-OpenStack-Manila-API-Version', 'status': '403'} Body: {"forbidden": {"message": "Policy doesn't allow share:get to be performed.", "code": 403}} Captured traceback: ~~~~~~~~~~~~~~~~~ Traceback (most recent call last): File "/opt/stack/new/manila/manila_tempest_tests/tests/api/admin/test_export_locations.py", line 134, in test_list_share_export_locations_by_member self.share['id']) File "/opt/stack/new/manila/manila_tempest_tests/services/share/v2/json/shares_client.py", line 264, in list_share_export_locations version=version) File "/opt/stack/new/manila/manila_tempest_tests/services/share/v2/json/shares_client.py", line 68, in get return super(SharesV2Client, self).get(url, headers=headers) File "tempest/lib/common/rest_client.py", line 291, in get return self.request('GET', url, extra_headers, headers) File "tempest/lib/common/rest_client.py", line 664, in request self._error_checker(resp, resp_body) File "tempest/lib/common/rest_client.py", line 756, in _error_checker raise exceptions.Forbidden(resp_body, resp=resp) tempest.lib.exceptions.Forbidden: Forbidden Details: {u'code': 403, u'message': u"Policy doesn't allow share:get to be performed."} ====== Totals ====== Ran: 15 tests in 115.0000 sec. - Passed: 13 - Skipped: 0 - Expected Fail: 0 - Unexpected Success: 0 - Failed: 2 Sum of execute time for each test: 1.6785 sec. ============== Worker Balance ============== - Worker 0 (15 tests) => 0:01:02.347507 ERROR: InvocationError: '/opt/stack/new/tempest/.tox/all-plugin/bin/tempest run --regex manila_tempest_tests.tests.api.admin.test_export_locations' _________________________________________________________________ summary __________________________________________________________________ ERROR: all-plugin: commands failed