Commit e61c0f24 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis Committed by Thomas Thrainer
Browse files

Extend qa to test hotplug support

Only if default hypervisor is KVM try all hotplug related actions.
Signed-off-by: default avatarDimitris Aragiorgis <>
Signed-off-by: default avatarThomas Thrainer <>
Reviewed-by: default avatarThomas Thrainer <>
parent 363d2f88
......@@ -219,6 +219,7 @@
"instance-rename": true,
"instance-shutdown": true,
"instance-device-names": true,
"instance-device-hotplug": false,
"job-list": true,
......@@ -534,6 +534,15 @@ def TestInstanceModify(instance):
["-H", "%s=acn" % constants.HV_BOOT_ORDER],
["-H", "%s=%s" % (constants.HV_BOOT_ORDER, constants.VALUE_DEFAULT)],
elif default_hv == constants.HT_KVM and \
["--net", "-1:add", "--hotplug"],
["--net", "-1:modify,mac=aa:bb:cc:dd:ee:ff", "--hotplug"],
["--net", "-1:remove", "--hotplug"],
["--disk", "-1:add,size=1G", "--hotplug"],
["--disk", "-1:remove", "--hotplug"],
for alist in args:
AssertCommand(["gnt-instance", "modify"] + alist + [])
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