Bug 2217437

Summary: quota fails for nfs mount with ipv6
Product: Red Hat Enterprise Linux 7 Reporter: diederich
Component: quotaAssignee: Nobody <nobody>
Status: NEW --- QA Contact: Murphy Zhou <xzhou>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.9CC: ffilz, yoyang
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description diederich 2023-06-26 09:01:56 UTC
Description of problem:

nfs]# quota
quota: error while getting quota from [fd9b:2386:8ae2:a6af:1:1:1:1]:/mnt/gpfs0/nfs for root (id 0): Connection refused

when mounting an nfs share with ipv6 ie 

mount -t nfs [fd9b:2386:8ae2:a6af:1:1:1:1]:/mnt/gpfs0/nfs /mnt/nfs/


same mount with ipv4 - quota commands returns rc=0

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. enable nfs-server, quotad, add ipv6 address to an interface
2. mount using ipv6
3. from mounted dir, run "quota"

Actual results:
 Connection refused

Expected results:
-- (rc=0)

Additional info:

Comment 3 diederich 2023-06-26 09:40:51 UTC
it seems no attempt is made to contact quotad

[root@md-11 nfs]# strace quota
execve("/usr/bin/quota", ["quota"], 0x7fffd28af8c0 /* 25 vars */) = 0
brk(NULL)                               = 0x562c9f921000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6a69b47000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=54975, ...}) = 0
mmap(NULL, 54975, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6a69b39000
close(3)                                = 0
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`&\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2156272, ...}) = 0
mmap(NULL, 3985920, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6a69559000
mprotect(0x7f6a6971d000, 2093056, PROT_NONE) = 0
mmap(0x7f6a6991c000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c3000) = 0x7f6a6991c000
mmap(0x7f6a69922000, 16896, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f6a69922000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6a69b38000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6a69b36000
arch_prctl(ARCH_SET_FS, 0x7f6a69b36740) = 0
mprotect(0x7f6a6991c000, 16384, PROT_READ) = 0
mprotect(0x562c9d994000, 4096, PROT_READ) = 0
mprotect(0x7f6a69b48000, 4096, PROT_READ) = 0
munmap(0x7f6a69b39000, 54975)           = 0
brk(NULL)                               = 0x562c9f921000
brk(0x562c9f942000)                     = 0x562c9f942000
brk(NULL)                               = 0x562c9f942000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=106176928, ...}) = 0
mmap(NULL, 106176928, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6a63016000
close(3)                                = 0
rt_sigaction(SIGSEGV, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f6a6958f400}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
stat("/proc/fs/xfs/stat", 0x7ffedb5e4ce0) = -1 ENOENT (No such file or directory)
quotactl(QCMD(Q_XGETQSTAT, USRQUOTA), "/dev/root", 0x7ffedb5e4c90) = -1 ENOENT (No such file or directory)
stat("/proc/sys/fs/quota", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
rt_sigaction(SIGSEGV, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f6a6958f400}, NULL, 8) = 0
getuid()                                = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1746, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6a69b46000
read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1746
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f6a69b46000, 4096)            = 0
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=54975, ...}) = 0
mmap(NULL, 54975, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6a69b39000
close(3)                                = 0
open("/lib64/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260!\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=61560, ...}) = 0
mmap(NULL, 2173048, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6a62e03000
mprotect(0x7f6a62e0f000, 2093056, PROT_NONE) = 0
mmap(0x7f6a6300e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0x7f6a6300e000
mmap(0x7f6a63010000, 22648, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f6a63010000
close(3)                                = 0
mprotect(0x7f6a6300e000, 4096, PROT_READ) = 0
munmap(0x7f6a69b39000, 54975)           = 0
open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1574, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6a69b46000
read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1574
close(3)                                = 0
munmap(0x7f6a69b46000, 4096)            = 0
open("/proc/mounts", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6a69b46000
read(3, "sysfs /sys sysfs rw,seclabel,nos"..., 1024) = 1024
read(3, ",pids 0 0\ncgroup /sys/fs/cgroup/"..., 1024) = 1024
read(3, "e mqueue rw,seclabel,relatime 0 "..., 1024) = 815
lstat("/mnt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/mnt/nfs", {st_mode=S_IFDIR|0755, st_size=32768, ...}) = 0
statfs("/mnt/nfs", {f_type=NFS_SUPER_MAGIC, f_bsize=1048576, f_blocks=4096, f_bfree=4032, f_bavail=4032, f_files=65792, f_ffree=61251, f_fsid={val=[0, 0]}, f_namelen=255, f_frsize=1048576, f_flags=ST_VALID|ST_RELATIME}) = 0
stat("/mnt/nfs", {st_mode=S_IFDIR|0755, st_size=32768, ...}) = 0
read(3, "", 1024)                       = 0
close(3)                                = 0
munmap(0x7f6a69b46000, 4096)            = 0
stat("[fd9b:2386:8ae2:a6af:1:1:1:1]:/mnt/gpfs0/nfs", 0x562c9f927440) = -1 ENOENT (No such file or directory)
geteuid()                               = 0
stat("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=55, ...}) = 0
open("/etc/host.conf", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=9, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6a69b46000
read(3, "multi on\n", 4096)             = 9
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f6a69b46000, 4096)            = 0
open("/etc/resolv.conf", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=55, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6a69b46000
read(3, "# Generated by NetworkManager\nna"..., 4096) = 55
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f6a69b46000, 4096)            = 0
uname({sysname="Linux", nodename="md-11", ...}) = 0
stat("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=55, ...}) = 0
open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1574, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6a69b46000
read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1574
close(3)                                = 0
munmap(0x7f6a69b46000, 4096)            = 0
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2502, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6a69b46000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2502
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f6a69b46000, 4096)            = 0
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/quota.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/quota.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/quota.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/quota.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/quota.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/quota.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "quota: ", 7quota: )                  = 7
write(2, "error while getting quota from ["..., 112error while getting quota from [fd9b:2386:8ae2:a6af:1:1:1:1]:/mnt/gpfs0/nfs for root (id 0): Connection refused
) = 112
exit_group(0)                           = ?
+++ exited with 0 +++

Comment 4 diederich 2023-08-15 15:11:58 UTC
is there a plan to fix this ? Internal Target Release: --- → 7.9.z - does this have a date?