Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testAddDiskNFS troubleshooting #1909

Merged
merged 2 commits into from
Nov 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions test/check-machines-disks
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,8 @@ class TestMachinesDisks(machineslib.VirtualMachinesCase):
# iscsi disks are attached.
m.execute("virsh detach-disk subVmTest1 --target vdb")

@testlib.skipImage("triggers kernel oops, https://issues.redhat.com/browse/RHEL-67841",
"rhel-10*", "centos-10")
def testAddDiskNFS(self):
b = self.browser
m = self.machine
Expand All @@ -856,6 +858,12 @@ class TestMachinesDisks(machineslib.VirtualMachinesCase):

m.execute("if selinuxenabled 2>/dev/null; then setsebool -P virt_use_nfs 1; fi")

# HACK: NFS produces dozens of permissive=1 SELinux issues; setroubleshoot runs massively parallel
# on them, and eats up too much RAM and I/O; https://bugzilla.redhat.com/show_bug.cgi?id=2326499
if m.execute("systemctl list-unit-files --no-legend setroubleshootd.service", check=False).strip():
m.execute("systemctl mask --runtime setroubleshootd")
self.addCleanup(m.execute, "systemctl unmask setroubleshootd")

# Prepare a local NFS pool
self.restore_file("/etc/exports")
nfs_pool = os.path.join(self.vm_tmpdir, "nfs_pool")
Expand Down