From b07201d0c11188e121bfcef4a0b850329cb94112 Mon Sep 17 00:00:00 2001 From: Sai Sindhur Malleni Date: Thu, 22 Mar 2018 15:16:55 -0400 Subject: [PATCH] Adding a playbook to fetch ODL transaction leaks This commit adds a playbook to fetch open transactions from ODL. The idea is to run this after ODL dataplane tests to probe for potential memory leaks. Change-Id: Ifc9b56eb30e54e0344c04d6c1f3c43bb8e4cfa51 --- ansible/browbeat/odl-open-transactions.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ansible/browbeat/odl-open-transactions.yml diff --git a/ansible/browbeat/odl-open-transactions.yml b/ansible/browbeat/odl-open-transactions.yml new file mode 100644 index 000000000..6f9ff6f49 --- /dev/null +++ b/ansible/browbeat/odl-open-transactions.yml @@ -0,0 +1,14 @@ +- hosts: controller + remote_user: "{{host_remote_user}}" + vars_files: + - ../install/group_vars/all.yml + tasks: + - name: Get open transactions + shell: > + sshpass -p {{ karaf_password }} ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@localhost "trace:transactions" > /tmp/open-transactions.txt + - name: Copy the open transactions + fetch: + src: /tmp/open-transactions.txt + dest: "{{home_dir}}/open-transactions-{{ansible_hostname}}.txt" + +