Fix get_logs() to get logs from all nodes
This command will show the same hostname cfg01
for all minions because "$(hostname -f)" is interpolated
on the cfg01 *before* the command is executed on minions:
salt '*' cmd.run "echo $(hostname -f)"
This lead to overwrite the artifacts with the same name from
all nodes.
- add escapes before '$' to disable early interpolation
- fix FORWARD command in cookied-mcp-pike-dvr/openstack.yaml
Closes-Bug: PROD-18695
Change-Id: Iad4d92a1736abacbff2a39da6b8f27e2dc70758f
diff --git a/tcp_tests/templates/cookied-mcp-pike-dvr/openstack.yaml b/tcp_tests/templates/cookied-mcp-pike-dvr/openstack.yaml
index 61d4a8f..3509982 100644
--- a/tcp_tests/templates/cookied-mcp-pike-dvr/openstack.yaml
+++ b/tcp_tests/templates/cookied-mcp-pike-dvr/openstack.yaml
@@ -376,7 +376,7 @@
skip_fail: false
- description: Enable forward policy
- cmd: salt iptables --policy FORWARD ACCEPT
+ cmd: iptables --policy FORWARD ACCEPT
node_name: {{ HOSTNAME_GTW01 }}
retry: {count: 1, delay: 30}
skip_fail: false