From 04712fbd06ea8b0f2108089af386e4ee579ecf0e Mon Sep 17 00:00:00 2001 From: Julia Yakovlev Date: Mon, 2 Dec 2024 16:20:43 +0200 Subject: [PATCH] fix(logcollector): silent errors from saving of schema details Silent collection schema details failure. Now it fails in the K8S test. Need be fixed later (cherry picked from commit c177a65ff7b5f25f90593d34311bdd577f7f1760) # Conflicts: # sdcm/tester.py --- sdcm/tester.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sdcm/tester.py b/sdcm/tester.py index 3b299aa30c..d97e3c1f7e 100644 --- a/sdcm/tester.py +++ b/sdcm/tester.py @@ -2946,6 +2946,17 @@ def clean_resources(self): self.destroy_credentials() + @silence(name='Save node schema') + def save_nodes_schema(self): + if self.db_cluster is None: + self.log.info("No nodes found in the Scylla cluster") + + self.log.info("Save nodes user schema in the files") + for node in self.db_cluster.nodes: + node.save_cqlsh_output_in_file(cmd="desc schema", log_file="schema.log") + node.save_cqlsh_output_in_file(cmd="select JSON * from system_schema.tables", + log_file="system_schema_tables.log") + def tearDown(self): self.teardown_started = True with silence(parent=self, name='Sending test end event'):