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

Build: #3291 failed

Job: Spaces basic was successful

Build log

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

30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     def try_to_move_special_dir_by_id(
30-Nov-2024 03:16:45         client, user, users, hosts, host, dir_id, cdmi, err_msg=None
30-Nov-2024 03:16:45     ):
30-Nov-2024 03:16:45         if client.lower() == "rest":
30-Nov-2024 03:16:45             try:
30-Nov-2024 03:16:45                 client = cdmi(hosts[host]["ip"], users[user].token)
30-Nov-2024 03:16:45                 client.move_item_by_id(dir_id, "/new_name")
30-Nov-2024 03:16:45                 raise AssertionError(err_msg)
30-Nov-2024 03:16:45             except (HTTPForbidden, HTTPBadRequest) as e:
30-Nov-2024 03:16:45                 ex_err_msg = "Operation failed with POSIX error: eperm."
30-Nov-2024 03:16:45 >               assert ex_err_msg in str(e), f"Unexpected error occurred {e}"
30-Nov-2024 03:16:45 E               AssertionError: Unexpected error occurred [400] Bad Request: {"error":{"id":"posix","details":{"errno":"enoent"},"description":"Operation failed with POSIX error: enoent."}}
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 tests/mixed/steps/rest/onezone/special_dirs.py:187: AssertionError
30-Nov-2024 03:16:45 ___ test_user_fails_to_move_the_share_root_directory[1oz_1op_1oc-oneclient1] ___
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 fixturefunc = <function try_to_move_special_dir at 0x7f3784b3ec00>
30-Nov-2024 03:16:45 request = <FixtureRequest for <Function test_user_fails_to_move_the_share_root_directory[1oz_1op_1oc-oneclient1]>>
30-Nov-2024 03:16:45 kwargs = {'cdmi': <class 'tests.gui.utils.oneservices.cdmi.CDMIClient'>, 'client': 'oneclient1', 'host': 'oneprovider-1', 'host...c05136', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.37.174', 'name': 'dev-onezone', ...}}, ...}
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     def call_fixture_func(
30-Nov-2024 03:16:45         fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
30-Nov-2024 03:16:45     ) -> FixtureValue:
30-Nov-2024 03:16:45         if is_generator(fixturefunc):
30-Nov-2024 03:16:45             fixturefunc = cast(
30-Nov-2024 03:16:45                 Callable[..., Generator[FixtureValue, None, None]], fixturefunc
30-Nov-2024 03:16:45             )
30-Nov-2024 03:16:45             generator = fixturefunc(**kwargs)
30-Nov-2024 03:16:45             try:
30-Nov-2024 03:16:45                 fixture_result = next(generator)
30-Nov-2024 03:16:45             except StopIteration:
30-Nov-2024 03:16:45                 raise ValueError(f"{request.fixturename} did not yield a value") from None
30-Nov-2024 03:16:45             finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
30-Nov-2024 03:16:45             request.addfinalizer(finalizer)
30-Nov-2024 03:16:45         else:
30-Nov-2024 03:16:45             fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
30-Nov-2024 03:16:45 >           fixture_result = fixturefunc(**kwargs)
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 /usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913:
30-Nov-2024 03:16:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
30-Nov-2024 03:16:45 tests/utils/bdd_utils.py:78: in wrapper
30-Nov-2024 03:16:45     return fun(*ba.args, **ba.kwargs)
30-Nov-2024 03:16:45 tests/mixed/steps/rest/onezone/special_dirs.py:165: in try_to_move_special_dir
30-Nov-2024 03:16:45     try_to_move_special_dir_by_id(
30-Nov-2024 03:16:45 tests/mixed/steps/rest/onezone/special_dirs.py:191: in try_to_move_special_dir_by_id
30-Nov-2024 03:16:45     move_dir_by_id(user, oneclient_host, users, dir_id, "new_name")
30-Nov-2024 03:16:45 tests/oneclient/steps/multi_dir_steps.py:180: in move_dir_by_id
30-Nov-2024 03:16:45     client.mv(
30-Nov-2024 03:16:45 tests/utils/client_utils.py:107: in mv
30-Nov-2024 03:16:45     self.rpyc_connection.modules.shutil.move(src, dest)
30-Nov-2024 03:16:45 /usr/local/lib/python3.12/dist-packages/rpyc/core/netref.py:240: in __call__
30-Nov-2024 03:16:45     return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
30-Nov-2024 03:16:45 /usr/local/lib/python3.12/dist-packages/rpyc/core/netref.py:63: in syncreq
30-Nov-2024 03:16:45     return conn.sync_request(handler, proxy, *args)
30-Nov-2024 03:16:45 /usr/local/lib/python3.12/dist-packages/rpyc/core/protocol.py:718: in sync_request
30-Nov-2024 03:16:45     return _async_res.value
30-Nov-2024 03:16:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 self = <AsyncResult object (ready) at 0x7f378434c8b0>
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     @property
30-Nov-2024 03:16:45     def value(self):
30-Nov-2024 03:16:45         """Returns the result of the operation. If the result has not yet
30-Nov-2024 03:16:45         arrived, accessing this property will wait for it. If the result does
30-Nov-2024 03:16:45         not arrive before the expiry time elapses, :class:`AsyncResultTimeout`
30-Nov-2024 03:16:45         is raised. If the returned result is an exception, it will be raised
30-Nov-2024 03:16:45         here. Otherwise, the result is returned directly.
30-Nov-2024 03:16:45         """
30-Nov-2024 03:16:45         self.wait()
30-Nov-2024 03:16:45         if self._is_exc:
30-Nov-2024 03:16:45 >           raise self._obj
30-Nov-2024 03:16:45 E           _get_exception_class.<locals>.Derived: [Errno 36] File name too long: '/tmp/onedata/mnt/new_name/.__onedata__file_id__0000000000845C427368617265477569642373706163655F3137323230663838633865326132663433386636643161373139383831323163636863633039233137323230663838633865326132663433386636643161373139383831323163636863633039233864333738656335363965343932613334303566643933383361306332323566636866663931' -> None
30-Nov-2024 03:16:45 E           
30-Nov-2024 03:16:45 E           ========= Remote Traceback (1) =========
30-Nov-2024 03:16:45 E           Traceback (most recent call last):
30-Nov-2024 03:16:45 E             File "/usr/lib/python3.8/shutil.py", line 791, in move
30-Nov-2024 03:16:45 E               os.rename(src, real_dst)
30-Nov-2024 03:16:45 E           OSError: [Errno 18] Invalid cross-device link: '/tmp/onedata/mnt/kyfd3f6yaiie5tic/.__onedata__file_id__0000000000845C427368617265477569642373706163655F3137323230663838633865326132663433386636643161373139383831323163636863633039233137323230663838633865326132663433386636643161373139383831323163636863633039233864333738656335363965343932613334303566643933383361306332323566636866663931' -> '/tmp/onedata/mnt/new_name/.__onedata__file_id__0000000000845C427368617265477569642373706163655F3137323230663838633865326132663433386636643161373139383831323163636863633039233137323230663838633865326132663433386636643161373139383831323163636863633039233864333738656335363965343932613334303566643933383361306332323566636866663931'
30-Nov-2024 03:16:45 E           
30-Nov-2024 03:16:45 E           During handling of the above exception, another exception occurred:
30-Nov-2024 03:16:45 E           
30-Nov-2024 03:16:45 E           Traceback (most recent call last):
30-Nov-2024 03:16:45 E             File "/usr/local/lib/python3.8/dist-packages/rpyc/core/protocol.py", line 324, in _dispatch_request
30-Nov-2024 03:16:45 E               res = self._HANDLERS[handler](self, *args)
30-Nov-2024 03:16:45 E             File "/usr/local/lib/python3.8/dist-packages/rpyc/core/protocol.py", line 592, in _handle_call
30-Nov-2024 03:16:45 E               return obj(*args, **dict(kwargs))
30-Nov-2024 03:16:45 E             File "/usr/lib/python3.8/shutil.py", line 807, in move
30-Nov-2024 03:16:45 E               copytree(src, real_dst, copy_function=copy_function,
30-Nov-2024 03:16:45 E             File "/usr/lib/python3.8/shutil.py", line 557, in copytree
30-Nov-2024 03:16:45 E               return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
30-Nov-2024 03:16:45 E             File "/usr/lib/python3.8/shutil.py", line 458, in _copytree
30-Nov-2024 03:16:45 E               os.makedirs(dst, exist_ok=dirs_exist_ok)
30-Nov-2024 03:16:45 E             File "/usr/lib/python3.8/os.py", line 223, in makedirs
30-Nov-2024 03:16:45 E               mkdir(name, mode)
30-Nov-2024 03:16:45 E           OSError: [Errno 36] File name too long: '/tmp/onedata/mnt/new_name/.__onedata__file_id__0000000000845C427368617265477569642373706163655F3137323230663838633865326132663433386636643161373139383831323163636863633039233137323230663838633865326132663433386636643161373139383831323163636863633039233864333738656335363965343932613334303566643933383361306332323566636866663931'
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 /usr/local/lib/python3.12/dist-packages/rpyc/core/async_.py:108: OSError
30-Nov-2024 03:16:45 _ test_user_fails_to_create_file_in_the_share_root_directory[1oz_1op_1oc-REST] _
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 client = 'REST'
30-Nov-2024 03:16:45 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7f37847d2720>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7f3784927830>, 'user1': <tests.utils.user_utils.User object at 0x7f3784825400>, ...}
30-Nov-2024 03:16:45 user = 'user1'
30-Nov-2024 03:16:45 hosts = {'oneclient-1': {'container-id': '1a9d12ef31d4bddbfee734ee36c31f9b8e402a1c5f793aadc6b47d1c5895f146', 'ip': '10.244.37....0aff4dc05136', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.37.174', 'name': 'dev-onezone', ...}}
30-Nov-2024 03:16:45 host = 'oneprovider-1'
30-Nov-2024 03:16:45 dir_id = '00000000008465AE7368617265477569642373706163655F396136303934633734653138343062323133633733396462303334363462626163686...6337333964623033343634626261636863643061236634613733373863623838373435666263303736613532623939396665313063636838323537'
30-Nov-2024 03:16:45 file_name = 'some_name.txt'
30-Nov-2024 03:16:45 err_msg = 'File created in share root dir, but creation should have failed'
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     def try_to_create_file_in_special_dir_by_id(
30-Nov-2024 03:16:45         client, users, user, hosts, host, dir_id, file_name, err_msg=""
30-Nov-2024 03:16:45     ):
30-Nov-2024 03:16:45         if client.lower() == "rest":
30-Nov-2024 03:16:45             try:
30-Nov-2024 03:16:45 >               create_empty_file_in_dir_rest(users, user, hosts, host, dir_id, file_name)
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 tests/mixed/steps/rest/onezone/special_dirs.py:243:
30-Nov-2024 03:16:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
30-Nov-2024 03:16:45 tests/mixed/steps/rest/oneprovider/data.py:438: in create_empty_file_in_dir_rest
30-Nov-2024 03:16:45     upload_file_rest(users, user, hosts, host, "", name, dir_id)
30-Nov-2024 03:16:45 tests/mixed/steps/rest/oneprovider/data.py:398: in upload_file_rest
30-Nov-2024 03:16:45     _ = http_post(
30-Nov-2024 03:16:45 tests/utils/rest_utils.py:59: in http_post
30-Nov-2024 03:16:45     return http_request(requests.post, ip, port, path, use_ssl, headers,
30-Nov-2024 03:16:45 tests/utils/rest_utils.py:91: in http_request
30-Nov-2024 03:16:45     raise_http_exception(response)
30-Nov-2024 03:16:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 response = <Response [400]>
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     def raise_http_exception(response):
30-Nov-2024 03:16:45         ex_cls = _exceptions.get(response.status_code, HTTPError)
30-Nov-2024 03:16:45 >       raise ex_cls(response)
30-Nov-2024 03:16:45 E       tests.utils.http_exceptions.HTTPBadRequest: [400] Bad Request: {"error":{"id":"notSupported","description":"This operation is not supported."}}
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 tests/utils/http_exceptions.py:15: HTTPBadRequest
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 During handling of the above exception, another exception occurred:
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 fixturefunc = <function try_to_create_file_in_special_dir at 0x7f3784b3f600>
30-Nov-2024 03:16:45 request = <FixtureRequest for <Function test_user_fails_to_create_file_in_the_share_root_directory[1oz_1op_1oc-REST]>>
30-Nov-2024 03:16:45 kwargs = {'client': 'REST', 'file_name': 'some_name.txt', 'host': 'oneprovider-1', 'hosts': {'oneclient-1': {'container-id': '1...c05136', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.37.174', 'name': 'dev-onezone', ...}}, ...}
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     def call_fixture_func(
30-Nov-2024 03:16:45         fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
30-Nov-2024 03:16:45     ) -> FixtureValue:
30-Nov-2024 03:16:45         if is_generator(fixturefunc):
30-Nov-2024 03:16:45             fixturefunc = cast(
30-Nov-2024 03:16:45                 Callable[..., Generator[FixtureValue, None, None]], fixturefunc
30-Nov-2024 03:16:45             )
30-Nov-2024 03:16:45             generator = fixturefunc(**kwargs)
30-Nov-2024 03:16:45             try:
30-Nov-2024 03:16:45                 fixture_result = next(generator)
30-Nov-2024 03:16:45             except StopIteration:
30-Nov-2024 03:16:45                 raise ValueError(f"{request.fixturename} did not yield a value") from None
30-Nov-2024 03:16:45             finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
30-Nov-2024 03:16:45             request.addfinalizer(finalizer)
30-Nov-2024 03:16:45         else:
30-Nov-2024 03:16:45             fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
30-Nov-2024 03:16:45 >           fixture_result = fixturefunc(**kwargs)
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 /usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913:
30-Nov-2024 03:16:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
30-Nov-2024 03:16:45 tests/utils/bdd_utils.py:78: in wrapper
30-Nov-2024 03:16:45     return fun(*ba.args, **ba.kwargs)
30-Nov-2024 03:16:45 tests/mixed/steps/rest/onezone/special_dirs.py:226: in try_to_create_file_in_special_dir
30-Nov-2024 03:16:45     try_to_create_file_in_special_dir_by_id(
30-Nov-2024 03:16:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 client = 'REST'
30-Nov-2024 03:16:45 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7f37847d2720>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7f3784927830>, 'user1': <tests.utils.user_utils.User object at 0x7f3784825400>, ...}
30-Nov-2024 03:16:45 user = 'user1'
30-Nov-2024 03:16:45 hosts = {'oneclient-1': {'container-id': '1a9d12ef31d4bddbfee734ee36c31f9b8e402a1c5f793aadc6b47d1c5895f146', 'ip': '10.244.37....0aff4dc05136', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.37.174', 'name': 'dev-onezone', ...}}
30-Nov-2024 03:16:45 host = 'oneprovider-1'
30-Nov-2024 03:16:45 dir_id = '00000000008465AE7368617265477569642373706163655F396136303934633734653138343062323133633733396462303334363462626163686...6337333964623033343634626261636863643061236634613733373863623838373435666263303736613532623939396665313063636838323537'
30-Nov-2024 03:16:45 file_name = 'some_name.txt'
30-Nov-2024 03:16:45 err_msg = 'File created in share root dir, but creation should have failed'
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     def try_to_create_file_in_special_dir_by_id(
30-Nov-2024 03:16:45         client, users, user, hosts, host, dir_id, file_name, err_msg=""
30-Nov-2024 03:16:45     ):
30-Nov-2024 03:16:45         if client.lower() == "rest":
30-Nov-2024 03:16:45             try:
30-Nov-2024 03:16:45                 create_empty_file_in_dir_rest(users, user, hosts, host, dir_id, file_name)
30-Nov-2024 03:16:45                 raise AssertionError(err_msg)
30-Nov-2024 03:16:45             except (ApiException, HTTPBadRequest) as e:
30-Nov-2024 03:16:45                 ex_err_msg = "Operation failed with POSIX error: eperm."
30-Nov-2024 03:16:45 >               assert ex_err_msg in str(e), f"Unexpected error occurred {e}"
30-Nov-2024 03:16:45 E               AssertionError: Unexpected error occurred [400] Bad Request: {"error":{"id":"notSupported","description":"This operation is not supported."}}
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 tests/mixed/steps/rest/onezone/special_dirs.py:247: AssertionError
30-Nov-2024 03:16:45 _ test_user_fails_to_add_qos_requirement_to_the_share_root_directory[1oz_1op_1oc] _
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 user = 'user1'
30-Nov-2024 03:16:45 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7f37848fcc50>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7f3784618470>, 'user1': <tests.utils.user_utils.User object at 0x7f378475abd0>, ...}
30-Nov-2024 03:16:45 hosts = {'oneclient-1': {'container-id': '1a9d12ef31d4bddbfee734ee36c31f9b8e402a1c5f793aadc6b47d1c5895f146', 'ip': '10.244.37....0aff4dc05136', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.37.174', 'name': 'dev-onezone', ...}}
30-Nov-2024 03:16:45 host = 'oneprovider-1'
30-Nov-2024 03:16:45 dir_id = '0000000000848B657368617265477569642373706163655F633263343331633162343333663938616663623836663431383365663330393363686...6238366634313833656633303933636866326638233562666131333861323239343062303439613165363862313063633133376362636835323439'
30-Nov-2024 03:16:45 expression = 'geo=PL'
30-Nov-2024 03:16:45 err_msg = 'Qos requirement added to share root dir, but adding should have failed'
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     def try_to_add_qos_to_special_dir_by_id(
30-Nov-2024 03:16:45         user, users, hosts, host, dir_id, expression, err_msg=""
30-Nov-2024 03:16:45     ):
30-Nov-2024 03:16:45         try:
30-Nov-2024 03:16:45 >           create_qos_requirement_in_op_by_id_rest(
30-Nov-2024 03:16:45                 user, users, hosts, host, expression, dir_id
30-Nov-2024 03:16:45             )
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 tests/mixed/steps/rest/onezone/special_dirs.py:299:
30-Nov-2024 03:16:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
30-Nov-2024 03:16:45 tests/mixed/steps/rest/oneprovider/qos.py:29: in create_qos_requirement_in_op_by_id_rest
30-Nov-2024 03:16:45     qos_api.add_qos_requirement(data)
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/api/qo_s_api.py:55: in add_qos_requirement
30-Nov-2024 03:16:45     (data) = self.add_qos_requirement_with_http_info(data, **kwargs)  # noqa: E501
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/api/qo_s_api.py:119: in add_qos_requirement_with_http_info
30-Nov-2024 03:16:45     return self.api_client.call_api(
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/api_client.py:326: in call_api
30-Nov-2024 03:16:45     return self.__call_api(resource_path, method,
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/api_client.py:158: in __call_api
30-Nov-2024 03:16:45     response_data = self.request(
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/api_client.py:368: in request
30-Nov-2024 03:16:45     return self.rest_client.POST(url,
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/rest.py:269: in POST
30-Nov-2024 03:16:45     return self.request("POST", url,
30-Nov-2024 03:16:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 self = <oneprovider_client.rest.RESTClientObject object at 0x7f37847ef2f0>
30-Nov-2024 03:16:45 method = 'POST'
30-Nov-2024 03:16:45 url = 'https://dev-oneprovider-krakow.default.svc.cluster.local:443/api/v3/oneprovider/qos_requirements'
30-Nov-2024 03:16:45 query_params = []
30-Nov-2024 03:16:45 headers = {'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/21.02.7/python', 'X-...2FjYzYxZmNoMGRmZQowMDFhY2lkIHRpbWUgPCAxNzY00NDcyNTcyCjAwMmZzaWduYXR1cmUgbgmEPrBBB4H00nrK1AbPM9azxa8YnNppXA9cZzC4GRwcK'}
30-Nov-2024 03:16:45 body = {'expression': 'geo=PL', 'fileId': '0000000000848B657368617265477569642373706163655F6332633433316331623433336639386166...238366634313833656633303933636866326638233562666131333861323239343062303439613165363862313063633133376362636835323439'}
30-Nov-2024 03:16:45 post_params = {}, _preload_content = True, _request_timeout = None
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     def request(self, method, url, query_params=None, headers=None,
30-Nov-2024 03:16:45                 body=None, post_params=None, _preload_content=True,
30-Nov-2024 03:16:45                 _request_timeout=None):
30-Nov-2024 03:16:45         """Perform requests.
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         :param method: http request method
30-Nov-2024 03:16:45         :param url: http request url
30-Nov-2024 03:16:45         :param query_params: query parameters in the url
30-Nov-2024 03:16:45         :param headers: http request headers
30-Nov-2024 03:16:45         :param body: request json body, for `application/json`
30-Nov-2024 03:16:45         :param post_params: request post parameters,
30-Nov-2024 03:16:45                             `application/x-www-form-urlencoded`
30-Nov-2024 03:16:45                             and `multipart/form-data`
30-Nov-2024 03:16:45         :param _preload_content: if False, the urllib3.HTTPResponse object will
30-Nov-2024 03:16:45                                  be returned without reading/decoding response
30-Nov-2024 03:16:45                                  data. Default is True.
30-Nov-2024 03:16:45         :param _request_timeout: timeout setting for this request. If one
30-Nov-2024 03:16:45                                  number provided, it will be total request
30-Nov-2024 03:16:45                                  timeout. It can also be a pair (tuple) of
30-Nov-2024 03:16:45                                  (connection, read) timeouts.
30-Nov-2024 03:16:45         """
30-Nov-2024 03:16:45         method = method.upper()
30-Nov-2024 03:16:45         assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT',
30-Nov-2024 03:16:45                           'PATCH', 'OPTIONS']
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         if post_params and body:
30-Nov-2024 03:16:45             raise ValueError(
30-Nov-2024 03:16:45                 "body parameter cannot be used with post_params parameter."
30-Nov-2024 03:16:45             )
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         post_params = post_params or {}
30-Nov-2024 03:16:45         headers = headers or {}
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         timeout = None
30-Nov-2024 03:16:45         if _request_timeout:
30-Nov-2024 03:16:45             if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)):  # noqa: E501,F821
30-Nov-2024 03:16:45                 timeout = urllib3.Timeout(total=_request_timeout)
30-Nov-2024 03:16:45             elif (isinstance(_request_timeout, tuple) and
30-Nov-2024 03:16:45                   len(_request_timeout) == 2):
30-Nov-2024 03:16:45                 timeout = urllib3.Timeout(
30-Nov-2024 03:16:45                     connect=_request_timeout[0], read=_request_timeout[1])
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         if 'Content-Type' not in headers:
30-Nov-2024 03:16:45             headers['Content-Type'] = 'application/json'
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         try:
30-Nov-2024 03:16:45             # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
30-Nov-2024 03:16:45             if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
30-Nov-2024 03:16:45                 if query_params:
30-Nov-2024 03:16:45                     url += '?' + urlencode(query_params)
30-Nov-2024 03:16:45                 if re.search('json', headers['Content-Type'], re.IGNORECASE):
30-Nov-2024 03:16:45                     request_body = '{}'
30-Nov-2024 03:16:45                     if body is not None:
30-Nov-2024 03:16:45                         request_body = json.dumps(body)
30-Nov-2024 03:16:45                     r = self.pool_manager.request(
30-Nov-2024 03:16:45                         method, url,
30-Nov-2024 03:16:45                         body=request_body,
30-Nov-2024 03:16:45                         preload_content=_preload_content,
30-Nov-2024 03:16:45                         timeout=timeout,
30-Nov-2024 03:16:45                         headers=headers)
30-Nov-2024 03:16:45                 elif headers['Content-Type'] == 'application/x-www-form-urlencoded':  # noqa: E501
30-Nov-2024 03:16:45                     r = self.pool_manager.request(
30-Nov-2024 03:16:45                         method, url,
30-Nov-2024 03:16:45                         fields=post_params,
30-Nov-2024 03:16:45                         encode_multipart=False,
30-Nov-2024 03:16:45                         preload_content=_preload_content,
30-Nov-2024 03:16:45                         timeout=timeout,
30-Nov-2024 03:16:45                         headers=headers)
30-Nov-2024 03:16:45                 elif headers['Content-Type'] == 'multipart/form-data':
30-Nov-2024 03:16:45                     # must del headers['Content-Type'], or the correct
30-Nov-2024 03:16:45                     # Content-Type which generated by urllib3 will be
30-Nov-2024 03:16:45                     # overwritten.
30-Nov-2024 03:16:45                     del headers['Content-Type']
30-Nov-2024 03:16:45                     r = self.pool_manager.request(
30-Nov-2024 03:16:45                         method, url,
30-Nov-2024 03:16:45                         fields=post_params,
30-Nov-2024 03:16:45                         encode_multipart=True,
30-Nov-2024 03:16:45                         preload_content=_preload_content,
30-Nov-2024 03:16:45                         timeout=timeout,
30-Nov-2024 03:16:45                         headers=headers)
30-Nov-2024 03:16:45                 # Pass a `string` parameter directly in the body to support
30-Nov-2024 03:16:45                 # other content types than Json when `body` argument is
30-Nov-2024 03:16:45                 # provided in serialized form
30-Nov-2024 03:16:45                 elif isinstance(body, str):
30-Nov-2024 03:16:45                     request_body = body
30-Nov-2024 03:16:45                     r = self.pool_manager.request(
30-Nov-2024 03:16:45                         method, url,
30-Nov-2024 03:16:45                         body=request_body,
30-Nov-2024 03:16:45                         preload_content=_preload_content,
30-Nov-2024 03:16:45                         timeout=timeout,
30-Nov-2024 03:16:45                         headers=headers)
30-Nov-2024 03:16:45                 else:
30-Nov-2024 03:16:45                     # Cannot generate the request from given parameters
30-Nov-2024 03:16:45                     msg = """Cannot prepare a request message for provided
30-Nov-2024 03:16:45                              arguments. Please check that your arguments match
30-Nov-2024 03:16:45                              declared content type."""
30-Nov-2024 03:16:45                     raise ApiException(status=0, reason=msg)
30-Nov-2024 03:16:45             # For `GET`, `HEAD`
30-Nov-2024 03:16:45             else:
30-Nov-2024 03:16:45                 r = self.pool_manager.request(method, url,
30-Nov-2024 03:16:45                                               fields=query_params,
30-Nov-2024 03:16:45                                               preload_content=_preload_content,
30-Nov-2024 03:16:45                                               timeout=timeout,
30-Nov-2024 03:16:45                                               headers=headers)
30-Nov-2024 03:16:45         except urllib3.exceptions.SSLError as e:
30-Nov-2024 03:16:45             msg = "{0}\n{1}".format(type(e).__name__, str(e))
30-Nov-2024 03:16:45             raise ApiException(status=0, reason=msg)
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         if _preload_content:
30-Nov-2024 03:16:45             r = RESTResponse(r)
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45             # In the python 3, the response.data is bytes.
30-Nov-2024 03:16:45             # we need to decode it to string.
30-Nov-2024 03:16:45             if six.PY3:
30-Nov-2024 03:16:45                 r.data = r.data.decode('utf8')
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45             # log response body
30-Nov-2024 03:16:45             logger.debug("response body: %s", r.data)
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         if not 200 <= r.status <= 299:
30-Nov-2024 03:16:45 >           raise ApiException(http_resp=r)
30-Nov-2024 03:16:45 E           oneprovider_client.rest.ApiException: (400)
30-Nov-2024 03:16:45 E           Reason: Bad Request
30-Nov-2024 03:16:45 E           HTTP response headers: HTTPHeaderDict({'access-control-allow-origin': '*', 'content-length': '110', 'content-type': 'application/json', 'date': 'Sat, 30 Nov 2024 03:16:18 GMT', 'server': 'Cowboy'})
30-Nov-2024 03:16:45 E           HTTP response body: {"error":{"id":"posix","details":{"errno":"eperm"},"description":"Operation failed with POSIX error: eperm."}}
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/rest.py:228: ApiException
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 During handling of the above exception, another exception occurred:
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 fixturefunc = <function try_to_add_qos_to_special_dir at 0x7f3784b3ff60>
30-Nov-2024 03:16:45 request = <FixtureRequest for <Function test_user_fails_to_add_qos_requirement_to_the_share_root_directory[1oz_1op_1oc]>>
30-Nov-2024 03:16:45 kwargs = {'expression': 'geo=PL', 'host': 'oneprovider-1', 'hosts': {'oneclient-1': {'container-id': '1a9d12ef31d4bddbfee734ee3...dev-onezone.default.svc.cluster.local', 'ip': '10.244.37.174', 'name': 'dev-onezone', ...}}, 'name': 'share root', ...}
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     def call_fixture_func(
30-Nov-2024 03:16:45         fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
30-Nov-2024 03:16:45     ) -> FixtureValue:
30-Nov-2024 03:16:45         if is_generator(fixturefunc):
30-Nov-2024 03:16:45             fixturefunc = cast(
30-Nov-2024 03:16:45                 Callable[..., Generator[FixtureValue, None, None]], fixturefunc
30-Nov-2024 03:16:45             )
30-Nov-2024 03:16:45             generator = fixturefunc(**kwargs)
30-Nov-2024 03:16:45             try:
30-Nov-2024 03:16:45                 fixture_result = next(generator)
30-Nov-2024 03:16:45             except StopIteration:
30-Nov-2024 03:16:45                 raise ValueError(f"{request.fixturename} did not yield a value") from None
30-Nov-2024 03:16:45             finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
30-Nov-2024 03:16:45             request.addfinalizer(finalizer)
30-Nov-2024 03:16:45         else:
30-Nov-2024 03:16:45             fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
30-Nov-2024 03:16:45 >           fixture_result = fixturefunc(**kwargs)
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 /usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913:
30-Nov-2024 03:16:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
30-Nov-2024 03:16:45 tests/utils/bdd_utils.py:78: in wrapper
30-Nov-2024 03:16:45     return fun(*ba.args, **ba.kwargs)
30-Nov-2024 03:16:45 tests/mixed/steps/rest/onezone/special_dirs.py:284: in try_to_add_qos_to_special_dir
30-Nov-2024 03:16:45     try_to_add_qos_to_special_dir_by_id(
30-Nov-2024 03:16:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 user = 'user1'
30-Nov-2024 03:16:45 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7f37848fcc50>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7f3784618470>, 'user1': <tests.utils.user_utils.User object at 0x7f378475abd0>, ...}
30-Nov-2024 03:16:45 hosts = {'oneclient-1': {'container-id': '1a9d12ef31d4bddbfee734ee36c31f9b8e402a1c5f793aadc6b47d1c5895f146', 'ip': '10.244.37....0aff4dc05136', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.37.174', 'name': 'dev-onezone', ...}}
30-Nov-2024 03:16:45 host = 'oneprovider-1'
30-Nov-2024 03:16:45 dir_id = '0000000000848B657368617265477569642373706163655F633263343331633162343333663938616663623836663431383365663330393363686...6238366634313833656633303933636866326638233562666131333861323239343062303439613165363862313063633133376362636835323439'
30-Nov-2024 03:16:45 expression = 'geo=PL'
30-Nov-2024 03:16:45 err_msg = 'Qos requirement added to share root dir, but adding should have failed'
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     def try_to_add_qos_to_special_dir_by_id(
30-Nov-2024 03:16:45         user, users, hosts, host, dir_id, expression, err_msg=""
30-Nov-2024 03:16:45     ):
30-Nov-2024 03:16:45         try:
30-Nov-2024 03:16:45             create_qos_requirement_in_op_by_id_rest(
30-Nov-2024 03:16:45                 user, users, hosts, host, expression, dir_id
30-Nov-2024 03:16:45             )
30-Nov-2024 03:16:45             raise AssertionError(err_msg)
30-Nov-2024 03:16:45         except ApiException as e:
30-Nov-2024 03:16:45             ex_err_msg = "You are not authorized to perform this operation."
30-Nov-2024 03:16:45 >           assert ex_err_msg in str(e)
30-Nov-2024 03:16:45 E           AssertionError
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 tests/mixed/steps/rest/onezone/special_dirs.py:305: AssertionError
30-Nov-2024 03:16:45 ___ test_user_fails_to_add_metadata_to_the_share_root_directory[1oz_1op_1oc] ___
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 user = 'user1'
30-Nov-2024 03:16:45 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7f3784759c10>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7f378490d040>, 'user1': <tests.utils.user_utils.User object at 0x7f378490ccb0>, ...}
30-Nov-2024 03:16:45 hosts = {'oneclient-1': {'container-id': '1a9d12ef31d4bddbfee734ee36c31f9b8e402a1c5f793aadc6b47d1c5895f146', 'ip': '10.244.37....0aff4dc05136', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.37.174', 'name': 'dev-onezone', ...}}
30-Nov-2024 03:16:45 host = 'oneprovider-1'
30-Nov-2024 03:16:45 dir_id = '000000000084B8697368617265477569642373706163655F323038346335656231326236393562643661616233333231373233616632313063683...6162333332313732336166323130636833616136233862656536396636373237653034666639656262653439323835653431393833636862303465'
30-Nov-2024 03:16:45 expression = '{"id": 1}'
30-Nov-2024 03:16:45 err_msg = 'Json metadata added to share root dir, but adding should have failed'
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     def try_to_add_json_metadata_to_special_dir_by_id(
30-Nov-2024 03:16:45         user, users, hosts, host, dir_id, expression, err_msg=""
30-Nov-2024 03:16:45     ):
30-Nov-2024 03:16:45         try:
30-Nov-2024 03:16:45 >           add_json_metadata_to_file_rest(user, users, hosts, host, expression, dir_id)
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 tests/mixed/steps/rest/onezone/special_dirs.py:332:
30-Nov-2024 03:16:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
30-Nov-2024 03:16:45 tests/mixed/steps/rest/oneprovider/metadata.py:53: in add_json_metadata_to_file_rest
30-Nov-2024 03:16:45     cfm_api.set_json_metadata(file_id, expression)
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/api/custom_file_metadata_api.py:673: in set_json_metadata
30-Nov-2024 03:16:45     (data) = self.set_json_metadata_with_http_info(id, metadata, **kwargs)  # noqa: E501
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/api/custom_file_metadata_api.py:749: in set_json_metadata_with_http_info
30-Nov-2024 03:16:45     return self.api_client.call_api(
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/api_client.py:326: in call_api
30-Nov-2024 03:16:45     return self.__call_api(resource_path, method,
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/api_client.py:158: in __call_api
30-Nov-2024 03:16:45     response_data = self.request(
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/api_client.py:376: in request
30-Nov-2024 03:16:45     return self.rest_client.PUT(url,
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/rest.py:279: in PUT
30-Nov-2024 03:16:45     return self.request("PUT", url,
30-Nov-2024 03:16:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 self = <oneprovider_client.rest.RESTClientObject object at 0x7f37845f51c0>
30-Nov-2024 03:16:45 method = 'PUT'
30-Nov-2024 03:16:45 url = 'https://dev-oneprovider-krakow.default.svc.cluster.local:443/api/v3/oneprovider/data/000000000084B8697368617265477569...32336166323130636833616136233862656536396636373237653034666639656262653439323835653431393833636862303465/metadata/json'
30-Nov-2024 03:16:45 query_params = []
30-Nov-2024 03:16:45 headers = {'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/21.02.7/python', 'X-Auth-Token': 'MDAzM2xvY2F00aW9...TljZWNiYWNoNGZiYgowMDFhY2lkIHRpbWUgPCAxNzY00NDcyNTgxCjAwMmZzaWduYXR1cmUggixkFTiqW7INJkuSL902wP4C3aNxnkoXaFeFjT95WcrgK'}
30-Nov-2024 03:16:45 body = '{"id": 1}', post_params = {}, _preload_content = True
30-Nov-2024 03:16:45 _request_timeout = None
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     def request(self, method, url, query_params=None, headers=None,
30-Nov-2024 03:16:45                 body=None, post_params=None, _preload_content=True,
30-Nov-2024 03:16:45                 _request_timeout=None):
30-Nov-2024 03:16:45         """Perform requests.
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         :param method: http request method
30-Nov-2024 03:16:45         :param url: http request url
30-Nov-2024 03:16:45         :param query_params: query parameters in the url
30-Nov-2024 03:16:45         :param headers: http request headers
30-Nov-2024 03:16:45         :param body: request json body, for `application/json`
30-Nov-2024 03:16:45         :param post_params: request post parameters,
30-Nov-2024 03:16:45                             `application/x-www-form-urlencoded`
30-Nov-2024 03:16:45                             and `multipart/form-data`
30-Nov-2024 03:16:45         :param _preload_content: if False, the urllib3.HTTPResponse object will
30-Nov-2024 03:16:45                                  be returned without reading/decoding response
30-Nov-2024 03:16:45                                  data. Default is True.
30-Nov-2024 03:16:45         :param _request_timeout: timeout setting for this request. If one
30-Nov-2024 03:16:45                                  number provided, it will be total request
30-Nov-2024 03:16:45                                  timeout. It can also be a pair (tuple) of
30-Nov-2024 03:16:45                                  (connection, read) timeouts.
30-Nov-2024 03:16:45         """
30-Nov-2024 03:16:45         method = method.upper()
30-Nov-2024 03:16:45         assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT',
30-Nov-2024 03:16:45                           'PATCH', 'OPTIONS']
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         if post_params and body:
30-Nov-2024 03:16:45             raise ValueError(
30-Nov-2024 03:16:45                 "body parameter cannot be used with post_params parameter."
30-Nov-2024 03:16:45             )
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         post_params = post_params or {}
30-Nov-2024 03:16:45         headers = headers or {}
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         timeout = None
30-Nov-2024 03:16:45         if _request_timeout:
30-Nov-2024 03:16:45             if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)):  # noqa: E501,F821
30-Nov-2024 03:16:45                 timeout = urllib3.Timeout(total=_request_timeout)
30-Nov-2024 03:16:45             elif (isinstance(_request_timeout, tuple) and
30-Nov-2024 03:16:45                   len(_request_timeout) == 2):
30-Nov-2024 03:16:45                 timeout = urllib3.Timeout(
30-Nov-2024 03:16:45                     connect=_request_timeout[0], read=_request_timeout[1])
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         if 'Content-Type' not in headers:
30-Nov-2024 03:16:45             headers['Content-Type'] = 'application/json'
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         try:
30-Nov-2024 03:16:45             # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
30-Nov-2024 03:16:45             if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
30-Nov-2024 03:16:45                 if query_params:
30-Nov-2024 03:16:45                     url += '?' + urlencode(query_params)
30-Nov-2024 03:16:45                 if re.search('json', headers['Content-Type'], re.IGNORECASE):
30-Nov-2024 03:16:45                     request_body = '{}'
30-Nov-2024 03:16:45                     if body is not None:
30-Nov-2024 03:16:45                         request_body = json.dumps(body)
30-Nov-2024 03:16:45                     r = self.pool_manager.request(
30-Nov-2024 03:16:45                         method, url,
30-Nov-2024 03:16:45                         body=request_body,
30-Nov-2024 03:16:45                         preload_content=_preload_content,
30-Nov-2024 03:16:45                         timeout=timeout,
30-Nov-2024 03:16:45                         headers=headers)
30-Nov-2024 03:16:45                 elif headers['Content-Type'] == 'application/x-www-form-urlencoded':  # noqa: E501
30-Nov-2024 03:16:45                     r = self.pool_manager.request(
30-Nov-2024 03:16:45                         method, url,
30-Nov-2024 03:16:45                         fields=post_params,
30-Nov-2024 03:16:45                         encode_multipart=False,
30-Nov-2024 03:16:45                         preload_content=_preload_content,
30-Nov-2024 03:16:45                         timeout=timeout,
30-Nov-2024 03:16:45                         headers=headers)
30-Nov-2024 03:16:45                 elif headers['Content-Type'] == 'multipart/form-data':
30-Nov-2024 03:16:45                     # must del headers['Content-Type'], or the correct
30-Nov-2024 03:16:45                     # Content-Type which generated by urllib3 will be
30-Nov-2024 03:16:45                     # overwritten.
30-Nov-2024 03:16:45                     del headers['Content-Type']
30-Nov-2024 03:16:45                     r = self.pool_manager.request(
30-Nov-2024 03:16:45                         method, url,
30-Nov-2024 03:16:45                         fields=post_params,
30-Nov-2024 03:16:45                         encode_multipart=True,
30-Nov-2024 03:16:45                         preload_content=_preload_content,
30-Nov-2024 03:16:45                         timeout=timeout,
30-Nov-2024 03:16:45                         headers=headers)
30-Nov-2024 03:16:45                 # Pass a `string` parameter directly in the body to support
30-Nov-2024 03:16:45                 # other content types than Json when `body` argument is
30-Nov-2024 03:16:45                 # provided in serialized form
30-Nov-2024 03:16:45                 elif isinstance(body, str):
30-Nov-2024 03:16:45                     request_body = body
30-Nov-2024 03:16:45                     r = self.pool_manager.request(
30-Nov-2024 03:16:45                         method, url,
30-Nov-2024 03:16:45                         body=request_body,
30-Nov-2024 03:16:45                         preload_content=_preload_content,
30-Nov-2024 03:16:45                         timeout=timeout,
30-Nov-2024 03:16:45                         headers=headers)
30-Nov-2024 03:16:45                 else:
30-Nov-2024 03:16:45                     # Cannot generate the request from given parameters
30-Nov-2024 03:16:45                     msg = """Cannot prepare a request message for provided
30-Nov-2024 03:16:45                              arguments. Please check that your arguments match
30-Nov-2024 03:16:45                              declared content type."""
30-Nov-2024 03:16:45                     raise ApiException(status=0, reason=msg)
30-Nov-2024 03:16:45             # For `GET`, `HEAD`
30-Nov-2024 03:16:45             else:
30-Nov-2024 03:16:45                 r = self.pool_manager.request(method, url,
30-Nov-2024 03:16:45                                               fields=query_params,
30-Nov-2024 03:16:45                                               preload_content=_preload_content,
30-Nov-2024 03:16:45                                               timeout=timeout,
30-Nov-2024 03:16:45                                               headers=headers)
30-Nov-2024 03:16:45         except urllib3.exceptions.SSLError as e:
30-Nov-2024 03:16:45             msg = "{0}\n{1}".format(type(e).__name__, str(e))
30-Nov-2024 03:16:45             raise ApiException(status=0, reason=msg)
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         if _preload_content:
30-Nov-2024 03:16:45             r = RESTResponse(r)
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45             # In the python 3, the response.data is bytes.
30-Nov-2024 03:16:45             # we need to decode it to string.
30-Nov-2024 03:16:45             if six.PY3:
30-Nov-2024 03:16:45                 r.data = r.data.decode('utf8')
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45             # log response body
30-Nov-2024 03:16:45             logger.debug("response body: %s", r.data)
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         if not 200 <= r.status <= 299:
30-Nov-2024 03:16:45 >           raise ApiException(http_resp=r)
30-Nov-2024 03:16:45 E           oneprovider_client.rest.ApiException: (400)
30-Nov-2024 03:16:45 E           Reason: Bad Request
30-Nov-2024 03:16:45 E           HTTP response headers: HTTPHeaderDict({'access-control-allow-origin': '*', 'content-length': '80', 'content-type': 'application/json', 'date': 'Sat, 30 Nov 2024 03:16:27 GMT', 'server': 'Cowboy'})
30-Nov-2024 03:16:45 E           HTTP response body: {"error":{"id":"notSupported","description":"This operation is not supported."}}
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/rest.py:228: ApiException
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 During handling of the above exception, another exception occurred:
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 fixturefunc = <function try_to_add_json_metadata_to_special_dir at 0x7f3784b48540>
30-Nov-2024 03:16:45 request = <FixtureRequest for <Function test_user_fails_to_add_metadata_to_the_share_root_directory[1oz_1op_1oc]>>
30-Nov-2024 03:16:45 kwargs = {'expression': '{"id": 1}', 'host': 'oneprovider-1', 'hosts': {'oneclient-1': {'container-id': '1a9d12ef31d4bddbfee734...dev-onezone.default.svc.cluster.local', 'ip': '10.244.37.174', 'name': 'dev-onezone', ...}}, 'name': 'share root', ...}
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     def call_fixture_func(
30-Nov-2024 03:16:45         fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
30-Nov-2024 03:16:45     ) -> FixtureValue:
30-Nov-2024 03:16:45         if is_generator(fixturefunc):
30-Nov-2024 03:16:45             fixturefunc = cast(
30-Nov-2024 03:16:45                 Callable[..., Generator[FixtureValue, None, None]], fixturefunc
30-Nov-2024 03:16:45             )
30-Nov-2024 03:16:45             generator = fixturefunc(**kwargs)
30-Nov-2024 03:16:45             try:
30-Nov-2024 03:16:45                 fixture_result = next(generator)
30-Nov-2024 03:16:45             except StopIteration:
30-Nov-2024 03:16:45                 raise ValueError(f"{request.fixturename} did not yield a value") from None
30-Nov-2024 03:16:45             finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
30-Nov-2024 03:16:45             request.addfinalizer(finalizer)
30-Nov-2024 03:16:45         else:
30-Nov-2024 03:16:45             fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
30-Nov-2024 03:16:45 >           fixture_result = fixturefunc(**kwargs)
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 /usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913:
30-Nov-2024 03:16:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
30-Nov-2024 03:16:45 tests/utils/bdd_utils.py:78: in wrapper
30-Nov-2024 03:16:45     return fun(*ba.args, **ba.kwargs)
30-Nov-2024 03:16:45 tests/mixed/steps/rest/onezone/special_dirs.py:317: in try_to_add_json_metadata_to_special_dir
30-Nov-2024 03:16:45     try_to_add_json_metadata_to_special_dir_by_id(
30-Nov-2024 03:16:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 user = 'user1'
30-Nov-2024 03:16:45 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7f3784759c10>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7f378490d040>, 'user1': <tests.utils.user_utils.User object at 0x7f378490ccb0>, ...}
30-Nov-2024 03:16:45 hosts = {'oneclient-1': {'container-id': '1a9d12ef31d4bddbfee734ee36c31f9b8e402a1c5f793aadc6b47d1c5895f146', 'ip': '10.244.37....0aff4dc05136', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.37.174', 'name': 'dev-onezone', ...}}
30-Nov-2024 03:16:45 host = 'oneprovider-1'
30-Nov-2024 03:16:45 dir_id = '000000000084B8697368617265477569642373706163655F323038346335656231326236393562643661616233333231373233616632313063683...6162333332313732336166323130636833616136233862656536396636373237653034666639656262653439323835653431393833636862303465'
30-Nov-2024 03:16:45 expression = '{"id": 1}'
30-Nov-2024 03:16:45 err_msg = 'Json metadata added to share root dir, but adding should have failed'
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     def try_to_add_json_metadata_to_special_dir_by_id(
30-Nov-2024 03:16:45         user, users, hosts, host, dir_id, expression, err_msg=""
30-Nov-2024 03:16:45     ):
30-Nov-2024 03:16:45         try:
30-Nov-2024 03:16:45             add_json_metadata_to_file_rest(user, users, hosts, host, expression, dir_id)
30-Nov-2024 03:16:45             raise AssertionError(err_msg)
30-Nov-2024 03:16:45         except ApiException as e:
30-Nov-2024 03:16:45             ex_err_msg = "You are not authorized to perform this operation."
30-Nov-2024 03:16:45 >           assert ex_err_msg in str(e)
30-Nov-2024 03:16:45 E           AssertionError
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 tests/mixed/steps/rest/onezone/special_dirs.py:336: AssertionError
30-Nov-2024 03:16:45 _ test_user_fails_to_establish_dataset_on_the_share_root_directory[1oz_1op_1oc] _
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 user = 'user1'
30-Nov-2024 03:16:45 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7f378490dfd0>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7f37847eeba0>, 'user1': <tests.utils.user_utils.User object at 0x7f37847ee240>, ...}
30-Nov-2024 03:16:45 hosts = {'oneclient-1': {'container-id': '1a9d12ef31d4bddbfee734ee36c31f9b8e402a1c5f793aadc6b47d1c5895f146', 'ip': '10.244.37....0aff4dc05136', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.37.174', 'name': 'dev-onezone', ...}}
30-Nov-2024 03:16:45 host = 'oneprovider-1'
30-Nov-2024 03:16:45 dir_id = '000000000084D16E7368617265477569642373706163655F373562366232363330636134313361633937316362356134313261623838643463683...3163623561343132616238386434636831633434236364333837343030386332623137613239386233383462376230393261643631636833313636'
30-Nov-2024 03:16:45 err_msg = 'Established dataset on share root dir, but establishing should have failed'
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     def try_to_establish_dataset_on_special_dir_by_id(
30-Nov-2024 03:16:45         user, users, hosts, host, dir_id, err_msg=""
30-Nov-2024 03:16:45     ):
30-Nov-2024 03:16:45         try:
30-Nov-2024 03:16:45 >           create_dataset_in_op_by_id_rest(user, users, hosts, host, dir_id, "")
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 tests/mixed/steps/rest/onezone/special_dirs.py:362:
30-Nov-2024 03:16:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
30-Nov-2024 03:16:45 tests/mixed/steps/rest/oneprovider/datasets.py:29: in create_dataset_in_op_by_id_rest
30-Nov-2024 03:16:45     dataset_api.establish_dataset(data)
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/api/dataset_api.py:55: in establish_dataset
30-Nov-2024 03:16:45     (data) = self.establish_dataset_with_http_info(data, **kwargs)  # noqa: E501
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/api/dataset_api.py:119: in establish_dataset_with_http_info
30-Nov-2024 03:16:45     return self.api_client.call_api(
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/api_client.py:326: in call_api
30-Nov-2024 03:16:45     return self.__call_api(resource_path, method,
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/api_client.py:158: in __call_api
30-Nov-2024 03:16:45     response_data = self.request(
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/api_client.py:368: in request
30-Nov-2024 03:16:45     return self.rest_client.POST(url,
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/rest.py:269: in POST
30-Nov-2024 03:16:45     return self.request("POST", url,
30-Nov-2024 03:16:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 self = <oneprovider_client.rest.RESTClientObject object at 0x7f3784517cb0>
30-Nov-2024 03:16:45 method = 'POST'
30-Nov-2024 03:16:45 url = 'https://dev-oneprovider-krakow.default.svc.cluster.local:443/api/v3/oneprovider/datasets'
30-Nov-2024 03:16:45 query_params = []
30-Nov-2024 03:16:45 headers = {'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'Swagger-Codegen/21.02.7/python', 'X-...mM2FiOGNoMDM2MgowMDFhY2lkIHRpbWUgPCAxNzY00NDcyNTkwCjAwMmZzaWduYXR1cmUghcQs02xzPkAxo3GEsFh01xh02B6cMCkyAvqwuR7x53DKNMK'}
30-Nov-2024 03:16:45 body = {'rootFileId': '000000000084D16E7368617265477569642373706163655F373562366232363330636134313361633937316362356134313261...163623561343132616238386434636831633434236364333837343030386332623137613239386233383462376230393261643631636833313636'}
30-Nov-2024 03:16:45 post_params = {}, _preload_content = True, _request_timeout = None
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     def request(self, method, url, query_params=None, headers=None,
30-Nov-2024 03:16:45                 body=None, post_params=None, _preload_content=True,
30-Nov-2024 03:16:45                 _request_timeout=None):
30-Nov-2024 03:16:45         """Perform requests.
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         :param method: http request method
30-Nov-2024 03:16:45         :param url: http request url
30-Nov-2024 03:16:45         :param query_params: query parameters in the url
30-Nov-2024 03:16:45         :param headers: http request headers
30-Nov-2024 03:16:45         :param body: request json body, for `application/json`
30-Nov-2024 03:16:45         :param post_params: request post parameters,
30-Nov-2024 03:16:45                             `application/x-www-form-urlencoded`
30-Nov-2024 03:16:45                             and `multipart/form-data`
30-Nov-2024 03:16:45         :param _preload_content: if False, the urllib3.HTTPResponse object will
30-Nov-2024 03:16:45                                  be returned without reading/decoding response
30-Nov-2024 03:16:45                                  data. Default is True.
30-Nov-2024 03:16:45         :param _request_timeout: timeout setting for this request. If one
30-Nov-2024 03:16:45                                  number provided, it will be total request
30-Nov-2024 03:16:45                                  timeout. It can also be a pair (tuple) of
30-Nov-2024 03:16:45                                  (connection, read) timeouts.
30-Nov-2024 03:16:45         """
30-Nov-2024 03:16:45         method = method.upper()
30-Nov-2024 03:16:45         assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT',
30-Nov-2024 03:16:45                           'PATCH', 'OPTIONS']
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         if post_params and body:
30-Nov-2024 03:16:45             raise ValueError(
30-Nov-2024 03:16:45                 "body parameter cannot be used with post_params parameter."
30-Nov-2024 03:16:45             )
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         post_params = post_params or {}
30-Nov-2024 03:16:45         headers = headers or {}
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         timeout = None
30-Nov-2024 03:16:45         if _request_timeout:
30-Nov-2024 03:16:45             if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)):  # noqa: E501,F821
30-Nov-2024 03:16:45                 timeout = urllib3.Timeout(total=_request_timeout)
30-Nov-2024 03:16:45             elif (isinstance(_request_timeout, tuple) and
30-Nov-2024 03:16:45                   len(_request_timeout) == 2):
30-Nov-2024 03:16:45                 timeout = urllib3.Timeout(
30-Nov-2024 03:16:45                     connect=_request_timeout[0], read=_request_timeout[1])
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         if 'Content-Type' not in headers:
30-Nov-2024 03:16:45             headers['Content-Type'] = 'application/json'
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         try:
30-Nov-2024 03:16:45             # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
30-Nov-2024 03:16:45             if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
30-Nov-2024 03:16:45                 if query_params:
30-Nov-2024 03:16:45                     url += '?' + urlencode(query_params)
30-Nov-2024 03:16:45                 if re.search('json', headers['Content-Type'], re.IGNORECASE):
30-Nov-2024 03:16:45                     request_body = '{}'
30-Nov-2024 03:16:45                     if body is not None:
30-Nov-2024 03:16:45                         request_body = json.dumps(body)
30-Nov-2024 03:16:45                     r = self.pool_manager.request(
30-Nov-2024 03:16:45                         method, url,
30-Nov-2024 03:16:45                         body=request_body,
30-Nov-2024 03:16:45                         preload_content=_preload_content,
30-Nov-2024 03:16:45                         timeout=timeout,
30-Nov-2024 03:16:45                         headers=headers)
30-Nov-2024 03:16:45                 elif headers['Content-Type'] == 'application/x-www-form-urlencoded':  # noqa: E501
30-Nov-2024 03:16:45                     r = self.pool_manager.request(
30-Nov-2024 03:16:45                         method, url,
30-Nov-2024 03:16:45                         fields=post_params,
30-Nov-2024 03:16:45                         encode_multipart=False,
30-Nov-2024 03:16:45                         preload_content=_preload_content,
30-Nov-2024 03:16:45                         timeout=timeout,
30-Nov-2024 03:16:45                         headers=headers)
30-Nov-2024 03:16:45                 elif headers['Content-Type'] == 'multipart/form-data':
30-Nov-2024 03:16:45                     # must del headers['Content-Type'], or the correct
30-Nov-2024 03:16:45                     # Content-Type which generated by urllib3 will be
30-Nov-2024 03:16:45                     # overwritten.
30-Nov-2024 03:16:45                     del headers['Content-Type']
30-Nov-2024 03:16:45                     r = self.pool_manager.request(
30-Nov-2024 03:16:45                         method, url,
30-Nov-2024 03:16:45                         fields=post_params,
30-Nov-2024 03:16:45                         encode_multipart=True,
30-Nov-2024 03:16:45                         preload_content=_preload_content,
30-Nov-2024 03:16:45                         timeout=timeout,
30-Nov-2024 03:16:45                         headers=headers)
30-Nov-2024 03:16:45                 # Pass a `string` parameter directly in the body to support
30-Nov-2024 03:16:45                 # other content types than Json when `body` argument is
30-Nov-2024 03:16:45                 # provided in serialized form
30-Nov-2024 03:16:45                 elif isinstance(body, str):
30-Nov-2024 03:16:45                     request_body = body
30-Nov-2024 03:16:45                     r = self.pool_manager.request(
30-Nov-2024 03:16:45                         method, url,
30-Nov-2024 03:16:45                         body=request_body,
30-Nov-2024 03:16:45                         preload_content=_preload_content,
30-Nov-2024 03:16:45                         timeout=timeout,
30-Nov-2024 03:16:45                         headers=headers)
30-Nov-2024 03:16:45                 else:
30-Nov-2024 03:16:45                     # Cannot generate the request from given parameters
30-Nov-2024 03:16:45                     msg = """Cannot prepare a request message for provided
30-Nov-2024 03:16:45                              arguments. Please check that your arguments match
30-Nov-2024 03:16:45                              declared content type."""
30-Nov-2024 03:16:45                     raise ApiException(status=0, reason=msg)
30-Nov-2024 03:16:45             # For `GET`, `HEAD`
30-Nov-2024 03:16:45             else:
30-Nov-2024 03:16:45                 r = self.pool_manager.request(method, url,
30-Nov-2024 03:16:45                                               fields=query_params,
30-Nov-2024 03:16:45                                               preload_content=_preload_content,
30-Nov-2024 03:16:45                                               timeout=timeout,
30-Nov-2024 03:16:45                                               headers=headers)
30-Nov-2024 03:16:45         except urllib3.exceptions.SSLError as e:
30-Nov-2024 03:16:45             msg = "{0}\n{1}".format(type(e).__name__, str(e))
30-Nov-2024 03:16:45             raise ApiException(status=0, reason=msg)
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         if _preload_content:
30-Nov-2024 03:16:45             r = RESTResponse(r)
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45             # In the python 3, the response.data is bytes.
30-Nov-2024 03:16:45             # we need to decode it to string.
30-Nov-2024 03:16:45             if six.PY3:
30-Nov-2024 03:16:45                 r.data = r.data.decode('utf8')
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45             # log response body
30-Nov-2024 03:16:45             logger.debug("response body: %s", r.data)
30-Nov-2024 03:16:45    
30-Nov-2024 03:16:45         if not 200 <= r.status <= 299:
30-Nov-2024 03:16:45 >           raise ApiException(http_resp=r)
30-Nov-2024 03:16:45 E           oneprovider_client.rest.ApiException: (400)
30-Nov-2024 03:16:45 E           Reason: Bad Request
30-Nov-2024 03:16:45 E           HTTP response headers: HTTPHeaderDict({'access-control-allow-origin': '*', 'content-length': '110', 'content-type': 'application/json', 'date': 'Sat, 30 Nov 2024 03:16:35 GMT', 'server': 'Cowboy'})
30-Nov-2024 03:16:45 E           HTTP response body: {"error":{"id":"posix","details":{"errno":"eperm"},"description":"Operation failed with POSIX error: eperm."}}
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 tests/mixed/oneprovider_client/rest.py:228: ApiException
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 During handling of the above exception, another exception occurred:
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 fixturefunc = <function try_to_establish_dataset_on_special_dir at 0x7f3784b48ae0>
30-Nov-2024 03:16:45 request = <FixtureRequest for <Function test_user_fails_to_establish_dataset_on_the_share_root_directory[1oz_1op_1oc]>>
30-Nov-2024 03:16:45 kwargs = {'host': 'oneprovider-1', 'hosts': {'oneclient-1': {'container-id': '1a9d12ef31d4bddbfee734ee36c31f9b8e402a1c5f793aadc...1343132616238386434636831633434236364333837343030386332623137613239386233383462376230393261643631636833313636'}}), ...}
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     def call_fixture_func(
30-Nov-2024 03:16:45         fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
30-Nov-2024 03:16:45     ) -> FixtureValue:
30-Nov-2024 03:16:45         if is_generator(fixturefunc):
30-Nov-2024 03:16:45             fixturefunc = cast(
30-Nov-2024 03:16:45                 Callable[..., Generator[FixtureValue, None, None]], fixturefunc
30-Nov-2024 03:16:45             )
30-Nov-2024 03:16:45             generator = fixturefunc(**kwargs)
30-Nov-2024 03:16:45             try:
30-Nov-2024 03:16:45                 fixture_result = next(generator)
30-Nov-2024 03:16:45             except StopIteration:
30-Nov-2024 03:16:45                 raise ValueError(f"{request.fixturename} did not yield a value") from None
30-Nov-2024 03:16:45             finalizer = functools.partial(_teardown_yield_fixture, fixturefunc, generator)
30-Nov-2024 03:16:45             request.addfinalizer(finalizer)
30-Nov-2024 03:16:45         else:
30-Nov-2024 03:16:45             fixturefunc = cast(Callable[..., FixtureValue], fixturefunc)
30-Nov-2024 03:16:45 >           fixture_result = fixturefunc(**kwargs)
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 /usr/local/lib/python3.12/dist-packages/_pytest/fixtures.py:913:
30-Nov-2024 03:16:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
30-Nov-2024 03:16:45 tests/utils/bdd_utils.py:78: in wrapper
30-Nov-2024 03:16:45     return fun(*ba.args, **ba.kwargs)
30-Nov-2024 03:16:45 tests/mixed/steps/rest/onezone/special_dirs.py:346: in try_to_establish_dataset_on_special_dir
30-Nov-2024 03:16:45     try_to_establish_dataset_on_special_dir_by_id(
30-Nov-2024 03:16:45 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 user = 'user1'
30-Nov-2024 03:16:45 users = {'admin': <tests.utils.user_utils.AdminUser object at 0x7f378490dfd0>, 'admin2': <tests.utils.user_utils.User object a...s.user_utils.AdminUser object at 0x7f37847eeba0>, 'user1': <tests.utils.user_utils.User object at 0x7f37847ee240>, ...}
30-Nov-2024 03:16:45 hosts = {'oneclient-1': {'container-id': '1a9d12ef31d4bddbfee734ee36c31f9b8e402a1c5f793aadc6b47d1c5895f146', 'ip': '10.244.37....0aff4dc05136', 'hostname': 'dev-onezone.default.svc.cluster.local', 'ip': '10.244.37.174', 'name': 'dev-onezone', ...}}
30-Nov-2024 03:16:45 host = 'oneprovider-1'
30-Nov-2024 03:16:45 dir_id = '000000000084D16E7368617265477569642373706163655F373562366232363330636134313361633937316362356134313261623838643463683...3163623561343132616238386434636831633434236364333837343030386332623137613239386233383462376230393261643631636833313636'
30-Nov-2024 03:16:45 err_msg = 'Established dataset on share root dir, but establishing should have failed'
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45     def try_to_establish_dataset_on_special_dir_by_id(
30-Nov-2024 03:16:45         user, users, hosts, host, dir_id, err_msg=""
30-Nov-2024 03:16:45     ):
30-Nov-2024 03:16:45         try:
30-Nov-2024 03:16:45             create_dataset_in_op_by_id_rest(user, users, hosts, host, dir_id, "")
30-Nov-2024 03:16:45             raise AssertionError(err_msg)
30-Nov-2024 03:16:45         except ApiException as e:
30-Nov-2024 03:16:45             ex_err_msg = "You are not authorized to perform this operation."
30-Nov-2024 03:16:45 >           assert ex_err_msg in str(e)
30-Nov-2024 03:16:45 E           AssertionError
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 tests/mixed/steps/rest/onezone/special_dirs.py:366: AssertionError
30-Nov-2024 03:16:45 =============================== warnings summary ===============================
30-Nov-2024 03:16:45 tests/utils/rest_utils.py:97
30-Nov-2024 03:16:45   /mnt/storage/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance/tests/utils/rest_utils.py:97: SyntaxWarning: invalid escape sequence '\ '
30-Nov-2024 03:16:45     print("""
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 tests/utils/path_utils.py:112
30-Nov-2024 03:16:45   /mnt/storage/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance/tests/utils/path_utils.py:112: SyntaxWarning: invalid escape sequence '\ '
30-Nov-2024 03:16:45     return path.replace("'", "\\'").replace(' ', '\ ')
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 tests/utils/acceptance_utils.py:55
30-Nov-2024 03:16:45   /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'
30-Nov-2024 03:16:45     '(?P<seconds>\d*\.?\d+([eE][-+]?\d+)?) seconds?'))
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 tests/utils/acceptance_utils.py:57
30-Nov-2024 03:16:45   /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'
30-Nov-2024 03:16:45     '(?P<seconds>\d*\.?\d+([eE][-+]?\d+)?) seconds?'))
30-Nov-2024 03:16:45
30-Nov-2024 03:16:45 -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
30-Nov-2024 03:16:45 - generated xml file: /mnt/storage/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance/test-reports/results.xml -
30-Nov-2024 03:16:45 - Generated html report: file:///mnt/storage/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance/tests/mixed/logs/report.1732935465.8424492/report.html -
30-Nov-2024 03:16:45 ============ 25 failed, 34 passed, 4 warnings in 1139.50s (0:18:59) ============
30-Nov-2024 03:16:51 release "dev" uninstalled
30-Nov-2024 03:16:51 Sidecar injection has been disabled
30-Nov-2024 03:16:51 Cleaning helm release "dev"...
30-Nov-2024 03:16:51 Deleted 1 helm deployments
30-Nov-2024 03:16:51 Deleted 0 k8s deployments
30-Nov-2024 03:16:51 Deleted 0 k8s services
30-Nov-2024 03:16:51 Deleted 0 persistent volumes
30-Nov-2024 03:16:52 [INFO] ENV variable "bamboo_planRepository_branchName" is set to develop - using it as current branch name
30-Nov-2024 03:16:52 [INFO] Using image docker.onedata.org/onezone-dev:develop for service onezone
30-Nov-2024 03:16:52 [INFO] ENV variable "bamboo_planRepository_branchName" is set to develop - using it as current branch name
30-Nov-2024 03:16:52 [INFO] Using image docker.onedata.org/oneprovider-dev:develop for service oneprovider
30-Nov-2024 03:16:52 [INFO] Using image docker.onedata.org/rest-cli:develop for service rest-cli
30-Nov-2024 03:16:52 [INFO] ENV variable "bamboo_planRepository_branchName" is set to develop - using it as current branch name
30-Nov-2024 03:16:52 [INFO] Using image docker.onedata.org/oneclient-dev:develop for service oneclient
30-Nov-2024 03:16:52 Finished task 'Run acceptance mixed tests in Chrome' with result: Success
30-Nov-2024 03:16:52 Starting task 'Parse test results' of type 'com.atlassian.bamboo.plugins.testresultparser:task.testresultparser.junit'
30-Nov-2024 03:16:52 Parsing test results under /home/bamboo/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT...
30-Nov-2024 03:16:52 Failing task since 25 failing test cases were found.
30-Nov-2024 03:16:52 Changing Task Result to SUCCESS as all failed tests were quarantined.
30-Nov-2024 03:16:52 Finished task 'Parse test results' with result: Success
30-Nov-2024 03:16:52 All conditions for task 'Pack and push surefire artifact' were met. Conditions: Variable bamboo.buildNumber matches pattern [4-9]|.{2,}
30-Nov-2024 03:16:52
Substituting variable: ${bamboo.artifactRepoHostname} with S3
30-Nov-2024 03:16:52
Substituting variable: ${bamboo.artifactRepoPort} with 10161
30-Nov-2024 03:16:52
Substituting variable: ${bamboo.artifactRepoUsername} with ubuntu
30-Nov-2024 03:16:52
Substituting variable: ${bamboo.planRepository.branchName} with develop
30-Nov-2024 03:16:52
Substituting variable: ${bamboo.planRepository.name} with onedata-acceptance
30-Nov-2024 03:16:52
Substituting variable: ${bamboo.artifactRepoHostname} with S3
30-Nov-2024 03:16:52
Substituting variable: ${bamboo.artifactRepoPort} with 10161
30-Nov-2024 03:16:52
Substituting variable: ${bamboo.artifactRepoUsername} with ubuntu
30-Nov-2024 03:16:52
Substituting variable: ${bamboo.planRepository.branchName} with develop
30-Nov-2024 03:16:52
Substituting variable: ${bamboo.planRepository.name} with onedata-acceptance
30-Nov-2024 03:16:52 Starting task 'Pack and push surefire artifact' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
30-Nov-2024 03:16:52
Beginning to execute external process for build 'Onedata Products - mixed acceptance pkg - Spaces basic #3291 (ODSRV-MAOPT-CSBT-3291)'
... running command line:
/home/bamboo/bamboo-agent-home/temp/ODSRV-MAOPT-CSBT-3291-ScriptBuildTask-18370041139324783651.sh
... in: /home/bamboo/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance
30-Nov-2024 03:16:52 ./bamboos/artifacts/push_artifact.py --hostname S3 --port 10161 --username ubuntu --branch develop --plan onedata-acceptance --artifact-name surefire_Spaces_basic.tar.gz
30-Nov-2024 03:16:54 Uploading artifact
30-Nov-2024 03:16:54     source path: surefire_Spaces_basic.tar.gz
30-Nov-2024 03:16:54     dest.  path: artifacts/onedata-acceptance/develop/surefire_Spaces_basic.tar.gz
30-Nov-2024 03:16:54 Finished task 'Pack and push surefire artifact' with result: Success
30-Nov-2024 03:16:54 All conditions for task 'Pack logs' were met. Conditions: Variable bamboo.buildNumber matches pattern [4-9]|.{2,}
30-Nov-2024 03:16:54 Starting task 'Pack logs' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
30-Nov-2024 03:16:54
Beginning to execute external process for build 'Onedata Products - mixed acceptance pkg - Spaces basic #3291 (ODSRV-MAOPT-CSBT-3291)'
... running command line:
/home/bamboo/bamboo-agent-home/temp/ODSRV-MAOPT-CSBT-3291-ScriptBuildTask-12653349733765095863.sh
... in: /home/bamboo/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT
30-Nov-2024 03:16:54 cp: cannot stat 'onedata-acceptance/one_env/sources_info.yaml': No such file or directory
30-Nov-2024 03:16:54 Finished task 'Pack logs' with result: Success
30-Nov-2024 03:16:54 All conditions for task 'Clear env and working dir' were met. Conditions: Variable bamboo.buildNumber matches pattern [4-9]|.{2,}
30-Nov-2024 03:16:54
Substituting variable: ${bamboo.OnedataFinalTasksURL} with https://raw.githubusercontent.com/onedata/bamboos/develop/final_tasks.sh
30-Nov-2024 03:16:54 Starting task 'Clear env and working dir' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
30-Nov-2024 03:16:54
Beginning to execute external process for build 'Onedata Products - mixed acceptance pkg - Spaces basic #3291 (ODSRV-MAOPT-CSBT-3291)'
... running command line:
/home/bamboo/bamboo-agent-home/temp/ODSRV-MAOPT-CSBT-3291-ScriptBuildTask-6688998810281200767.sh
... in: /home/bamboo/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT/onedata-acceptance
30-Nov-2024 03:16:54   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
30-Nov-2024 03:16:54                                  Dload  Upload   Total   Spent    Left  Speed
30-Nov-2024 03:16:54
30-Nov-2024 03:16:54 Clearing /tmp/onedata and /home/bamboo/.one-env
30-Nov-2024 03:16:54   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
30-Nov-2024 03:16:54 100  4822  100  4822    0     0  51849      0 --:--:-- --:--:-- --:--:-- 51849
30-Nov-2024 03:16:55 Cleaning helm deployments
30-Nov-2024 03:16:55 Cleanining pods
30-Nov-2024 03:16:56 Cleaning kube persistant volumes
30-Nov-2024 03:16:56 Cleaning dockswift container
30-Nov-2024 03:16:56 Cleaning docker containers
30-Nov-2024 03:16:59 Stalled docker containers to remove:
30-Nov-2024 03:16:59 e75ab54e9958 c37d76394542 e7883709e5a3 7d928cbb626c c18bf8ae2432 db37d49edb6c 723a863ee810 b3446127def8 9388774e67c1 c94a27cc4955 d482c07ecbfa 1ac1a3d5a289 a92b96b7d516 3e7fdd4ec3a2 0c2fc9f18052
30-Nov-2024 03:16:59 Removing stalled docker containers
30-Nov-2024 03:16:59 Error response from daemon: Cannot kill container: e75ab54e9958: Container e75ab54e9958f957f8dc3ec44a70557b3977dd1ebd92d1c1254a5cf3fe5ccf7f is not running
30-Nov-2024 03:16:59 e75ab54e9958
30-Nov-2024 03:16:59 Error response from daemon: Cannot kill container: c37d76394542: Container c37d763945428cc12bd657c594d341701bb53e9a89203a4337cee3823252a88a is not running
30-Nov-2024 03:16:59 c37d76394542
30-Nov-2024 03:16:59 Error response from daemon: Cannot kill container: e7883709e5a3: Container e7883709e5a34105d93072024926de9e37e4a3da59dde93c867921afa2b85186 is not running
30-Nov-2024 03:16:59 e7883709e5a3
30-Nov-2024 03:16:59 Error response from daemon: Cannot kill container: 7d928cbb626c: Container 7d928cbb626c0561cdd13dee0185930ee3503d653c257223b1c4ae25f2b7d0e6 is not running
30-Nov-2024 03:16:59 7d928cbb626c
30-Nov-2024 03:16:59 Error response from daemon: Cannot kill container: c18bf8ae2432: Container c18bf8ae2432e40c0835da956fd38778a0e47f88a16c754a60f9fa15d5a85838 is not running
30-Nov-2024 03:16:59 c18bf8ae2432
30-Nov-2024 03:16:59 Error response from daemon: Cannot kill container: db37d49edb6c: Container db37d49edb6c640e4ea60aa83c391488eadad6c874f2213d7cd422de792891bc is not running
30-Nov-2024 03:16:59 db37d49edb6c
30-Nov-2024 03:16:59 Error response from daemon: Cannot kill container: 723a863ee810: Container 723a863ee8104b13af658b3749773d7befe8735d01e7bd0188d7ee11486a04d5 is not running
30-Nov-2024 03:16:59 723a863ee810
30-Nov-2024 03:16:59 Error response from daemon: Cannot kill container: b3446127def8: Container b3446127def8cd14043d0dfecd58d0f3e7115ade16f2efd6d0a62b65d87c036f is not running
30-Nov-2024 03:16:59 b3446127def8
30-Nov-2024 03:16:59 Error response from daemon: Cannot kill container: 9388774e67c1: Container 9388774e67c1c79c3d5c89935930babb39a666c62603399e261452e3e5727b71 is not running
30-Nov-2024 03:16:59 9388774e67c1
30-Nov-2024 03:16:59 Error response from daemon: Cannot kill container: c94a27cc4955: Container c94a27cc4955d7d76dc306402831845b1b24a88e53d439ee0c8f9d63803d8c83 is not running
30-Nov-2024 03:16:59 c94a27cc4955
30-Nov-2024 03:16:59 Error response from daemon: Cannot kill container: d482c07ecbfa: Container d482c07ecbfadedfa6c276263fad3a55a8643611bb354fc32120535cc2aadee6 is not running
30-Nov-2024 03:16:59 d482c07ecbfa
30-Nov-2024 03:17:00 Error response from daemon: Cannot kill container: 1ac1a3d5a289: Container 1ac1a3d5a289037d7ce79f9652e2b1c98d4f5a137814beeeb0b4e0142fce5011 is not running
30-Nov-2024 03:17:00 1ac1a3d5a289
30-Nov-2024 03:17:00 Error response from daemon: Cannot kill container: a92b96b7d516: Container a92b96b7d5160b71e4a5fb52d0162e1fb1f914804105d0ce5445d4eac9470255 is not running
30-Nov-2024 03:17:00 a92b96b7d516
30-Nov-2024 03:17:00 Error response from daemon: Cannot kill container: 3e7fdd4ec3a2: Container 3e7fdd4ec3a22431ba2581a0502a95da2f050e9a4bd471fbc521fed503ae0a84 is not running
30-Nov-2024 03:17:00 3e7fdd4ec3a2
30-Nov-2024 03:17:00 0c2fc9f18052
30-Nov-2024 03:17:00 0c2fc9f18052
30-Nov-2024 03:17:00 Stalled docker volumes to remove:
30-Nov-2024 03:17:00
30-Nov-2024 03:17:00 Removing stalled docker volumes
30-Nov-2024 03:17:00 Removing stalled loopdevices
30-Nov-2024 03:17:01 Done
30-Nov-2024 03:17:01 Finished task 'Clear env and working dir' with result: Success
30-Nov-2024 03:17:01 Skipping task 'Qnthack - always fail on build 2' because of unfulfilled condition. Reason: Variable bamboo.buildNumber matches pattern 2
30-Nov-2024 03:17:01 Running post build plugin 'Docker Container Cleanup'
30-Nov-2024 03:17:01 Running post build plugin 'NCover Results Collector'
30-Nov-2024 03:17:01 Running post build plugin 'Build Results Label Collector'
30-Nov-2024 03:17:01 Running post build plugin 'Clover Results Collector'
30-Nov-2024 03:17:01 Running post build plugin 'npm Cache Cleanup'
30-Nov-2024 03:17:01 Running post build plugin 'Artifact Copier'
30-Nov-2024 03:17:01 Publishing an artifact: report
30-Nov-2024 03:17:01 Finished publishing of artifact Non required job artifact Http Compression On : [report], patterns: [**/*.*] anchored at: [onedata-acceptance/tests/mixed/logs/] in 604.5 ms
30-Nov-2024 03:17:02 Successfully removed working directory at '/home/bamboo/bamboo-agent-home/xml-data/build-dir/ODSRV-MAOPT-CSBT'
30-Nov-2024 03:17:02 Finalising the build...
30-Nov-2024 03:17:02 Stopping timer.
30-Nov-2024 03:17:02 Build ODSRV-MAOPT-CSBT-3291 completed.
30-Nov-2024 03:17:02 Running on server: post build plugin 'Build Hanging Detection Configuration'
30-Nov-2024 03:17:02 Running on server: post build plugin 'NCover Results Collector'
30-Nov-2024 03:17:02 Running on server: post build plugin 'Build Labeller'
30-Nov-2024 03:17:02 Running on server: post build plugin 'Clover Delta Calculator'
30-Nov-2024 03:17:02 Running on server: post build plugin 'Maven Dependencies Postprocessor'
30-Nov-2024 03:17:02 All post build plugins have finished
30-Nov-2024 03:17:02 Generating build results summary...
30-Nov-2024 03:17:03 Saving build results to disk...
30-Nov-2024 03:17:03 Store variable context...
30-Nov-2024 03:17:03 Finished building ODSRV-MAOPT-CSBT-3291.