Hostname validation for undercloud is too strict

Bug #1737356 reported by wes hayutin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Won't Fix
Medium
Unassigned

Bug Description

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.

Tags: ux
Changed in tripleo:
assignee: nobody → Martin André (mandre)
status: Triaged → In Progress
Martin André (mandre)
summary: - Disable /etc/hosts checks for containerized undercloud until we
- determine requirements
+ Hostname validation for undercloud is too strict
tags: removed: tech-debt
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to instack-undercloud (master)

Fix proposed to branch: master
Review: https://review.openstack.org/529548

Changed in tripleo:
assignee: Martin André (mandre) → Emilien Macchi (emilienm)
Changed in tripleo:
assignee: Emilien Macchi (emilienm) → Martin André (mandre)
Changed in tripleo:
milestone: queens-3 → queens-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on instack-undercloud (master)

Change abandoned by Martin André (<email address hidden>) on branch: master
Review: https://review.openstack.org/529548

Changed in tripleo:
milestone: queens-rc1 → rocky-1
Changed in tripleo:
milestone: rocky-1 → rocky-2
Revision history for this message
Matt Young (halcyondude) wrote :
Changed in tripleo:
status: In Progress → Triaged
assignee: Martin André (mandre) → nobody
tags: added: ux
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/567520

Changed in tripleo:
assignee: nobody → Bogdan Dobrelya (bogdando)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-tripleoclient (master)

Change abandoned by Bogdan Dobrelya (<email address hidden>) on branch: master
Review: https://review.openstack.org/567520

Changed in tripleo:
status: In Progress → Won't Fix
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Alex Schultz (<email address hidden>) on branch: master
Review: https://review.openstack.org/525286
Reason: Abandoning this patch per the TripleO Patch Abandonment guidelines (https://specs.openstack.org/openstack/tripleo-specs/specs/policy/patch-abandonment.html). If you wish to have this restored and cannot do so yourself, please reach out via #tripleo on freenode or the OpenStack Dev mailing list.

Changed in tripleo:
assignee: Bogdan Dobrelya (bogdando) → nobody
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.