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

RHEL8 VMs throws "access denied" error while mounting using nfsserver #323

Open
reddybhavaniprasad opened this issue Jun 7, 2022 · 0 comments

Comments

@reddybhavaniprasad
Copy link

reddybhavaniprasad commented Jun 7, 2022

Description of the issue

I have created two RHEL8 VMs from Openstack and setup nfsserver on the first machine and used the second machine as an nfsclient. The installation was smooth but the nfsserver denies the mount from nfsclient.

Steps to reproduce

Steps on nfsserver:

sudo dnf install nfs-utils -y 
sudo systemctl start nfs-server.service
sudo systemctl enable nfs-server.service
sudo systemctl status nfs-server.service
sudo mkdir -p /mnt/k8sMount
sudo chown -R nobody:nobody /mnt
sudo chmod -R 777 /mnt

Update the "/etc/exports" file with the following content,
/mnt/k8sMount        xxx.xxx.xxx.0/24(rw,sync,no_all_squash,root_squash)
sudo exportfs -arv

Steps on nfsclient:

sudo dnf install nfs-utils nfs4-acl-tools
sudo mount -t nfs xxx.xxx.xxx.xxs:/mnt/k8sMount test/

Expected behavior

The nfsclient should be able to mount the data on nfsserver without any issues.

Actual behavior

Error on nfsclient:

mount.nfs: timeout set for Mon Jun  6 08:07:09 2022
mount.nfs: trying text-based options 'vers=4.2,addr=xxx.xxx.xxx.xxs,clientaddr=xxx.xxx.xxx.xxc'
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'vers=4,minorversion=1,addr=xxx.xxx.xxx.xxs,clientaddr=xxx.xxx.xxx.xxc'
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'vers=4,addr=xxx.xxx.xxx.xxs,clientaddr=xxx.xxx.xxx.xxc'
mount.nfs: mount(2): Permission denied
mount.nfs: trying text-based options 'addr=xxx.xxx.xxx.xxs'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 167.254.204.130 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 167.254.204.130 prog 100005 vers 3 prot UDP port 20048
mount.nfs: portmap query retrying: RPC: Unable to receive - Connection refused
mount.nfs: prog 100005, trying vers=3, prot=6
mount.nfs: trying 167.254.204.130 prog 100005 vers 3 prot TCP port 20048
mount.nfs: portmap query failed: RPC: Remote system error - Connection refused
mount.nfs: access denied by server while mounting xxx.xxx.xxx.xxs:/mnt/k8sMount

Note: xxx.xxx.xxx.xxs - refers to nfsserver IP Address & xxx.xxx.xxx.xxc - refers to nfsclient IP Address

RHEL OS Details

NAME="Red Hat Enterprise Linux"
VERSION="8.6 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.6 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.6"

The issue is persisting with a new set of RHEL8 VMs. Please help me to resolve this issue and let me know if you need any more debug logs.

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

No branches or pull requests

1 participant