Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scylla_node: ignore scylla-tools config files if scylla-tools is missing
this change is created in the same spirit of 3a88640, so that we don't assume the existence of scylla-tools. otherwise we could have following failure: ``` 07:51:05 Traceback (most recent call last): 07:51:05 File "/jenkins/workspace/scylla-master/gating-dtest-release/scylla/.local/bin/ccm", line 74, in <module> 07:51:05 cmd.run() 07:51:05 File "/jenkins/workspace/scylla-master/gating-dtest-release/scylla/.local/lib/python3.12/site-packages/ccmlib/cmds/cluster_cmds.py", line 269, in run 07:51:05 cluster.populate(self.nodes, self.options.debug, use_vnodes=self.options.vnodes, ipprefix=self.options.ipprefix, ipformat=self.options.ipformat) 07:51:05 File "/jenkins/workspace/scylla-master/gating-dtest-release/scylla/.local/lib/python3.12/site-packages/ccmlib/cluster.py", line 330, in populate 07:51:05 self.new_node(i, debug=debug, initial_token=tk, data_center=dc, rack=rack) 07:51:05 File "/jenkins/workspace/scylla-master/gating-dtest-release/scylla/.local/lib/python3.12/site-packages/ccmlib/cluster.py", line 337, in new_node 07:51:05 node = self.create_node(name=f'node{i}', 07:51:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 07:51:05 File "/jenkins/workspace/scylla-master/gating-dtest-release/scylla/.local/lib/python3.12/site-packages/ccmlib/scylla_cluster.py", line 94, in create_node 07:51:05 return ScyllaNode(name, self, auto_bootstrap, None, 07:51:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 07:51:05 File "/jenkins/workspace/scylla-master/gating-dtest-release/scylla/.local/lib/python3.12/site-packages/ccmlib/scylla_node.py", line 53, in __init__ 07:51:05 super().__init__(name, cluster, auto_bootstrap, 07:51:05 File "/jenkins/workspace/scylla-master/gating-dtest-release/scylla/.local/lib/python3.12/site-packages/ccmlib/node.py", line 128, in __init__ 07:51:05 self.import_config_files() 07:51:05 File "/jenkins/workspace/scylla-master/gating-dtest-release/scylla/.local/lib/python3.12/site-packages/ccmlib/scylla_node.py", line 979, in import_config_files 07:51:05 self.__copy_logback_files() 07:51:05 File "/jenkins/workspace/scylla-master/gating-dtest-release/scylla/.local/lib/python3.12/site-packages/ccmlib/scylla_node.py", line 1003, in __copy_logback_files 07:51:05 shutil.copy(os.path.join(self.get_tools_java_dir(), 'conf', 'logback-tools.xml'), ``` Fixes #617 Signed-off-by: Kefu Chai <[email protected]>
- Loading branch information