Manila related configuration in tempest.conf as followes:
manila = true
[share]
capability_create_share_from_snapshot_support = True
build_timeout = 2000
enable_protocols = nfs
suppress_errors_in_cleanup = True
share_creation_retry_number = 2
default_share_type_name = default
backend_names = generic1,generic2
multi_backend = True
image_with_share_tools = manila-service-image-master
image_password = manila
----------------------------------------------------------------------------------------
default_share_type_name is configured with the name of type;
Executing tempest test:manila_tempest_tests.tests.scenario.test_share_basic_ops;
when share is created, share type not found.
The logs as followes:
Traceback (most recent call last):
File "tempest/test.py", line 99, in wrapper
return f(self, *func_args, **func_kwargs)
File "/root/wsl-tempest/tempest/.venv/lib/python2.7/site-packages/manila_tempest_tests/tests/scenario/test_share_basic_ops.py", line 215, in test_mount_share_one_vm
self.create_share()
File "/root/wsl-tempest/tempest/.venv/lib/python2.7/site-packages/manila_tempest_tests/tests/scenario/test_share_basic_ops.py", line 170, in create_share
'share_type_id': self._get_share_type()['id'],
File "/root/wsl-tempest/tempest/.venv/lib/python2.7/site-packages/manila_tempest_tests/tests/scenario/test_share_basic_ops.py", line 158, in _get_share_type
if CONF.share.default_share_type_name:
File "/root/wsl-tempest/tempest/.venv/lib/python2.7/site-packages/manila_tempest_tests/services/share/json/shares_client.py", line 641, in get_share_type
resp, body = self.get("types/%s" % share_type_id)
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 761, in _error_checker
raise exceptions.NotFound(resp_body, resp=resp)
tempest.lib.exceptions.NotFound: Object not found
Details: {u'message': u'Share type not found.', u'code': 404}
Did you create a share type named 'default'?
Please check the output of the 'manila type-list' command.