Hostname validation for undercloud is too strict:
2017-12-21 10:47:02 | + openstack undercloud install
2017-12-21 10:47:03 | 2017-12-21 10:47:03,579 INFO: Logging to /home/jenkins/.instack/install-undercloud.log
2017-12-21 10:47:03 | 2017-12-21 10:47:03,601 INFO: Checking for a FQDN hostname...
2017-12-21 10:47:03 | 2017-12-21 10:47:03,634 INFO: Static hostname detected as undercloud
2017-12-21 10:47:03 | 2017-12-21 10:47:03,643 INFO: Transient hostname detected as undercloud
2017-12-21 10:47:03 | 2017-12-21 10:47:03,644 ERROR: An error occurred during configuration validation, please check your host configuration and try again. Error message: Configured hostname is not fully qualified.
2017-12-21 10:47:03 | Command 'instack-install-undercloud' returned non-zero exit status 1
The validation checks that the hostname (fully qualified or not) is present in the /etc/hosts file and adds it to /etc/hosts otherwise.
However the _check_hostname() function raises an exception if it tries to write the hostname to /etc/hosts and it is not fully qualified.
None of the CI runs I've observed have a fully qualified hostname, and the validation succeeds only because the hostname is already present in /etc/hosts.
Fix proposed to branch: master /review. openstack. org/529548
Review: https:/