Bug #7031
closedInventory <FQDN> content differs from hostname --fqdn and may lead to unauthorised nodes
Description
When testing Rudder, at one moment every nodes stopped to being able to get their policies updated. So as always, it was a DNS problem.
The problem was that at that moment, they all decided to send new inventories, and it was after a DHCP new lease - yeah, that would have never happened if not working at 3AM.
In these inventories, the <FQDN> content was <FQDN>myapp.normation.com</FQDN> in place of <FQDN>myapp</FQDN>.
That was because DHCP had modified their resolv.conf, and the new resolv.conf content was:
search normation.com
domain normation.com
nameserver XXXX
But interestingly, on these nodes, "hostname --fqdn" still returned "myapp", and "getent hosts myapp.normation.com" was returning an error. See http://serverfault.com/questions/574301/non-woking-domain-parameter-at-resolv-conf for inputs.
Of course, cf-served.cf was filled with myapp inventory data, so with "myapp.normation.com", and so CFEngine was refusing "myapp" any update.
So, it seems that fusion inventory <FQDN> is filled with a value that IS NOT the DNS resolvable FQDN, so the use of that attribute in 3.1 is really dangerous.