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

Build: #3285 was successful

Job: Spaces basic was successful

Build log

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

23-Nov-2024 06:55:57         if client.lower() == "rest":
23-Nov-2024 06:55:57             try:
23-Nov-2024 06:55:57                 client = cdmi(hosts[host]["ip"], users[user].token)
23-Nov-2024 06:55:57                 client.move_item_by_id(dir_id, "/new_name")
23-Nov-2024 06:55:57                 raise AssertionError(err_msg)
23-Nov-2024 06:55:57             except (HTTPForbidden, HTTPBadRequest) as e:
23-Nov-2024 06:55:57                 ex_err_msg = "Operation failed with POSIX error: eperm."
23-Nov-2024 06:55:57 >               assert ex_err_msg in str(e), f"Unexpected error occurred {e}"
23-Nov-2024 06:55:57 E               AssertionError: Unexpected error occurred [400] Bad Request: {"error":{"id":"posix","details":{"errno":"enoent"},"description":"Operation failed with POSIX error: enoent."}}
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 tests/mixed/steps/rest/onezone/special_dirs.py:187: AssertionError
23-Nov-2024 06:55:57 ___ test_user_fails_to_move_the_share_root_directory[1oz_1op_1oc-oneclient1] ___
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 fixturefunc = <function try_to_move_special_dir at 0x7f5bfc7a6ca0>
23-Nov-2024 06:55:57 request = <FixtureRequest for <Function test_user_fails_to_move_the_share_root_directory[1oz_1op_1oc-oneclient1]>>
23-Nov-2024 06:55:57 kwargs = {'cdmi': <class 'tests.gui.utils.oneservices.cdmi.CDMIClient'>, 'client': 'oneclient1', 'host': 'oneprovider-1', 'host...545004', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.55.166', 'name': 'dev-onezone', ...}}, ...}
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57     def call_fixture_func(
23-Nov-2024 06:55:57         fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
23-Nov-2024 06:55:57     ) -> FixtureValue:
23-Nov-2024 06:55:57         if is_generator(fixturefunc):
23-Nov-2024 06:55:57             fixturefunc = cast(
23-Nov-2024 06:55:57                 Callable[..., Generator[FixtureValue, None, None]], fixturefunc
23-Nov-2024 06:55:57             )
23-Nov-2024 06:55:57             generator = fixturefunc(**kwargs)
23-Nov-2024 06:55:57             try:
23-Nov-2024 06:55:57                 fixture_result = next(generator)
23-Nov-2024 06:55:57             except StopIteration:
23-Nov-2024 06:55:57                 raise ValueError(f"{request.fixturename} did not yield a value") from None
23-Nov-2024 06:55:57             finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
23-Nov-2024 06:55:57             request.addfinalizer(finalizer)
23-Nov-2024 06:55:57         else:
23-Nov-2024 06:55:57             fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
23-Nov-2024 06:55:57 >           fixture_result = fixturefunc(**kwargs)
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 /usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913:
23-Nov-2024 06:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23-Nov-2024 06:55:57 tests/utils/bdd_utils.py:78: in wrapper
23-Nov-2024 06:55:57     return fun(*ba.args, **ba.kwargs)
23-Nov-2024 06:55:57 tests/mixed/steps/rest/onezone/special_dirs.py:165: in try_to_move_special_dir
23-Nov-2024 06:55:57     try_to_move_special_dir_by_id(
23-Nov-2024 06:55:57 tests/mixed/steps/rest/onezone/special_dirs.py:191: in try_to_move_special_dir_by_id
23-Nov-2024 06:55:57     move_dir_by_id(user, oneclient_host, users, dir_id, "new_name")
23-Nov-2024 06:55:57 tests/oneclient/steps/multi_dir_steps.py:180: in move_dir_by_id
23-Nov-2024 06:55:57     client.mv(
23-Nov-2024 06:55:57 tests/utils/client_utils.py:107: in mv
23-Nov-2024 06:55:57     self.rpyc_connection.modules.shutil.move(src, dest)
23-Nov-2024 06:55:57 /usr/local/lib/python3.12/dist-packages/rpyc/core/netref.py:240: in __call__
23-Nov-2024 06:55:57     return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
23-Nov-2024 06:55:57 /usr/local/lib/python3.12/dist-packages/rpyc/core/netref.py:63: in syncreq
23-Nov-2024 06:55:57     return conn.sync_request(handler, proxy, *args)
23-Nov-2024 06:55:57 /usr/local/lib/python3.12/dist-packages/rpyc/core/protocol.py:718: in sync_request
23-Nov-2024 06:55:57     return _async_res.value
23-Nov-2024 06:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 self = <AsyncResult object (ready) at 0x7f5bfc22b740>
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57     @property
23-Nov-2024 06:55:57     def value(self):
23-Nov-2024 06:55:57         """Returns the result of the operation. If the result has not yet
23-Nov-2024 06:55:57         arrived, accessing this property will wait for it. If the result does
23-Nov-2024 06:55:57         not arrive before the expiry time elapses, :class:`AsyncResultTimeout`
23-Nov-2024 06:55:57         is raised. If the returned result is an exception, it will be raised
23-Nov-2024 06:55:57         here. Otherwise, the result is returned directly.
23-Nov-2024 06:55:57         """
23-Nov-2024 06:55:57         self.wait()
23-Nov-2024 06:55:57         if self._is_exc:
23-Nov-2024 06:55:57 >           raise self._obj
23-Nov-2024 06:55:57 E           _get_exception_class.<locals>.Derived: [Errno 36] File name too long: '/tmp/onedata/mnt/new_name/.__onedata__file_id__00000000008461247368617265477569642373706163655F3435356133353534373262393734323837323664653862663833393535393937636830373236233435356133353534373262393734323837323664653862663833393535393937636830373236233765383230333237396536333939623061306261363934613761626338323730636837313234' -> None
23-Nov-2024 06:55:57 E           
23-Nov-2024 06:55:57 E           ========= Remote Traceback (1) =========
23-Nov-2024 06:55:57 E           Traceback (most recent call last):
23-Nov-2024 06:55:57 E             File "/usr/lib/python3.8/shutil.py", line 791, in move
23-Nov-2024 06:55:57 E               os.rename(src, real_dst)
23-Nov-2024 06:55:57 E           OSError: [Errno 18] Invalid cross-device link: '/tmp/onedata/mnt/6ioud5m1878e2tct/.__onedata__file_id__00000000008461247368617265477569642373706163655F3435356133353534373262393734323837323664653862663833393535393937636830373236233435356133353534373262393734323837323664653862663833393535393937636830373236233765383230333237396536333939623061306261363934613761626338323730636837313234' -> '/tmp/onedata/mnt/new_name/.__onedata__file_id__00000000008461247368617265477569642373706163655F3435356133353534373262393734323837323664653862663833393535393937636830373236233435356133353534373262393734323837323664653862663833393535393937636830373236233765383230333237396536333939623061306261363934613761626338323730636837313234'
23-Nov-2024 06:55:57 E           
23-Nov-2024 06:55:57 E           During handling of the above exception, another exception occurred:
23-Nov-2024 06:55:57 E           
23-Nov-2024 06:55:57 E           Traceback (most recent call last):
23-Nov-2024 06:55:57 E             File "/usr/local/lib/python3.8/dist-packages/rpyc/core/protocol.py", line 324, in _dispatch_request
23-Nov-2024 06:55:57 E               res = self._HANDLERS[handler](self, *args)
23-Nov-2024 06:55:57 E             File "/usr/local/lib/python3.8/dist-packages/rpyc/core/protocol.py", line 592, in _handle_call
23-Nov-2024 06:55:57 E               return obj(*args, **dict(kwargs))
23-Nov-2024 06:55:57 E             File "/usr/lib/python3.8/shutil.py", line 807, in move
23-Nov-2024 06:55:57 E               copytree(src, real_dst, copy_function=copy_function,
23-Nov-2024 06:55:57 E             File "/usr/lib/python3.8/shutil.py", line 557, in copytree
23-Nov-2024 06:55:57 E               return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
23-Nov-2024 06:55:57 E             File "/usr/lib/python3.8/shutil.py", line 458, in _copytree
23-Nov-2024 06:55:57 E               os.makedirs(dst, exist_ok=dirs_exist_ok)
23-Nov-2024 06:55:57 E             File "/usr/lib/python3.8/os.py", line 223, in makedirs
23-Nov-2024 06:55:57 E               mkdir(name, mode)
23-Nov-2024 06:55:57 E           OSError: [Errno 36] File name too long: '/tmp/onedata/mnt/new_name/.__onedata__file_id__00000000008461247368617265477569642373706163655F3435356133353534373262393734323837323664653862663833393535393937636830373236233435356133353534373262393734323837323664653862663833393535393937636830373236233765383230333237396536333939623061306261363934613761626338323730636837313234'
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 /usr/local/lib/python3.12/dist-packages/rpyc/core/async_.py:108: OSError
23-Nov-2024 06:55:57 _ test_user_fails_to_create_file_in_the_share_root_directory[1oz_1op_1oc-REST] _
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 client = 'REST'
23-Nov-2024 06:55:57 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7f5bfc0f9940>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7f5bfc1861e0>, 'user1': <tests.utils.user_utils.User object at 0x7f5bfc1860c0>, ...}
23-Nov-2024 06:55:57 user = 'user1'
23-Nov-2024 06:55:57 hosts = {'oneclient-1': {'container-id': 'a2997c446434b123db18a3d28ec8c744c56f904f1e615eebb071d626c14f17f8', 'ip': '10.244.55....e59b80545004', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.55.166', 'name': 'dev-onezone', ...}}
23-Nov-2024 06:55:57 host = 'oneprovider-1'
23-Nov-2024 06:55:57 dir_id = '00000000008473FD7368617265477569642373706163655F326531313433633337383730373066383739313863326665623439303630616563683...3138633266656234393036306165636834376364233339393131376530626365303436323966376637343233353364653732343166636861653138'
23-Nov-2024 06:55:57 file_name = 'some_name.txt'
23-Nov-2024 06:55:57 err_msg = 'File created in share root dir, but creation should have failed'
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57     def try_to_create_file_in_special_dir_by_id(
23-Nov-2024 06:55:57         client, users, user, hosts, host, dir_id, file_name, err_msg=""
23-Nov-2024 06:55:57     ):
23-Nov-2024 06:55:57         if client.lower() == "rest":
23-Nov-2024 06:55:57             try:
23-Nov-2024 06:55:57 >               create_empty_file_in_dir_rest(users, user, hosts, host, dir_id, file_name)
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 tests/mixed/steps/rest/onezone/special_dirs.py:243:
23-Nov-2024 06:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23-Nov-2024 06:55:57 tests/mixed/steps/rest/oneprovider/data.py:438: in create_empty_file_in_dir_rest
23-Nov-2024 06:55:57     upload_file_rest(users, user, hosts, host, "", name, dir_id)
23-Nov-2024 06:55:57 tests/mixed/steps/rest/oneprovider/data.py:398: in upload_file_rest
23-Nov-2024 06:55:57     _ = http_post(
23-Nov-2024 06:55:57 tests/utils/rest_utils.py:59: in http_post
23-Nov-2024 06:55:57     return http_request(requests.post, ip, port, path, use_ssl, headers,
23-Nov-2024 06:55:57 tests/utils/rest_utils.py:89: in http_request
23-Nov-2024 06:55:57     raise_http_exception(response)
23-Nov-2024 06:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 response = <Response [400]>
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57     def raise_http_exception(response):
23-Nov-2024 06:55:57         ex_cls = _exceptions.get(response.status_code, HTTPError)
23-Nov-2024 06:55:57 >       raise ex_cls(response)
23-Nov-2024 06:55:57 E       tests.utils.http_exceptions.HTTPBadRequest: [400] Bad Request: {"error":{"id":"notSupported","description":"This operation is not supported."}}
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 tests/utils/http_exceptions.py:15: HTTPBadRequest
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 During handling of the above exception, another exception occurred:
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 fixturefunc = <function try_to_create_file_in_special_dir at 0x7f5bfc7a76a0>
23-Nov-2024 06:55:57 request = <FixtureRequest for <Function test_user_fails_to_create_file_in_the_share_root_directory[1oz_1op_1oc-REST]>>
23-Nov-2024 06:55:57 kwargs = {'client': 'REST', 'file_name': 'some_name.txt', 'host': 'oneprovider-1', 'hosts': {'oneclient-1': {'container-id': 'a...545004', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.55.166', 'name': 'dev-onezone', ...}}, ...}
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57     def call_fixture_func(
23-Nov-2024 06:55:57         fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
23-Nov-2024 06:55:57     ) -> FixtureValue:
23-Nov-2024 06:55:57         if is_generator(fixturefunc):
23-Nov-2024 06:55:57             fixturefunc = cast(
23-Nov-2024 06:55:57                 Callable[..., Generator[FixtureValue, None, None]], fixturefunc
23-Nov-2024 06:55:57             )
23-Nov-2024 06:55:57             generator = fixturefunc(**kwargs)
23-Nov-2024 06:55:57             try:
23-Nov-2024 06:55:57                 fixture_result = next(generator)
23-Nov-2024 06:55:57             except StopIteration:
23-Nov-2024 06:55:57                 raise ValueError(f"{request.fixturename} did not yield a value") from None
23-Nov-2024 06:55:57             finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
23-Nov-2024 06:55:57             request.addfinalizer(finalizer)
23-Nov-2024 06:55:57         else:
23-Nov-2024 06:55:57             fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
23-Nov-2024 06:55:57 >           fixture_result = fixturefunc(**kwargs)
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 /usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913:
23-Nov-2024 06:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23-Nov-2024 06:55:57 tests/utils/bdd_utils.py:78: in wrapper
23-Nov-2024 06:55:57     return fun(*ba.args, **ba.kwargs)
23-Nov-2024 06:55:57 tests/mixed/steps/rest/onezone/special_dirs.py:226: in try_to_create_file_in_special_dir
23-Nov-2024 06:55:57     try_to_create_file_in_special_dir_by_id(
23-Nov-2024 06:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 client = 'REST'
23-Nov-2024 06:55:57 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7f5bfc0f9940>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7f5bfc1861e0>, 'user1': <tests.utils.user_utils.User object at 0x7f5bfc1860c0>, ...}
23-Nov-2024 06:55:57 user = 'user1'
23-Nov-2024 06:55:57 hosts = {'oneclient-1': {'container-id': 'a2997c446434b123db18a3d28ec8c744c56f904f1e615eebb071d626c14f17f8', 'ip': '10.244.55....e59b80545004', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.55.166', 'name': 'dev-onezone', ...}}
23-Nov-2024 06:55:57 host = 'oneprovider-1'
23-Nov-2024 06:55:57 dir_id = '00000000008473FD7368617265477569642373706163655F326531313433633337383730373066383739313863326665623439303630616563683...3138633266656234393036306165636834376364233339393131376530626365303436323966376637343233353364653732343166636861653138'
23-Nov-2024 06:55:57 file_name = 'some_name.txt'
23-Nov-2024 06:55:57 err_msg = 'File created in share root dir, but creation should have failed'
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57     def try_to_create_file_in_special_dir_by_id(
23-Nov-2024 06:55:57         client, users, user, hosts, host, dir_id, file_name, err_msg=""
23-Nov-2024 06:55:57     ):
23-Nov-2024 06:55:57         if client.lower() == "rest":
23-Nov-2024 06:55:57             try:
23-Nov-2024 06:55:57                 create_empty_file_in_dir_rest(users, user, hosts, host, dir_id, file_name)
23-Nov-2024 06:55:57                 raise AssertionError(err_msg)
23-Nov-2024 06:55:57             except (ApiException, HTTPBadRequest) as e:
23-Nov-2024 06:55:57                 ex_err_msg = "Operation failed with POSIX error: eperm."
23-Nov-2024 06:55:57 >               assert ex_err_msg in str(e), f"Unexpected error occurred {e}"
23-Nov-2024 06:55:57 E               AssertionError: Unexpected error occurred [400] Bad Request: {"error":{"id":"notSupported","description":"This operation is not supported."}}
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 tests/mixed/steps/rest/onezone/special_dirs.py:247: AssertionError
23-Nov-2024 06:55:57 _ test_user_fails_to_add_qos_requirement_to_the_share_root_directory[1oz_1op_1oc] _
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 user = 'user1'
23-Nov-2024 06:55:57 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7f5bfc184e30>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7f5bfc0a96d0>, 'user1': <tests.utils.user_utils.User object at 0x7f5bfc0a90d0>, ...}
23-Nov-2024 06:55:57 hosts = {'oneclient-1': {'container-id': 'a2997c446434b123db18a3d28ec8c744c56f904f1e615eebb071d626c14f17f8', 'ip': '10.244.55....e59b80545004', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.55.166', 'name': 'dev-onezone', ...}}
23-Nov-2024 06:55:57 host = 'oneprovider-1'
23-Nov-2024 06:55:57 dir_id = '000000000084C9D77368617265477569642373706163655F656662366337306439663064373866366365653437646365653363333332336163686...6534376463656533633333323361636862353561233039383636326335346636313233623035383732613532613164343266626639636863303062'
23-Nov-2024 06:55:57 expression = 'geo=PL'
23-Nov-2024 06:55:57 err_msg = 'Qos requirement added to share root dir, but adding should have failed'
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57     def try_to_add_qos_to_special_dir_by_id(
23-Nov-2024 06:55:57         user, users, hosts, host, dir_id, expression, err_msg=""
23-Nov-2024 06:55:57     ):
23-Nov-2024 06:55:57         try:
23-Nov-2024 06:55:57 >           create_qos_requirement_in_op_by_id_rest(
23-Nov-2024 06:55:57                 user, users, hosts, host, expression, dir_id
23-Nov-2024 06:55:57             )
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 tests/mixed/steps/rest/onezone/special_dirs.py:299:
23-Nov-2024 06:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23-Nov-2024 06:55:57 tests/mixed/steps/rest/oneprovider/qos.py:29: in create_qos_requirement_in_op_by_id_rest
23-Nov-2024 06:55:57     qos_api.add_qos_requirement(data)
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/api/qo_s_api.py:55: in add_qos_requirement
23-Nov-2024 06:55:57     (data) = self.add_qos_requirement_with_http_info(data, **kwargs)  # noqa: E501
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/api/qo_s_api.py:119: in add_qos_requirement_with_http_info
23-Nov-2024 06:55:57     return self.api_client.call_api(
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/api_client.py:326: in call_api
23-Nov-2024 06:55:57     return self.__call_api(resource_path, method,
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/api_client.py:158: in __call_api
23-Nov-2024 06:55:57     response_data = self.request(
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/api_client.py:368: in request
23-Nov-2024 06:55:57     return self.rest_client.POST(url,
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/rest.py:269: in POST
23-Nov-2024 06:55:57     return self.request("POST", url,
23-Nov-2024 06:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 self = <oneprovider_client.rest.RESTClientObject object at 0x7f5bfc0fbe90>
23-Nov-2024 06:55:57 method = 'POST'
23-Nov-2024 06:55:57 url = 'https://dev-oneprovider-krakow.default.svc.cluster.local:443/api/v3/oneprovider/qos_requirements'
23-Nov-2024 06:55:57 query_params = []
23-Nov-2024 06:55:57 headers = {'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/21.02.7/python', 'X-...Q3MjQwYWNoZGUyMQowMDFhY2lkIHRpbWUgPCAxNzYzODgwOTI3CjAwMmZzaWduYXR1cmUgebihPTCpNi02kzb6OjBBEOSym00ytjdlNwZTKGNQ001Z1MK'}
23-Nov-2024 06:55:57 body = {'expression': 'geo=PL', 'fileId': '000000000084C9D77368617265477569642373706163655F6566623663373064396630643738663663...534376463656533633333323361636862353561233039383636326335346636313233623035383732613532613164343266626639636863303062'}
23-Nov-2024 06:55:57 post_params = {}, _preload_content = True, _request_timeout = None
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57     def request(self, method, url, query_params=None, headers=None,
23-Nov-2024 06:55:57                 body=None, post_params=None, _preload_content=True,
23-Nov-2024 06:55:57                 _request_timeout=None):
23-Nov-2024 06:55:57         """Perform requests.
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         :param method: http request method
23-Nov-2024 06:55:57         :param url: http request url
23-Nov-2024 06:55:57         :param query_params: query parameters in the url
23-Nov-2024 06:55:57         :param headers: http request headers
23-Nov-2024 06:55:57         :param body: request json body, for `application/json`
23-Nov-2024 06:55:57         :param post_params: request post parameters,
23-Nov-2024 06:55:57                             `application/x-www-form-urlencoded`
23-Nov-2024 06:55:57                             and `multipart/form-data`
23-Nov-2024 06:55:57         :param _preload_content: if False, the urllib3.HTTPResponse object will
23-Nov-2024 06:55:57                                  be returned without reading/decoding response
23-Nov-2024 06:55:57                                  data. Default is True.
23-Nov-2024 06:55:57         :param _request_timeout: timeout setting for this request. If one
23-Nov-2024 06:55:57                                  number provided, it will be total request
23-Nov-2024 06:55:57                                  timeout. It can also be a pair (tuple) of
23-Nov-2024 06:55:57                                  (connection, read) timeouts.
23-Nov-2024 06:55:57         """
23-Nov-2024 06:55:57         method = method.upper()
23-Nov-2024 06:55:57         assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT',
23-Nov-2024 06:55:57                           'PATCH', 'OPTIONS']
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         if post_params and body:
23-Nov-2024 06:55:57             raise ValueError(
23-Nov-2024 06:55:57                 "body parameter cannot be used with post_params parameter."
23-Nov-2024 06:55:57             )
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         post_params = post_params or {}
23-Nov-2024 06:55:57         headers = headers or {}
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         timeout = None
23-Nov-2024 06:55:57         if _request_timeout:
23-Nov-2024 06:55:57             if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)):  # noqa: E501,F821
23-Nov-2024 06:55:57                 timeout = urllib3.Timeout(total=_request_timeout)
23-Nov-2024 06:55:57             elif (isinstance(_request_timeout, tuple) and
23-Nov-2024 06:55:57                   len(_request_timeout) == 2):
23-Nov-2024 06:55:57                 timeout = urllib3.Timeout(
23-Nov-2024 06:55:57                     connect=_request_timeout[0], read=_request_timeout[1])
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         if 'Content-Type' not in headers:
23-Nov-2024 06:55:57             headers['Content-Type'] = 'application/json'
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         try:
23-Nov-2024 06:55:57             # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
23-Nov-2024 06:55:57             if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
23-Nov-2024 06:55:57                 if query_params:
23-Nov-2024 06:55:57                     url += '?' + urlencode(query_params)
23-Nov-2024 06:55:57                 if re.search('json', headers['Content-Type'], re.IGNORECASE):
23-Nov-2024 06:55:57                     request_body = '{}'
23-Nov-2024 06:55:57                     if body is not None:
23-Nov-2024 06:55:57                         request_body = json.dumps(body)
23-Nov-2024 06:55:57                     r = self.pool_manager.request(
23-Nov-2024 06:55:57                         method, url,
23-Nov-2024 06:55:57                         body=request_body,
23-Nov-2024 06:55:57                         preload_content=_preload_content,
23-Nov-2024 06:55:57                         timeout=timeout,
23-Nov-2024 06:55:57                         headers=headers)
23-Nov-2024 06:55:57                 elif headers['Content-Type'] == 'application/x-www-form-urlencoded':  # noqa: E501
23-Nov-2024 06:55:57                     r = self.pool_manager.request(
23-Nov-2024 06:55:57                         method, url,
23-Nov-2024 06:55:57                         fields=post_params,
23-Nov-2024 06:55:57                         encode_multipart=False,
23-Nov-2024 06:55:57                         preload_content=_preload_content,
23-Nov-2024 06:55:57                         timeout=timeout,
23-Nov-2024 06:55:57                         headers=headers)
23-Nov-2024 06:55:57                 elif headers['Content-Type'] == 'multipart/form-data':
23-Nov-2024 06:55:57                     # must del headers['Content-Type'], or the correct
23-Nov-2024 06:55:57                     # Content-Type which generated by urllib3 will be
23-Nov-2024 06:55:57                     # overwritten.
23-Nov-2024 06:55:57                     del headers['Content-Type']
23-Nov-2024 06:55:57                     r = self.pool_manager.request(
23-Nov-2024 06:55:57                         method, url,
23-Nov-2024 06:55:57                         fields=post_params,
23-Nov-2024 06:55:57                         encode_multipart=True,
23-Nov-2024 06:55:57                         preload_content=_preload_content,
23-Nov-2024 06:55:57                         timeout=timeout,
23-Nov-2024 06:55:57                         headers=headers)
23-Nov-2024 06:55:57                 # Pass a `string` parameter directly in the body to support
23-Nov-2024 06:55:57                 # other content types than Json when `body` argument is
23-Nov-2024 06:55:57                 # provided in serialized form
23-Nov-2024 06:55:57                 elif isinstance(body, str):
23-Nov-2024 06:55:57                     request_body = body
23-Nov-2024 06:55:57                     r = self.pool_manager.request(
23-Nov-2024 06:55:57                         method, url,
23-Nov-2024 06:55:57                         body=request_body,
23-Nov-2024 06:55:57                         preload_content=_preload_content,
23-Nov-2024 06:55:57                         timeout=timeout,
23-Nov-2024 06:55:57                         headers=headers)
23-Nov-2024 06:55:57                 else:
23-Nov-2024 06:55:57                     # Cannot generate the request from given parameters
23-Nov-2024 06:55:57                     msg = """Cannot prepare a request message for provided
23-Nov-2024 06:55:57                              arguments. Please check that your arguments match
23-Nov-2024 06:55:57                              declared content type."""
23-Nov-2024 06:55:57                     raise ApiException(status=0, reason=msg)
23-Nov-2024 06:55:57             # For `GET`, `HEAD`
23-Nov-2024 06:55:57             else:
23-Nov-2024 06:55:57                 r = self.pool_manager.request(method, url,
23-Nov-2024 06:55:57                                               fields=query_params,
23-Nov-2024 06:55:57                                               preload_content=_preload_content,
23-Nov-2024 06:55:57                                               timeout=timeout,
23-Nov-2024 06:55:57                                               headers=headers)
23-Nov-2024 06:55:57         except urllib3.exceptions.SSLError as e:
23-Nov-2024 06:55:57             msg = "{0}\n{1}".format(type(e).__name__, str(e))
23-Nov-2024 06:55:57             raise ApiException(status=0, reason=msg)
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         if _preload_content:
23-Nov-2024 06:55:57             r = RESTResponse(r)
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57             # In the python 3, the response.data is bytes.
23-Nov-2024 06:55:57             # we need to decode it to string.
23-Nov-2024 06:55:57             if six.PY3:
23-Nov-2024 06:55:57                 r.data = r.data.decode('utf8')
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57             # log response body
23-Nov-2024 06:55:57             logger.debug("response body: %s", r.data)
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         if not 200 <= r.status <= 299:
23-Nov-2024 06:55:57 >           raise ApiException(http_resp=r)
23-Nov-2024 06:55:57 E           oneprovider_client.rest.ApiException: (400)
23-Nov-2024 06:55:57 E           Reason: Bad Request
23-Nov-2024 06:55:57 E           HTTP response headers: HTTPHeaderDict({'access-control-allow-origin': '*', 'content-length': '110', 'content-type': 'application/json', 'date': 'Sat, 23 Nov 2024 06:55:33 GMT', 'server': 'Cowboy'})
23-Nov-2024 06:55:57 E           HTTP response body: {"error":{"id":"posix","details":{"errno":"eperm"},"description":"Operation failed with POSIX error: eperm."}}
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/rest.py:228: ApiException
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 During handling of the above exception, another exception occurred:
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 fixturefunc = <function try_to_add_qos_to_special_dir at 0x7f5bfc7a7f60>
23-Nov-2024 06:55:57 request = <FixtureRequest for <Function test_user_fails_to_add_qos_requirement_to_the_share_root_directory[1oz_1op_1oc]>>
23-Nov-2024 06:55:57 kwargs = {'expression': 'geo=PL', 'host': 'oneprovider-1', 'hosts': {'oneclient-1': {'container-id': 'a2997c446434b123db18a3d28...dev-onezone.default.svc.cluster.local', 'ip': '10.244.55.166', 'name': 'dev-onezone', ...}}, 'name': 'share root', ...}
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57     def call_fixture_func(
23-Nov-2024 06:55:57         fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
23-Nov-2024 06:55:57     ) -> FixtureValue:
23-Nov-2024 06:55:57         if is_generator(fixturefunc):
23-Nov-2024 06:55:57             fixturefunc = cast(
23-Nov-2024 06:55:57                 Callable[..., Generator[FixtureValue, None, None]], fixturefunc
23-Nov-2024 06:55:57             )
23-Nov-2024 06:55:57             generator = fixturefunc(**kwargs)
23-Nov-2024 06:55:57             try:
23-Nov-2024 06:55:57                 fixture_result = next(generator)
23-Nov-2024 06:55:57             except StopIteration:
23-Nov-2024 06:55:57                 raise ValueError(f"{request.fixturename} did not yield a value") from None
23-Nov-2024 06:55:57             finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
23-Nov-2024 06:55:57             request.addfinalizer(finalizer)
23-Nov-2024 06:55:57         else:
23-Nov-2024 06:55:57             fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
23-Nov-2024 06:55:57 >           fixture_result = fixturefunc(**kwargs)
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 /usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913:
23-Nov-2024 06:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23-Nov-2024 06:55:57 tests/utils/bdd_utils.py:78: in wrapper
23-Nov-2024 06:55:57     return fun(*ba.args, **ba.kwargs)
23-Nov-2024 06:55:57 tests/mixed/steps/rest/onezone/special_dirs.py:284: in try_to_add_qos_to_special_dir
23-Nov-2024 06:55:57     try_to_add_qos_to_special_dir_by_id(
23-Nov-2024 06:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 user = 'user1'
23-Nov-2024 06:55:57 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7f5bfc184e30>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7f5bfc0a96d0>, 'user1': <tests.utils.user_utils.User object at 0x7f5bfc0a90d0>, ...}
23-Nov-2024 06:55:57 hosts = {'oneclient-1': {'container-id': 'a2997c446434b123db18a3d28ec8c744c56f904f1e615eebb071d626c14f17f8', 'ip': '10.244.55....e59b80545004', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.55.166', 'name': 'dev-onezone', ...}}
23-Nov-2024 06:55:57 host = 'oneprovider-1'
23-Nov-2024 06:55:57 dir_id = '000000000084C9D77368617265477569642373706163655F656662366337306439663064373866366365653437646365653363333332336163686...6534376463656533633333323361636862353561233039383636326335346636313233623035383732613532613164343266626639636863303062'
23-Nov-2024 06:55:57 expression = 'geo=PL'
23-Nov-2024 06:55:57 err_msg = 'Qos requirement added to share root dir, but adding should have failed'
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57     def try_to_add_qos_to_special_dir_by_id(
23-Nov-2024 06:55:57         user, users, hosts, host, dir_id, expression, err_msg=""
23-Nov-2024 06:55:57     ):
23-Nov-2024 06:55:57         try:
23-Nov-2024 06:55:57             create_qos_requirement_in_op_by_id_rest(
23-Nov-2024 06:55:57                 user, users, hosts, host, expression, dir_id
23-Nov-2024 06:55:57             )
23-Nov-2024 06:55:57             raise AssertionError(err_msg)
23-Nov-2024 06:55:57         except ApiException as e:
23-Nov-2024 06:55:57             ex_err_msg = "You are not authorized to perform this operation."
23-Nov-2024 06:55:57 >           assert ex_err_msg in str(e)
23-Nov-2024 06:55:57 E           AssertionError
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 tests/mixed/steps/rest/onezone/special_dirs.py:305: AssertionError
23-Nov-2024 06:55:57 ___ test_user_fails_to_add_metadata_to_the_share_root_directory[1oz_1op_1oc] ___
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 user = 'user1'
23-Nov-2024 06:55:57 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7f5bfc0a9d60>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7f5bfc490920>, 'user1': <tests.utils.user_utils.User object at 0x7f5bfc4911f0>, ...}
23-Nov-2024 06:55:57 hosts = {'oneclient-1': {'container-id': 'a2997c446434b123db18a3d28ec8c744c56f904f1e615eebb071d626c14f17f8', 'ip': '10.244.55....e59b80545004', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.55.166', 'name': 'dev-onezone', ...}}
23-Nov-2024 06:55:57 host = 'oneprovider-1'
23-Nov-2024 06:55:57 dir_id = '0000000000844AEE7368617265477569642373706163655F643732383235373864333665613731323936653337353333636537633431303063686...6533373533336365376334313030636865363939233435633163653634303862393539633533393332363739373133333161306134636863333264'
23-Nov-2024 06:55:57 expression = '{"id": 1}'
23-Nov-2024 06:55:57 err_msg = 'Json metadata added to share root dir, but adding should have failed'
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57     def try_to_add_json_metadata_to_special_dir_by_id(
23-Nov-2024 06:55:57         user, users, hosts, host, dir_id, expression, err_msg=""
23-Nov-2024 06:55:57     ):
23-Nov-2024 06:55:57         try:
23-Nov-2024 06:55:57 >           add_json_metadata_to_file_rest(user, users, hosts, host, expression, dir_id)
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 tests/mixed/steps/rest/onezone/special_dirs.py:332:
23-Nov-2024 06:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23-Nov-2024 06:55:57 tests/mixed/steps/rest/oneprovider/metadata.py:53: in add_json_metadata_to_file_rest
23-Nov-2024 06:55:57     cfm_api.set_json_metadata(file_id, expression)
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/api/custom_file_metadata_api.py:673: in set_json_metadata
23-Nov-2024 06:55:57     (data) = self.set_json_metadata_with_http_info(id, metadata, **kwargs)  # noqa: E501
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/api/custom_file_metadata_api.py:749: in set_json_metadata_with_http_info
23-Nov-2024 06:55:57     return self.api_client.call_api(
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/api_client.py:326: in call_api
23-Nov-2024 06:55:57     return self.__call_api(resource_path, method,
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/api_client.py:158: in __call_api
23-Nov-2024 06:55:57     response_data = self.request(
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/api_client.py:376: in request
23-Nov-2024 06:55:57     return self.rest_client.PUT(url,
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/rest.py:279: in PUT
23-Nov-2024 06:55:57     return self.request("PUT", url,
23-Nov-2024 06:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 self = <oneprovider_client.rest.RESTClientObject object at 0x7f5bfc130ce0>
23-Nov-2024 06:55:57 method = 'PUT'
23-Nov-2024 06:55:57 url = 'https://dev-oneprovider-krakow.default.svc.cluster.local:443/api/v3/oneprovider/data/0000000000844AEE7368617265477569...65376334313030636865363939233435633163653634303862393539633533393332363739373133333161306134636863333264/metadata/json'
23-Nov-2024 06:55:57 query_params = []
23-Nov-2024 06:55:57 headers = {'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/21.02.7/python', 'X-Auth-Token': 'MDAzM2xvY2F00aW9...QwMTA1ZWNoM2JlOQowMDFhY2lkIHRpbWUgPCAxNzYzODgwOTM1CjAwMmZzaWduYXR1cmUgG01PqGVEi6BEfJc38ldunWpGbrsy11DetHJJI00bMzV02YK'}
23-Nov-2024 06:55:57 body = '{"id": 1}', post_params = {}, _preload_content = True
23-Nov-2024 06:55:57 _request_timeout = None
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57     def request(self, method, url, query_params=None, headers=None,
23-Nov-2024 06:55:57                 body=None, post_params=None, _preload_content=True,
23-Nov-2024 06:55:57                 _request_timeout=None):
23-Nov-2024 06:55:57         """Perform requests.
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         :param method: http request method
23-Nov-2024 06:55:57         :param url: http request url
23-Nov-2024 06:55:57         :param query_params: query parameters in the url
23-Nov-2024 06:55:57         :param headers: http request headers
23-Nov-2024 06:55:57         :param body: request json body, for `application/json`
23-Nov-2024 06:55:57         :param post_params: request post parameters,
23-Nov-2024 06:55:57                             `application/x-www-form-urlencoded`
23-Nov-2024 06:55:57                             and `multipart/form-data`
23-Nov-2024 06:55:57         :param _preload_content: if False, the urllib3.HTTPResponse object will
23-Nov-2024 06:55:57                                  be returned without reading/decoding response
23-Nov-2024 06:55:57                                  data. Default is True.
23-Nov-2024 06:55:57         :param _request_timeout: timeout setting for this request. If one
23-Nov-2024 06:55:57                                  number provided, it will be total request
23-Nov-2024 06:55:57                                  timeout. It can also be a pair (tuple) of
23-Nov-2024 06:55:57                                  (connection, read) timeouts.
23-Nov-2024 06:55:57         """
23-Nov-2024 06:55:57         method = method.upper()
23-Nov-2024 06:55:57         assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT',
23-Nov-2024 06:55:57                           'PATCH', 'OPTIONS']
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         if post_params and body:
23-Nov-2024 06:55:57             raise ValueError(
23-Nov-2024 06:55:57                 "body parameter cannot be used with post_params parameter."
23-Nov-2024 06:55:57             )
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         post_params = post_params or {}
23-Nov-2024 06:55:57         headers = headers or {}
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         timeout = None
23-Nov-2024 06:55:57         if _request_timeout:
23-Nov-2024 06:55:57             if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)):  # noqa: E501,F821
23-Nov-2024 06:55:57                 timeout = urllib3.Timeout(total=_request_timeout)
23-Nov-2024 06:55:57             elif (isinstance(_request_timeout, tuple) and
23-Nov-2024 06:55:57                   len(_request_timeout) == 2):
23-Nov-2024 06:55:57                 timeout = urllib3.Timeout(
23-Nov-2024 06:55:57                     connect=_request_timeout[0], read=_request_timeout[1])
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         if 'Content-Type' not in headers:
23-Nov-2024 06:55:57             headers['Content-Type'] = 'application/json'
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         try:
23-Nov-2024 06:55:57             # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
23-Nov-2024 06:55:57             if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
23-Nov-2024 06:55:57                 if query_params:
23-Nov-2024 06:55:57                     url += '?' + urlencode(query_params)
23-Nov-2024 06:55:57                 if re.search('json', headers['Content-Type'], re.IGNORECASE):
23-Nov-2024 06:55:57                     request_body = '{}'
23-Nov-2024 06:55:57                     if body is not None:
23-Nov-2024 06:55:57                         request_body = json.dumps(body)
23-Nov-2024 06:55:57                     r = self.pool_manager.request(
23-Nov-2024 06:55:57                         method, url,
23-Nov-2024 06:55:57                         body=request_body,
23-Nov-2024 06:55:57                         preload_content=_preload_content,
23-Nov-2024 06:55:57                         timeout=timeout,
23-Nov-2024 06:55:57                         headers=headers)
23-Nov-2024 06:55:57                 elif headers['Content-Type'] == 'application/x-www-form-urlencoded':  # noqa: E501
23-Nov-2024 06:55:57                     r = self.pool_manager.request(
23-Nov-2024 06:55:57                         method, url,
23-Nov-2024 06:55:57                         fields=post_params,
23-Nov-2024 06:55:57                         encode_multipart=False,
23-Nov-2024 06:55:57                         preload_content=_preload_content,
23-Nov-2024 06:55:57                         timeout=timeout,
23-Nov-2024 06:55:57                         headers=headers)
23-Nov-2024 06:55:57                 elif headers['Content-Type'] == 'multipart/form-data':
23-Nov-2024 06:55:57                     # must del headers['Content-Type'], or the correct
23-Nov-2024 06:55:57                     # Content-Type which generated by urllib3 will be
23-Nov-2024 06:55:57                     # overwritten.
23-Nov-2024 06:55:57                     del headers['Content-Type']
23-Nov-2024 06:55:57                     r = self.pool_manager.request(
23-Nov-2024 06:55:57                         method, url,
23-Nov-2024 06:55:57                         fields=post_params,
23-Nov-2024 06:55:57                         encode_multipart=True,
23-Nov-2024 06:55:57                         preload_content=_preload_content,
23-Nov-2024 06:55:57                         timeout=timeout,
23-Nov-2024 06:55:57                         headers=headers)
23-Nov-2024 06:55:57                 # Pass a `string` parameter directly in the body to support
23-Nov-2024 06:55:57                 # other content types than Json when `body` argument is
23-Nov-2024 06:55:57                 # provided in serialized form
23-Nov-2024 06:55:57                 elif isinstance(body, str):
23-Nov-2024 06:55:57                     request_body = body
23-Nov-2024 06:55:57                     r = self.pool_manager.request(
23-Nov-2024 06:55:57                         method, url,
23-Nov-2024 06:55:57                         body=request_body,
23-Nov-2024 06:55:57                         preload_content=_preload_content,
23-Nov-2024 06:55:57                         timeout=timeout,
23-Nov-2024 06:55:57                         headers=headers)
23-Nov-2024 06:55:57                 else:
23-Nov-2024 06:55:57                     # Cannot generate the request from given parameters
23-Nov-2024 06:55:57                     msg = """Cannot prepare a request message for provided
23-Nov-2024 06:55:57                              arguments. Please check that your arguments match
23-Nov-2024 06:55:57                              declared content type."""
23-Nov-2024 06:55:57                     raise ApiException(status=0, reason=msg)
23-Nov-2024 06:55:57             # For `GET`, `HEAD`
23-Nov-2024 06:55:57             else:
23-Nov-2024 06:55:57                 r = self.pool_manager.request(method, url,
23-Nov-2024 06:55:57                                               fields=query_params,
23-Nov-2024 06:55:57                                               preload_content=_preload_content,
23-Nov-2024 06:55:57                                               timeout=timeout,
23-Nov-2024 06:55:57                                               headers=headers)
23-Nov-2024 06:55:57         except urllib3.exceptions.SSLError as e:
23-Nov-2024 06:55:57             msg = "{0}\n{1}".format(type(e).__name__, str(e))
23-Nov-2024 06:55:57             raise ApiException(status=0, reason=msg)
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         if _preload_content:
23-Nov-2024 06:55:57             r = RESTResponse(r)
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57             # In the python 3, the response.data is bytes.
23-Nov-2024 06:55:57             # we need to decode it to string.
23-Nov-2024 06:55:57             if six.PY3:
23-Nov-2024 06:55:57                 r.data = r.data.decode('utf8')
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57             # log response body
23-Nov-2024 06:55:57             logger.debug("response body: %s", r.data)
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         if not 200 <= r.status <= 299:
23-Nov-2024 06:55:57 >           raise ApiException(http_resp=r)
23-Nov-2024 06:55:57 E           oneprovider_client.rest.ApiException: (400)
23-Nov-2024 06:55:57 E           Reason: Bad Request
23-Nov-2024 06:55:57 E           HTTP response headers: HTTPHeaderDict({'access-control-allow-origin': '*', 'content-length': '80', 'content-type': 'application/json', 'date': 'Sat, 23 Nov 2024 06:55:41 GMT', 'server': 'Cowboy'})
23-Nov-2024 06:55:57 E           HTTP response body: {"error":{"id":"notSupported","description":"This operation is not supported."}}
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/rest.py:228: ApiException
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 During handling of the above exception, another exception occurred:
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 fixturefunc = <function try_to_add_json_metadata_to_special_dir at 0x7f5bfc7b05e0>
23-Nov-2024 06:55:57 request = <FixtureRequest for <Function test_user_fails_to_add_metadata_to_the_share_root_directory[1oz_1op_1oc]>>
23-Nov-2024 06:55:57 kwargs = {'expression': '{"id": 1}', 'host': 'oneprovider-1', 'hosts': {'oneclient-1': {'container-id': 'a2997c446434b123db18a3...dev-onezone.default.svc.cluster.local', 'ip': '10.244.55.166', 'name': 'dev-onezone', ...}}, 'name': 'share root', ...}
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57     def call_fixture_func(
23-Nov-2024 06:55:57         fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
23-Nov-2024 06:55:57     ) -> FixtureValue:
23-Nov-2024 06:55:57         if is_generator(fixturefunc):
23-Nov-2024 06:55:57             fixturefunc = cast(
23-Nov-2024 06:55:57                 Callable[..., Generator[FixtureValue, None, None]], fixturefunc
23-Nov-2024 06:55:57             )
23-Nov-2024 06:55:57             generator = fixturefunc(**kwargs)
23-Nov-2024 06:55:57             try:
23-Nov-2024 06:55:57                 fixture_result = next(generator)
23-Nov-2024 06:55:57             except StopIteration:
23-Nov-2024 06:55:57                 raise ValueError(f"{request.fixturename} did not yield a value") from None
23-Nov-2024 06:55:57             finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
23-Nov-2024 06:55:57             request.addfinalizer(finalizer)
23-Nov-2024 06:55:57         else:
23-Nov-2024 06:55:57             fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
23-Nov-2024 06:55:57 >           fixture_result = fixturefunc(**kwargs)
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 /usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913:
23-Nov-2024 06:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23-Nov-2024 06:55:57 tests/utils/bdd_utils.py:78: in wrapper
23-Nov-2024 06:55:57     return fun(*ba.args, **ba.kwargs)
23-Nov-2024 06:55:57 tests/mixed/steps/rest/onezone/special_dirs.py:317: in try_to_add_json_metadata_to_special_dir
23-Nov-2024 06:55:57     try_to_add_json_metadata_to_special_dir_by_id(
23-Nov-2024 06:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 user = 'user1'
23-Nov-2024 06:55:57 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7f5bfc0a9d60>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7f5bfc490920>, 'user1': <tests.utils.user_utils.User object at 0x7f5bfc4911f0>, ...}
23-Nov-2024 06:55:57 hosts = {'oneclient-1': {'container-id': 'a2997c446434b123db18a3d28ec8c744c56f904f1e615eebb071d626c14f17f8', 'ip': '10.244.55....e59b80545004', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.55.166', 'name': 'dev-onezone', ...}}
23-Nov-2024 06:55:57 host = 'oneprovider-1'
23-Nov-2024 06:55:57 dir_id = '0000000000844AEE7368617265477569642373706163655F643732383235373864333665613731323936653337353333636537633431303063686...6533373533336365376334313030636865363939233435633163653634303862393539633533393332363739373133333161306134636863333264'
23-Nov-2024 06:55:57 expression = '{"id": 1}'
23-Nov-2024 06:55:57 err_msg = 'Json metadata added to share root dir, but adding should have failed'
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57     def try_to_add_json_metadata_to_special_dir_by_id(
23-Nov-2024 06:55:57         user, users, hosts, host, dir_id, expression, err_msg=""
23-Nov-2024 06:55:57     ):
23-Nov-2024 06:55:57         try:
23-Nov-2024 06:55:57             add_json_metadata_to_file_rest(user, users, hosts, host, expression, dir_id)
23-Nov-2024 06:55:57             raise AssertionError(err_msg)
23-Nov-2024 06:55:57         except ApiException as e:
23-Nov-2024 06:55:57             ex_err_msg = "You are not authorized to perform this operation."
23-Nov-2024 06:55:57 >           assert ex_err_msg in str(e)
23-Nov-2024 06:55:57 E           AssertionError
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 tests/mixed/steps/rest/onezone/special_dirs.py:336: AssertionError
23-Nov-2024 06:55:57 _ test_user_fails_to_establish_dataset_on_the_share_root_directory[1oz_1op_1oc] _
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 user = 'user1'
23-Nov-2024 06:55:57 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7f5bfc10d760>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7f5bfc54e480>, 'user1': <tests.utils.user_utils.User object at 0x7f5bfc0fab70>, ...}
23-Nov-2024 06:55:57 hosts = {'oneclient-1': {'container-id': 'a2997c446434b123db18a3d28ec8c744c56f904f1e615eebb071d626c14f17f8', 'ip': '10.244.55....e59b80545004', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.55.166', 'name': 'dev-onezone', ...}}
23-Nov-2024 06:55:57 host = 'oneprovider-1'
23-Nov-2024 06:55:57 dir_id = '000000000084F50B7368617265477569642373706163655F613939346435303331643162316133643637626534666438616665666463653963683...6265346664386166656664636539636837383062236432386331653635653437313265653461303261653637643166613666366630636864633963'
23-Nov-2024 06:55:57 err_msg = 'Established dataset on share root dir, but establishing should have failed'
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57     def try_to_establish_dataset_on_special_dir_by_id(
23-Nov-2024 06:55:57         user, users, hosts, host, dir_id, err_msg=""
23-Nov-2024 06:55:57     ):
23-Nov-2024 06:55:57         try:
23-Nov-2024 06:55:57 >           create_dataset_in_op_by_id_rest(user, users, hosts, host, dir_id, "")
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 tests/mixed/steps/rest/onezone/special_dirs.py:362:
23-Nov-2024 06:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23-Nov-2024 06:55:57 tests/mixed/steps/rest/oneprovider/datasets.py:29: in create_dataset_in_op_by_id_rest
23-Nov-2024 06:55:57     dataset_api.establish_dataset(data)
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/api/dataset_api.py:55: in establish_dataset
23-Nov-2024 06:55:57     (data) = self.establish_dataset_with_http_info(data, **kwargs)  # noqa: E501
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/api/dataset_api.py:119: in establish_dataset_with_http_info
23-Nov-2024 06:55:57     return self.api_client.call_api(
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/api_client.py:326: in call_api
23-Nov-2024 06:55:57     return self.__call_api(resource_path, method,
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/api_client.py:158: in __call_api
23-Nov-2024 06:55:57     response_data = self.request(
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/api_client.py:368: in request
23-Nov-2024 06:55:57     return self.rest_client.POST(url,
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/rest.py:269: in POST
23-Nov-2024 06:55:57     return self.request("POST", url,
23-Nov-2024 06:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 self = <oneprovider_client.rest.RESTClientObject object at 0x7f5bfc4581a0>
23-Nov-2024 06:55:57 method = 'POST'
23-Nov-2024 06:55:57 url = 'https://dev-oneprovider-krakow.default.svc.cluster.local:443/api/v3/oneprovider/datasets'
23-Nov-2024 06:55:57 query_params = []
23-Nov-2024 06:55:57 headers = {'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/21.02.7/python', 'X-...jNWM4Y2NoYjE00MgowMDFhY2lkIHRpbWUgPCAxNzYzODgwOTQzCjAwMmZzaWduYXR1cmUgELN01CC900H4ol73t9u9jenKlZ009SajRcFBWBCzyBMzg4K'}
23-Nov-2024 06:55:57 body = {'rootFileId': '000000000084F50B7368617265477569642373706163655F613939346435303331643162316133643637626534666438616665...265346664386166656664636539636837383062236432386331653635653437313265653461303261653637643166613666366630636864633963'}
23-Nov-2024 06:55:57 post_params = {}, _preload_content = True, _request_timeout = None
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57     def request(self, method, url, query_params=None, headers=None,
23-Nov-2024 06:55:57                 body=None, post_params=None, _preload_content=True,
23-Nov-2024 06:55:57                 _request_timeout=None):
23-Nov-2024 06:55:57         """Perform requests.
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         :param method: http request method
23-Nov-2024 06:55:57         :param url: http request url
23-Nov-2024 06:55:57         :param query_params: query parameters in the url
23-Nov-2024 06:55:57         :param headers: http request headers
23-Nov-2024 06:55:57         :param body: request json body, for `application/json`
23-Nov-2024 06:55:57         :param post_params: request post parameters,
23-Nov-2024 06:55:57                             `application/x-www-form-urlencoded`
23-Nov-2024 06:55:57                             and `multipart/form-data`
23-Nov-2024 06:55:57         :param _preload_content: if False, the urllib3.HTTPResponse object will
23-Nov-2024 06:55:57                                  be returned without reading/decoding response
23-Nov-2024 06:55:57                                  data. Default is True.
23-Nov-2024 06:55:57         :param _request_timeout: timeout setting for this request. If one
23-Nov-2024 06:55:57                                  number provided, it will be total request
23-Nov-2024 06:55:57                                  timeout. It can also be a pair (tuple) of
23-Nov-2024 06:55:57                                  (connection, read) timeouts.
23-Nov-2024 06:55:57         """
23-Nov-2024 06:55:57         method = method.upper()
23-Nov-2024 06:55:57         assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT',
23-Nov-2024 06:55:57                           'PATCH', 'OPTIONS']
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         if post_params and body:
23-Nov-2024 06:55:57             raise ValueError(
23-Nov-2024 06:55:57                 "body parameter cannot be used with post_params parameter."
23-Nov-2024 06:55:57             )
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         post_params = post_params or {}
23-Nov-2024 06:55:57         headers = headers or {}
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         timeout = None
23-Nov-2024 06:55:57         if _request_timeout:
23-Nov-2024 06:55:57             if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)):  # noqa: E501,F821
23-Nov-2024 06:55:57                 timeout = urllib3.Timeout(total=_request_timeout)
23-Nov-2024 06:55:57             elif (isinstance(_request_timeout, tuple) and
23-Nov-2024 06:55:57                   len(_request_timeout) == 2):
23-Nov-2024 06:55:57                 timeout = urllib3.Timeout(
23-Nov-2024 06:55:57                     connect=_request_timeout[0], read=_request_timeout[1])
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         if 'Content-Type' not in headers:
23-Nov-2024 06:55:57             headers['Content-Type'] = 'application/json'
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         try:
23-Nov-2024 06:55:57             # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
23-Nov-2024 06:55:57             if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
23-Nov-2024 06:55:57                 if query_params:
23-Nov-2024 06:55:57                     url += '?' + urlencode(query_params)
23-Nov-2024 06:55:57                 if re.search('json', headers['Content-Type'], re.IGNORECASE):
23-Nov-2024 06:55:57                     request_body = '{}'
23-Nov-2024 06:55:57                     if body is not None:
23-Nov-2024 06:55:57                         request_body = json.dumps(body)
23-Nov-2024 06:55:57                     r = self.pool_manager.request(
23-Nov-2024 06:55:57                         method, url,
23-Nov-2024 06:55:57                         body=request_body,
23-Nov-2024 06:55:57                         preload_content=_preload_content,
23-Nov-2024 06:55:57                         timeout=timeout,
23-Nov-2024 06:55:57                         headers=headers)
23-Nov-2024 06:55:57                 elif headers['Content-Type'] == 'application/x-www-form-urlencoded':  # noqa: E501
23-Nov-2024 06:55:57                     r = self.pool_manager.request(
23-Nov-2024 06:55:57                         method, url,
23-Nov-2024 06:55:57                         fields=post_params,
23-Nov-2024 06:55:57                         encode_multipart=False,
23-Nov-2024 06:55:57                         preload_content=_preload_content,
23-Nov-2024 06:55:57                         timeout=timeout,
23-Nov-2024 06:55:57                         headers=headers)
23-Nov-2024 06:55:57                 elif headers['Content-Type'] == 'multipart/form-data':
23-Nov-2024 06:55:57                     # must del headers['Content-Type'], or the correct
23-Nov-2024 06:55:57                     # Content-Type which generated by urllib3 will be
23-Nov-2024 06:55:57                     # overwritten.
23-Nov-2024 06:55:57                     del headers['Content-Type']
23-Nov-2024 06:55:57                     r = self.pool_manager.request(
23-Nov-2024 06:55:57                         method, url,
23-Nov-2024 06:55:57                         fields=post_params,
23-Nov-2024 06:55:57                         encode_multipart=True,
23-Nov-2024 06:55:57                         preload_content=_preload_content,
23-Nov-2024 06:55:57                         timeout=timeout,
23-Nov-2024 06:55:57                         headers=headers)
23-Nov-2024 06:55:57                 # Pass a `string` parameter directly in the body to support
23-Nov-2024 06:55:57                 # other content types than Json when `body` argument is
23-Nov-2024 06:55:57                 # provided in serialized form
23-Nov-2024 06:55:57                 elif isinstance(body, str):
23-Nov-2024 06:55:57                     request_body = body
23-Nov-2024 06:55:57                     r = self.pool_manager.request(
23-Nov-2024 06:55:57                         method, url,
23-Nov-2024 06:55:57                         body=request_body,
23-Nov-2024 06:55:57                         preload_content=_preload_content,
23-Nov-2024 06:55:57                         timeout=timeout,
23-Nov-2024 06:55:57                         headers=headers)
23-Nov-2024 06:55:57                 else:
23-Nov-2024 06:55:57                     # Cannot generate the request from given parameters
23-Nov-2024 06:55:57                     msg = """Cannot prepare a request message for provided
23-Nov-2024 06:55:57                              arguments. Please check that your arguments match
23-Nov-2024 06:55:57                              declared content type."""
23-Nov-2024 06:55:57                     raise ApiException(status=0, reason=msg)
23-Nov-2024 06:55:57             # For `GET`, `HEAD`
23-Nov-2024 06:55:57             else:
23-Nov-2024 06:55:57                 r = self.pool_manager.request(method, url,
23-Nov-2024 06:55:57                                               fields=query_params,
23-Nov-2024 06:55:57                                               preload_content=_preload_content,
23-Nov-2024 06:55:57                                               timeout=timeout,
23-Nov-2024 06:55:57                                               headers=headers)
23-Nov-2024 06:55:57         except urllib3.exceptions.SSLError as e:
23-Nov-2024 06:55:57             msg = "{0}\n{1}".format(type(e).__name__, str(e))
23-Nov-2024 06:55:57             raise ApiException(status=0, reason=msg)
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         if _preload_content:
23-Nov-2024 06:55:57             r = RESTResponse(r)
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57             # In the python 3, the response.data is bytes.
23-Nov-2024 06:55:57             # we need to decode it to string.
23-Nov-2024 06:55:57             if six.PY3:
23-Nov-2024 06:55:57                 r.data = r.data.decode('utf8')
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57             # log response body
23-Nov-2024 06:55:57             logger.debug("response body: %s", r.data)
23-Nov-2024 06:55:57    
23-Nov-2024 06:55:57         if not 200 <= r.status <= 299:
23-Nov-2024 06:55:57 >           raise ApiException(http_resp=r)
23-Nov-2024 06:55:57 E           oneprovider_client.rest.ApiException: (400)
23-Nov-2024 06:55:57 E           Reason: Bad Request
23-Nov-2024 06:55:57 E           HTTP response headers: HTTPHeaderDict({'access-control-allow-origin': '*', 'content-length': '110', 'content-type': 'application/json', 'date': 'Sat, 23 Nov 2024 06:55:49 GMT', 'server': 'Cowboy'})
23-Nov-2024 06:55:57 E           HTTP response body: {"error":{"id":"posix","details":{"errno":"eperm"},"description":"Operation failed with POSIX error: eperm."}}
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 tests/mixed/oneprovider_client/rest.py:228: ApiException
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 During handling of the above exception, another exception occurred:
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 fixturefunc = <function try_to_establish_dataset_on_special_dir at 0x7f5bfc7b0b80>
23-Nov-2024 06:55:57 request = <FixtureRequest for <Function test_user_fails_to_establish_dataset_on_the_share_root_directory[1oz_1op_1oc]>>
23-Nov-2024 06:55:57 kwargs = {'host': 'oneprovider-1', 'hosts': {'oneclient-1': {'container-id': 'a2997c446434b123db18a3d28ec8c744c56f904f1e615eebb...4386166656664636539636837383062236432386331653635653437313265653461303261653637643166613666366630636864633963'}}), ...}
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57     def call_fixture_func(
23-Nov-2024 06:55:57         fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
23-Nov-2024 06:55:57     ) -> FixtureValue:
23-Nov-2024 06:55:57         if is_generator(fixturefunc):
23-Nov-2024 06:55:57             fixturefunc = cast(
23-Nov-2024 06:55:57                 Callable[..., Generator[FixtureValue, None, None]], fixturefunc
23-Nov-2024 06:55:57             )
23-Nov-2024 06:55:57             generator = fixturefunc(**kwargs)
23-Nov-2024 06:55:57             try:
23-Nov-2024 06:55:57                 fixture_result = next(generator)
23-Nov-2024 06:55:57             except StopIteration:
23-Nov-2024 06:55:57                 raise ValueError(f"{request.fixturename} did not yield a value") from None
23-Nov-2024 06:55:57             finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
23-Nov-2024 06:55:57             request.addfinalizer(finalizer)
23-Nov-2024 06:55:57         else:
23-Nov-2024 06:55:57             fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
23-Nov-2024 06:55:57 >           fixture_result = fixturefunc(**kwargs)
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 /usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913:
23-Nov-2024 06:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23-Nov-2024 06:55:57 tests/utils/bdd_utils.py:78: in wrapper
23-Nov-2024 06:55:57     return fun(*ba.args, **ba.kwargs)
23-Nov-2024 06:55:57 tests/mixed/steps/rest/onezone/special_dirs.py:346: in try_to_establish_dataset_on_special_dir
23-Nov-2024 06:55:57     try_to_establish_dataset_on_special_dir_by_id(
23-Nov-2024 06:55:57 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 user = 'user1'
23-Nov-2024 06:55:57 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7f5bfc10d760>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7f5bfc54e480>, 'user1': <tests.utils.user_utils.User object at 0x7f5bfc0fab70>, ...}
23-Nov-2024 06:55:57 hosts = {'oneclient-1': {'container-id': 'a2997c446434b123db18a3d28ec8c744c56f904f1e615eebb071d626c14f17f8', 'ip': '10.244.55....e59b80545004', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.55.166', 'name': 'dev-onezone', ...}}
23-Nov-2024 06:55:57 host = 'oneprovider-1'
23-Nov-2024 06:55:57 dir_id = '000000000084F50B7368617265477569642373706163655F613939346435303331643162316133643637626534666438616665666463653963683...6265346664386166656664636539636837383062236432386331653635653437313265653461303261653637643166613666366630636864633963'
23-Nov-2024 06:55:57 err_msg = 'Established dataset on share root dir, but establishing should have failed'
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57     def try_to_establish_dataset_on_special_dir_by_id(
23-Nov-2024 06:55:57         user, users, hosts, host, dir_id, err_msg=""
23-Nov-2024 06:55:57     ):
23-Nov-2024 06:55:57         try:
23-Nov-2024 06:55:57             create_dataset_in_op_by_id_rest(user, users, hosts, host, dir_id, "")
23-Nov-2024 06:55:57             raise AssertionError(err_msg)
23-Nov-2024 06:55:57         except ApiException as e:
23-Nov-2024 06:55:57             ex_err_msg = "You are not authorized to perform this operation."
23-Nov-2024 06:55:57 >           assert ex_err_msg in str(e)
23-Nov-2024 06:55:57 E           AssertionError
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 tests/mixed/steps/rest/onezone/special_dirs.py:366: AssertionError
23-Nov-2024 06:55:57 =============================== warnings summary ===============================
23-Nov-2024 06:55:57 tests/utils/rest_utils.py:98
23-Nov-2024 06:55:57   /mnt/storage/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance/tests/utils/rest_utils.py:98: SyntaxWarning: invalid escape sequence '\ '
23-Nov-2024 06:55:57     print("""
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 tests/utils/path_utils.py:112
23-Nov-2024 06:55:57   /mnt/storage/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance/tests/utils/path_utils.py:112: SyntaxWarning: invalid escape sequence '\ '
23-Nov-2024 06:55:57     return path.replace("'", "\\'").replace(' ', '\ ')
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 tests/utils/acceptance_utils.py:55
23-Nov-2024 06:55:57   /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'
23-Nov-2024 06:55:57     '(?P<seconds>\d*\.?\d+([eE][-+]?\d+)?) seconds?'))
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 tests/utils/acceptance_utils.py:57
23-Nov-2024 06:55:57   /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'
23-Nov-2024 06:55:57     '(?P<seconds>\d*\.?\d+([eE][-+]?\d+)?) seconds?'))
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 tests/gui/steps/onezone/automation/automation_basic.py:327
23-Nov-2024 06:55:57   /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 '\('
23-Nov-2024 06:55:57     'new revision|Duplicate to...|Download \(json\)|Remove)" button '
23-Nov-2024 06:55:57
23-Nov-2024 06:55:57 -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
23-Nov-2024 06:55:57 - generated xml file: /mnt/storage/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance/test-reports/results.xml -
23-Nov-2024 06:55:57 - Generated html report: file:///mnt/storage/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance/tests/mixed/logs/report.1732343891.5777547/report.html -
23-Nov-2024 06:55:57 ============ 25 failed, 34 passed, 5 warnings in 1065.96s (0:17:45) ============
23-Nov-2024 06:56:02 release "dev" uninstalled
23-Nov-2024 06:56:02 Sidecar injection has been disabled
23-Nov-2024 06:56:02 Cleaning helm release "dev"...
23-Nov-2024 06:56:02 Deleted 1 helm deployments
23-Nov-2024 06:56:02 Deleted 0 k8s deployments
23-Nov-2024 06:56:02 Deleted 0 k8s services
23-Nov-2024 06:56:02 Deleted 0 persistent volumes
23-Nov-2024 06:56:03 [INFO] ENV variable "bamboo_planRepository_branchName" is set to develop - using it as current branch name
23-Nov-2024 06:56:03 [INFO] Using image docker.onedata.org/onezone-dev:develop for service onezone
23-Nov-2024 06:56:03 [INFO] ENV variable "bamboo_planRepository_branchName" is set to develop - using it as current branch name
23-Nov-2024 06:56:03 [INFO] Using image docker.onedata.org/oneprovider-dev:develop for service oneprovider
23-Nov-2024 06:56:03 [INFO] Using image docker.onedata.org/rest-cli:develop for service rest-cli
23-Nov-2024 06:56:03 [INFO] ENV variable "bamboo_planRepository_branchName" is set to develop - using it as current branch name
23-Nov-2024 06:56:03 [INFO] Using image docker.onedata.org/oneclient-dev:develop for service oneclient
23-Nov-2024 06:56:03 Finished task 'Run acceptance mixed tests in Chrome' with result: Success
23-Nov-2024 06:56:03 Starting task 'Parse test results' of type 'com.atlassian.bamboo.plugins.testresultparser:task.testresultparser.junit'
23-Nov-2024 06:56:03 Parsing test results under /home/bamboo/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT...
23-Nov-2024 06:56:03 Failing task since 25 failing test cases were found.
23-Nov-2024 06:56:03 Changing Task Result to SUCCESS as all failed tests were quarantined.
23-Nov-2024 06:56:03 Finished task 'Parse test results' with result: Success
23-Nov-2024 06:56:03 All conditions for task 'Pack and push surefire artifact' were met. Conditions: Variable bamboo.buildNumber matches pattern [4-9]|.{2,}
23-Nov-2024 06:56:03
Substituting variable: ${bamboo.artifactRepoHostname} with S3
23-Nov-2024 06:56:03
Substituting variable: ${bamboo.artifactRepoPort} with 10161
23-Nov-2024 06:56:03
Substituting variable: ${bamboo.artifactRepoUsername} with ubuntu
23-Nov-2024 06:56:03
Substituting variable: ${bamboo.planRepository.branchName} with develop
23-Nov-2024 06:56:03
Substituting variable: ${bamboo.planRepository.name} with onedata-acceptance
23-Nov-2024 06:56:03
Substituting variable: ${bamboo.artifactRepoHostname} with S3
23-Nov-2024 06:56:03
Substituting variable: ${bamboo.artifactRepoPort} with 10161
23-Nov-2024 06:56:03
Substituting variable: ${bamboo.artifactRepoUsername} with ubuntu
23-Nov-2024 06:56:03
Substituting variable: ${bamboo.planRepository.branchName} with develop
23-Nov-2024 06:56:03
Substituting variable: ${bamboo.planRepository.name} with onedata-acceptance
23-Nov-2024 06:56:03 Starting task 'Pack and push surefire artifact' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
23-Nov-2024 06:56:03
Beginning to execute external process for build 'Onedata Products - mixed acceptance pkg - Spaces basic #3285 (ODSRV-MAOPT-CSBT-3285)'
... running command line:
/home/bamboo/bamboo-agent-home/temp/ODSRV-MAOPT-CSBT-3285-ScriptBuildTask-10674028027829448723.sh
... in: /home/bamboo/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance
23-Nov-2024 06:56:03 ./bamboos/artifacts/push_artifact.py --hostname S3 --port 10161 --username ubuntu --branch develop --plan onedata-acceptance --artifact-name surefire_Spaces_basic.tar.gz
23-Nov-2024 06:56:05 Uploading artifact
23-Nov-2024 06:56:05     source path: surefire_Spaces_basic.tar.gz
23-Nov-2024 06:56:05     dest.  path: artifacts/onedata-acceptance/develop/surefire_Spaces_basic.tar.gz
23-Nov-2024 06:56:05 Finished task 'Pack and push surefire artifact' with result: Success
23-Nov-2024 06:56:05 All conditions for task 'Pack logs' were met. Conditions: Variable bamboo.buildNumber matches pattern [4-9]|.{2,}
23-Nov-2024 06:56:05 Starting task 'Pack logs' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
23-Nov-2024 06:56:05
Beginning to execute external process for build 'Onedata Products - mixed acceptance pkg - Spaces basic #3285 (ODSRV-MAOPT-CSBT-3285)'
... running command line:
/home/bamboo/bamboo-agent-home/temp/ODSRV-MAOPT-CSBT-3285-ScriptBuildTask-1041078102899709457.sh
... in: /home/bamboo/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT
23-Nov-2024 06:56:05 cp: cannot stat 'onedata-acceptance/one_env/sources_info.yaml': No such file or directory
23-Nov-2024 06:56:05 Finished task 'Pack logs' with result: Success
23-Nov-2024 06:56:05 All conditions for task 'Clear env and working dir' were met. Conditions: Variable bamboo.buildNumber matches pattern [4-9]|.{2,}
23-Nov-2024 06:56:05
Substituting variable: ${bamboo.OnedataFinalTasksURL} with https://raw.githubusercontent.com/onedata/bamboos/develop/final_tasks.sh
23-Nov-2024 06:56:05 Starting task 'Clear env and working dir' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
23-Nov-2024 06:56:05
Beginning to execute external process for build 'Onedata Products - mixed acceptance pkg - Spaces basic #3285 (ODSRV-MAOPT-CSBT-3285)'
... running command line:
/home/bamboo/bamboo-agent-home/temp/ODSRV-MAOPT-CSBT-3285-ScriptBuildTask-12834598682693735998.sh
... in: /home/bamboo/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance
23-Nov-2024 06:56:05   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
23-Nov-2024 06:56:05                                  Dload  Upload   Total   Spent    Left  Speed
23-Nov-2024 06:56:05
23-Nov-2024 06:56:05   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
23-Nov-2024 06:56:05 100  4822  100  4822    0     0  53577      0 --:--:-- --:--:-- --:--:-- 53577
23-Nov-2024 06:56:05 Clearing /tmp/onedata and /home/bamboo/.one-env
23-Nov-2024 06:56:07 Cleaning helm deployments
23-Nov-2024 06:56:07 Cleanining pods
23-Nov-2024 06:56:07 Cleaning kube persistant volumes
23-Nov-2024 06:56:07 Cleaning dockswift container
23-Nov-2024 06:56:07 Cleaning docker containers
23-Nov-2024 06:56:10 Stalled docker containers to remove:
23-Nov-2024 06:56:10 70ae2dd699ef 0575b5e25147 ce3064a7c0ef a62db86c74b3 d271098b6dd5 1564bc3cc4cf 162fe6228ec6 1426a45d46bc 591f40c2da7d 3aacedc3c04e 95fd8f1dbc0f aae0cfb42c29 5119dd33f874 f173907d0576 a57b8b0cddcb
23-Nov-2024 06:56:10 Removing stalled docker containers
23-Nov-2024 06:56:10 Error response from daemon: Cannot kill container: 70ae2dd699ef: Container 70ae2dd699eff288aeac2f8dd6206cbae70bfa1eab4db75ca1f7a11f178998a3 is not running
23-Nov-2024 06:56:10 70ae2dd699ef
23-Nov-2024 06:56:10 Error response from daemon: Cannot kill container: 0575b5e25147: Container 0575b5e25147cef8098231a5ebd96187e4ff8f7d1d50c4421d63a074a8d40295 is not running
23-Nov-2024 06:56:10 0575b5e25147
23-Nov-2024 06:56:10 Error response from daemon: Cannot kill container: ce3064a7c0ef: Container ce3064a7c0ef5b8c4f303250fdfed5a46a14db9b70291489bca0c50fdc5d647b is not running
23-Nov-2024 06:56:10 ce3064a7c0ef
23-Nov-2024 06:56:10 Error response from daemon: Cannot kill container: a62db86c74b3: Container a62db86c74b3e19914a1d5ce9aff297968304867b5b55583eb0e87656a29ced9 is not running
23-Nov-2024 06:56:10 a62db86c74b3
23-Nov-2024 06:56:10 Error response from daemon: Cannot kill container: d271098b6dd5: Container d271098b6dd5ac73996c6d296c99e72d9d0d64f3753f63bd2a561cc057d96a55 is not running
23-Nov-2024 06:56:10 d271098b6dd5
23-Nov-2024 06:56:10 Error response from daemon: Cannot kill container: 1564bc3cc4cf: Container 1564bc3cc4cf86f7d60dff38b137d1523a366a617e3eff5a7472b2b0a9c72536 is not running
23-Nov-2024 06:56:11 1564bc3cc4cf
23-Nov-2024 06:56:11 Error response from daemon: Cannot kill container: 162fe6228ec6: Container 162fe6228ec63d42470f8db8293c42e266c59c80fcf6b8d7df546e884053a938 is not running
23-Nov-2024 06:56:11 162fe6228ec6
23-Nov-2024 06:56:11 Error response from daemon: Cannot kill container: 1426a45d46bc: Container 1426a45d46bc67ab49e243728c4872940a45f762c32894f9f7436253ed22b68f is not running
23-Nov-2024 06:56:11 1426a45d46bc
23-Nov-2024 06:56:11 Error response from daemon: Cannot kill container: 591f40c2da7d: Container 591f40c2da7d26df6c4447479cbe1d87515871c57b58db42bd8bc9839e54a20e is not running
23-Nov-2024 06:56:11 591f40c2da7d
23-Nov-2024 06:56:11 Error response from daemon: Cannot kill container: 3aacedc3c04e: Container 3aacedc3c04e150ea01c6bf0707d039213cb5d5127b2d3a3f3618107f8dfe63c is not running
23-Nov-2024 06:56:11 3aacedc3c04e
23-Nov-2024 06:56:11 Error response from daemon: Cannot kill container: 95fd8f1dbc0f: Container 95fd8f1dbc0fd5044af15ed952e45d29ea9a29058307ee9f23ab83269d5c4b12 is not running
23-Nov-2024 06:56:11 95fd8f1dbc0f
23-Nov-2024 06:56:11 Error response from daemon: Cannot kill container: aae0cfb42c29: Container aae0cfb42c2984bb31aa24b6629645a53b6e18af49c0d4a5af82f4adea4c3e6f is not running
23-Nov-2024 06:56:11 aae0cfb42c29
23-Nov-2024 06:56:11 Error response from daemon: Cannot kill container: 5119dd33f874: Container 5119dd33f874bcee2f1df8a4367b55fa1de2cd2f06d7ab94356803ae20dcd684 is not running
23-Nov-2024 06:56:11 5119dd33f874
23-Nov-2024 06:56:11 Error response from daemon: Cannot kill container: f173907d0576: Container f173907d0576af2fd89b57a4e0fac411789e4a5ae3b89285a7c3c02de69d6d0a is not running
23-Nov-2024 06:56:11 f173907d0576
23-Nov-2024 06:56:12 a57b8b0cddcb
23-Nov-2024 06:56:15 a57b8b0cddcb
23-Nov-2024 06:56:15 Stalled docker volumes to remove:
23-Nov-2024 06:56:15
23-Nov-2024 06:56:15 Removing stalled docker volumes
23-Nov-2024 06:56:15 Removing stalled loopdevices
23-Nov-2024 06:56:18 Done
23-Nov-2024 06:56:18 Finished task 'Clear env and working dir' with result: Success
23-Nov-2024 06:56:18 Skipping task 'Qnthack - always fail on build 2' because of unfulfilled condition. Reason: Variable bamboo.buildNumber matches pattern 2
23-Nov-2024 06:56:18 Running post build plugin 'Docker Container Cleanup'
23-Nov-2024 06:56:18 Running post build plugin 'NCover Results Collector'
23-Nov-2024 06:56:18 Running post build plugin 'Build Results Label Collector'
23-Nov-2024 06:56:18 Running post build plugin 'Clover Results Collector'
23-Nov-2024 06:56:18 Running post build plugin 'npm Cache Cleanup'
23-Nov-2024 06:56:18 Running post build plugin 'Artifact Copier'
23-Nov-2024 06:56:18 Publishing an artifact: report
23-Nov-2024 06:56:19 Finished publishing of artifact Non required job artifact Http Compression On : [report], patterns: [**/*.*] anchored at: [onedata-acceptance/tests/mixed/logs/] in 488.5 ms
23-Nov-2024 06:56:19 Successfully removed working directory at '/home/bamboo/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT'
23-Nov-2024 06:56:19 Finalising the build...
23-Nov-2024 06:56:19 Stopping timer.
23-Nov-2024 06:56:19 Build ODSRV-MAOPT-CSBT-3285 completed.
23-Nov-2024 06:56:19 Running on server: post build plugin 'Build Hanging Detection Configuration'
23-Nov-2024 06:56:19 Running on server: post build plugin 'NCover Results Collector'
23-Nov-2024 06:56:19 Running on server: post build plugin 'Build Labeller'
23-Nov-2024 06:56:19 Running on server: post build plugin 'Clover Delta Calculator'
23-Nov-2024 06:56:19 Running on server: post build plugin 'Maven Dependencies Postprocessor'
23-Nov-2024 06:56:19 All post build plugins have finished
23-Nov-2024 06:56:19 Generating build results summary...
23-Nov-2024 06:56:20 Saving build results to disk...
23-Nov-2024 06:56:20 Store variable context...
23-Nov-2024 06:56:20 Finished building ODSRV-MAOPT-CSBT-3285.