[00:43] interesting network config openstack change [00:43] https://review.openstack.org/#/c/312626/ [02:06] nice refernce smoser [02:06] reference even === Savicq is now known as Saviq [17:21] some interesting cases in Azure IMDS, the metadata service provides no way to distringuish between static IPs and dynamic IPs. so cloud-init can't really know what to set as dhcp versus static. [17:21] examples in my hackmd doc from earlier [17:21] and running dhcp on eth1 gets only one private addr. [17:23] hm.. [18:33] I am facing util.py[DEBUG]: failed stage init-local" error. it is failing for bond-master keywork. any pointers ? [18:33] File "/usr/lib/python2.7/site-packages/cloudinit/net/sysconfig.py", line 455, in _render_bond_interfaces iface_master_name = iface['bond-master'] [18:33] File "/usr/lib/python2.7/site-packages/cloudinit/net/sysconfig.py", line 455, in _render_bond_interfaces [18:33] iface_master_name = iface['bond-master'] [18:33] KeyError: 'bond-master' [18:37] dgautam, where is this ? [18:38] i'm guessing this is centos based on 2.7 [18:38] and likely fixed in upstream [18:38] you check with a copr repo [18:38] cloudinit.log , I launched a centos 7.5 baremetal image [18:39] I am using cloud-init 0.7.9 [18:39] https://copr.fedorainfracloud.org/coprs/g/cloud-init/cloud-init-dev/ [18:46] smoser: Thanks . I'll try the patch or upgrade cloud-init package to latest [18:49] dgautam, that is a daily build... so it will move. [18:50] i suspect https://copr.fedorainfracloud.org/coprs/g/cloud-init/el-stable/ will be good enouh for you. [18:50] and wont move without us doing some reasonable level of testing (which... means that it is quite old) [18:56] Hi all... May have nothing to do with cloud-init but thought I'd ask: I am calling hostnamectl set-hostname which works when instantiating hosts and it survives a single reboot (Ubuntu 16.04/AWS). I've noticed though that it often loses the hostname on subsequent reboots and reverts to ip-whatever as the host name. Any suggestions on where to look? === r-daneel_ is now known as r-daneel [19:28] blkadder: what does /etc/hostname say ? [19:28] before and after each step ? [19:29] Well, when it is working the correct host name. [19:29] When it is rebooted ip-xxx-xxx-xxx-xxx [19:29] So the file itself is changing. [19:30] Don't know if this is cloud-init, systemd weirdness or something else... [19:30] Heck could be AWS for all I know... [19:31] The weird thing is that with the vast majority of my cloud-init stuff, I do a reboot which works fine (keeps host name). It's subsequent reboots where it loses the name. [19:31] well, cloud-init will set the hostname to the hostname value in the instance metadata; [19:31] Which it does. [19:32] Let me dig around there for a bit. [19:32] Thanks. [19:53] cloud-init is not supposed to set it if you have changed it. [20:01] if cloud-init were changing hostname you [20:02] if cloud-init were changing hostname you will see the following in the cloud-init.logs timestamped after your reboot: " Setting the hostname to " [20:04] the log I referenced is /var/log/cloud-init.log