SUSE / lrbd

GNU Lesser General Public License v2.1
24 stars 19 forks source link

Support both FQDN and short hostname for "host" identifiers #12

Closed rjfd closed 7 years ago

rjfd commented 7 years ago

lrbd is refusing to deploy in a cluster that uses FQDN because the FQDN string does not exactly match with the short hostname.

When configuring iSCSI targets using openATTIC, oA uses FQDN (as provided by DeepSea) as hostname for the portals configuration, which will make lrbd to fail the activation of targets.

Signed-off-by: Ricardo Dias rdias@suse.com

swiftgist commented 7 years ago

@rjfd The socket.gethostname matches the contents of /etc/HOSTNAME. I added the -H option to override that value if needed.

The other issue is that changing the default behavior of lrbd would impact some set of users.

rjfd commented 7 years ago

@swiftgist I updated the PR to support both short and FQDN hostnames