GUI acceptance tests using environment deployed from packages.

Build: #2942 failed

Job: Onepanel basic failed

Stages & jobs

  1. Qnthack - copy quarantine

  2. Acceptance Test

  3. Qnthack - rerun

    Final

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,942 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 0x7f22cff4bbf0>
owner_credentials = <tests.utils.user_utils.User object at 0x7f22cff4b950>
space_id = '8be8020ffac5a1ca132d58ab20c5fdc8chcc66'
storages_db = {'dev-oneprovider-krakow': {}}
hosts = {'oneprovider-1': {'container-id': '0c4086946be5bb1e12950311ee2c8c1ae27a3e90dcddd3631d2c3855b0335856', 'hostname': 'de...da67b8fd362b', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.42.105', 'name': 'dev-onezone', ...}}
providers = [{'oneprovider-1': {'size': 1000000, 'storage': 'posix'}}]
members = []
users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7f22cf27f5f0>, 'onepanel': <tests.utils.user_utils.AdminUser o...tests.utils.user_utils.User object at 0x7f22cff4b950>, 'user1': <tests.utils.user_utils.User object at 0x7f22cf301520>}

    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 0x7f22d0ac2a20>
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 0x7f22d0ac2a20>
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":"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:

http_method = <function get at 0x7f22d0ac2a20>
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":"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:

http_method = <function get at 0x7f22d0ac2a20>
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":"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:

http_method = <function get at 0x7f22d0ac2a20>
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 0x7f22cf6f16c0>
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 0x7f22cf27f5f0>, 'config': 'space1:\n    owner: spac...fd362b', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.42.105', '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