/srv/irclogs.ubuntu.com/2016/11/01/#cloud-init.txt

NuxRohi guys, I am trying to move configuration from scripts to cloud-init, in this case creating a swap file. Could anyone tell me what is wrong with my config file? https://paste.fedoraproject.org/467184/99307814/raw/09:39
NuxRobecause no swap is produced09:40
NuxRocloud-init 0.7.8-1-g3705bb5-0ubuntu1~16.04.309:40
smoserNuxRo, that "works for me" here. in a quick test.12:38
smoserNuxRo, can you pastebin /var/log/cloud-init.log ?12:38
NuxRosmoser: sure, https://paste.fedoraproject.org/467252/47800466/raw/12:51
smoserhm.12:53
smoserthat seems sparse.12:53
smosercat you run:12:54
smoser sudo cloud-init single --name=mounts --frequency=always12:54
smoserand paste that again ?12:54
NuxRosmoser: there you go https://paste.fedoraproject.org/467255/4929147/raw/12:57
NuxRoit complains about data source, but I do have it defined https://paste.fedoraproject.org/467257/14780050/raw/12:57
smoserNuxRo, well, it didnt find one... normally it'd find one and cache it to /var/lib/cloud/instance/12:58
smoseri have to run now. i can poke a bit later, where is this running ?12:59
NuxRosome cloudstack cloud in germany, can't disclose12:59
NuxRothanks for the help12:59
NuxRosmoser: found the problem, pebkac as usual, template was generated on kvm, but booted on xen, NIC device naming got messed up. biosdevname=0 net.ifnames=0 to the rescue13:26
NuxRoonce network correctly goes up, cloud-init functions as expected13:26
smoserNuxRo, hm..14:43
smosercloud-init should be resilient to that.14:43
NuxRowell, clearly it's not, the VM had a working interface through which it could get to the datasource15:05
NuxRothis is ubuntu 16.04 with stock cloud-init15:05
smoserperhaps the instance id did not change while the network devices did15:13
ThiagoCMCGuys, how to tell cloud-init, on an Ubuntu 16.04 instance, to ignore the eth1/eth2/eth3/etc, and only configure eth0?15:58
ThiagoCMCAt my Heat template, the eth0 network have dhcp, and eth1 doesn't but, cloud-init goes there and add a static IP for eth1!!! I want it to just ignore it but, how?15:59
smoserThiagoCMC, this is openstack config drive i guess ?16:02
ThiagoCMCyes16:02
smoserYou should be able to modify /etc/network/interfaces.d/50-cloud-init.cfg to your liking after the instance is up.16:03
smoserand it should not be broken16:04
smoserthat is only written currently once per instance16:04
ThiagoCMCThat's what I'm doing but, I would prefer to avoid that... So, there is no way to tell cloud-init to ignore that in first place?16:06
smoserThiagoCMC, not right now there is not.16:06
smoserwould you file a bug and describe your use case ?16:07
ThiagoCMCSure!16:07
ThiagoCMCHere: https://launchpad.net/cloud-init ?16:07
smoseryeah16:10
smoserThiagoCMC, this is someething i'm aware needs a policy, but i'm not sure on what the policy should be.16:10
smoserits kind of tricky...16:11
ThiagoCMCOk, no problem, I'll fill a bug report, with details about this problem. Also publishing the Heat templates that I'm using, to simplify the reproduction.16:18
ThiagoCMCThanks smoser!16:18
NuxRoIf I wanted to override lock_passwd for default user, would a 99_unlock.cfg with this content suffice? https://paste.fedoraproject.org/467493/21945147/raw/17:39
harlowjasmoser https://review.openstack.org/#/c/389324/ :-P17:45
harlowjau still in17:45
harlowjaha17:45
smoser\o/17:47
smoseri'm still important!17:47
harlowja:-P17:49
NuxRowell, that doesn't look like it did it, user still locked18:34
smoserNuxRo, http://paste.ubuntu.com/23412812/18:56
NuxRocheers, was hoping I could get away with fewer lines than that :)19:19
NuxRosince default user is already defined in cloud.cfg, thought maybe just mentioning "default_user" would have been enough19:20
robjosmoser: Another topic, net/sysconfig/py is specific to RHEL, during implementation was there thought given about how this could/would be generalized or is this up to me to take it apart and put it back together in a different way?19:33

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