trace actions done on cgroups so we can check if this happens within the lifespan...
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 10 Nov 2015 15:04:37 +0000 (16:04 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 10 Nov 2015 15:04:37 +0000 (16:04 +0100)
cgroups.py
sliver_lxc.py

index 7ccbf0b..43a549d 100644 (file)
@@ -98,12 +98,14 @@ def write(name, key, value, subsystem="cpuset"):
     base_path = get_cgroup_path(name, subsystem)
     with open(os.path.join(base_path, key), 'w') as f:
         print >>f, value
+    logger.verbose("cgroups.write: overwrote {}".format(base_path))
 
 def append(name, key, value, subsystem="cpuset"):
     """ Appends a value to the file key with the cgroup with name """
     base_path = get_cgroup_path(name, subsystem)
     with open(os.path.join(base_path, key), 'a') as f:
         print >>f, value
+    logger.verbose("cgroups.append: appended {}".format(base_path))
 
 if __name__ == '__main__':
 
index c425a4c..320c546 100644 (file)
@@ -117,8 +117,6 @@ class Sliver_LXC(Sliver_Libvirt, Initscript):
                 arch = 'i686'
 
 
-
-
         refImgDir    = os.path.join(Sliver_LXC.REF_IMG_BASE_DIR, vref)
         containerDir = os.path.join(Sliver_LXC.CON_BASE_DIR, name)