Commit 117899a7 authored by Thomas Thrainer's avatar Thomas Thrainer
Browse files

Fix cfgupgrade test wrt. downgrading physical_id

The physical_id field can't be recreated during downgrades, so don't
expect it to be during the test.
Signed-off-by: default avatarThomas Thrainer <>
Reviewed-by: default avatarJose A. Lopes <>
parent 76b920e6
......@@ -394,9 +394,18 @@ class TestCfgupgrade(unittest.TestCase):
newconf = self._LoadConfig()
# downgrade from 2.10 to 2.9 does not add physical_id to disks, which is ok
# TODO (2.11): Remove this code, it's not required to downgrade from 2.11
# to 2.10
def RemovePhysicalId(disk):
if "children" in disk:
for d in disk["children"]:
if "physical_id" in disk:
del disk["physical_id"]
for inst in oldconf["instances"].values():
for disk in inst["disks"]:
del disk["physical_id"]
self.assertEqual(oldconf, newconf)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment