diff --git a/src/tests/ftest/dfuse/container_attrs.py b/src/tests/ftest/dfuse/container_attrs.py index cea930e98f9..10b5090a58d 100644 --- a/src/tests/ftest/dfuse/container_attrs.py +++ b/src/tests/ftest/dfuse/container_attrs.py @@ -1,5 +1,6 @@ """ (C) Copyright 2020-2024 Intel Corporation. + (C) Copyright 2026 Hewlett Packard Enterprise Development LP SPDX-License-Identifier: BSD-2-Clause-Patent """ @@ -121,6 +122,12 @@ def test_dfuse_subcontainer_create_attrs(self): self.log_step("Creating DAOS container") container = self.get_container(pool, namespace="/run/container_02/*") + try: + self.log.info("Getting container attributes for %s", container) + container.get_attr() + except Exception as error: # pylint: disable=broad-except + self.log.error(error) + pass self.log_step("Mounting DFuse mount point") dfuse = get_dfuse(self, self.dfuse_hosts) @@ -129,7 +136,13 @@ def test_dfuse_subcontainer_create_attrs(self): self.log_step("Creating DAOS subcontainer with DFuse attributes") sub_dir = os.path.join(dfuse.mount_dir.value, "foo") - self.get_container(pool, namespace="/run/container_03/*", path=sub_dir) + sub_container = self.get_container(pool, namespace="/run/container_03/*", path=sub_dir) + try: + self.log.info("Getting container attributes for %s", sub_container) + sub_container.get_attr() + except Exception as error: # pylint: disable=broad-except + self.log.error(error) + pass self.log_step("Checking DFuse log file") self._check_attrs(dfuse, namespace="/run/container_03/*") diff --git a/src/tests/ftest/util/daos_utils.py b/src/tests/ftest/util/daos_utils.py index be44a20cda7..6121615f2b3 100644 --- a/src/tests/ftest/util/daos_utils.py +++ b/src/tests/ftest/util/daos_utils.py @@ -695,13 +695,14 @@ def container_set_attr(self, pool, cont, attrs, sys_name=None): ("container", "set-attr"), pool=pool, cont=cont, attr=dict_to_str(attrs, ",", ":"), sys_name=sys_name) - def container_get_attr(self, pool, cont, attr, sys_name=None): + def container_get_attr(self, pool, cont, attr=None, sys_name=None): """Call daos container get-attr for a single attribute. Args: pool (str): pool UUID or label cont (str): container UUID or label - attr (str/list): single attribute name or list of names + attr (str/list, optional): single attribute name or list of names. + Defaults to None. sys_name (str, optional): DAOS system name context for servers. Defaults to None.