/srv/irclogs.ubuntu.com/2018/06/06/#cloud-init.txt

smoserinteresting network config openstack change00:43
smoser https://review.openstack.org/#/c/312626/00:43
blackboxswnice refernce smoser02:06
blackboxswreference even02:06
=== Savicq is now known as Saviq
blackboxswsome 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
blackboxswexamples in my hackmd doc from earlier17:21
blackboxswand running dhcp on eth1 gets only one private addr.17:21
smoserhm..17:23
dgautamI am facing util.py[DEBUG]: failed stage init-local" error. it is failing for bond-master keywork. any pointers ?18:33
dgautam  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
dgautam  File "/usr/lib/python2.7/site-packages/cloudinit/net/sysconfig.py", line 455, in _render_bond_interfaces18:33
dgautam    iface_master_name = iface['bond-master']18:33
dgautamKeyError: 'bond-master'18:33
smoserdgautam, where is this ?18:37
smoseri'm guessing this is centos based on 2.718:38
smoserand likely fixed in upstream18:38
smoseryou check with a copr repo18:38
dgautamcloudinit.log , I launched a centos 7.5 baremetal image18:38
dgautamI am using cloud-init 0.7.918:39
smoserhttps://copr.fedorainfracloud.org/coprs/g/cloud-init/cloud-init-dev/18:39
dgautamsmoser: Thanks . I'll try the patch or upgrade cloud-init package to latest18:46
smoserdgautam, that is a daily build... so it will move.18:49
smoseri suspect https://copr.fedorainfracloud.org/coprs/g/cloud-init/el-stable/ will be good enouh for you.18:50
smoserand wont move without us doing some reasonable level of testing (which... means that it is quite old)18:50
blkadderHi 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?18:56
=== r-daneel_ is now known as r-daneel
rharperblkadder: what does /etc/hostname say  ?19:28
rharperbefore and after each step ?19:28
blkadderWell, when it is working the correct host name.19:29
blkadderWhen it is rebooted ip-xxx-xxx-xxx-xxx19:29
blkadderSo the file itself is changing.19:29
blkadderDon't know if this is cloud-init, systemd weirdness or something else...19:30
blkadderHeck could be AWS for all I know...19:30
blkadderThe 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
rharperwell, cloud-init will set the hostname to the hostname value in the instance metadata;19:31
blkadderWhich it does.19:31
blkadderLet me dig around there for a bit.19:32
blkadderThanks.19:32
smoser1cloud-init is not supposed to set it if you have changed it.19:53
blackboxswif cloud-init were changing hostname you20:01
blackboxswif cloud-init were changing hostname you will see the following in the cloud-init.logs timestamped after your reboot: " Setting the hostname to <someamazingname>"20:02
blackboxswthe log I referenced is /var/log/cloud-init.log20:04

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