https://blueprints.launchpad.net/fuel/+spec/node-naming
Configure the hostnames of the slave nodes that Fuel will deploy based on custom naming convention.
The name that is visible in the UI/CLI/API for the node is NOT what is applied as the hostname when the node is deployed. The hostname is dynamically generated (i.e. node-1 .. node-n). New mechanism should has possibility changing hostname before provision process to enable customers to access the device for updates, security checks, etc. and prevent confusion.
This spec proposes to extend UI, fuel-cli and nailgun API as well in order to use custom hostnames prior provisioning stage.
New field ‘setup hostname’ should be added to the UI node settings part
New field should has ability to forbid to rename node after provisioning
Extend node essence with new hostname field in nailgun API extend nailgun node validation API based on custom naming convention checks
Extend fuel-cli to support to set up hostname for example:
fuel node --node-id 15 --set-hostname node-3
None
Node model will include hostname field in nailgun
NodeValidator should be extended to handle incorrect node’s hostname format and duplicates of hostnames within a cluster as well. In case when hostname is not set for node hostname will generated by standard method (node-1...etc)
After upgrade to 7.0 version hostname field will be updated to current generated node hostname: In this case will used standard hostname generation method (node-$ID)
None
None
End user gets --set-hostname additional option via CLI, that not required for changes. Deployed env can work properly with default values.
End user gets new optional field in UI node settings. Where hostname can be changed
None
None
None
None
None
None
Automated testing scenario
Set custom node hostname for a node via CLI:
Manual testing scenario
Set custom node hostname for a node via Fuel UI:
None