"hostname" option is required if the baremetal node name includes capital letters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Harald Jensås |
Bug Description
When using baremetal deployment definition without hostname, but node name with uppercase letters:
- name: Controller
count: 1
instances:
- name: Controller
- name: Compute
count: 1
instances:
- name: Compute
The node provisioning process creates file:
overcloud-
This file is is used when generating the ansible inventory. This file contain the hostnames with uppercase:
Compute:
hosts:
Compute:
< .. config .. >
Controller:
hosts:
Controller:
< .. config .. >
In the code generating the ansible inventory the hostname is lowercase because it is derived from a neutron port `dns_name` property.
The `dns_name` property is always lowercase:
$ openstack port set --dns-name UPPERCASE 3a10d10d-
$ openstack port show 3a10d10d-
+------
| Field | Value |
+------
| dns_name | uppercase |
+------
The code that extend the inventory based on the `inventory-
Since the hostname in inventory is always lowercase, we can convert to lowercase always when generating the `inventory-
Fix proposed to branch: master /review. opendev. org/c/openstack /tripleo- ansible/ +/845486
Review: https:/