From 81695f5ec3f62b1fb7610388bed4825640d9c770 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 25 Jun 2015 23:30:17 +0200 Subject: [PATCH] vgchange is required so that /dev/mapper/* and /dev/planetlab/* show up when upgrading --- source/steps/InstallBootstrapFS.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/steps/InstallBootstrapFS.py b/source/steps/InstallBootstrapFS.py index c0f27cb..0442097 100644 --- a/source/steps/InstallBootstrapFS.py +++ b/source/steps/InstallBootstrapFS.py @@ -85,6 +85,7 @@ def Run(vars, upgrade, log): log.write("Upgrade mode init : Scanning for devices\n") systeminfo.get_block_devices_dict(vars, log) utils.sysexec_noerr("vgscan --mknodes", log) + utils.sysexec_noerr("vgchange -ay", log) # debugging info - show in either mode utils.display_disks_status(PARTITIONS, "In InstallBootstrapFS", log) @@ -282,7 +283,11 @@ def CleanupSysimgBeforeUpgrade(sysimg, target_nodefamily, log): # moving from vservers to lxc also means another filesystem # so plain reinstall is the only option if installed_virt != 'lxc': - raise BootManagerException("Can only upgrade nodes running lxc containers (vservers not supported)") + message = """Can only upgrade nodes already running lxc containers +a node running vservers has its /vservers/ partition formatted as ext3 +and we need btrfs to move to containers +your only option here is reinstall""" + raise BootManagerException(message) # changing arch is not reasonable either if target_arch != installed_arch: -- 2.43.0