Fix for get_logs and for telemetry addresses
- mdb01 address intersects with prx01 node .121 , patch [1]
- fix xargs arguments replacements, by using 'for' instead
- sync the file caches after 'eatmydata'
[1] https://gerrit.mcp.mirantis.net/#/c/17086/
Change-Id: I2476637127b79993fee2ff0dc0e822e8f420345a
diff --git a/tcp_tests/managers/underlay_ssh_manager.py b/tcp_tests/managers/underlay_ssh_manager.py
index 85d5eb5..3b64300 100644
--- a/tcp_tests/managers/underlay_ssh_manager.py
+++ b/tcp_tests/managers/underlay_ssh_manager.py
@@ -428,12 +428,14 @@
"docker ps > /root/$(hostname -f)/dump_docker_ps.txt;"
"docker service ls > "
" /root/$(hostname -f)/dump_docker_services_ls.txt;"
- "docker service ls | awk '{ print $2 }' | "
- " xargs -I SERVICE docker service ps --no-trunc 2>&1 SERVICE >> "
- " /root/$(hostname -f)/dump_docker_service_ps.txt;"
- "docker service ls | awk '{ print $2 }' | "
- " xargs -I SERVICE docker service logs 2>&1 SERVICE > "
- " /root/$(hostname -f)/dump_docker_service_SERVICE_logs;"
+ "for SERVICE in $(docker service ls | awk '{ print $2 }'); "
+ " do docker service ps --no-trunc 2>&1 $SERVICE >> "
+ " /root/$(hostname -f)/dump_docker_service_ps.txt;"
+ " done;"
+ "for SERVICE in $(docker service ls | awk '{ print $2 }'); "
+ " do docker service logs 2>&1 $SERVICE > "
+ " /root/$(hostname -f)/dump_docker_service_${SERVICE}_logs;"
+ " done;"
"vgdisplay > /root/$(hostname -f)/dump_vgdisplay.txt;"
"lvdisplay > /root/$(hostname -f)/dump_lvdisplay.txt;"
"ip a > /root/$(hostname -f)/dump_ip_a.txt;"