Cleanup via Ansible 52/22652/8
authorPeter Mikus <pmikus@cisco.com>
Thu, 10 Oct 2019 15:31:28 +0000 (15:31 +0000)
committerPeter Mikus <pmikus@cisco.com>
Tue, 5 Nov 2019 07:23:56 +0000 (07:23 +0000)
commitd01411c3c4af6c724a3800c621804ea979818d6d
tree8c2745c25a575c7f637473fe98d3c39c1c8e2b28
parent50d21f72ff61d06641954c22a8bc13c2468388f9
Cleanup via Ansible

+ Remove dependency on topo_ scripts that depends on custom SSH()
  that depends on framework itself. This way the cleanup is independent
  of failure in our SSH libs.
+ Simple ansible command can do cleanup of a machine:
  ansible-playbook --inventory inventories/lf_inventory/hosts site.yaml \
  --limit '10.32.8.18' --tags 'cleanup'
+ Add vpp_device reset and cleanup.
+ Remove historical scripts.

- Still in testing beta phase.
  - Need to add SRIOV cleanup.

Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: I68e23304c7ad01041f51263c328c6e8d9b555cb7
17 files changed:
resources/libraries/bash/function/ansible.sh
resources/libraries/bash/function/common.sh
resources/tools/scripts/rename_robot_keywords.py [deleted file]
resources/tools/scripts/robot_output_parser.py [deleted file]
resources/tools/scripts/topo_container_copy.py [deleted file]
resources/tools/scripts/topo_installation.py [deleted file]
resources/tools/testbed-setup/ansible/roles/cleanup/files/reset_vppdevice.sh [new file with mode: 0644]
resources/tools/testbed-setup/ansible/roles/cleanup/tasks/kill_containers.yaml [new file with mode: 0644]
resources/tools/testbed-setup/ansible/roles/cleanup/tasks/kill_process.yaml [new file with mode: 0644]
resources/tools/testbed-setup/ansible/roles/cleanup/tasks/main.yaml [new file with mode: 0644]
resources/tools/testbed-setup/ansible/roles/cleanup/tasks/remove_package.yaml [new file with mode: 0644]
resources/tools/testbed-setup/ansible/roles/cleanup/tasks/sut.yaml [new file with mode: 0644]
resources/tools/testbed-setup/ansible/roles/cleanup/tasks/tg.yaml [new file with mode: 0644]
resources/tools/testbed-setup/ansible/roles/cleanup/tasks/vpp_device.yaml [new file with mode: 0644]
resources/tools/testbed-setup/ansible/sut.yaml
resources/tools/testbed-setup/ansible/tg.yaml
resources/tools/testbed-setup/ansible/vpp_device.yaml