From 532018958c875717df938661e5e36d06d2cf5053 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 20 Jun 2012 09:09:45 +0200 Subject: [PATCH] review timeouts --- sliver_lxc.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sliver_lxc.py b/sliver_lxc.py index 246c5f0..0f26464 100644 --- a/sliver_lxc.py +++ b/sliver_lxc.py @@ -85,16 +85,16 @@ class Sliver_LXC(Sliver_Libvirt): # password... maybe remove the need for authentication inside the # guest? command = ['su', '-s', '/bin/bash', '-c', 'ssh-keygen -t rsa -N "" -f /home/%s/.ssh/id_rsa'%(name)] - logger.log_call(command, timeout=15*60) + logger.log_call(command, timeout=60) command = ['chown', '-R', '%s.slices'%name, '/home/%s/.ssh'%name] - logger.log_call(command, timeout=15*60) + logger.log_call(command, timeout=30) command = ['mkdir', '%s/root/.ssh'%containerDir] - logger.log_call(command, timeout=15*60) + logger.log_call(command, timeout=10) command = ['cp', '/home/%s/.ssh/id_rsa.pub'%name, '%s/root/.ssh/authorized_keys'%containerDir] - logger.log_call(command, timeout=15*60) + logger.log_call(command, timeout=30) # Lookup for xid and create template after the user is created so we # can get the correct xid based on the name of the slice @@ -154,7 +154,7 @@ class Sliver_LXC(Sliver_Libvirt): # Remove rootfs of destroyed domain command = ['btrfs', 'subvolume', 'delete', containerDir] - logger.log_call(command, timeout=15*60) + logger.log_call(command, timeout=60) logger.verbose('sliver_libvirt: %s destroyed.'%name) -- 2.43.0