Improves clean to cleanup virsh nets and and other bridges 53/42653/1
authorTim Rozet <trozet@redhat.com>
Tue, 19 Sep 2017 01:48:45 +0000 (21:48 -0400)
committerTim Rozet <trozet@redhat.com>
Thu, 21 Sep 2017 13:35:14 +0000 (13:35 +0000)
commitf9d02c076974168677bf5fdb02f26caf73924fb8
tree9f723ded40d338f11421359acb4ac71f4a4cc167
parent4770ea6a40807b0f80a15e406703443b9a147955
Improves clean to cleanup virsh nets and and other bridges

Currently only the admin and external bridges will be removed from the
jumphost which is only really clean for a baremetal deployment.  Virtual
deployments will leave br-tenant, br-api, br-storage.  This patch
removes those as well as deletes all Apex virsh networks from libvirt.

Also checks if authorized_keys exists before trying to edit it.

Change-Id: I1affe2733ba1dc38fd3b91fb14398454137f00a4
Signed-off-by: Tim Rozet <trozet@redhat.com>
(cherry picked from commit 02dc854a504569da15b0e41353a9f456e02599ad)
apex/clean.py
apex/tests/test_apex_clean.py