| The warning Warning: Host is missing hostname and/or domain occurs when strict_hostname_checking is disabled and puppet tries to calculate a set of names for the node that may match node declarations in site.pp. The strict hostname checking behavior was changed recently as it could lead to a node getting a catalog it's not supposed to. To trigger the "multiple name" logic, pass the --compile flag. It is still possible to reproduce this error when using puppet lookup --strict_hostname_checking false --node bogus key --compile. In this case puppet lookup generates a node object with the name bogus. Lookup should also set the fqdn parameter so that the annoying message is omitted. In other words, it shouldn't create a node that causes a warning that could have been prevented (by ensuring the fqdn parameter is non-nil). Note the classifier doesn't have a way to determine if a node is bogus or not. It only knows whether or not a node has a valid client cert and whether facts were sent in the node request or can be retrieved from puppetdb. So for example, the classifier can't distinguish between "bogus will never be a valid node" versus "bogus hasn't checked in yet". |