FailedValidation: Hostname is not fully qualified, fails undercloud install

Bug #1801769 reported by wes hayutin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Juan Antonio Osorio Robles

Bug Description

2018-11-05 16:59:47 | 2018-11-05 16:59:47,196 INFO: Transient hostname detected as centos-7-rax-iad-0000338103
2018-11-05 16:59:47 | 2018-11-05 16:59:47,205 ERROR: Undercloud configuration validation failed: Hostname "centos-7-rax-iad-0000338103" is not fully qualified.
2018-11-05 16:59:47 | 2018-11-05 16:59:47,205 DEBUG: An exception occurred
2018-11-05 16:59:47 | Traceback (most recent call last):
2018-11-05 16:59:47 | File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 2263, in install
2018-11-05 16:59:47 | _validate_configuration()
2018-11-05 16:59:47 | File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 865, in _validate_configuration
2018-11-05 16:59:47 | _validate_network()
2018-11-05 16:59:47 | File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 781, in _validate_network
2018-11-05 16:59:47 | validator.validate_config(params, error_handler)
2018-11-05 16:59:47 | File "/usr/lib/python2.7/site-packages/instack_undercloud/validator.py", line 37, in validate_config
2018-11-05 16:59:47 | _validate_value_formats(local_params, error_callback)
2018-11-05 16:59:47 | File "/usr/lib/python2.7/site-packages/instack_undercloud/validator.py", line 107, in _validate_value_formats
2018-11-05 16:59:47 | error_callback(message)
2018-11-05 16:59:47 | File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 767, in error_handler
2018-11-05 16:59:47 | raise validator.FailedValidation(message)
2018-11-05 16:59:47 | FailedValidation: Hostname "centos-7-rax-iad-0000338103" is not fully qualified.
2018-11-05 16:59:47 | 2018-11-05 16:59:47,207 ERROR:
2018-11-05 16:59:47 | #############################################################################
2018-11-05 16:59:47 | Undercloud install failed.
2018-11-05 16:59:47 |

http://logs.openstack.org/76/615376/1/gate/tripleo-ci-centos-7-undercloud-oooq/8a87b57/logs/undercloud/home/zuul/undercloud_install.log.txt.gz#_2018-11-05_16_59_47

http://logs.openstack.org/00/608300/1/gate/tripleo-ci-centos-7-undercloud-oooq/779d0c5/logs/undercloud/home/zuul/undercloud_install.log.txt.gz#_2018-11-05_16_23_42

Revision history for this message
yatin (yatinkarel) wrote :
tags: added: promotion-blocker
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-quickstart-extras (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/615726

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.openstack.org/615730

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-quickstart-extras (master)

Change abandoned by Juan Antonio Osorio Robles (<email address hidden>) on branch: master
Review: https://review.openstack.org/615726

Changed in tripleo:
assignee: nobody → Juan Antonio Osorio Robles (juan-osorio-robles)
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart-extras (master)

Reviewed: https://review.openstack.org/615730
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart-extras/commit/?id=d78d8f5e05271619de630559c89bf08aa349904c
Submitter: Zuul
Branch: master

commit d78d8f5e05271619de630559c89bf08aa349904c
Author: Juan Antonio Osorio Robles <email address hidden>
Date: Tue Nov 6 07:57:19 2018 +0200

    Set undercloud hostname from ansible variables

    This sets the undercloud hostname from ansible variables instead of
    having to call hostnamectl. This also sets a domain to the hostname if
    needed.

    The hostname is set with one of the following cases, in this order of
    precedence

    * When we have undercloud_cloud_domain defined, we use that for the FQDN
    * When we have an FQDN we use that.
    * If not, we default to <hostname>.tripleodomain.example.com

    Note that these are only used if undercloud_undercloud_hostname wasn't
    provided.

    Depends-On: I7705744cab62f432e2e09bf1ee88bba809609cda
    Change-Id: I649d6cb87458f2bc9623c84830a45bdcf54432d4
    Closes-Bug: #1801769

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-quickstart-extras 2.1.1

This issue was fixed in the openstack/tripleo-quickstart-extras 2.1.1 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.