cloud-bulldozer / benchmark-operator

The Chuck Norris of cloud benchmarks
Apache License 2.0
285 stars 129 forks source link

Removing unused client_store template from iperf template assets #765

Closed vishnuchalla closed 2 years ago

vishnuchalla commented 2 years ago

Description

Removing client_store.yml.j2 template in iperf workload claiming that it is not used anywhere.

Story

While playing around with iperf workload in benchmark-operator i came across this template client_store.yml.j2 and noticed that it does the same job as client.yml.j2 expect for storing the results in a results.path directory. But the strange thing is {{results}} isn't defined anywhere and the template client_store.yml.j2 isn't used anywhere.

Experiment done to confirm the above thoughts

Supporting Logs

fatal: [localhost]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: 'results' is undefined\n\nThe error appears to be in '/opt/ansible/roles/iperf3/tasks/main.yml': line 48, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Start Client(s)\n ^ here\n" }

001b[0;32m }\u001b[0m\r\n\u001b[0;32m }\u001b[0m\r\n\u001b[0;32m ]\u001b[0m\r\n\u001b[0;32m}\u001b[0m\n\r\nTASK [iperf3 : Start Client(s)] ************************************************\r\n\u001b[1;30mtask path: /opt/ansible/roles/iperf3/tasks/main.yml:48\u001b[0m\n\u001b[0;34mFile lookup using /opt/ansible/roles/iperf3/templates/client.yml.j2 as file\u001b[0m\n\u001b[0;31mfatal: [localhost]: FAILED! => {\u001b[0m\r\n\u001b[0;31m \"msg\": \"The task includes an option with an undefined variable. The error was: 'results' is undefined\\n\\nThe error appears to be in '/opt/ansible/roles/iperf3/tasks/main.yml': line 48, column 5, but may\\nbe elsewhere in the file depending on the exact syntax problem.\\n\\nThe offending line appears to be:\\n\\n\\n - name: Start Client(s)\\n ^ here\\n\"\u001b[0m\r\n\u001b[0;31m}\u001b[0m\n\r\nTASK [include_role : benchmark_state] ******************************************\r\n\u001b[1;30mtask path: /opt/ansible/playbooks/benchmark.yml:76\u001b[0m\n\r\nTASK [benchmark_state : Failure State] *****************************************

Supporting Points

Fixes

I think we can simply remove client_store.yml.j2 as the code is buggy and unused. Please feel free to correct me if i am wrong.