yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #75336
[Bug 1786744] Re: Cloud-init inject hostname should support dot and without .novalocal
[Expired for cloud-init because there has been no activity for 60 days.]
** Changed in: cloud-init
Status: Incomplete => Expired
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1786744
Title:
Cloud-init inject hostname should support dot and without .novalocal
Status in cloud-init:
Expired
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=ecs-rhel7.4-instance --------> VM: hostname=ecs-rhel7.novanoval
API: hostname=ecs-rhel74-instance --------> VM: ecs-rhel74-instance.novanoval
Expected results:
The VM hostname is the same as specified in OpenStack API or ECS Console.
Additional info:
# diff __init__.py
usr/lib/python2.7/site-packages/cloudinit/sources/__init__.py
205c205
< toks = lhost.split(".novalocal")
---
> toks = lhost.split(".")
209c209
< #domain = '.'.join(toks[1:])
---
> domain = '.'.join(toks[1:])
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1786744/+subscriptions
References