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

[docs] Manual test for nfs "definitively test" under permission is not working #1678

Open
abhisheksahnii opened this issue Jul 6, 2018 · 3 comments

Comments

@abhisheksahnii
Copy link
Contributor

abhisheksahnii commented Jul 6, 2018

Description of the problem

I am having issues while adding NFS export from EMC VNX device to ovirt-engine as it is showing permission issue. So referring to troubleshoot doc i.e.

The easiest way to definitively test that an NFS export is ready for use by oVirt is to:

-Create the vdsm user with uid 36 on the ovirt-engine host if it does not already exist.
-Change to the vdsm user using su - vdsm -s /bin/bash
-Attempt to mount the export on a temporary directory (for example, /tmpmnt) using the following command form: /usr/bin/sudo -n /bin/mount -t nfs -o soft,nosharecache,timeo=600,retrans=6,nfsvers=3 servername:/path/of/export /tmpmnt
-If the mount succeeds, then try to create a file in it via the touch command, i.e. touch /tmpmnt/tempfile

I am getting below error:

sudo: a password is required

Steps to reproduce

su - vdsm -s /bin/bash

Last login: Mon Jul 2 10:33:48 IST 2018 on pts/0
nodectl must be run as root!
nodectl must be run as root!

-bash-4.2$ mkdir test
-bash-4.2$ /usr/bin/sudo -n /bin/mount -t nfs -o soft,nosharecache,timeo=600,retrans=6,nfsvers=3 192.168.1.10:/nfstest test/
sudo: a password is required

@gregsheremeta
Copy link
Contributor

this documentation hasn't been updated in years and is probably unreliable

@gregsheremeta gregsheremeta changed the title Manual test for nfs "definitively test" under permission is not working [docs] Manual test for nfs "definitively test" under permission is not working Jul 6, 2018
@abhisheksahnii
Copy link
Contributor Author

Hey Greg,

I used the below steps as a workaround.

WORKAROUND:

visudo

vdsm ALL=(ALL) NOPASSWD: ALL <--- Append and save.

Then below started working,

/usr/bin/sudo -n /bin/mount -t nfs -o soft,nosharecache,timeo=600,retrans=6,nfsvers=3 servername:/path/of/export /tmpmnt

Later on, I removed that temporary entry from sudoers.

@sandrobonazzola
Copy link
Member

Page moved to https://www.ovirt.org/develop/troubleshooting-nfs-storage-issues.html

The content reported not working is still there.

@nirs , @shenitzky , @vjuranek , @tnisan can you please handle?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants