uyuni icon indicating copy to clipboard operation
uyuni copied to clipboard

Server installation mentions FQHN instead of FQDN

Open nodeg opened this issue 2 years ago • 7 comments
trafficstars

Problem description

During the installation of the Uyuni server, @mtravitzky saw an error mentioning Illegal FQHN and we were both wondering what is meant with that and if it could be a typo or at least not the appropriate term.

@juliogonzalez already found an RFC mentioning an FQHN: https://datatracker.ietf.org/doc/html/rfc2109

Fully-qualified host name (FQHN) means either the fully-qualified domain name (FQDN) of a host (i.e., a completely specified domain name ending in a top-level domain such as .com or .uk), or the numeric Internet Protocol (IP) address of a host. The fully qualified domain name is preferred; use of numeric IP addresses is strongly discouraged.

A simple search in the code revealed 16 files that mention FQHN: https://github.com/search?q=repo%3Auyuni-project%2Fuyuni+FQHN&type=code

It needs to be clarified, if the term should be left this way, replaced with FQDN or if we should use a different sentence. The documentation mentions FQDN.

Steps to reproduce

  1. Do an Uyuni server installation
  2. When setting up the server and specifying an FQDN, use a wrong one
  3. Observer the Illegal FQHN warning you see in the screenshot below

Uyuni version

2023.04

Uyuni proxy version (if used)

No response

Useful logs

No response

Additional information

image

nodeg avatar Sep 14 '23 09:09 nodeg

@nodeg does YaST support an IP there? And if so... does Uyuni work later?

juliogonzalez avatar Sep 14 '23 09:09 juliogonzalez

This needs to be verified by @mtravitzky.

nodeg avatar Sep 14 '23 09:09 nodeg

The message says $it needs at least two dots. That only makes sense when $it means a domain name, not an IP address. Asking for two dots is, btw, ambiguous: do we ask for suma.example.com or example.com.?

agraul avatar Sep 15 '23 09:09 agraul

At least, but it can be more.

An IPv4 address has three (1.1.1.1), and a FQDN/FQHN can have three as well (uyuni.eu.example.com) or more.

But on the other hand IPv6 has none at all.

But I agree, even saying two is ambiguous.

juliogonzalez avatar Sep 15 '23 10:09 juliogonzalez

What it comes down to is this case: is uyuni.showtime. the kind of FQDN Uyuni can work with ?

If not, the message needs an update. It would be enough to include that a trailing dot is not counted towards the two (or phrased differently, we need at least 3 non-empty labels).

agraul avatar Sep 15 '23 11:09 agraul

Yes, but there's also the question about FQDN vs FQHN... according to what @Bischoff said, the doc clearly says they are not (I never tested it myself, but I don't see a good reason for using an IP to identify the server and emit the SSL certificate, etc, in particular not when remembering IPv6 will be next to impossible).

juliogonzalez avatar Sep 15 '23 11:09 juliogonzalez

Hey everyone. The conversation is stale for some time already. Do you have any other suggestions?

avshiliaev avatar Nov 16 '23 10:11 avshiliaev