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

Build: #3282 was successful

Job: Spaces basic was successful

Build log

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

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