Currently there's no hvparam modification tests for LXC hypervisor, so we
should add additional LXC hypervisor specific parameters that can be
used for instance modification tests of hypervisor parameters.

Signed-off-by: Yuto KAWAMURA(kawamuray) <[email protected]>
---
 qa/qa_instance.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/qa/qa_instance.py b/qa/qa_instance.py
index 10735e5..1c34db2 100644
--- a/qa/qa_instance.py
+++ b/qa/qa_instance.py
@@ -643,6 +643,11 @@ def TestInstanceModify(instance):
       ["--disk", "-1:add,size=1G", "--hotplug"],
       ["--disk", "-1:remove", "--hotplug"],
       ])
+  elif default_hv == constants.HT_LXC:
+    args.extend([
+      ["-H", "%s=" % constants.HV_CPU_MASK],
+      ["-H", "%s=0" % constants.HV_LXC_TTY],
+      ])
 
   # OS Parameters validation failed on node node01.19528.qa-sandbox.ganeti: 
The following parameters are not supported by the OS debootstrap: os-image
   # url = "http://example.com/busybox.img";
-- 
1.8.5.5

Reply via email to