#984800 Remove dependency on cgroup-tools

Package:
src:mininet
Source:
mininet
Submitter:
Santiago Ruano Rincón
Date:
2024-06-22 15:03:02 UTC
Severity:
important
Tags:
#984800#5
Date:
2021-03-08 14:30:58 UTC
From:
To:
Hi Tomasz,

cgroup-tools (src:libcgroup) is now tagged to be autoremoved from
testing due to https://bugs.debian.org/959022

mininet should have to get rid of any cgroup-tools/cgroup1-related
stuff.

Cheers,

#984800#10
Date:
2021-03-17 16:08:57 UTC
From:
To:
Hi Michael,

El 17/03/21 a las 15:01, Michael Biebl escribió:

Yeah, answering that was actually the main purpose of my question!
personally a little bit. In a basic use as mine, mininet works (so I
could drop the dependency).
But it is broken if you need to do stuff that relies on cgroups:
e.g. running `python3 /usr/share/doc/mininet/examples/limit.py`
fails:
Traceback (most recent call last):
  File "/usr/share/doc/mininet/examples/limit.py", line 61, in <module>
    limit()
  File "/usr/share/doc/mininet/examples/limit.py", line 37, in limit
    net = Mininet( topo=myTopo, intf=intf, host=host, waitConnected=True )
  File "/usr/lib/python3/dist-packages/mininet/net.py", line 178, in __init__
    self.build()
  File "/usr/lib/python3/dist-packages/mininet/net.py", line 508, in build
    self.buildFromTopo( self.topo )
  File "/usr/lib/python3/dist-packages/mininet/net.py", line 479, in buildFromTopo
    self.addHost( hostName, **topo.nodeInfo( hostName ) )
  File "/usr/lib/python3/dist-packages/mininet/net.py", line 232, in addHost
    h = cls( name, **defaults )
  File "/usr/lib/python3/dist-packages/mininet/util.py", line 587, in customized
    return cls( *args, **kwargs )
  File "/usr/lib/python3/dist-packages/mininet/node.py", line 692, in __init__
    CPULimitedHost.init()
  File "/usr/lib/python3/dist-packages/mininet/node.py", line 871, in init
    mountCgroups()
  File "/usr/lib/python3/dist-packages/mininet/util.py", line 548, in mountCgroups
    raise Exception( "cgroups not mounted on " + cgdir )
Exception: cgroups not mounted on /sys/fs/cgroup

mininet code that relies on cgroupv1, e.g.:
https://sources.debian.org/src/mininet/2.3.0-1/mininet/node.py/#L695
https://sources.debian.org/src/mininet/2.3.0-1/mininet/util.py/#L541
should have to be patched to be able to run with cgroupv2. A priori, the
upgraded cgroup-tools would make that easier.


I have no idea about cinder and nova, I let the maintainers give their input.

Maybe. It is maybe difficult to notice since some tools don't have a
significant number of users that run testing or unstable (that's my case
with mininet).

Cheers,

#984800#15
Date:
2021-03-24 10:52:00 UTC
From:
To:
Lowering the severity, #959022 has been "downgraded" to important.
#984800#24
Date:
2021-08-27 20:54:38 UTC
From:
To:
El 08/03/21 a las 15:30, Santiago Ruano Rincón escribió:

Now that libcgroup 2.0 has landed in unstable, mininet could use it to
support cgroup2.

Cheers,

#984800#29
Date:
2024-06-22 15:01:59 UTC
From:
To:
Control: retitle -1 mininet: support for cgroup v2