From: Israel Fruchter <
fr...@scylladb.com>
Committer: Lukasz Sojka <
soy...@gmail.com>
Branch: master
fix(hot_reloading): pass correct patterns to `follow_system_log`
since it didn't passed a list down to `follow_system_log` the
validation wasn't really working as expected, and could finish on
finding any of the letters from the validation phrase.
---
diff --git a/sdcm/nemesis.py b/sdcm/nemesis.py
--- a/sdcm/nemesis.py
+++ b/sdcm/nemesis.py
@@ -4316,7 +4316,7 @@ def check_ssl_reload_log(node_system_log):
with context_manager:
for node in self.cluster.nodes:
node_system_logs[node] = node.follow_system_log(
- patterns=f'messaging_service - Reloaded {{{ssl_files_location}}}')
+ patterns=[f'messaging_service - Reloaded {{"{ssl_files_location}"}}'])
node.remoter.send_files(src=f'data_dir/ssl_conf/{TLSAssets.DB_CERT}', dst='/tmp')
node.remoter.run(f"sudo cp -f /tmp/{TLSAssets.DB_CERT} {ssl_files_location}")
new_crt = node.remoter.run(f"cat {ssl_files_location}").stdout