Set bmh 'name' in metadata as hostname#842
Conversation
|
/test-v1a3-integration |
|
To be exact, this is the issue we are facing in v1a3 CI . We dont see it in normal integration (v1a4) since in that case the node name is taken from data template:
|
|
/test-integration |
c1db8ad to
09cb4b5
Compare
|
/test-integration |
|
/test-v1a3-integration |
zaneb
left a comment
There was a problem hiding this comment.
How is the ironic node name getting used as the hostname anyway? If we can find a way to stop that it would be preferable.
| softPowerOff = "soft power off" | ||
| powerNone = "None" | ||
| nameSeparator = "~" | ||
| nameSeparator = "-" |
There was a problem hiding this comment.
This is unsafe; if we are going to change it, it must be to . not -.
I thought the same thing - in the metadata we're setting e.g |
The answer appears to be yes, so this name change isn't as "internal" as we originally envisaged - it seems Ironic injects (this is from an openshift environment running the latest BMO) |
It's done using |
This will set 'name' field of metaData as bmh name, otherwise by default ironic name gets set as hostname by default and ~ in hostname seems to be problematic for kubeadm during cloudinit nodeRegistration.
09cb4b5 to
3994584
Compare
|
/test-integration |
|
/lgtm |
|
Thanks @zaneb that seems to work. Tests have passed now. |
|
Thanks @hardys for your insight. |
|
@asalkeld: adding LGTM is restricted to approvers and reviewers in OWNERS files. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: asalkeld, kashifest, maelk The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This will set 'name' field of metaData as bmh name, otherwise by default ironic name gets set as hostname by default and ~ in hostname seems to be problematic for kubeadm during cloudinit nodeRegistration.