fix for when upgrading too old nodes
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 8 Oct 2015 12:45:29 +0000 (14:45 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 8 Oct 2015 12:45:29 +0000 (14:45 +0200)
source/steps/InstallBootstrapFS.py

index 0442097..63f69ab 100644 (file)
@@ -277,7 +277,7 @@ def CleanupSysimgBeforeUpgrade(sysimg, target_nodefamily, log):
         with open("{}/etc/planetlab/virt".format(sysimg)) as infile:
             installed_virt = infile.read().strip()
     except Exception as e:
-        print_exc()
+        traceback.print_exc()
         raise BootManagerException("Could not retrieve data about previous installation - cannot upgrade")
 
     # moving from vservers to lxc also means another filesystem