diff options
author | Jorge San Emeterio <jsanemet@redhat.com> | 2023-02-08 15:33:54 +0100 |
---|---|---|
committer | Dan Smith <dansmith@redhat.com> | 2023-05-03 15:03:07 -0700 |
commit | 973ff4fc1a0586937d13f2b39e517422713b1003 (patch) | |
tree | 3d64f0da2ab7672efc1d8766e0bae19076e50cde /api-ref/source/os-security-group-default-rules.inc | |
parent | a2964417822bd1a4a83fa5c27282d2be1e18868a (diff) | |
download | nova-973ff4fc1a0586937d13f2b39e517422713b1003.tar.gz |
Have host look for CPU controller of cgroupsv2 location.
Make the host class look under '/sys/fs/cgroup/cgroup.controllers' for support of the cpu controller. The host will try searching through cgroupsv1 first, just like up until now, and in the case that fails, it will try cgroupsv2 then. The host will not support the feature if both checks fail.
This new check needs to be mocked by all tests that focus on this piece of code, as it touches a system file that requires privileges. For such thing, the CGroupsFixture is defined to easily add suck mocking to all test cases that require so.
I also removed old mocking at test_driver.py in favor of the fixture from above.
Partial-Bug: #2008102
Change-Id: I99b57c27c8a4425389bec2b7f05af660bab85610
Diffstat (limited to 'api-ref/source/os-security-group-default-rules.inc')
0 files changed, 0 insertions, 0 deletions