Adding a Ubuntu Host's NFS share to oVirt

Hello, Is it possible to use Ubuntu to share an NFS export with oVirt?I'm trying to setup a Backup Domain for my environment. I got to the point of actually adding the new Storage Domain. When I click OK, I see the storage domain appear momentarily before disappearing, at which point I get a message about oVirt not being able to obtain a lock. It appears I'm running into the issue described in this thread: https://lists.ovirt.org/archives/list/users@ovirt.org/thread/BNVXUH5B26FBFCG... ... Although the actual export is ext4, not xfs. From what I'm reading on that thread and elsewhere, it sounds like this problem is a result of SELinux not being present, is that correct? Is my only option here to install an OS that supports SELinux? Sent with ProtonMail Secure Email.

To verify your suspicion , temporarily run 'setenforce 0' on the nodes in the cluster and try again to attach the NFS (via oVirt of course). If it works, then you can check /var/log/audit/audit log for AVC entries (or just run 'sealert -a <log>' )It will tell you what kind of label you will need.Then you can just change in oVirt the mount options and append 'context=<selinux context> and it will work. I remember another issue related to some ubuntu NFS server options, but I can't recall it right now. Best Regards,Strahil Nikolov On Sat, May 22, 2021 at 20:20, David White via Users<users@ovirt.org> wrote: Hello, Is it possible to use Ubuntu to share an NFS export with oVirt?I'm trying to setup a Backup Domain for my environment. I got to the point of actually adding the new Storage Domain. When I click OK, I see the storage domain appear momentarily before disappearing, at which point I get a message about oVirt not being able to obtain a lock. It appears I'm running into the issue described in this thread: https://lists.ovirt.org/archives/list/users@ovirt.org/thread/BNVXUH5B26FBFCG... ... Although the actual export is ext4, not xfs. From what I'm reading on that thread and elsewhere, it sounds like this problem is a result of SELinux not being present, is that correct? Is my only option here to install an OS that supports SELinux? Sent with ProtonMail Secure Email. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/MBDGUQZVNJNV56...

On Sat, May 22, 2021 at 8:20 PM David White via Users <users@ovirt.org> wrote:
Hello, Is it possible to use Ubuntu to share an NFS export with oVirt? I'm trying to setup a Backup Domain for my environment.
I got to the point of actually adding the new Storage Domain. When I click OK, I see the storage domain appear momentarily before disappearing, at which point I get a message about oVirt not being able to obtain a lock.
It may be he issue describe here: https://github.com/oVirt/ovirt-site/pull/2433 The fix is to change this on the serve side: # grep RPCMOUNTDOPTS /etc/default/nfs-kernel-server # --manage-gids is not compatible with oVirt. #RPCMOUNTDOPTS="--manage-gids" RPCMOUNTDOPTS=""
It appears I'm running into the issue described in this thread: https://lists.ovirt.org/archives/list/users@ovirt.org/thread/BNVXUH5B26FBFCG... ... Although the actual export is ext4, not xfs.
The issue is not related to the file system, and it is likely the same issue described in this thread.
From what I'm reading on that thread and elsewhere, it sounds like this problem is a result of SELinux not being present, is that correct?
This seems to be incompatible NFS server defaults on Ubuntu.
Is my only option here to install an OS that supports SELinux?
This is another option, RHEL (like) server is a safe bet. Nir

On Wed, Jun 2, 2021 at 3:08 AM Nir Soffer <nsoffer@redhat.com> wrote:
On Sat, May 22, 2021 at 8:20 PM David White via Users <users@ovirt.org> wrote:
Hello, Is it possible to use Ubuntu to share an NFS export with oVirt? I'm trying to setup a Backup Domain for my environment.
I got to the point of actually adding the new Storage Domain. When I click OK, I see the storage domain appear momentarily before disappearing, at which point I get a message about oVirt not being able to obtain a lock.
It may be he issue describe here: https://github.com/oVirt/ovirt-site/pull/2433
This is the relevant thread: https://lists.ovirt.org/archives/list/users@ovirt.org/thread/G2TQC6XTJTIBAIO...
The fix is to change this on the serve side:
# grep RPCMOUNTDOPTS /etc/default/nfs-kernel-server # --manage-gids is not compatible with oVirt. #RPCMOUNTDOPTS="--manage-gids" RPCMOUNTDOPTS=""
It appears I'm running into the issue described in this thread: https://lists.ovirt.org/archives/list/users@ovirt.org/thread/BNVXUH5B26FBFCG... ... Although the actual export is ext4, not xfs.
The issue is not related to the file system, and it is likely the same issue described in this thread.
From what I'm reading on that thread and elsewhere, it sounds like this problem is a result of SELinux not being present, is that correct?
This seems to be incompatible NFS server defaults on Ubuntu.
Is my only option here to install an OS that supports SELinux?
This is another option, RHEL (like) server is a safe bet.
Nir

Thank you! I decided to go with a RHEL 8 host, which worked perfectly fine. But that brings me to a new question, for which I'll start a new thread. Sent with ProtonMail Secure Email. ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Tuesday, June 1, 2021 9:00 PM, Nir Soffer <nsoffer@redhat.com> wrote:
On Wed, Jun 2, 2021 at 3:08 AM Nir Soffer nsoffer@redhat.com wrote:
On Sat, May 22, 2021 at 8:20 PM David White via Users users@ovirt.org wrote:
Hello, Is it possible to use Ubuntu to share an NFS export with oVirt? I'm trying to setup a Backup Domain for my environment. I got to the point of actually adding the new Storage Domain. When I click OK, I see the storage domain appear momentarily before disappearing, at which point I get a message about oVirt not being able to obtain a lock.
It may be he issue describe here: https://github.com/oVirt/ovirt-site/pull/2433
This is the relevant thread: https://lists.ovirt.org/archives/list/users@ovirt.org/thread/G2TQC6XTJTIBAIO...
The fix is to change this on the serve side:
grep RPCMOUNTDOPTS /etc/default/nfs-kernel-server
==================================================
--manage-gids is not compatible with oVirt.
============================================
#RPCMOUNTDOPTS="--manage-gids" RPCMOUNTDOPTS=""
It appears I'm running into the issue described in this thread: https://lists.ovirt.org/archives/list/users@ovirt.org/thread/BNVXUH5B26FBFCG... ... Although the actual export is ext4, not xfs.
The issue is not related to the file system, and it is likely the same issue described in this thread.
From what I'm reading on that thread and elsewhere, it sounds like this problem is a result of SELinux not being present, is that correct?
This seems to be incompatible NFS server defaults on Ubuntu.
Is my only option here to install an OS that supports SELinux?
This is another option, RHEL (like) server is a safe bet. Nir
participants (3)
-
David White
-
Nir Soffer
-
Strahil Nikolov