GUI acceptance tests using environment deployed from packages.
Build: #2939 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 2,939 of Onedata Products - gui acceptance pkg - 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":"unregisteredOneprovider","description":"This Oneprovider is not registered."}} zone_hostname = 'dev-onezone.default.svc.cluster.local' onepanel_credentials = <tests.utils.user_utils.AdminUser object at 0x7fc5f0bdc680> owner_credentials = <tests.utils.user_utils.User object at 0x7fc5f1d541a0> space_id = 'af1c2987405e1fb07413ab904f51ef60chd2a6' storages_db = {'dev-oneprovider-krakow': {}} hosts = {'oneprovider-1': {'container-id': 'bc1edd7af2812dd5008c86c140b0520c063b838ac860392ed19cd51bf806f01b', 'hostname': 'de...65ffcbb4364f', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.86.140', 'name': 'dev-onezone', ...}} providers = [{'oneprovider-1': {'size': 1000000, 'storage': 'posix'}}] members = [] users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7fc5f0fb6840>, 'onepanel': <tests.utils.user_utils.AdminUser o...tests.utils.user_utils.User object at 0x7fc5f1d541a0>, 'user1': <tests.utils.user_utils.User object at 0x7fc5f1bcb950>} 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 0x7fc5f278b560> 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 0x7fc5f278b560> 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 0x7fc5f278b560> 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 0x7fc5f278b560> 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 0x7fc5f278b560> 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":"unregisteredOneprovider","description":"This Oneprovider is not registered."}} tests/utils/http_exceptions.py:15: HTTPServiceUnavailable During handling of the above exception, another exception occurred: fixturefunc = <function create_and_configure_spaces_step at 0x7fc5f13716c0> 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 0x7fc5f0fb6840>, 'config': 'space1:\n owner: spac...b4364f', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.86.140', '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":"unregisteredOneprovider","description":"This Oneprovider is not registered."}} tests/utils/http_exceptions.py:15: HTTPServiceUnavailable