/srv/irclogs.ubuntu.com/2017/03/08/#cloud-init.txt

smosermsaikia, so rebase to master13:28
smoserthat make sense ?13:28
=== rangerpbzzzz is now known as rangerpb
rangerpbsmoser, paulmey i cobbled up a patch where we call perform_hostname_bounce when using only cloud-init to provision; however, i observe later that both the cc_set_hostname and update_hostname override that with incorrect results.18:38
rangerpbshould those be called in an azure deployment ?18:38
rangerpbi think part of the problem is they aren't able to detect a proper hostname or fqdn for some reason ... been poking around at the code... seems the best way to set the hostname is to pluck it from the cdrom's metadata18:39
smosersomething is wrong if they're setting it wrong.18:40
smoserthey should get the write hostname from the metadata and set it.18:40
rangerpbso both of those should run in your opinion smoser?18:40
smoseri think so, yeah.18:41
rangerpbof course, part of the issue is the the hostname stuff boils down to a method in util.py which is unaware of the metadata afaict18:41
rangerpbis there any difference in setting hostname with hostname vs hostnamectl ?18:42
smoserwell, i think there is a bug with setting it with hostnamectl18:44
smoserpossibly that is what you're seeing.18:45
smosercloud-init possibly tries to set it to early ? larsks mentioned something about this.18:45
larsksI'm not sure about too early.  There was an issue concerning cloud-init, hostnamectl, and dbus...but that results in "it all asplode" rather than failure to set the hostname.18:45
larsksBut rangerpb I agree with smosers: the distro update_hostname method should do the right thing.18:46
larsksThat means that the data source needs to provide the correct host name.  If it's not, that's where the problem is happening.18:46
rangerpbdistro update_hostname ?18:46
rangerpbwhat do you mean provide it ?18:47
larsksrangerpb: unless I am crazy, the update_hostname method is provided by the distro class(es).18:47
rangerpbmaybe i am missing something18:47
larsksAnd the data source driver should be providing those methods with the correct hostname.18:47
larsksI have to run to a parent/teach conference.  Back in a bit!18:48
rangerpbwell there is update_hostname defined in distros/__init__.py and there is a cc_update_hostname.py18:49
=== rangerpb is now known as rangerpbzzzz

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!