Bug 1350237
| Summary: | Gluster/NFS does not accept dashes in hostnames in exports/netgroups files | |||
|---|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Niels de Vos <ndevos> | |
| Component: | nfs | Assignee: | Niels de Vos <ndevos> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | ||
| Severity: | high | Docs Contact: | ||
| Priority: | medium | |||
| Version: | mainline | CC: | bugs | |
| Target Milestone: | --- | Keywords: | Triaged | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | glusterfs-3.9.0 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1357834 1357835 (view as bug list) | Environment: | ||
| Last Closed: | 2017-03-27 18:15:01 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1357834, 1357835 | |||
|
Description
Niels de Vos
2016-06-26 16:40:06 UTC
Testing with a resolvable hostname can be done like this: - edit /etc/hostname, /etc/sysconfig/network and run 'hostname <new-hostname>' - edit /etc/hosts and add a new line with the external IP and hostname - copy /etc/resolv.conf to a backup location for further reference - statically configure DNS (in /etc/sysconfig/network add DNS1=127.0.0.1) - restart NetworkManager or the network service - /etc/resolve.conf should now contain 'nameserver 127.0.0.1' - install dnsmasq on the system (make sure libvirtd is not running) - find the nameserver from the original resolv.conf (8.8.8.8 in the example) - create the file /etc/dnsmasq.d/upstream-dns.conf with 'server=8.8.8.8' - start dnsmasq and verify it is running - verify with 'host <new-hostname>' that the hostname is in DNS - verify with 'host <public-ip>' that the hostname is in DNS REVIEW: http://review.gluster.org/14809 (nfs: allow hostnames with dashes in exports/netgroups files) posted (#1) for review on master by Niels de Vos (ndevos) REVIEW: http://review.gluster.org/14809 (nfs: allow hostnames with dashes in exports/netgroups files) posted (#2) for review on master by Niels de Vos (ndevos) COMMIT: http://review.gluster.org/14809 committed in master by Jeff Darcy (jdarcy) ------ commit e5221d288e41d29d89d52f8deab657d2285a852c Author: Niels de Vos <ndevos> Date: Sun Jun 26 18:50:27 2016 +0200 nfs: allow hostnames with dashes in exports/netgroups files Hostnames with dashes (like "vagrant-testVM") are not correctly parsed when reading the exports/netgroups files. This bacomes obvious when running ./run-tests-in-vagrant.sh because it causes tests/basic/mount-nfs-auth.t and tests/basic/netgroup_parsing.t to fail. The regex for hostname (in exports) and the entry and hostname (netgroups) parsing does not include the "-" sign, and hence the hostnames are splitted at it. BUG: 1350237 Change-Id: I38146a283561e1fa386cc841c43fd3b1e30a87ad Signed-off-by: Niels de Vos <ndevos> Reviewed-on: http://review.gluster.org/14809 Smoke: Gluster Build System <jenkins.org> NetBSD-regression: NetBSD Build System <jenkins.org> CentOS-regression: Gluster Build System <jenkins.org> Reviewed-by: Jeff Darcy <jdarcy> This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.9.0, please open a new bug report. glusterfs-3.9.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://lists.gluster.org/pipermail/gluster-users/2016-November/029281.html [2] https://www.gluster.org/pipermail/gluster-users/ |