Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2217437

Summary: quota fails for nfs mount with ipv6
Product: Red Hat Enterprise Linux 7 Reporter: diederich
Component: quotaAssignee: Nobody <nobody>
Status: CLOSED MIGRATED QA Contact: Murphy Zhou <xzhou>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.9CC: ffilz, yoyang
Target Milestone: rcKeywords: MigratedToJIRA
Target Release: ---Flags: pm-rhel: mirror+
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: 2023-09-23 11:59:58 UTC 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?

Comment 6 RHEL Program Management 2023-09-23 11:52:11 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 7 RHEL Program Management 2023-09-23 11:59:58 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.