git://git.onelab.eu
/
nodemanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cgroup common interface. Used by coresched.py and sliver_libvirt.py.
[nodemanager.git]
/
sliver_lxc.py
diff --git
a/sliver_lxc.py
b/sliver_lxc.py
index
5a0d52f
..
4eb5229
100644
(file)
--- a/
sliver_lxc.py
+++ b/
sliver_lxc.py
@@
-56,8
+56,8
@@
class Sliver_LXC(lv.Sliver_Libvirt):
# TODO: set quotas...
# Set hostname. A valid hostname cannot have '_'
# TODO: set quotas...
# Set hostname. A valid hostname cannot have '_'
- with open(os.path.join(containerDir, 'etc/hostname'), 'w') as f:
- print >>f, name.replace('_', '-')
+
#
with open(os.path.join(containerDir, 'etc/hostname'), 'w') as f:
+
#
print >>f, name.replace('_', '-')
# Add slices group if not already present
command = ['/usr/sbin/groupadd', 'slices']
# Add slices group if not already present
command = ['/usr/sbin/groupadd', 'slices']