Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

OpenShift: setting up XFS volumes fails during xfs_io #1058

Closed
pohly opened this issue Jan 2, 2022 · 4 comments · Fixed by #1059
Closed

OpenShift: setting up XFS volumes fails during xfs_io #1058

pohly opened this issue Jan 2, 2022 · 4 comments · Fixed by #1059
Assignees
Labels
OpenShift issues occuring on Red Hat OpenShift

Comments

@pohly
Copy link
Contributor

pohly commented Jan 2, 2022

@kirin1994 ran into an issue when testing on OpenShift: volumes with XFS get created, but then the xfs_io command which sets the 2m extsize for huge pages hangs.

Invoking that binary in the PMEM-CSI DaemonSet container via kubectl exec without any parameters also hangs. Invoking it under strace shows that it gets stuck very early, probably even before it reaches main(). This looks like an issue with the kernel or container runtime.

@pohly pohly added the OpenShift issues occuring on Red Hat OpenShift label Jan 2, 2022
@pohly
Copy link
Contributor Author

pohly commented Jan 2, 2022

There is a potential workaround: the work done my xfs_io -c "extsize 2m" <mount point> can also be done directly by the PMEM-CSI driver through the same ioctl calls that xfs_io uses. Using those from Go is possible through cgo.

@pohly pohly self-assigned this Jan 2, 2022
pohly added a commit to pohly/pmem-CSI that referenced this issue Jan 2, 2022
On OpenShift, the xfs_io command that was used while creating XFS volumes hangs
while getting loaded (kernel or container runtime bug?). This problem can be
avoided by making the same ioctl calls as in that binary directly from
the PMEM-CSI driver.

Fixes: intel#1058
pohly added a commit to pohly/pmem-CSI that referenced this issue Jan 3, 2022
On OpenShift, the xfs_io command that was used while creating XFS volumes hangs
while getting loaded (kernel or container runtime bug?). This problem can be
avoided by making the same ioctl calls as in that binary directly from
the PMEM-CSI driver.

Fixes: intel#1058
@pohly
Copy link
Contributor Author

pohly commented Jan 4, 2022

Corresponding upstream issue: https://bugzilla.redhat.com/show_bug.cgi?id=2034194

@pohly
Copy link
Contributor Author

pohly commented Jan 10, 2022

Reopening - we probably need to backport and do a v1.0.2.

@pohly pohly reopened this Jan 10, 2022
pohly added a commit to pohly/pmem-CSI that referenced this issue Jan 12, 2022
On OpenShift, the xfs_io command that was used while creating XFS volumes hangs
while getting loaded (kernel or container runtime bug?). This problem can be
avoided by making the same ioctl calls as in that binary directly from
the PMEM-CSI driver.

Fixes: intel#1058
(cherry picked from commit 4f1a2d8)
@pohly
Copy link
Contributor Author

pohly commented Feb 11, 2022

This is contained in 1.0.2.

@pohly pohly closed this as completed Feb 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
OpenShift issues occuring on Red Hat OpenShift
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant