gluster / glusterfs

Gluster Filesystem : Build your distributed storage in minutes
https://www.gluster.org
GNU General Public License v2.0
4.51k stars 1.07k forks source link

Error in loopback detection fails hostnamens starting with 0. #4309

Closed foertel closed 3 months ago

foertel commented 3 months ago

Description of problem: When using a hostname that starts with 0. gluster does not create volumes.

The exact command to reproduce the issue: gluster volume create storage 0.nodes.example.org

The full output of the command that failed: Please provide a valid hostname/ip other than localhost, 127.0.0.1 or loopback address (0.0.0.0 to 0.255.255.255).

Expected results: Well ...

- The operating system / glusterfs version: Ubuntu 22.04.3 LTS glusterfs 10.1

aravindavk commented 3 months ago

CLI parser issue.

https://github.com/gluster/glusterfs/blob/da2391dacd3483555e91a33ecdf89948be62b691/cli/src/cli-cmd-parser.c#L131-L138