From 86e95e61e419227b1b4c9abfa8fecf3066aa0e91 Mon Sep 17 00:00:00 2001 From: Nikolas Hermanns Date: Tue, 4 Apr 2017 11:21:32 -0400 Subject: Removing groups from ovs and deleting odl folder Change-Id: If9ceadfb363c37084f4cf907d7c7945061952ba1 Signed-off-by: Nikolas Hermanns --- odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'odl-pipeline/lib') diff --git a/odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py b/odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py index 34a6732..053e022 100644 --- a/odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py +++ b/odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py @@ -94,8 +94,8 @@ class ODLReInstaller(Service): def reinstall_odl(node, odl_artifact): tar_tmp_path = '/tmp/odl-artifact/' node.copy('to', odl_artifact, tar_tmp_path + odl_artifact) - node.execute('rm -rf /opt/opendaylight/*', as_root=True) - node.execute('mkdir -p /opt/opendaylight/*', as_root=True) + node.execute('rm -rf /opt/opendaylight/', as_root=True) + node.execute('mkdir -p /opt/opendaylight/', as_root=True) if 'tar.gz' in odl_artifact: LOG.info('Extracting %s to /opt/opendaylight/ on node %s' % (odl_artifact, node.name)) @@ -147,6 +147,9 @@ class ODLReInstaller(Service): as_root=True) except ProcessExecutionError: LOG.info("No tunnel or patch ports configured") + LOG.info("Deleting all groups from {}".format(br)) + node.execute('ovs-ofctl -OOpenFlow13 del-groups {}'.format(br), + as_root=True, shell=True) @staticmethod def connect_ovs(node): -- cgit 1.2.3-korg