Build: #4 failed
Job: Onepanel basic failed
user deregisters provider registers it again and sees that provider is working[1oz 1op deployed]: Test case result
The below summarizes the result of the test " user deregisters provider registers it again and sees that provider is working[1oz 1op deployed]" in build 4 of Onedata Products - gui acceptance pkg - feature-VFS-12098-test-couchbase-upgrade-to-6.x-from-4.1 - Onepanel basic.
- Description
- user deregisters provider registers it again and sees that provider is working[1oz 1op deployed]
- Test class
- gui.scenarios.test_onepanel_basic
- Method
- test_user_deregisters_provider_registers_it_again_and_sees_that_provider_is_working[1oz_1op_deployed]
- Duration
- 1 min
- Status
- Failed (New Failure)
Error Log
tests.utils.http_exceptions.HTTPServiceUnavailable: [503] Service Unavailable: {"error":{"id":"serviceUnavailable","description":"Service required for this operation is offline."}} zone_hostname = 'dev-onezone.default.svc.cluster.local' onepanel_credentials = <tests.utils.user_utils.AdminUser object at 0x7f72d5e6ddc0> owner_credentials = <tests.utils.user_utils.User object at 0x7f72d5e5f4d0> space_id = 'ec1905a1f9a744ec53692d543d9f0546ch8d78' storages_db = {'dev-oneprovider-krakow': {}} hosts = {'oneprovider-1': {'container-id': '08130475ac55cedc7b7b6887010f9ce3ce871edb27a77472cf1d8d54aa24daee', 'hostname': 'de...cbbc5c36f61ac', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.60.49', 'name': 'dev-onezone', ...}} providers = [{'oneprovider-1': {'size': 1000000, 'storage': 'posix'}}] members = [] users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7f72d5fd89b0>, 'onepanel': <tests.utils.user_utils.AdminUser o...tests.utils.user_utils.User object at 0x7f72d5e5f4d0>, 'user1': <tests.utils.user_utils.User object at 0x7f72d6c8a240>} def _get_support(zone_hostname, onepanel_credentials, owner_credentials, space_id, storages_db, hosts, providers, members, users): onepanel_username = onepanel_credentials.username onepanel_password = onepanel_credentials.password for provider in providers: [(provider, options)] = provider.items() provider_name = hosts[provider]['name'] provider_hostname = hosts[provider]['hostname'] storage_name = options['storage'] try: > storage_id = storages_db[provider_name][storage_name] E KeyError: 'dev-oneprovider-krakow' tests/utils/entities_setup/spaces.py:224: KeyError During handling of the above exception, another exception occurred: http_method = <function get at 0x7f72d7949300> ip = 'dev-oneprovider-krakow.default.svc.cluster.local', port = 9443 path = '/api/v3/onepanel/provider/storages', use_ssl = True, headers = None verify = False, cert = None, auth = ('onepanel', 'password'), data = None default_headers = True, retries = 5 def http_request(http_method, ip, port, path, use_ssl=True, headers=None, verify=False, cert=None, auth=None, data=None, default_headers=True, retries=5): protocol = 'https' if use_ssl else 'http' request_headers = DEFAULT_HEADERS.copy() if default_headers else {} if headers: request_headers.update(headers) try: response = http_method('{0}://{1}:{2}{3}'.format(protocol, ip, port, path), verify=verify, headers=request_headers, timeout=40, cert=cert, auth=auth, data=data) if 200 <= response.status_code < 300: return response else: > raise_http_exception(response) tests/utils/rest_utils.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ response = <Response [503]> def raise_http_exception(response): ex_cls = _exceptions.get(response.status_code, HTTPError) > raise ex_cls(response) E tests.utils.http_exceptions.HTTPServiceUnavailable: [503] Service Unavailable: {"error":{"id":"unregisteredOneprovider","description":"This Oneprovider is not registered."}} tests/utils/http_exceptions.py:15: HTTPServiceUnavailable During handling of the above exception, another exception occurred: http_method = <function get at 0x7f72d7949300> ip = 'dev-oneprovider-krakow.default.svc.cluster.local', port = 9443 path = '/api/v3/onepanel/provider/storages', use_ssl = True, headers = None verify = False, cert = None, auth = ('onepanel', 'password'), data = None default_headers = True, retries = 4 def http_request(http_method, ip, port, path, use_ssl=True, headers=None, verify=False, cert=None, auth=None, data=None, default_headers=True, retries=5): protocol = 'https' if use_ssl else 'http' request_headers = DEFAULT_HEADERS.copy() if default_headers else {} if headers: request_headers.update(headers) try: response = http_method('{0}://{1}:{2}{3}'.format(protocol, ip, port, path), verify=verify, headers=request_headers, timeout=40, cert=cert, auth=auth, data=data) if 200 <= response.status_code < 300: return response else: > raise_http_exception(response) tests/utils/rest_utils.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ response = <Response [503]> def raise_http_exception(response): ex_cls = _exceptions.get(response.status_code, HTTPError) > raise ex_cls(response) E tests.utils.http_exceptions.HTTPServiceUnavailable: [503] Service Unavailable: {"error":{"id":"unregisteredOneprovider","description":"This Oneprovider is not registered."}} tests/utils/http_exceptions.py:15: HTTPServiceUnavailable During handling of the above exception, another exception occurred: http_method = <function get at 0x7f72d7949300> ip = 'dev-oneprovider-krakow.default.svc.cluster.local', port = 9443 path = '/api/v3/onepanel/provider/storages', use_ssl = True, headers = None verify = False, cert = None, auth = ('onepanel', 'password'), data = None default_headers = True, retries = 3 def http_request(http_method, ip, port, path, use_ssl=True, headers=None, verify=False, cert=None, auth=None, data=None, default_headers=True, retries=5): protocol = 'https' if use_ssl else 'http' request_headers = DEFAULT_HEADERS.copy() if default_headers else {} if headers: request_headers.update(headers) try: response = http_method('{0}://{1}:{2}{3}'.format(protocol, ip, port, path), verify=verify, headers=request_headers, timeout=40, cert=cert, auth=auth, data=data) if 200 <= response.status_code < 300: return response else: > raise_http_exception(response) tests/utils/rest_utils.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ response = <Response [503]> def raise_http_exception(response): ex_cls = _exceptions.get(response.status_code, HTTPError) > raise ex_cls(response) E tests.utils.http_exceptions.HTTPServiceUnavailable: [503] Service Unavailable: {"error":{"id":"unregisteredOneprovider","description":"This Oneprovider is not registered."}} tests/utils/http_exceptions.py:15: HTTPServiceUnavailable During handling of the above exception, another exception occurred: http_method = <function get at 0x7f72d7949300> ip = 'dev-oneprovider-krakow.default.svc.cluster.local', port = 9443 path = '/api/v3/onepanel/provider/storages', use_ssl = True, headers = None verify = False, cert = None, auth = ('onepanel', 'password'), data = None default_headers = True, retries = 2 def http_request(http_method, ip, port, path, use_ssl=True, headers=None, verify=False, cert=None, auth=None, data=None, default_headers=True, retries=5): protocol = 'https' if use_ssl else 'http' request_headers = DEFAULT_HEADERS.copy() if default_headers else {} if headers: request_headers.update(headers) try: response = http_method('{0}://{1}:{2}{3}'.format(protocol, ip, port, path), verify=verify, headers=request_headers, timeout=40, cert=cert, auth=auth, data=data) if 200 <= response.status_code < 300: return response else: > raise_http_exception(response) tests/utils/rest_utils.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ response = <Response [503]> def raise_http_exception(response): ex_cls = _exceptions.get(response.status_code, HTTPError) > raise ex_cls(response) E tests.utils.http_exceptions.HTTPServiceUnavailable: [503] Service Unavailable: {"error":{"id":"unregisteredOneprovider","description":"This Oneprovider is not registered."}} tests/utils/http_exceptions.py:15: HTTPServiceUnavailable During handling of the above exception, another exception occurred: http_method = <function get at 0x7f72d7949300> ip = 'dev-oneprovider-krakow.default.svc.cluster.local', port = 9443 path = '/api/v3/onepanel/provider/storages', use_ssl = True, headers = None verify = False, cert = None, auth = ('onepanel', 'password'), data = None default_headers = True, retries = 1 def http_request(http_method, ip, port, path, use_ssl=True, headers=None, verify=False, cert=None, auth=None, data=None, default_headers=True, retries=5): protocol = 'https' if use_ssl else 'http' request_headers = DEFAULT_HEADERS.copy() if default_headers else {} if headers: request_headers.update(headers) try: response = http_method('{0}://{1}:{2}{3}'.format(protocol, ip, port, path), verify=verify, headers=request_headers, timeout=40, cert=cert, auth=auth, data=data) if 200 <= response.status_code < 300: return response else: > raise_http_exception(response) tests/utils/rest_utils.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ response = <Response [503]> def raise_http_exception(response): ex_cls = _exceptions.get(response.status_code, HTTPError) > raise ex_cls(response) E tests.utils.http_exceptions.HTTPServiceUnavailable: [503] Service Unavailable: {"error":{"id":"serviceUnavailable","description":"Service required for this operation is offline."}} tests/utils/http_exceptions.py:15: HTTPServiceUnavailable During handling of the above exception, another exception occurred: fixturefunc = <function create_and_configure_spaces_step at 0x7f72d6b3ab60> request = <FixtureRequest for <Function test_user_deregisters_provider_registers_it_again_and_sees_that_provider_is_working[1oz_1op_deployed]>> kwargs = {'admin_credentials': <tests.utils.user_utils.AdminUser object at 0x7f72d5fd89b0>, 'config': 'space1:\n owner: spac...36f61ac', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.60.49', 'name': 'dev-onezone', ...}}, ...} def call_fixture_func( fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs ) -> FixtureValue: if is_generator(fixturefunc): fixturefunc = cast( Callable[..., Generator[FixtureValue, None, None]], fixturefunc ) generator = fixturefunc(**kwargs) try: fixture_result = next(generator) except StopIteration: raise ValueError(f"{request.fixturename} did not yield a value") from None finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator) request.addfinalizer(finalizer) else: fixturefunc = cast(Callable[..., FixtureValue], fixturefunc) > fixture_result = fixturefunc(**kwargs) /usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils/bdd_utils.py:78: in wrapper return fun(*ba.args, **ba.kwargs) tests/utils/entities_setup/spaces.py:30: in create_and_configure_spaces_step create_and_configure_spaces(yaml.load(config, yaml.Loader), zone_host, admin_credentials, onepanel_credentials, hosts, tests/utils/entities_setup/spaces.py:108: in create_and_configure_spaces _create_and_configure_spaces(config, zone_host, admin_credentials, tests/utils/entities_setup/spaces.py:138: in _create_and_configure_spaces _get_support(zone_hostname, onepanel_credentials, owner, space_id, tests/utils/entities_setup/spaces.py:229: in _get_support _get_storage_id(provider_hostname, onepanel_username, tests/utils/entities_setup/spaces.py:267: in _get_storage_id storages_id = http_get(ip=provider_hostname, port=PANEL_REST_PORT, tests/utils/rest_utils.py:47: in http_get return http_request(requests.get, ip, port, path, use_ssl, headers, tests/utils/rest_utils.py:93: in http_request return http_request(http_method, ip, port, path, use_ssl, headers, tests/utils/rest_utils.py:93: in http_request return http_request(http_method, ip, port, path, use_ssl, headers, tests/utils/rest_utils.py:93: in http_request return http_request(http_method, ip, port, path, use_ssl, headers, tests/utils/rest_utils.py:93: in http_request return http_request(http_method, ip, port, path, use_ssl, headers, tests/utils/rest_utils.py:93: in http_request return http_request(http_method, ip, port, path, use_ssl, headers, tests/utils/rest_utils.py:96: in http_request raise e tests/utils/rest_utils.py:89: in http_request raise_http_exception(response) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ response = <Response [503]> def raise_http_exception(response): ex_cls = _exceptions.get(response.status_code, HTTPError) > raise ex_cls(response) E tests.utils.http_exceptions.HTTPServiceUnavailable: [503] Service Unavailable: {"error":{"id":"serviceUnavailable","description":"Service required for this operation is offline."}} tests/utils/http_exceptions.py:15: HTTPServiceUnavailable