diff --git a/sdcm/tester.py b/sdcm/tester.py index 6ce420b319..97a6be0033 100644 --- a/sdcm/tester.py +++ b/sdcm/tester.py @@ -2781,6 +2781,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'):