Ceph operations, network interfaces and overrides are included to node definition in reclass.storage.nodes section in reclass
Created method to build a node config due to extended context to be merger to infra/config/nodes.yaml
Supressed some logs in Reclass Manager
Change-Id: I5bd5bb83c2029c34c1da19545683f9c40654610a
diff --git a/tcp_tests/managers/reclass_manager.py b/tcp_tests/managers/reclass_manager.py
index 7e6243a..3952b5f 100644
--- a/tcp_tests/managers/reclass_manager.py
+++ b/tcp_tests/managers/reclass_manager.py
@@ -84,7 +84,7 @@
:param file_name: name of YAML file to find a key
:return: str, key if found
"""
- LOG.info("Try to get '{key}' key from '{file}' file".format(
+ LOG.debug("Try to get '{key}' key from '{file}' file".format(
file=file_name,
key=key
))
@@ -95,11 +95,11 @@
key=key,
file_name=file_name))['stdout']
- LOG.info("Raw output from reclass.get_key {}".format(request_key))
+ LOG.debug("Raw output from reclass.get_key {}".format(request_key))
encoded_request_key = ''.join(request_key).encode(encoding='UTF-8')
- key = yaml.load(encoded_request_key)
- LOG.info("From reclass.get_key {}".format(key))
- return key
+ value = yaml.load(encoded_request_key)
+ LOG.info("From reclass.get_key {}: {}".format(key, value))
+ return value
def add_bool_key(self, key, value, short_path):
"""