Cloud-init inject hostname should support dot and without .novalocal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Undecided
|
Unassigned |
Bug Description
Description of problem:
Cloud-init inject hostname should support dot and without .novalocal.
Version-Release number of selected component (if applicable):
cloud-init 0.7.9
How reproducible:
100%
Steps to Reproduce:
1.create a RHEL7.5/7.4 instance specified the hostname with OpenStack API
2.login VM with hostnamectl to check the hostname
Actual results:
API: hostname=
API: hostname=
Expected results:
The VM hostname is the same as specified in OpenStack API or ECS Console.
Additional info:
# diff __init__.py
usr/lib/
205c205
< toks = lhost.split(
---
> toks = lhost.split(".")
209c209
< #domain = '.'.join(toks[1:])
---
> domain = '.'.join(toks[1:])
Changed in cloud-init: | |
assignee: | nobody → Sibiao Luo (sibiaoluo) |
assignee: | Sibiao Luo (sibiaoluo) → nobody |
Hi,
Could you please test to see if this is still a problem with trunk?
We have daily copr builds at /copr.fedorainf racloud. org/coprs/ g/cloud- init/cloud- init-dev/
https:/
Please test with the builds there and report back.
If it is still a problem, please attach the output of 'cloud-init collect-logs'.
After you've done so, please set the status to 'Confirmed'.
Thanks.