Fix: Do not validate LXC image 23/8223/2
authorPeter Mikus <pmikus@cisco.com>
Mon, 28 Aug 2017 11:52:12 +0000 (11:52 +0000)
committerPeter Mikus <pmikus@cisco.com>
Mon, 28 Aug 2017 11:52:48 +0000 (11:52 +0000)
Change-Id: I476f463ad7dd91f1d80a1e4b537a2cb3dd4ddee5
Signed-off-by: Peter Mikus <pmikus@cisco.com>
resources/libraries/python/LXCUtils.py

index 9f42540..57ced6b 100644 (file)
@@ -102,8 +102,9 @@ class LXCUtils(object):
         ssh.connect(self._node)
 
         ret, _, _ = ssh.exec_command_sudo(
         ssh.connect(self._node)
 
         ret, _, _ = ssh.exec_command_sudo(
-            'lxc-create -t download --name {0} -- -d {1} -r {2} -a {3}'
-            .format(self._container_name, distro, release, arch), timeout=1800)
+            'lxc-create -t download --name {0} -- -d {1} -r {2} -a {3}'\
+            ' --no-validate'.format(self._container_name, distro, release,
+                                    arch), timeout=1800)
         if int(ret) != 0:
             raise RuntimeError('Failed to create LXC container.')
 
         if int(ret) != 0:
             raise RuntimeError('Failed to create LXC container.')
 

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.