Acceptance tests using different clients concurrently. Environment deployed from packages.

Build: #3284 was successful

Job: Spaces basic was successful

Build log

The build generated 7,598 lines of output.   The output is too long and has been truncated to the last 1,000 lines. Download or view full build log.

19-Nov-2024 22:00:01             try:
19-Nov-2024 22:00:01                 client = cdmi(hosts[host]["ip"], users[user].token)
19-Nov-2024 22:00:01                 client.move_item_by_id(dir_id, "/new_name")
19-Nov-2024 22:00:01                 raise AssertionError(err_msg)
19-Nov-2024 22:00:01             except (HTTPForbidden, HTTPBadRequest) as e:
19-Nov-2024 22:00:01                 ex_err_msg = "Operation failed with POSIX error: eperm."
19-Nov-2024 22:00:01 >               assert ex_err_msg in str(e), f"Unexpected error occurred {e}"
19-Nov-2024 22:00:01 E               AssertionError: Unexpected error occurred [400] Bad Request: {"error":{"id":"posix","details":{"errno":"enoent"},"description":"Operation failed with POSIX error: enoent."}}
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 tests/mixed/steps/rest/onezone/special_dirs.py:187: AssertionError
19-Nov-2024 22:00:01 ___ test_user_fails_to_move_the_share_root_directory[1oz_1op_1oc-oneclient1] ___
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 fixturefunc = <function try_to_move_special_dir at 0x7fe15c3e2520>
19-Nov-2024 22:00:01 request = <FixtureRequest for <Function test_user_fails_to_move_the_share_root_directory[1oz_1op_1oc-oneclient1]>>
19-Nov-2024 22:00:01 kwargs = {'cdmi': <class 'tests.gui.utils.oneservices.cdmi.CDMIClient'>, 'client': 'oneclient1', 'host': 'oneprovider-1', 'host...f0d3a4', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.110.36', 'name': 'dev-onezone', ...}}, ...}
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01     def call_fixture_func(
19-Nov-2024 22:00:01         fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
19-Nov-2024 22:00:01     ) -> FixtureValue:
19-Nov-2024 22:00:01         if is_generator(fixturefunc):
19-Nov-2024 22:00:01             fixturefunc = cast(
19-Nov-2024 22:00:01                 Callable[..., Generator[FixtureValue, None, None]], fixturefunc
19-Nov-2024 22:00:01             )
19-Nov-2024 22:00:01             generator = fixturefunc(**kwargs)
19-Nov-2024 22:00:01             try:
19-Nov-2024 22:00:01                 fixture_result = next(generator)
19-Nov-2024 22:00:01             except StopIteration:
19-Nov-2024 22:00:01                 raise ValueError(f"{request.fixturename} did not yield a value") from None
19-Nov-2024 22:00:01             finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
19-Nov-2024 22:00:01             request.addfinalizer(finalizer)
19-Nov-2024 22:00:01         else:
19-Nov-2024 22:00:01             fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
19-Nov-2024 22:00:01 >           fixture_result = fixturefunc(**kwargs)
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 /usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913:
19-Nov-2024 22:00:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Nov-2024 22:00:01 tests/utils/bdd_utils.py:78: in wrapper
19-Nov-2024 22:00:01     return fun(*ba.args, **ba.kwargs)
19-Nov-2024 22:00:01 tests/mixed/steps/rest/onezone/special_dirs.py:165: in try_to_move_special_dir
19-Nov-2024 22:00:01     try_to_move_special_dir_by_id(
19-Nov-2024 22:00:01 tests/mixed/steps/rest/onezone/special_dirs.py:191: in try_to_move_special_dir_by_id
19-Nov-2024 22:00:01     move_dir_by_id(user, oneclient_host, users, dir_id, "new_name")
19-Nov-2024 22:00:01 tests/oneclient/steps/multi_dir_steps.py:180: in move_dir_by_id
19-Nov-2024 22:00:01     client.mv(
19-Nov-2024 22:00:01 tests/utils/client_utils.py:107: in mv
19-Nov-2024 22:00:01     self.rpyc_connection.modules.shutil.move(src, dest)
19-Nov-2024 22:00:01 /usr/local/lib/python3.12/dist-packages/rpyc/core/netref.py:240: in __call__
19-Nov-2024 22:00:01     return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
19-Nov-2024 22:00:01 /usr/local/lib/python3.12/dist-packages/rpyc/core/netref.py:63: in syncreq
19-Nov-2024 22:00:01     return conn.sync_request(handler, proxy, *args)
19-Nov-2024 22:00:01 /usr/local/lib/python3.12/dist-packages/rpyc/core/protocol.py:718: in sync_request
19-Nov-2024 22:00:01     return _async_res.value
19-Nov-2024 22:00:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 self = <AsyncResult object (ready) at 0x7fe15bdb7ab0>
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01     @property
19-Nov-2024 22:00:01     def value(self):
19-Nov-2024 22:00:01         """Returns the result of the operation. If the result has not yet
19-Nov-2024 22:00:01         arrived, accessing this property will wait for it. If the result does
19-Nov-2024 22:00:01         not arrive before the expiry time elapses, :class:`AsyncResultTimeout`
19-Nov-2024 22:00:01         is raised. If the returned result is an exception, it will be raised
19-Nov-2024 22:00:01         here. Otherwise, the result is returned directly.
19-Nov-2024 22:00:01         """
19-Nov-2024 22:00:01         self.wait()
19-Nov-2024 22:00:01         if self._is_exc:
19-Nov-2024 22:00:01 >           raise self._obj
19-Nov-2024 22:00:01 E           _get_exception_class.<locals>.Derived: [Errno 36] File name too long: '/tmp/onedata/mnt/new_name/.__onedata__file_id__0000000000843A0B7368617265477569642373706163655F6665383736623165333038333565303636633439643038303462666337626437636830646231236665383736623165333038333565303636633439643038303462666337626437636830646231233230313763653032316633646431353163646566613665653265653635623136636839356331' -> None
19-Nov-2024 22:00:01 E           
19-Nov-2024 22:00:01 E           ========= Remote Traceback (1) =========
19-Nov-2024 22:00:01 E           Traceback (most recent call last):
19-Nov-2024 22:00:01 E             File "/usr/lib/python3.8/shutil.py", line 791, in move
19-Nov-2024 22:00:01 E               os.rename(src, real_dst)
19-Nov-2024 22:00:01 E           OSError: [Errno 18] Invalid cross-device link: '/tmp/onedata/mnt/dkbodbqf5q4yy2w0/.__onedata__file_id__0000000000843A0B7368617265477569642373706163655F6665383736623165333038333565303636633439643038303462666337626437636830646231236665383736623165333038333565303636633439643038303462666337626437636830646231233230313763653032316633646431353163646566613665653265653635623136636839356331' -> '/tmp/onedata/mnt/new_name/.__onedata__file_id__0000000000843A0B7368617265477569642373706163655F6665383736623165333038333565303636633439643038303462666337626437636830646231236665383736623165333038333565303636633439643038303462666337626437636830646231233230313763653032316633646431353163646566613665653265653635623136636839356331'
19-Nov-2024 22:00:01 E           
19-Nov-2024 22:00:01 E           During handling of the above exception, another exception occurred:
19-Nov-2024 22:00:01 E           
19-Nov-2024 22:00:01 E           Traceback (most recent call last):
19-Nov-2024 22:00:01 E             File "/usr/local/lib/python3.8/dist-packages/rpyc/core/protocol.py", line 324, in _dispatch_request
19-Nov-2024 22:00:01 E               res = self._HANDLERS[handler](self, *args)
19-Nov-2024 22:00:01 E             File "/usr/local/lib/python3.8/dist-packages/rpyc/core/protocol.py", line 592, in _handle_call
19-Nov-2024 22:00:01 E               return obj(*args, **dict(kwargs))
19-Nov-2024 22:00:01 E             File "/usr/lib/python3.8/shutil.py", line 807, in move
19-Nov-2024 22:00:01 E               copytree(src, real_dst, copy_function=copy_function,
19-Nov-2024 22:00:01 E             File "/usr/lib/python3.8/shutil.py", line 557, in copytree
19-Nov-2024 22:00:01 E               return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
19-Nov-2024 22:00:01 E             File "/usr/lib/python3.8/shutil.py", line 458, in _copytree
19-Nov-2024 22:00:01 E               os.makedirs(dst, exist_ok=dirs_exist_ok)
19-Nov-2024 22:00:01 E             File "/usr/lib/python3.8/os.py", line 223, in makedirs
19-Nov-2024 22:00:01 E               mkdir(name, mode)
19-Nov-2024 22:00:01 E           OSError: [Errno 36] File name too long: '/tmp/onedata/mnt/new_name/.__onedata__file_id__0000000000843A0B7368617265477569642373706163655F6665383736623165333038333565303636633439643038303462666337626437636830646231236665383736623165333038333565303636633439643038303462666337626437636830646231233230313763653032316633646431353163646566613665653265653635623136636839356331'
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 /usr/local/lib/python3.12/dist-packages/rpyc/core/async_.py:108: OSError
19-Nov-2024 22:00:01 _ test_user_fails_to_create_file_in_the_share_root_directory[1oz_1op_1oc-REST] _
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 client = 'REST'
19-Nov-2024 22:00:01 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7fe15bd6f6b0>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7fe15be87500>, 'user1': <tests.utils.user_utils.User object at 0x7fe15be87d70>, ...}
19-Nov-2024 22:00:01 user = 'user1'
19-Nov-2024 22:00:01 hosts = {'oneclient-1': {'container-id': '9f9299d3c5cd534f179a054c745e89c18ff1e4e38b53a663db378c740fbc60c2', 'ip': '10.244.110...a86fe3f0d3a4', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.110.36', 'name': 'dev-onezone', ...}}
19-Nov-2024 22:00:01 host = 'oneprovider-1'
19-Nov-2024 22:00:01 dir_id = '00000000008409427368617265477569642373706163655F613030396131303232323564356564653564396234386239633232353561356363683...3962343862396332323535613563636835646335236438623936616464333537383865373730386632663235396230303963396236636837356661'
19-Nov-2024 22:00:01 file_name = 'some_name.txt'
19-Nov-2024 22:00:01 err_msg = 'File created in share root dir, but creation should have failed'
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01     def try_to_create_file_in_special_dir_by_id(
19-Nov-2024 22:00:01         client, users, user, hosts, host, dir_id, file_name, err_msg=""
19-Nov-2024 22:00:01     ):
19-Nov-2024 22:00:01         if client.lower() == "rest":
19-Nov-2024 22:00:01             try:
19-Nov-2024 22:00:01 >               create_empty_file_in_dir_rest(users, user, hosts, host, dir_id, file_name)
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 tests/mixed/steps/rest/onezone/special_dirs.py:243:
19-Nov-2024 22:00:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Nov-2024 22:00:01 tests/mixed/steps/rest/oneprovider/data.py:438: in create_empty_file_in_dir_rest
19-Nov-2024 22:00:01     upload_file_rest(users, user, hosts, host, "", name, dir_id)
19-Nov-2024 22:00:01 tests/mixed/steps/rest/oneprovider/data.py:398: in upload_file_rest
19-Nov-2024 22:00:01     _ = http_post(
19-Nov-2024 22:00:01 tests/utils/rest_utils.py:59: in http_post
19-Nov-2024 22:00:01     return http_request(requests.post, ip, port, path, use_ssl, headers,
19-Nov-2024 22:00:01 tests/utils/rest_utils.py:89: in http_request
19-Nov-2024 22:00:01     raise_http_exception(response)
19-Nov-2024 22:00:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 response = <Response [400]>
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01     def raise_http_exception(response):
19-Nov-2024 22:00:01         ex_cls = _exceptions.get(response.status_code, HTTPError)
19-Nov-2024 22:00:01 >       raise ex_cls(response)
19-Nov-2024 22:00:01 E       tests.utils.http_exceptions.HTTPBadRequest: [400] Bad Request: {"error":{"id":"notSupported","description":"This operation is not supported."}}
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 tests/utils/http_exceptions.py:15: HTTPBadRequest
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 During handling of the above exception, another exception occurred:
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 fixturefunc = <function try_to_create_file_in_special_dir at 0x7fe15c3e2f20>
19-Nov-2024 22:00:01 request = <FixtureRequest for <Function test_user_fails_to_create_file_in_the_share_root_directory[1oz_1op_1oc-REST]>>
19-Nov-2024 22:00:01 kwargs = {'client': 'REST', 'file_name': 'some_name.txt', 'host': 'oneprovider-1', 'hosts': {'oneclient-1': {'container-id': '9...f0d3a4', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.110.36', 'name': 'dev-onezone', ...}}, ...}
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01     def call_fixture_func(
19-Nov-2024 22:00:01         fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
19-Nov-2024 22:00:01     ) -> FixtureValue:
19-Nov-2024 22:00:01         if is_generator(fixturefunc):
19-Nov-2024 22:00:01             fixturefunc = cast(
19-Nov-2024 22:00:01                 Callable[..., Generator[FixtureValue, None, None]], fixturefunc
19-Nov-2024 22:00:01             )
19-Nov-2024 22:00:01             generator = fixturefunc(**kwargs)
19-Nov-2024 22:00:01             try:
19-Nov-2024 22:00:01                 fixture_result = next(generator)
19-Nov-2024 22:00:01             except StopIteration:
19-Nov-2024 22:00:01                 raise ValueError(f"{request.fixturename} did not yield a value") from None
19-Nov-2024 22:00:01             finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
19-Nov-2024 22:00:01             request.addfinalizer(finalizer)
19-Nov-2024 22:00:01         else:
19-Nov-2024 22:00:01             fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
19-Nov-2024 22:00:01 >           fixture_result = fixturefunc(**kwargs)
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 /usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913:
19-Nov-2024 22:00:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Nov-2024 22:00:01 tests/utils/bdd_utils.py:78: in wrapper
19-Nov-2024 22:00:01     return fun(*ba.args, **ba.kwargs)
19-Nov-2024 22:00:01 tests/mixed/steps/rest/onezone/special_dirs.py:226: in try_to_create_file_in_special_dir
19-Nov-2024 22:00:01     try_to_create_file_in_special_dir_by_id(
19-Nov-2024 22:00:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 client = 'REST'
19-Nov-2024 22:00:01 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7fe15bd6f6b0>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7fe15be87500>, 'user1': <tests.utils.user_utils.User object at 0x7fe15be87d70>, ...}
19-Nov-2024 22:00:01 user = 'user1'
19-Nov-2024 22:00:01 hosts = {'oneclient-1': {'container-id': '9f9299d3c5cd534f179a054c745e89c18ff1e4e38b53a663db378c740fbc60c2', 'ip': '10.244.110...a86fe3f0d3a4', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.110.36', 'name': 'dev-onezone', ...}}
19-Nov-2024 22:00:01 host = 'oneprovider-1'
19-Nov-2024 22:00:01 dir_id = '00000000008409427368617265477569642373706163655F613030396131303232323564356564653564396234386239633232353561356363683...3962343862396332323535613563636835646335236438623936616464333537383865373730386632663235396230303963396236636837356661'
19-Nov-2024 22:00:01 file_name = 'some_name.txt'
19-Nov-2024 22:00:01 err_msg = 'File created in share root dir, but creation should have failed'
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01     def try_to_create_file_in_special_dir_by_id(
19-Nov-2024 22:00:01         client, users, user, hosts, host, dir_id, file_name, err_msg=""
19-Nov-2024 22:00:01     ):
19-Nov-2024 22:00:01         if client.lower() == "rest":
19-Nov-2024 22:00:01             try:
19-Nov-2024 22:00:01                 create_empty_file_in_dir_rest(users, user, hosts, host, dir_id, file_name)
19-Nov-2024 22:00:01                 raise AssertionError(err_msg)
19-Nov-2024 22:00:01             except (ApiException, HTTPBadRequest) as e:
19-Nov-2024 22:00:01                 ex_err_msg = "Operation failed with POSIX error: eperm."
19-Nov-2024 22:00:01 >               assert ex_err_msg in str(e), f"Unexpected error occurred {e}"
19-Nov-2024 22:00:01 E               AssertionError: Unexpected error occurred [400] Bad Request: {"error":{"id":"notSupported","description":"This operation is not supported."}}
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 tests/mixed/steps/rest/onezone/special_dirs.py:247: AssertionError
19-Nov-2024 22:00:01 _ test_user_fails_to_add_qos_requirement_to_the_share_root_directory[1oz_1op_1oc] _
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 user = 'user1'
19-Nov-2024 22:00:01 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7fe15bfbcb00>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7fe15c07da00>, 'user1': <tests.utils.user_utils.User object at 0x7fe15bdb0350>, ...}
19-Nov-2024 22:00:01 hosts = {'oneclient-1': {'container-id': '9f9299d3c5cd534f179a054c745e89c18ff1e4e38b53a663db378c740fbc60c2', 'ip': '10.244.110...a86fe3f0d3a4', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.110.36', 'name': 'dev-onezone', ...}}
19-Nov-2024 22:00:01 host = 'oneprovider-1'
19-Nov-2024 22:00:01 dir_id = '000000000084096C7368617265477569642373706163655F656237373064303836623032393133333135323437656362353064643030616663683...3234376563623530646430306166636833316532236664323665376533373834313065663137333364306137346263653062356162636861303530'
19-Nov-2024 22:00:01 expression = 'geo=PL'
19-Nov-2024 22:00:01 err_msg = 'Qos requirement added to share root dir, but adding should have failed'
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01     def try_to_add_qos_to_special_dir_by_id(
19-Nov-2024 22:00:01         user, users, hosts, host, dir_id, expression, err_msg=""
19-Nov-2024 22:00:01     ):
19-Nov-2024 22:00:01         try:
19-Nov-2024 22:00:01 >           create_qos_requirement_in_op_by_id_rest(
19-Nov-2024 22:00:01                 user, users, hosts, host, expression, dir_id
19-Nov-2024 22:00:01             )
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 tests/mixed/steps/rest/onezone/special_dirs.py:299:
19-Nov-2024 22:00:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Nov-2024 22:00:01 tests/mixed/steps/rest/oneprovider/qos.py:29: in create_qos_requirement_in_op_by_id_rest
19-Nov-2024 22:00:01     qos_api.add_qos_requirement(data)
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/api/qo_s_api.py:55: in add_qos_requirement
19-Nov-2024 22:00:01     (data) = self.add_qos_requirement_with_http_info(data, **kwargs)  # noqa: E501
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/api/qo_s_api.py:119: in add_qos_requirement_with_http_info
19-Nov-2024 22:00:01     return self.api_client.call_api(
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/api_client.py:326: in call_api
19-Nov-2024 22:00:01     return self.__call_api(resource_path, method,
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/api_client.py:158: in __call_api
19-Nov-2024 22:00:01     response_data = self.request(
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/api_client.py:368: in request
19-Nov-2024 22:00:01     return self.rest_client.POST(url,
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/rest.py:269: in POST
19-Nov-2024 22:00:01     return self.request("POST", url,
19-Nov-2024 22:00:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 self = <oneprovider_client.rest.RESTClientObject object at 0x7fe15c0ad400>
19-Nov-2024 22:00:01 method = 'POST'
19-Nov-2024 22:00:01 url = 'https://dev-oneprovider-krakow.default.svc.cluster.local:443/api/v3/oneprovider/qos_requirements'
19-Nov-2024 22:00:01 query_params = []
19-Nov-2024 22:00:01 headers = {'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/21.02.7/python', 'X-...MxMWM4ZWNoMzk5NwowMDFhY2lkIHRpbWUgPCAxNzYzNTg5NTM00CjAwMmZzaWduYXR1cmUgbwwIKd3dunLlbzUxB6SwJu028de7gOdagJfF01sZbwQO8K'}
19-Nov-2024 22:00:01 body = {'expression': 'geo=PL', 'fileId': '000000000084096C7368617265477569642373706163655F6562373730643038366230323931333331...234376563623530646430306166636833316532236664323665376533373834313065663137333364306137346263653062356162636861303530'}
19-Nov-2024 22:00:01 post_params = {}, _preload_content = True, _request_timeout = None
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01     def request(self, method, url, query_params=None, headers=None,
19-Nov-2024 22:00:01                 body=None, post_params=None, _preload_content=True,
19-Nov-2024 22:00:01                 _request_timeout=None):
19-Nov-2024 22:00:01         """Perform requests.
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         :param method: http request method
19-Nov-2024 22:00:01         :param url: http request url
19-Nov-2024 22:00:01         :param query_params: query parameters in the url
19-Nov-2024 22:00:01         :param headers: http request headers
19-Nov-2024 22:00:01         :param body: request json body, for `application/json`
19-Nov-2024 22:00:01         :param post_params: request post parameters,
19-Nov-2024 22:00:01                             `application/x-www-form-urlencoded`
19-Nov-2024 22:00:01                             and `multipart/form-data`
19-Nov-2024 22:00:01         :param _preload_content: if False, the urllib3.HTTPResponse object will
19-Nov-2024 22:00:01                                  be returned without reading/decoding response
19-Nov-2024 22:00:01                                  data. Default is True.
19-Nov-2024 22:00:01         :param _request_timeout: timeout setting for this request. If one
19-Nov-2024 22:00:01                                  number provided, it will be total request
19-Nov-2024 22:00:01                                  timeout. It can also be a pair (tuple) of
19-Nov-2024 22:00:01                                  (connection, read) timeouts.
19-Nov-2024 22:00:01         """
19-Nov-2024 22:00:01         method = method.upper()
19-Nov-2024 22:00:01         assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT',
19-Nov-2024 22:00:01                           'PATCH', 'OPTIONS']
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         if post_params and body:
19-Nov-2024 22:00:01             raise ValueError(
19-Nov-2024 22:00:01                 "body parameter cannot be used with post_params parameter."
19-Nov-2024 22:00:01             )
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         post_params = post_params or {}
19-Nov-2024 22:00:01         headers = headers or {}
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         timeout = None
19-Nov-2024 22:00:01         if _request_timeout:
19-Nov-2024 22:00:01             if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)):  # noqa: E501,F821
19-Nov-2024 22:00:01                 timeout = urllib3.Timeout(total=_request_timeout)
19-Nov-2024 22:00:01             elif (isinstance(_request_timeout, tuple) and
19-Nov-2024 22:00:01                   len(_request_timeout) == 2):
19-Nov-2024 22:00:01                 timeout = urllib3.Timeout(
19-Nov-2024 22:00:01                     connect=_request_timeout[0], read=_request_timeout[1])
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         if 'Content-Type' not in headers:
19-Nov-2024 22:00:01             headers['Content-Type'] = 'application/json'
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         try:
19-Nov-2024 22:00:01             # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
19-Nov-2024 22:00:01             if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
19-Nov-2024 22:00:01                 if query_params:
19-Nov-2024 22:00:01                     url += '?' + urlencode(query_params)
19-Nov-2024 22:00:01                 if re.search('json', headers['Content-Type'], re.IGNORECASE):
19-Nov-2024 22:00:01                     request_body = '{}'
19-Nov-2024 22:00:01                     if body is not None:
19-Nov-2024 22:00:01                         request_body = json.dumps(body)
19-Nov-2024 22:00:01                     r = self.pool_manager.request(
19-Nov-2024 22:00:01                         method, url,
19-Nov-2024 22:00:01                         body=request_body,
19-Nov-2024 22:00:01                         preload_content=_preload_content,
19-Nov-2024 22:00:01                         timeout=timeout,
19-Nov-2024 22:00:01                         headers=headers)
19-Nov-2024 22:00:01                 elif headers['Content-Type'] == 'application/x-www-form-urlencoded':  # noqa: E501
19-Nov-2024 22:00:01                     r = self.pool_manager.request(
19-Nov-2024 22:00:01                         method, url,
19-Nov-2024 22:00:01                         fields=post_params,
19-Nov-2024 22:00:01                         encode_multipart=False,
19-Nov-2024 22:00:01                         preload_content=_preload_content,
19-Nov-2024 22:00:01                         timeout=timeout,
19-Nov-2024 22:00:01                         headers=headers)
19-Nov-2024 22:00:01                 elif headers['Content-Type'] == 'multipart/form-data':
19-Nov-2024 22:00:01                     # must del headers['Content-Type'], or the correct
19-Nov-2024 22:00:01                     # Content-Type which generated by urllib3 will be
19-Nov-2024 22:00:01                     # overwritten.
19-Nov-2024 22:00:01                     del headers['Content-Type']
19-Nov-2024 22:00:01                     r = self.pool_manager.request(
19-Nov-2024 22:00:01                         method, url,
19-Nov-2024 22:00:01                         fields=post_params,
19-Nov-2024 22:00:01                         encode_multipart=True,
19-Nov-2024 22:00:01                         preload_content=_preload_content,
19-Nov-2024 22:00:01                         timeout=timeout,
19-Nov-2024 22:00:01                         headers=headers)
19-Nov-2024 22:00:01                 # Pass a `string` parameter directly in the body to support
19-Nov-2024 22:00:01                 # other content types than Json when `body` argument is
19-Nov-2024 22:00:01                 # provided in serialized form
19-Nov-2024 22:00:01                 elif isinstance(body, str):
19-Nov-2024 22:00:01                     request_body = body
19-Nov-2024 22:00:01                     r = self.pool_manager.request(
19-Nov-2024 22:00:01                         method, url,
19-Nov-2024 22:00:01                         body=request_body,
19-Nov-2024 22:00:01                         preload_content=_preload_content,
19-Nov-2024 22:00:01                         timeout=timeout,
19-Nov-2024 22:00:01                         headers=headers)
19-Nov-2024 22:00:01                 else:
19-Nov-2024 22:00:01                     # Cannot generate the request from given parameters
19-Nov-2024 22:00:01                     msg = """Cannot prepare a request message for provided
19-Nov-2024 22:00:01                              arguments. Please check that your arguments match
19-Nov-2024 22:00:01                              declared content type."""
19-Nov-2024 22:00:01                     raise ApiException(status=0, reason=msg)
19-Nov-2024 22:00:01             # For `GET`, `HEAD`
19-Nov-2024 22:00:01             else:
19-Nov-2024 22:00:01                 r = self.pool_manager.request(method, url,
19-Nov-2024 22:00:01                                               fields=query_params,
19-Nov-2024 22:00:01                                               preload_content=_preload_content,
19-Nov-2024 22:00:01                                               timeout=timeout,
19-Nov-2024 22:00:01                                               headers=headers)
19-Nov-2024 22:00:01         except urllib3.exceptions.SSLError as e:
19-Nov-2024 22:00:01             msg = "{0}\n{1}".format(type(e).__name__, str(e))
19-Nov-2024 22:00:01             raise ApiException(status=0, reason=msg)
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         if _preload_content:
19-Nov-2024 22:00:01             r = RESTResponse(r)
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01             # In the python 3, the response.data is bytes.
19-Nov-2024 22:00:01             # we need to decode it to string.
19-Nov-2024 22:00:01             if six.PY3:
19-Nov-2024 22:00:01                 r.data = r.data.decode('utf8')
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01             # log response body
19-Nov-2024 22:00:01             logger.debug("response body: %s", r.data)
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         if not 200 <= r.status <= 299:
19-Nov-2024 22:00:01 >           raise ApiException(http_resp=r)
19-Nov-2024 22:00:01 E           oneprovider_client.rest.ApiException: (400)
19-Nov-2024 22:00:01 E           Reason: Bad Request
19-Nov-2024 22:00:01 E           HTTP response headers: HTTPHeaderDict({'access-control-allow-origin': '*', 'content-length': '110', 'content-type': 'application/json', 'date': 'Tue, 19 Nov 2024 21:59:00 GMT', 'server': 'Cowboy'})
19-Nov-2024 22:00:01 E           HTTP response body: {"error":{"id":"posix","details":{"errno":"eperm"},"description":"Operation failed with POSIX error: eperm."}}
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/rest.py:228: ApiException
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 During handling of the above exception, another exception occurred:
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 fixturefunc = <function try_to_add_qos_to_special_dir at 0x7fe15c3e3880>
19-Nov-2024 22:00:01 request = <FixtureRequest for <Function test_user_fails_to_add_qos_requirement_to_the_share_root_directory[1oz_1op_1oc]>>
19-Nov-2024 22:00:01 kwargs = {'expression': 'geo=PL', 'host': 'oneprovider-1', 'hosts': {'oneclient-1': {'container-id': '9f9299d3c5cd534f179a054c7...dev-onezone.default.svc.cluster.local', 'ip': '10.244.110.36', 'name': 'dev-onezone', ...}}, 'name': 'share root', ...}
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01     def call_fixture_func(
19-Nov-2024 22:00:01         fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
19-Nov-2024 22:00:01     ) -> FixtureValue:
19-Nov-2024 22:00:01         if is_generator(fixturefunc):
19-Nov-2024 22:00:01             fixturefunc = cast(
19-Nov-2024 22:00:01                 Callable[..., Generator[FixtureValue, None, None]], fixturefunc
19-Nov-2024 22:00:01             )
19-Nov-2024 22:00:01             generator = fixturefunc(**kwargs)
19-Nov-2024 22:00:01             try:
19-Nov-2024 22:00:01                 fixture_result = next(generator)
19-Nov-2024 22:00:01             except StopIteration:
19-Nov-2024 22:00:01                 raise ValueError(f"{request.fixturename} did not yield a value") from None
19-Nov-2024 22:00:01             finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
19-Nov-2024 22:00:01             request.addfinalizer(finalizer)
19-Nov-2024 22:00:01         else:
19-Nov-2024 22:00:01             fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
19-Nov-2024 22:00:01 >           fixture_result = fixturefunc(**kwargs)
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 /usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913:
19-Nov-2024 22:00:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Nov-2024 22:00:01 tests/utils/bdd_utils.py:78: in wrapper
19-Nov-2024 22:00:01     return fun(*ba.args, **ba.kwargs)
19-Nov-2024 22:00:01 tests/mixed/steps/rest/onezone/special_dirs.py:284: in try_to_add_qos_to_special_dir
19-Nov-2024 22:00:01     try_to_add_qos_to_special_dir_by_id(
19-Nov-2024 22:00:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 user = 'user1'
19-Nov-2024 22:00:01 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7fe15bfbcb00>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7fe15c07da00>, 'user1': <tests.utils.user_utils.User object at 0x7fe15bdb0350>, ...}
19-Nov-2024 22:00:01 hosts = {'oneclient-1': {'container-id': '9f9299d3c5cd534f179a054c745e89c18ff1e4e38b53a663db378c740fbc60c2', 'ip': '10.244.110...a86fe3f0d3a4', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.110.36', 'name': 'dev-onezone', ...}}
19-Nov-2024 22:00:01 host = 'oneprovider-1'
19-Nov-2024 22:00:01 dir_id = '000000000084096C7368617265477569642373706163655F656237373064303836623032393133333135323437656362353064643030616663683...3234376563623530646430306166636833316532236664323665376533373834313065663137333364306137346263653062356162636861303530'
19-Nov-2024 22:00:01 expression = 'geo=PL'
19-Nov-2024 22:00:01 err_msg = 'Qos requirement added to share root dir, but adding should have failed'
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01     def try_to_add_qos_to_special_dir_by_id(
19-Nov-2024 22:00:01         user, users, hosts, host, dir_id, expression, err_msg=""
19-Nov-2024 22:00:01     ):
19-Nov-2024 22:00:01         try:
19-Nov-2024 22:00:01             create_qos_requirement_in_op_by_id_rest(
19-Nov-2024 22:00:01                 user, users, hosts, host, expression, dir_id
19-Nov-2024 22:00:01             )
19-Nov-2024 22:00:01             raise AssertionError(err_msg)
19-Nov-2024 22:00:01         except ApiException as e:
19-Nov-2024 22:00:01             ex_err_msg = "You are not authorized to perform this operation."
19-Nov-2024 22:00:01 >           assert ex_err_msg in str(e)
19-Nov-2024 22:00:01 E           AssertionError
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 tests/mixed/steps/rest/onezone/special_dirs.py:305: AssertionError
19-Nov-2024 22:00:01 ___ test_user_fails_to_add_metadata_to_the_share_root_directory[1oz_1op_1oc] ___
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 user = 'user1'
19-Nov-2024 22:00:01 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7fe15bf67d70>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7fe15dafcaa0>, 'user1': <tests.utils.user_utils.User object at 0x7fe15bdff3e0>, ...}
19-Nov-2024 22:00:01 hosts = {'oneclient-1': {'container-id': '9f9299d3c5cd534f179a054c745e89c18ff1e4e38b53a663db378c740fbc60c2', 'ip': '10.244.110...a86fe3f0d3a4', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.110.36', 'name': 'dev-onezone', ...}}
19-Nov-2024 22:00:01 host = 'oneprovider-1'
19-Nov-2024 22:00:01 dir_id = '0000000000842E147368617265477569642373706163655F363163623135306635633838643137653039616166363330353866373435633463686...6161663633303538663734356334636864323564233662656162326665623532633266316463313161653163653934343162386136636835396631'
19-Nov-2024 22:00:01 expression = '{"id": 1}'
19-Nov-2024 22:00:01 err_msg = 'Json metadata added to share root dir, but adding should have failed'
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01     def try_to_add_json_metadata_to_special_dir_by_id(
19-Nov-2024 22:00:01         user, users, hosts, host, dir_id, expression, err_msg=""
19-Nov-2024 22:00:01     ):
19-Nov-2024 22:00:01         try:
19-Nov-2024 22:00:01 >           add_json_metadata_to_file_rest(user, users, hosts, host, expression, dir_id)
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 tests/mixed/steps/rest/onezone/special_dirs.py:332:
19-Nov-2024 22:00:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Nov-2024 22:00:01 tests/mixed/steps/rest/oneprovider/metadata.py:53: in add_json_metadata_to_file_rest
19-Nov-2024 22:00:01     cfm_api.set_json_metadata(file_id, expression)
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/api/custom_file_metadata_api.py:673: in set_json_metadata
19-Nov-2024 22:00:01     (data) = self.set_json_metadata_with_http_info(id, metadata, **kwargs)  # noqa: E501
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/api/custom_file_metadata_api.py:749: in set_json_metadata_with_http_info
19-Nov-2024 22:00:01     return self.api_client.call_api(
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/api_client.py:326: in call_api
19-Nov-2024 22:00:01     return self.__call_api(resource_path, method,
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/api_client.py:158: in __call_api
19-Nov-2024 22:00:01     response_data = self.request(
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/api_client.py:376: in request
19-Nov-2024 22:00:01     return self.rest_client.PUT(url,
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/rest.py:279: in PUT
19-Nov-2024 22:00:01     return self.request("PUT", url,
19-Nov-2024 22:00:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 self = <oneprovider_client.rest.RESTClientObject object at 0x7fe15c077a10>
19-Nov-2024 22:00:01 method = 'PUT'
19-Nov-2024 22:00:01 url = 'https://dev-oneprovider-krakow.default.svc.cluster.local:443/api/v3/oneprovider/data/0000000000842E147368617265477569...38663734356334636864323564233662656162326665623532633266316463313161653163653934343162386136636835396631/metadata/json'
19-Nov-2024 22:00:01 query_params = []
19-Nov-2024 22:00:01 headers = {'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/21.02.7/python', 'X-Auth-Token': 'MDAzM2xvY2F00aW9...GQyZWExYmNoZTBlOAowMDFhY2lkIHRpbWUgPCAxNzYzNTg5NTYwCjAwMmZzaWduYXR1cmUgSdLD9O0000xNzlBZLuCwTwCk17tCxU9HEF5TjW1YOw89oK'}
19-Nov-2024 22:00:01 body = '{"id": 1}', post_params = {}, _preload_content = True
19-Nov-2024 22:00:01 _request_timeout = None
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01     def request(self, method, url, query_params=None, headers=None,
19-Nov-2024 22:00:01                 body=None, post_params=None, _preload_content=True,
19-Nov-2024 22:00:01                 _request_timeout=None):
19-Nov-2024 22:00:01         """Perform requests.
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         :param method: http request method
19-Nov-2024 22:00:01         :param url: http request url
19-Nov-2024 22:00:01         :param query_params: query parameters in the url
19-Nov-2024 22:00:01         :param headers: http request headers
19-Nov-2024 22:00:01         :param body: request json body, for `application/json`
19-Nov-2024 22:00:01         :param post_params: request post parameters,
19-Nov-2024 22:00:01                             `application/x-www-form-urlencoded`
19-Nov-2024 22:00:01                             and `multipart/form-data`
19-Nov-2024 22:00:01         :param _preload_content: if False, the urllib3.HTTPResponse object will
19-Nov-2024 22:00:01                                  be returned without reading/decoding response
19-Nov-2024 22:00:01                                  data. Default is True.
19-Nov-2024 22:00:01         :param _request_timeout: timeout setting for this request. If one
19-Nov-2024 22:00:01                                  number provided, it will be total request
19-Nov-2024 22:00:01                                  timeout. It can also be a pair (tuple) of
19-Nov-2024 22:00:01                                  (connection, read) timeouts.
19-Nov-2024 22:00:01         """
19-Nov-2024 22:00:01         method = method.upper()
19-Nov-2024 22:00:01         assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT',
19-Nov-2024 22:00:01                           'PATCH', 'OPTIONS']
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         if post_params and body:
19-Nov-2024 22:00:01             raise ValueError(
19-Nov-2024 22:00:01                 "body parameter cannot be used with post_params parameter."
19-Nov-2024 22:00:01             )
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         post_params = post_params or {}
19-Nov-2024 22:00:01         headers = headers or {}
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         timeout = None
19-Nov-2024 22:00:01         if _request_timeout:
19-Nov-2024 22:00:01             if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)):  # noqa: E501,F821
19-Nov-2024 22:00:01                 timeout = urllib3.Timeout(total=_request_timeout)
19-Nov-2024 22:00:01             elif (isinstance(_request_timeout, tuple) and
19-Nov-2024 22:00:01                   len(_request_timeout) == 2):
19-Nov-2024 22:00:01                 timeout = urllib3.Timeout(
19-Nov-2024 22:00:01                     connect=_request_timeout[0], read=_request_timeout[1])
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         if 'Content-Type' not in headers:
19-Nov-2024 22:00:01             headers['Content-Type'] = 'application/json'
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         try:
19-Nov-2024 22:00:01             # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
19-Nov-2024 22:00:01             if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
19-Nov-2024 22:00:01                 if query_params:
19-Nov-2024 22:00:01                     url += '?' + urlencode(query_params)
19-Nov-2024 22:00:01                 if re.search('json', headers['Content-Type'], re.IGNORECASE):
19-Nov-2024 22:00:01                     request_body = '{}'
19-Nov-2024 22:00:01                     if body is not None:
19-Nov-2024 22:00:01                         request_body = json.dumps(body)
19-Nov-2024 22:00:01                     r = self.pool_manager.request(
19-Nov-2024 22:00:01                         method, url,
19-Nov-2024 22:00:01                         body=request_body,
19-Nov-2024 22:00:01                         preload_content=_preload_content,
19-Nov-2024 22:00:01                         timeout=timeout,
19-Nov-2024 22:00:01                         headers=headers)
19-Nov-2024 22:00:01                 elif headers['Content-Type'] == 'application/x-www-form-urlencoded':  # noqa: E501
19-Nov-2024 22:00:01                     r = self.pool_manager.request(
19-Nov-2024 22:00:01                         method, url,
19-Nov-2024 22:00:01                         fields=post_params,
19-Nov-2024 22:00:01                         encode_multipart=False,
19-Nov-2024 22:00:01                         preload_content=_preload_content,
19-Nov-2024 22:00:01                         timeout=timeout,
19-Nov-2024 22:00:01                         headers=headers)
19-Nov-2024 22:00:01                 elif headers['Content-Type'] == 'multipart/form-data':
19-Nov-2024 22:00:01                     # must del headers['Content-Type'], or the correct
19-Nov-2024 22:00:01                     # Content-Type which generated by urllib3 will be
19-Nov-2024 22:00:01                     # overwritten.
19-Nov-2024 22:00:01                     del headers['Content-Type']
19-Nov-2024 22:00:01                     r = self.pool_manager.request(
19-Nov-2024 22:00:01                         method, url,
19-Nov-2024 22:00:01                         fields=post_params,
19-Nov-2024 22:00:01                         encode_multipart=True,
19-Nov-2024 22:00:01                         preload_content=_preload_content,
19-Nov-2024 22:00:01                         timeout=timeout,
19-Nov-2024 22:00:01                         headers=headers)
19-Nov-2024 22:00:01                 # Pass a `string` parameter directly in the body to support
19-Nov-2024 22:00:01                 # other content types than Json when `body` argument is
19-Nov-2024 22:00:01                 # provided in serialized form
19-Nov-2024 22:00:01                 elif isinstance(body, str):
19-Nov-2024 22:00:01                     request_body = body
19-Nov-2024 22:00:01                     r = self.pool_manager.request(
19-Nov-2024 22:00:01                         method, url,
19-Nov-2024 22:00:01                         body=request_body,
19-Nov-2024 22:00:01                         preload_content=_preload_content,
19-Nov-2024 22:00:01                         timeout=timeout,
19-Nov-2024 22:00:01                         headers=headers)
19-Nov-2024 22:00:01                 else:
19-Nov-2024 22:00:01                     # Cannot generate the request from given parameters
19-Nov-2024 22:00:01                     msg = """Cannot prepare a request message for provided
19-Nov-2024 22:00:01                              arguments. Please check that your arguments match
19-Nov-2024 22:00:01                              declared content type."""
19-Nov-2024 22:00:01                     raise ApiException(status=0, reason=msg)
19-Nov-2024 22:00:01             # For `GET`, `HEAD`
19-Nov-2024 22:00:01             else:
19-Nov-2024 22:00:01                 r = self.pool_manager.request(method, url,
19-Nov-2024 22:00:01                                               fields=query_params,
19-Nov-2024 22:00:01                                               preload_content=_preload_content,
19-Nov-2024 22:00:01                                               timeout=timeout,
19-Nov-2024 22:00:01                                               headers=headers)
19-Nov-2024 22:00:01         except urllib3.exceptions.SSLError as e:
19-Nov-2024 22:00:01             msg = "{0}\n{1}".format(type(e).__name__, str(e))
19-Nov-2024 22:00:01             raise ApiException(status=0, reason=msg)
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         if _preload_content:
19-Nov-2024 22:00:01             r = RESTResponse(r)
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01             # In the python 3, the response.data is bytes.
19-Nov-2024 22:00:01             # we need to decode it to string.
19-Nov-2024 22:00:01             if six.PY3:
19-Nov-2024 22:00:01                 r.data = r.data.decode('utf8')
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01             # log response body
19-Nov-2024 22:00:01             logger.debug("response body: %s", r.data)
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         if not 200 <= r.status <= 299:
19-Nov-2024 22:00:01 >           raise ApiException(http_resp=r)
19-Nov-2024 22:00:01 E           oneprovider_client.rest.ApiException: (400)
19-Nov-2024 22:00:01 E           Reason: Bad Request
19-Nov-2024 22:00:01 E           HTTP response headers: HTTPHeaderDict({'access-control-allow-origin': '*', 'content-length': '80', 'content-type': 'application/json', 'date': 'Tue, 19 Nov 2024 21:59:27 GMT', 'server': 'Cowboy'})
19-Nov-2024 22:00:01 E           HTTP response body: {"error":{"id":"notSupported","description":"This operation is not supported."}}
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/rest.py:228: ApiException
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 During handling of the above exception, another exception occurred:
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 fixturefunc = <function try_to_add_json_metadata_to_special_dir at 0x7fe15c3e3e20>
19-Nov-2024 22:00:01 request = <FixtureRequest for <Function test_user_fails_to_add_metadata_to_the_share_root_directory[1oz_1op_1oc]>>
19-Nov-2024 22:00:01 kwargs = {'expression': '{"id": 1}', 'host': 'oneprovider-1', 'hosts': {'oneclient-1': {'container-id': '9f9299d3c5cd534f179a05...dev-onezone.default.svc.cluster.local', 'ip': '10.244.110.36', 'name': 'dev-onezone', ...}}, 'name': 'share root', ...}
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01     def call_fixture_func(
19-Nov-2024 22:00:01         fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
19-Nov-2024 22:00:01     ) -> FixtureValue:
19-Nov-2024 22:00:01         if is_generator(fixturefunc):
19-Nov-2024 22:00:01             fixturefunc = cast(
19-Nov-2024 22:00:01                 Callable[..., Generator[FixtureValue, None, None]], fixturefunc
19-Nov-2024 22:00:01             )
19-Nov-2024 22:00:01             generator = fixturefunc(**kwargs)
19-Nov-2024 22:00:01             try:
19-Nov-2024 22:00:01                 fixture_result = next(generator)
19-Nov-2024 22:00:01             except StopIteration:
19-Nov-2024 22:00:01                 raise ValueError(f"{request.fixturename} did not yield a value") from None
19-Nov-2024 22:00:01             finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
19-Nov-2024 22:00:01             request.addfinalizer(finalizer)
19-Nov-2024 22:00:01         else:
19-Nov-2024 22:00:01             fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
19-Nov-2024 22:00:01 >           fixture_result = fixturefunc(**kwargs)
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 /usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913:
19-Nov-2024 22:00:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Nov-2024 22:00:01 tests/utils/bdd_utils.py:78: in wrapper
19-Nov-2024 22:00:01     return fun(*ba.args, **ba.kwargs)
19-Nov-2024 22:00:01 tests/mixed/steps/rest/onezone/special_dirs.py:317: in try_to_add_json_metadata_to_special_dir
19-Nov-2024 22:00:01     try_to_add_json_metadata_to_special_dir_by_id(
19-Nov-2024 22:00:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 user = 'user1'
19-Nov-2024 22:00:01 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7fe15bf67d70>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7fe15dafcaa0>, 'user1': <tests.utils.user_utils.User object at 0x7fe15bdff3e0>, ...}
19-Nov-2024 22:00:01 hosts = {'oneclient-1': {'container-id': '9f9299d3c5cd534f179a054c745e89c18ff1e4e38b53a663db378c740fbc60c2', 'ip': '10.244.110...a86fe3f0d3a4', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.110.36', 'name': 'dev-onezone', ...}}
19-Nov-2024 22:00:01 host = 'oneprovider-1'
19-Nov-2024 22:00:01 dir_id = '0000000000842E147368617265477569642373706163655F363163623135306635633838643137653039616166363330353866373435633463686...6161663633303538663734356334636864323564233662656162326665623532633266316463313161653163653934343162386136636835396631'
19-Nov-2024 22:00:01 expression = '{"id": 1}'
19-Nov-2024 22:00:01 err_msg = 'Json metadata added to share root dir, but adding should have failed'
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01     def try_to_add_json_metadata_to_special_dir_by_id(
19-Nov-2024 22:00:01         user, users, hosts, host, dir_id, expression, err_msg=""
19-Nov-2024 22:00:01     ):
19-Nov-2024 22:00:01         try:
19-Nov-2024 22:00:01             add_json_metadata_to_file_rest(user, users, hosts, host, expression, dir_id)
19-Nov-2024 22:00:01             raise AssertionError(err_msg)
19-Nov-2024 22:00:01         except ApiException as e:
19-Nov-2024 22:00:01             ex_err_msg = "You are not authorized to perform this operation."
19-Nov-2024 22:00:01 >           assert ex_err_msg in str(e)
19-Nov-2024 22:00:01 E           AssertionError
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 tests/mixed/steps/rest/onezone/special_dirs.py:336: AssertionError
19-Nov-2024 22:00:01 _ test_user_fails_to_establish_dataset_on_the_share_root_directory[1oz_1op_1oc] _
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 user = 'user1'
19-Nov-2024 22:00:01 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7fe15bddee10>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7fe15c0766f0>, 'user1': <tests.utils.user_utils.User object at 0x7fe15bf66d20>, ...}
19-Nov-2024 22:00:01 hosts = {'oneclient-1': {'container-id': '9f9299d3c5cd534f179a054c745e89c18ff1e4e38b53a663db378c740fbc60c2', 'ip': '10.244.110...a86fe3f0d3a4', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.110.36', 'name': 'dev-onezone', ...}}
19-Nov-2024 22:00:01 host = 'oneprovider-1'
19-Nov-2024 22:00:01 dir_id = '000000000084F4DB7368617265477569642373706163655F323931343065383031313936323564366432373136323165383035386437643763686...3731363231653830353864376437636861323130233664393337323537343263623162316632343765326361396533663630653435636839666632'
19-Nov-2024 22:00:01 err_msg = 'Established dataset on share root dir, but establishing should have failed'
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01     def try_to_establish_dataset_on_special_dir_by_id(
19-Nov-2024 22:00:01         user, users, hosts, host, dir_id, err_msg=""
19-Nov-2024 22:00:01     ):
19-Nov-2024 22:00:01         try:
19-Nov-2024 22:00:01 >           create_dataset_in_op_by_id_rest(user, users, hosts, host, dir_id, "")
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 tests/mixed/steps/rest/onezone/special_dirs.py:362:
19-Nov-2024 22:00:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Nov-2024 22:00:01 tests/mixed/steps/rest/oneprovider/datasets.py:29: in create_dataset_in_op_by_id_rest
19-Nov-2024 22:00:01     dataset_api.establish_dataset(data)
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/api/dataset_api.py:55: in establish_dataset
19-Nov-2024 22:00:01     (data) = self.establish_dataset_with_http_info(data, **kwargs)  # noqa: E501
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/api/dataset_api.py:119: in establish_dataset_with_http_info
19-Nov-2024 22:00:01     return self.api_client.call_api(
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/api_client.py:326: in call_api
19-Nov-2024 22:00:01     return self.__call_api(resource_path, method,
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/api_client.py:158: in __call_api
19-Nov-2024 22:00:01     response_data = self.request(
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/api_client.py:368: in request
19-Nov-2024 22:00:01     return self.rest_client.POST(url,
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/rest.py:269: in POST
19-Nov-2024 22:00:01     return self.request("POST", url,
19-Nov-2024 22:00:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 self = <oneprovider_client.rest.RESTClientObject object at 0x7fe15c068dd0>
19-Nov-2024 22:00:01 method = 'POST'
19-Nov-2024 22:00:01 url = 'https://dev-oneprovider-krakow.default.svc.cluster.local:443/api/v3/oneprovider/datasets'
19-Nov-2024 22:00:01 query_params = []
19-Nov-2024 22:00:01 headers = {'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/21.02.7/python', 'X-...jExMWFiZmNoOGU3YgowMDFhY2lkIHRpbWUgPCAxNzYzNTg5NTg3CjAwMmZzaWduYXR1cmUgjAD02d92SL02vjNRFlaKPPvDQ8SOVJVmreyuHTPCUrXeYK'}
19-Nov-2024 22:00:01 body = {'rootFileId': '000000000084F4DB7368617265477569642373706163655F323931343065383031313936323564366432373136323165383035...731363231653830353864376437636861323130233664393337323537343263623162316632343765326361396533663630653435636839666632'}
19-Nov-2024 22:00:01 post_params = {}, _preload_content = True, _request_timeout = None
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01     def request(self, method, url, query_params=None, headers=None,
19-Nov-2024 22:00:01                 body=None, post_params=None, _preload_content=True,
19-Nov-2024 22:00:01                 _request_timeout=None):
19-Nov-2024 22:00:01         """Perform requests.
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         :param method: http request method
19-Nov-2024 22:00:01         :param url: http request url
19-Nov-2024 22:00:01         :param query_params: query parameters in the url
19-Nov-2024 22:00:01         :param headers: http request headers
19-Nov-2024 22:00:01         :param body: request json body, for `application/json`
19-Nov-2024 22:00:01         :param post_params: request post parameters,
19-Nov-2024 22:00:01                             `application/x-www-form-urlencoded`
19-Nov-2024 22:00:01                             and `multipart/form-data`
19-Nov-2024 22:00:01         :param _preload_content: if False, the urllib3.HTTPResponse object will
19-Nov-2024 22:00:01                                  be returned without reading/decoding response
19-Nov-2024 22:00:01                                  data. Default is True.
19-Nov-2024 22:00:01         :param _request_timeout: timeout setting for this request. If one
19-Nov-2024 22:00:01                                  number provided, it will be total request
19-Nov-2024 22:00:01                                  timeout. It can also be a pair (tuple) of
19-Nov-2024 22:00:01                                  (connection, read) timeouts.
19-Nov-2024 22:00:01         """
19-Nov-2024 22:00:01         method = method.upper()
19-Nov-2024 22:00:01         assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT',
19-Nov-2024 22:00:01                           'PATCH', 'OPTIONS']
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         if post_params and body:
19-Nov-2024 22:00:01             raise ValueError(
19-Nov-2024 22:00:01                 "body parameter cannot be used with post_params parameter."
19-Nov-2024 22:00:01             )
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         post_params = post_params or {}
19-Nov-2024 22:00:01         headers = headers or {}
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         timeout = None
19-Nov-2024 22:00:01         if _request_timeout:
19-Nov-2024 22:00:01             if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)):  # noqa: E501,F821
19-Nov-2024 22:00:01                 timeout = urllib3.Timeout(total=_request_timeout)
19-Nov-2024 22:00:01             elif (isinstance(_request_timeout, tuple) and
19-Nov-2024 22:00:01                   len(_request_timeout) == 2):
19-Nov-2024 22:00:01                 timeout = urllib3.Timeout(
19-Nov-2024 22:00:01                     connect=_request_timeout[0], read=_request_timeout[1])
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         if 'Content-Type' not in headers:
19-Nov-2024 22:00:01             headers['Content-Type'] = 'application/json'
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         try:
19-Nov-2024 22:00:01             # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
19-Nov-2024 22:00:01             if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
19-Nov-2024 22:00:01                 if query_params:
19-Nov-2024 22:00:01                     url += '?' + urlencode(query_params)
19-Nov-2024 22:00:01                 if re.search('json', headers['Content-Type'], re.IGNORECASE):
19-Nov-2024 22:00:01                     request_body = '{}'
19-Nov-2024 22:00:01                     if body is not None:
19-Nov-2024 22:00:01                         request_body = json.dumps(body)
19-Nov-2024 22:00:01                     r = self.pool_manager.request(
19-Nov-2024 22:00:01                         method, url,
19-Nov-2024 22:00:01                         body=request_body,
19-Nov-2024 22:00:01                         preload_content=_preload_content,
19-Nov-2024 22:00:01                         timeout=timeout,
19-Nov-2024 22:00:01                         headers=headers)
19-Nov-2024 22:00:01                 elif headers['Content-Type'] == 'application/x-www-form-urlencoded':  # noqa: E501
19-Nov-2024 22:00:01                     r = self.pool_manager.request(
19-Nov-2024 22:00:01                         method, url,
19-Nov-2024 22:00:01                         fields=post_params,
19-Nov-2024 22:00:01                         encode_multipart=False,
19-Nov-2024 22:00:01                         preload_content=_preload_content,
19-Nov-2024 22:00:01                         timeout=timeout,
19-Nov-2024 22:00:01                         headers=headers)
19-Nov-2024 22:00:01                 elif headers['Content-Type'] == 'multipart/form-data':
19-Nov-2024 22:00:01                     # must del headers['Content-Type'], or the correct
19-Nov-2024 22:00:01                     # Content-Type which generated by urllib3 will be
19-Nov-2024 22:00:01                     # overwritten.
19-Nov-2024 22:00:01                     del headers['Content-Type']
19-Nov-2024 22:00:01                     r = self.pool_manager.request(
19-Nov-2024 22:00:01                         method, url,
19-Nov-2024 22:00:01                         fields=post_params,
19-Nov-2024 22:00:01                         encode_multipart=True,
19-Nov-2024 22:00:01                         preload_content=_preload_content,
19-Nov-2024 22:00:01                         timeout=timeout,
19-Nov-2024 22:00:01                         headers=headers)
19-Nov-2024 22:00:01                 # Pass a `string` parameter directly in the body to support
19-Nov-2024 22:00:01                 # other content types than Json when `body` argument is
19-Nov-2024 22:00:01                 # provided in serialized form
19-Nov-2024 22:00:01                 elif isinstance(body, str):
19-Nov-2024 22:00:01                     request_body = body
19-Nov-2024 22:00:01                     r = self.pool_manager.request(
19-Nov-2024 22:00:01                         method, url,
19-Nov-2024 22:00:01                         body=request_body,
19-Nov-2024 22:00:01                         preload_content=_preload_content,
19-Nov-2024 22:00:01                         timeout=timeout,
19-Nov-2024 22:00:01                         headers=headers)
19-Nov-2024 22:00:01                 else:
19-Nov-2024 22:00:01                     # Cannot generate the request from given parameters
19-Nov-2024 22:00:01                     msg = """Cannot prepare a request message for provided
19-Nov-2024 22:00:01                              arguments. Please check that your arguments match
19-Nov-2024 22:00:01                              declared content type."""
19-Nov-2024 22:00:01                     raise ApiException(status=0, reason=msg)
19-Nov-2024 22:00:01             # For `GET`, `HEAD`
19-Nov-2024 22:00:01             else:
19-Nov-2024 22:00:01                 r = self.pool_manager.request(method, url,
19-Nov-2024 22:00:01                                               fields=query_params,
19-Nov-2024 22:00:01                                               preload_content=_preload_content,
19-Nov-2024 22:00:01                                               timeout=timeout,
19-Nov-2024 22:00:01                                               headers=headers)
19-Nov-2024 22:00:01         except urllib3.exceptions.SSLError as e:
19-Nov-2024 22:00:01             msg = "{0}\n{1}".format(type(e).__name__, str(e))
19-Nov-2024 22:00:01             raise ApiException(status=0, reason=msg)
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         if _preload_content:
19-Nov-2024 22:00:01             r = RESTResponse(r)
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01             # In the python 3, the response.data is bytes.
19-Nov-2024 22:00:01             # we need to decode it to string.
19-Nov-2024 22:00:01             if six.PY3:
19-Nov-2024 22:00:01                 r.data = r.data.decode('utf8')
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01             # log response body
19-Nov-2024 22:00:01             logger.debug("response body: %s", r.data)
19-Nov-2024 22:00:01    
19-Nov-2024 22:00:01         if not 200 <= r.status <= 299:
19-Nov-2024 22:00:01 >           raise ApiException(http_resp=r)
19-Nov-2024 22:00:01 E           oneprovider_client.rest.ApiException: (400)
19-Nov-2024 22:00:01 E           Reason: Bad Request
19-Nov-2024 22:00:01 E           HTTP response headers: HTTPHeaderDict({'access-control-allow-origin': '*', 'content-length': '110', 'content-type': 'application/json', 'date': 'Tue, 19 Nov 2024 21:59:53 GMT', 'server': 'Cowboy'})
19-Nov-2024 22:00:01 E           HTTP response body: {"error":{"id":"posix","details":{"errno":"eperm"},"description":"Operation failed with POSIX error: eperm."}}
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 tests/mixed/oneprovider_client/rest.py:228: ApiException
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 During handling of the above exception, another exception occurred:
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 fixturefunc = <function try_to_establish_dataset_on_special_dir at 0x7fe15c3ec400>
19-Nov-2024 22:00:01 request = <FixtureRequest for <Function test_user_fails_to_establish_dataset_on_the_share_root_directory[1oz_1op_1oc]>>
19-Nov-2024 22:00:01 kwargs = {'host': 'oneprovider-1', 'hosts': {'oneclient-1': {'container-id': '9f9299d3c5cd534f179a054c745e89c18ff1e4e38b53a663d...1653830353864376437636861323130233664393337323537343263623162316632343765326361396533663630653435636839666632'}}), ...}
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01     def call_fixture_func(
19-Nov-2024 22:00:01         fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
19-Nov-2024 22:00:01     ) -> FixtureValue:
19-Nov-2024 22:00:01         if is_generator(fixturefunc):
19-Nov-2024 22:00:01             fixturefunc = cast(
19-Nov-2024 22:00:01                 Callable[..., Generator[FixtureValue, None, None]], fixturefunc
19-Nov-2024 22:00:01             )
19-Nov-2024 22:00:01             generator = fixturefunc(**kwargs)
19-Nov-2024 22:00:01             try:
19-Nov-2024 22:00:01                 fixture_result = next(generator)
19-Nov-2024 22:00:01             except StopIteration:
19-Nov-2024 22:00:01                 raise ValueError(f"{request.fixturename} did not yield a value") from None
19-Nov-2024 22:00:01             finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
19-Nov-2024 22:00:01             request.addfinalizer(finalizer)
19-Nov-2024 22:00:01         else:
19-Nov-2024 22:00:01             fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
19-Nov-2024 22:00:01 >           fixture_result = fixturefunc(**kwargs)
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 /usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913:
19-Nov-2024 22:00:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Nov-2024 22:00:01 tests/utils/bdd_utils.py:78: in wrapper
19-Nov-2024 22:00:01     return fun(*ba.args, **ba.kwargs)
19-Nov-2024 22:00:01 tests/mixed/steps/rest/onezone/special_dirs.py:346: in try_to_establish_dataset_on_special_dir
19-Nov-2024 22:00:01     try_to_establish_dataset_on_special_dir_by_id(
19-Nov-2024 22:00:01 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 user = 'user1'
19-Nov-2024 22:00:01 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7fe15bddee10>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7fe15c0766f0>, 'user1': <tests.utils.user_utils.User object at 0x7fe15bf66d20>, ...}
19-Nov-2024 22:00:01 hosts = {'oneclient-1': {'container-id': '9f9299d3c5cd534f179a054c745e89c18ff1e4e38b53a663db378c740fbc60c2', 'ip': '10.244.110...a86fe3f0d3a4', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.110.36', 'name': 'dev-onezone', ...}}
19-Nov-2024 22:00:01 host = 'oneprovider-1'
19-Nov-2024 22:00:01 dir_id = '000000000084F4DB7368617265477569642373706163655F323931343065383031313936323564366432373136323165383035386437643763686...3731363231653830353864376437636861323130233664393337323537343263623162316632343765326361396533663630653435636839666632'
19-Nov-2024 22:00:01 err_msg = 'Established dataset on share root dir, but establishing should have failed'
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01     def try_to_establish_dataset_on_special_dir_by_id(
19-Nov-2024 22:00:01         user, users, hosts, host, dir_id, err_msg=""
19-Nov-2024 22:00:01     ):
19-Nov-2024 22:00:01         try:
19-Nov-2024 22:00:01             create_dataset_in_op_by_id_rest(user, users, hosts, host, dir_id, "")
19-Nov-2024 22:00:01             raise AssertionError(err_msg)
19-Nov-2024 22:00:01         except ApiException as e:
19-Nov-2024 22:00:01             ex_err_msg = "You are not authorized to perform this operation."
19-Nov-2024 22:00:01 >           assert ex_err_msg in str(e)
19-Nov-2024 22:00:01 E           AssertionError
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 tests/mixed/steps/rest/onezone/special_dirs.py:366: AssertionError
19-Nov-2024 22:00:01 =============================== warnings summary ===============================
19-Nov-2024 22:00:01 tests/utils/rest_utils.py:98
19-Nov-2024 22:00:01   /mnt/storage/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance/tests/utils/rest_utils.py:98: SyntaxWarning: invalid escape sequence '\ '
19-Nov-2024 22:00:01     print("""
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 tests/utils/path_utils.py:112
19-Nov-2024 22:00:01   /mnt/storage/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance/tests/utils/path_utils.py:112: SyntaxWarning: invalid escape sequence '\ '
19-Nov-2024 22:00:01     return path.replace("'", "\\'").replace(' ', '\ ')
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 tests/utils/acceptance_utils.py:55
19-Nov-2024 22:00:01   /mnt/storage/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance/tests/utils/acceptance_utils.py:55: SyntaxWarning: invalid escape sequence '\d'
19-Nov-2024 22:00:01     '(?P<seconds>\d*\.?\d+([eE][-+]?\d+)?) seconds?'))
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 tests/utils/acceptance_utils.py:57
19-Nov-2024 22:00:01   /mnt/storage/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance/tests/utils/acceptance_utils.py:57: SyntaxWarning: invalid escape sequence '\d'
19-Nov-2024 22:00:01     '(?P<seconds>\d*\.?\d+([eE][-+]?\d+)?) seconds?'))
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 tests/gui/steps/onezone/automation/automation_basic.py:327
19-Nov-2024 22:00:01   /mnt/storage/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance/tests/gui/steps/onezone/automation/automation_basic.py:327: SyntaxWarning: invalid escape sequence '\('
19-Nov-2024 22:00:01     'new revision|Duplicate to...|Download \(json\)|Remove)" button '
19-Nov-2024 22:00:01
19-Nov-2024 22:00:01 -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
19-Nov-2024 22:00:01 - generated xml file: /mnt/storage/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance/test-reports/results.xml -
19-Nov-2024 22:00:01 - Generated html report: file:///mnt/storage/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance/tests/mixed/logs/report.1732052119.9639332/report.html -
19-Nov-2024 22:00:01 ======= 25 failed, 34 passed, 5 warnings, 25 rerun in 1481.81s (0:24:41) =======
19-Nov-2024 22:00:07 release "dev" uninstalled
19-Nov-2024 22:00:07 Sidecar injection has been disabled
19-Nov-2024 22:00:07 Cleaning helm release "dev"...
19-Nov-2024 22:00:07 Deleted 1 helm deployments
19-Nov-2024 22:00:07 Deleted 0 k8s deployments
19-Nov-2024 22:00:07 Deleted 0 k8s services
19-Nov-2024 22:00:07 Deleted 0 persistent volumes
19-Nov-2024 22:00:08 [INFO] ENV variable "bamboo_planRepository_branchName" is set to develop - using it as current branch name
19-Nov-2024 22:00:08 [INFO] Using image docker.onedata.org/onezone-dev:develop for service onezone
19-Nov-2024 22:00:08 [INFO] ENV variable "bamboo_planRepository_branchName" is set to develop - using it as current branch name
19-Nov-2024 22:00:08 [INFO] Using image docker.onedata.org/oneprovider-dev:develop for service oneprovider
19-Nov-2024 22:00:08 [INFO] Using image docker.onedata.org/rest-cli:develop for service rest-cli
19-Nov-2024 22:00:08 [INFO] ENV variable "bamboo_planRepository_branchName" is set to develop - using it as current branch name
19-Nov-2024 22:00:08 [INFO] Using image docker.onedata.org/oneclient-dev:develop for service oneclient
19-Nov-2024 22:00:08 Finished task 'Run acceptance mixed tests in Chrome' with result: Success
19-Nov-2024 22:00:08 Starting task 'Parse test results' of type 'com.atlassian.bamboo.plugins.testresultparser:task.testresultparser.junit'
19-Nov-2024 22:00:08 Parsing test results under /home/bamboo/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT...
19-Nov-2024 22:00:08 Failing task since 25 failing test cases were found.
19-Nov-2024 22:00:08 Changing Task Result to SUCCESS as all failed tests were quarantined.
19-Nov-2024 22:00:08 Finished task 'Parse test results' with result: Success
19-Nov-2024 22:00:08 All conditions for task 'Pack and push surefire artifact' were met. Conditions: Variable bamboo.buildNumber matches pattern [4-9]|.{2,}
19-Nov-2024 22:00:08
Substituting variable: ${bamboo.artifactRepoHostname} with S3
19-Nov-2024 22:00:08
Substituting variable: ${bamboo.artifactRepoPort} with 10161
19-Nov-2024 22:00:08
Substituting variable: ${bamboo.artifactRepoUsername} with ubuntu
19-Nov-2024 22:00:08
Substituting variable: ${bamboo.planRepository.branchName} with develop
19-Nov-2024 22:00:08
Substituting variable: ${bamboo.planRepository.name} with onedata-acceptance
19-Nov-2024 22:00:08
Substituting variable: ${bamboo.artifactRepoHostname} with S3
19-Nov-2024 22:00:08
Substituting variable: ${bamboo.artifactRepoPort} with 10161
19-Nov-2024 22:00:08
Substituting variable: ${bamboo.artifactRepoUsername} with ubuntu
19-Nov-2024 22:00:08
Substituting variable: ${bamboo.planRepository.branchName} with develop
19-Nov-2024 22:00:08
Substituting variable: ${bamboo.planRepository.name} with onedata-acceptance
19-Nov-2024 22:00:08 Starting task 'Pack and push surefire artifact' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
19-Nov-2024 22:00:08
Beginning to execute external process for build 'Onedata Products - mixed acceptance pkg - Spaces basic #3284 (ODSRV-MAOPT-CSBT-3284)'
... running command line:
/home/bamboo/bamboo-agent-home/temp/ODSRV-MAOPT-CSBT-3284-ScriptBuildTask-7441800458695754008.sh
... in: /home/bamboo/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance
19-Nov-2024 22:00:08 ./bamboos/artifacts/push_artifact.py --hostname S3 --port 10161 --username ubuntu --branch develop --plan onedata-acceptance --artifact-name surefire_Spaces_basic.tar.gz
19-Nov-2024 22:00:11 Uploading artifact
19-Nov-2024 22:00:11     source path: surefire_Spaces_basic.tar.gz
19-Nov-2024 22:00:11     dest.  path: artifacts/onedata-acceptance/develop/surefire_Spaces_basic.tar.gz
19-Nov-2024 22:00:11 Finished task 'Pack and push surefire artifact' with result: Success
19-Nov-2024 22:00:11 All conditions for task 'Pack logs' were met. Conditions: Variable bamboo.buildNumber matches pattern [4-9]|.{2,}
19-Nov-2024 22:00:11 Starting task 'Pack logs' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
19-Nov-2024 22:00:11
Beginning to execute external process for build 'Onedata Products - mixed acceptance pkg - Spaces basic #3284 (ODSRV-MAOPT-CSBT-3284)'
... running command line:
/home/bamboo/bamboo-agent-home/temp/ODSRV-MAOPT-CSBT-3284-ScriptBuildTask-2252651381790701004.sh
... in: /home/bamboo/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT
19-Nov-2024 22:00:11 cp: cannot stat 'onedata-acceptance/one_env/sources_info.yaml': No such file or directory
19-Nov-2024 22:00:11 Finished task 'Pack logs' with result: Success
19-Nov-2024 22:00:11 All conditions for task 'Clear env and working dir' were met. Conditions: Variable bamboo.buildNumber matches pattern [4-9]|.{2,}
19-Nov-2024 22:00:11
Substituting variable: ${bamboo.OnedataFinalTasksURL} with https://raw.githubusercontent.com/onedata/bamboos/develop/final_tasks.sh
19-Nov-2024 22:00:11 Starting task 'Clear env and working dir' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
19-Nov-2024 22:00:11
Beginning to execute external process for build 'Onedata Products - mixed acceptance pkg - Spaces basic #3284 (ODSRV-MAOPT-CSBT-3284)'
... running command line:
/home/bamboo/bamboo-agent-home/temp/ODSRV-MAOPT-CSBT-3284-ScriptBuildTask-10298289584191834534.sh
... in: /home/bamboo/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance
19-Nov-2024 22:00:11   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
19-Nov-2024 22:00:11                                  Dload  Upload   Total   Spent    Left  Speed
19-Nov-2024 22:00:11
19-Nov-2024 22:00:11   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
19-Nov-2024 22:00:11   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
19-Nov-2024 22:00:11 100  4822  100  4822    0     0  19762      0 --:--:-- --:--:-- --:--:-- 19681
19-Nov-2024 22:00:11 Clearing /tmp/onedata and /home/bamboo/.one-env
19-Nov-2024 22:00:14 Cleaning helm deployments
19-Nov-2024 22:00:14 Cleanining pods
19-Nov-2024 22:00:15 Cleaning kube persistant volumes
19-Nov-2024 22:00:15 Cleaning dockswift container
19-Nov-2024 22:00:15 Cleaning docker containers
19-Nov-2024 22:00:18 Stalled docker containers to remove:
19-Nov-2024 22:00:18 74c1552940f7 947e4416c520 23a821c28708 a22218a7594b 0d8f5251e6e7 14d9a4c8f7a9 236fae1de1e7 0060c9bb12c9 901788e98675 3daf739a2051 98bac8eeb1b9 da97ea478d85 e799ba29fd8e 5f4207e5937f fb3e54272eff
19-Nov-2024 22:00:18 Removing stalled docker containers
19-Nov-2024 22:00:18 Error response from daemon: Cannot kill container: 74c1552940f7: Container 74c1552940f7fe9f61cef0cf91932baa40a2f8ff3457a060fa9a32d792e89b61 is not running
19-Nov-2024 22:00:18 74c1552940f7
19-Nov-2024 22:00:18 Error response from daemon: Cannot kill container: 947e4416c520: Container 947e4416c520d0ebc1279847841468ff2697dd83a50f25c53327b6835bdd5fdc is not running
19-Nov-2024 22:00:18 947e4416c520
19-Nov-2024 22:00:18 Error response from daemon: Cannot kill container: 23a821c28708: Container 23a821c287086f09ccd510dc1c6bae4e5b15c4c9f0174cb7b254847bbad8316c is not running
19-Nov-2024 22:00:18 23a821c28708
19-Nov-2024 22:00:18 Error response from daemon: Cannot kill container: a22218a7594b: Container a22218a7594bba03f514226b3482fe0900a770d36235d5753357b1f1d1832f9b is not running
19-Nov-2024 22:00:18 a22218a7594b
19-Nov-2024 22:00:18 Error response from daemon: Cannot kill container: 0d8f5251e6e7: Container 0d8f5251e6e78f72693e44ec8fc26b72c0880d08ce81e23db034f4be693c4c93 is not running
19-Nov-2024 22:00:19 0d8f5251e6e7
19-Nov-2024 22:00:19 Error response from daemon: Cannot kill container: 14d9a4c8f7a9: Container 14d9a4c8f7a951a317e7b791a7144f0be43990ec64444fe4ebb4915047d269e8 is not running
19-Nov-2024 22:00:19 14d9a4c8f7a9
19-Nov-2024 22:00:19 Error response from daemon: Cannot kill container: 236fae1de1e7: Container 236fae1de1e76d99b1d2c403e1106a283977c7b69236393b0290bda93c9627ed is not running
19-Nov-2024 22:00:19 236fae1de1e7
19-Nov-2024 22:00:19 Error response from daemon: Cannot kill container: 0060c9bb12c9: Container 0060c9bb12c94d02153a7894f4f51e495c006ef5c29f5f2267bb90af246743c2 is not running
19-Nov-2024 22:00:19 0060c9bb12c9
19-Nov-2024 22:00:19 Error response from daemon: Cannot kill container: 901788e98675: Container 901788e98675a67583c3edbc10d8ab38cba4ff6387f5782b8f63d1b0fa9e8fa9 is not running
19-Nov-2024 22:00:19 901788e98675
19-Nov-2024 22:00:19 Error response from daemon: Cannot kill container: 3daf739a2051: Container 3daf739a20519a2147c3d92650f64ac6f4d206927f5bfca3046d0813cd319c2f is not running
19-Nov-2024 22:00:20 3daf739a2051
19-Nov-2024 22:00:20 Error response from daemon: Cannot kill container: 98bac8eeb1b9: Container 98bac8eeb1b91a5810122a6cd6c5e4ab69b16cff8dd8ba4feb1dd2b15b01d942 is not running
19-Nov-2024 22:00:20 98bac8eeb1b9
19-Nov-2024 22:00:20 Error response from daemon: Cannot kill container: da97ea478d85: Container da97ea478d85443039e5c862d6b37c3da51fccc248eac67081ddcb421cfb3256 is not running
19-Nov-2024 22:00:20 da97ea478d85
19-Nov-2024 22:00:20 Error response from daemon: Cannot kill container: e799ba29fd8e: Container e799ba29fd8e4f3e71dd2113772c1908d2a725c1d23e137f5173d2a1d8686455 is not running
19-Nov-2024 22:00:20 e799ba29fd8e
19-Nov-2024 22:00:20 Error response from daemon: Cannot kill container: 5f4207e5937f: Container 5f4207e5937f1658b77a4f4c75f32e8f61ad5a5b4312c9141ad01599df658e30 is not running
19-Nov-2024 22:00:20 5f4207e5937f
19-Nov-2024 22:00:21 fb3e54272eff
19-Nov-2024 22:00:21 fb3e54272eff
19-Nov-2024 22:00:21 Stalled docker volumes to remove:
19-Nov-2024 22:00:21
19-Nov-2024 22:00:21 Removing stalled docker volumes
19-Nov-2024 22:00:21 Removing stalled loopdevices
19-Nov-2024 22:00:23 Done
19-Nov-2024 22:00:23 Finished task 'Clear env and working dir' with result: Success
19-Nov-2024 22:00:23 Skipping task 'Qnthack - always fail on build 2' because of unfulfilled condition. Reason: Variable bamboo.buildNumber matches pattern 2
19-Nov-2024 22:00:23 Running post build plugin 'Docker Container Cleanup'
19-Nov-2024 22:00:23 Running post build plugin 'NCover Results Collector'
19-Nov-2024 22:00:23 Running post build plugin 'Build Results Label Collector'
19-Nov-2024 22:00:23 Running post build plugin 'Clover Results Collector'
19-Nov-2024 22:00:23 Running post build plugin 'npm Cache Cleanup'
19-Nov-2024 22:00:23 Running post build plugin 'Artifact Copier'
19-Nov-2024 22:00:23 Publishing an artifact: report
19-Nov-2024 22:00:23 Finished publishing of artifact Non required job artifact Http Compression On : [report], patterns: [**/*.*] anchored at: [onedata-acceptance/tests/mixed/logs/] in 758.6 ms
19-Nov-2024 22:00:24 Successfully removed working directory at '/home/bamboo/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT'
19-Nov-2024 22:00:24 Finalising the build...
19-Nov-2024 22:00:24 Stopping timer.
19-Nov-2024 22:00:24 Build ODSRV-MAOPT-CSBT-3284 completed.
19-Nov-2024 22:00:24 Running on server: post build plugin 'Build Hanging Detection Configuration'
19-Nov-2024 22:00:24 Running on server: post build plugin 'NCover Results Collector'
19-Nov-2024 22:00:24 Running on server: post build plugin 'Build Labeller'
19-Nov-2024 22:00:24 Running on server: post build plugin 'Clover Delta Calculator'
19-Nov-2024 22:00:24 Running on server: post build plugin 'Maven Dependencies Postprocessor'
19-Nov-2024 22:00:24 All post build plugins have finished
19-Nov-2024 22:00:24 Generating build results summary...
19-Nov-2024 22:00:24 Saving build results to disk...
19-Nov-2024 22:00:24 Store variable context...
19-Nov-2024 22:00:24 Finished building ODSRV-MAOPT-CSBT-3284.