X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sliver_lxc.py;h=0f264649d2ece3ddd1ed017da1ca469195bff32f;hb=532018958c875717df938661e5e36d06d2cf5053;hp=246c5f09b7131aa48db991bf4c7eda78ab929373;hpb=aaed32c80a83c4c8eb1db7f93ec7fb32f3a74c5e;p=nodemanager.git 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)