X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Ftopo_installation.py;h=2931926b15ab97bb0e048c23a3570758a01f77f6;hb=56b9e6c718f331235a3e0c7e1f58ccb46a1a1327;hp=b052a85d344ef0a582012b6d6a6271c24d5c624d;hpb=c79921fc24b3e56e6b1a9e263d657ec7a8addd84;p=csit.git diff --git a/resources/tools/topo_installation.py b/resources/tools/topo_installation.py index b052a85d34..2931926b15 100755 --- a/resources/tools/topo_installation.py +++ b/resources/tools/topo_installation.py @@ -84,6 +84,10 @@ def main(): cmd = "dpkg -l | grep vpp" ret, _, _ = ssh.exec_command(cmd) if ret == 0: + # Try to fix interrupted installations + cmd = 'dpkg --configure -a' + stdout = ssh_no_error(ssh, cmd, sudo=True) + print "###TI {}".format(stdout) # Try to remove installed vpp.* packages cmd = 'apt-get purge -y "vpp.*"' stdout = ssh_no_error(ssh, cmd, sudo=True) @@ -102,6 +106,10 @@ def main(): cmd = "dpkg -l | grep vpp" ret, _, _ = ssh.exec_command(cmd) if ret == 0: + # Try to fix interrupted installations + cmd = 'dpkg --configure -a' + stdout = ssh_no_error(ssh, cmd, sudo=True) + print "###TI {}".format(stdout) # Try to remove installed vpp.* packages cmd = 'apt-get purge -y "vpp.*"' stdout = ssh_no_error(ssh, cmd, sudo=True)