Bug 1271431 - [RFE] Ability to set a hostname in the overcloud from instackenv.json [NEEDINFO]
[RFE] Ability to set a hostname in the overcloud from instackenv.json
Product: Red Hat OpenStack
Classification: Red Hat
Component: os-refresh-config (Show other bugs)
7.0 (Kilo)
Unspecified Unspecified
medium Severity low
: ---
: 10.0 (Newton)
Assigned To: James Slagle
Shai Revivo
: FutureFeature, Triaged, ZStream
Depends On:
  Show dependency treegraph
Reported: 2015-10-13 20:26 EDT by David Hill
Modified: 2017-05-18 02:58 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-05-18 02:58:55 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
jcoufal: needinfo? (shardy)

Attachments (Terms of Use)

  None (edit)
Description David Hill 2015-10-13 20:26:58 EDT
Description of problem:
We would like to be able to specify a hostname in instackenv.json that would be set on the overcloud host when deploying that node in the overcloud.

For example:

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. It's not supported

Actual results:
It's not supported

Expected results:
It should be supported

Additional info:
Comment 2 Matt Wisch 2015-10-29 08:54:37 EDT
It looks like there was already a commit to add basic name functionality:


This would only set the Ironic node name from the "name" tag in the instackenv.json file.

The baremetal instance hostname is set by heat using the format %stackname%-rolename-%index% set in /usr/share/openstack-tripleo-heat-templates/overcloud-without-mergepy.html

Both features would be great to have in OSP 8.
Comment 3 David Hill 2016-02-04 11:20:59 EST
Customers are requesting it for OSP 7 so the question is , is it easy to implement in both?


Comment 4 Mike Burns 2016-04-07 16:54:03 EDT
This bug did not make the OSP 8.0 release.  It is being deferred to OSP 10.
Comment 7 Raviv Bar-Tal 2017-05-18 02:58:55 EDT
Baremetal node name is different the nova server name.
But both can be defined in there relevant configuration 
Baremetal - as shown in the bug description 

Nova server name heat example:
[stack@undercloud-0 virt]$ cat hostnames.yml 


    CephStorageHostnameFormat: 'ceph-%index%'
    ObjectStorageHostnameFormat: 'swift-%index%'
    ControllerHostnameFormat: 'controller-%index%'
    ComputeHostnameFormat: 'compute-%index%'

Note You need to log in before you can comment on or make changes to this bug.