/srv/irclogs.ubuntu.com/2017/09/25/#cloud-init.txt

blackboxswejb1123: a couple of our unit tests mock metadata services, (tests/unittests/test_datasource/test_ec2.py) but I don't think that's what your asking. you probably want a simple way to setup your own rest service in python? flask might present some simple rest servers you could set up.  https://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask02:36
blackboxswthen you'd provide the backend that would serve up your metadata02:37
blackboxsw... maybe other folks have ideas there.02:37
smoserblackboxsw, i think he was asking for metadata servier14:19
smoserhttps://gist.github.com/smoser/1278651/ is one.14:19
smoserthat mimics ec2 (incompletely)14:19
nilujerelease 17.1 4 days ago14:24
niluje!!! <3 smoser14:24
smoserniluje, yeah, horay!14:25
smoserhttps://lists.launchpad.net/cloud-init/msg00106.html14:26
nilujecan't wait to see it into zesty14:26
smoserniluje, you could/should join that low volume mailing list if you're interested in such messages.14:26
niluje(into xenial too?)14:26
smoserzesty and xenial will get SRU at some point.14:26
nilujeSRU?14:27
rharperstable-release-update14:32
rharperit will get pushed into the xenial-updates after some time and testing14:32
nilujeok cool :)14:47
hrybackihey all, trying to figure out why some custom networking isn't working via cloud-init. Following the debugging docs: http://cloudinit.readthedocs.io/en/latest/topics/debugging.html I'm seeing an 'cloud-init error: invalid choice: analyze' upon `$ cloud-init analyze show -i <my init file>` -- not sure if the docs are out of date or if my version of cloud-init doesn't support it14:50
hrybackifwiw: cloud-init 0.7.9 on my system14:50
smoserhrybacki, no 'analyyze' on .7.914:55
hrybackismoser: okay. can I trouble you with a networking question? If I want to disable the default cloud-init behavior of setting eth0 to pick up an IP via dhcp, is setting `network: \n config: disabled` enough to do so? Looking at http://cloudinit.readthedocs.io/en/latest/topics/network-config.html?highlight=network%3A%20disabled specifically14:58
hrybackiI've created a custom-networking.cfg file and copied it into the image in the /etc/cloud/cloud.cfg.d/ dir via `virt-customize --copy-in ...` prior to launching the VM14:59
smoserand the file 'custom-networking.cfg' contains the disable ?15:00
hrybackismoser: aye15:03
smoserhrybacki, then that should work.15:04
hrybackismoser: that is what I thought. I must be doing something wrong or have overlooked something else15:05
smoserhrybacki, should work with content:15:12
smoser network: {config: disabled15:12
smoserer..15:12
smoser network: {config: disabled}15:12
hrybackismoser: okay, networking /is/ coming up as expected but cloud-init is holding up the boot process doing it's lookups. Not sure why this broke but -- the behavior changed in a bump from 7.6 to 7.915:12
hrybackihttps://paste.fedoraproject.org/paste/6RXoPjFoxWEGbs63lJp3iw15:12
hrybacki192.168.23.1 is the host for the respective guest in this instance15:13
smoserhrybacki, well, a full paste would be good15:33
smoserbut it sure seems like it is failing to find anything, which ends up falling back to the ec2 datasource which is a real pita15:33
smoserand sits there and polls some endpoint that you do not have.15:33
hrybackithat is precisely what is happening smoser . I'm just curious why this started happening now and not prior to the version bump15:36
smoserhrybacki, need more info. not sure what you were hoping would work. what is the cloud / platform that you're running this on ?15:36
smoserhrybacki, ^ ?16:26
hrybackismoser: sorry, in meetings. it's an atypical environment. I'm deploying a supplementary libvirt node on which FreeIPA will be running and interacting with an OpenStack deployment laid down by TripleO16:28
smoserso openstack is the platform ?16:28
hrybackithe node is being deployed manually prior to OpenStack being deployed16:29
smoserwhere did you want this node to get its data from?16:30
hrybackinowhere on first boot16:30
smoseri dont know how that ever would have worked.16:31
hrybackismoser: well I'm not sure how it was working before. I was probably using this wrong (out of ignorance) but now with the new version breaking things I'm not really sure what I'm trying to fix. Does that make any sense?16:33
* hrybacki slides back into mtg16:33
smoserhrybacki, i understand , and yeah, nothing was meant to revert. but the "there is no datasource" path never really was supported. i'm not sure how it worked.16:35
smoserpowersj, https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/33128418:44
smoserhttps://git.launchpad.net/cloud-init/tree/debian/patches/ds-identify-behavior-xenial.patch?h=ubuntu/xenial19:00
seditionhi team. stupid question. are all parts of an apt config required? just trying to add a single additional ppa under sources is giving me trouble.19:10
smosersedition, example ?19:15
rharpersmoser: https://bugs.launchpad.net/cloud-init/+bug/171677319:16
ubot5Ubuntu bug 1716773 in cloud-init "cloud-init doesn't cache network_config property in cache" [Undecided,New]19:16
seditionsmoser: sure, here's the apt block with the packages above it for good measure. the rest of my script is all about user setup (which works great) https://pastebin.com/e1kyw7Uz19:19
seditionforgive my ignorance, i'm super new to cloud-init19:19
smosersedition, needs to have '#cloud-config' at the top19:25
smosercloud-init doesnt assume that all data is for it19:25
smoseryou have to tell it the type of data.19:25
seditionSorry, I do have #cloud-config at the time. I was just posting a snippet.19:26
seditions/time/top/19:26
seditioni'll redact the sensitive data and post the full script19:26
smosersedition, http://paste.ubuntu.com/25616466/19:27
smosertry that.19:27
seditionheres the whole thing https://pastebin.com/i9wQ0zDW19:28
seditionsmoser: will do. one moment while i destroy and rebuild19:28
seditionsmoser: No such luck. No entries under /etc/apt/sources.list.d19:36
seditionI've gotta be doing something silly.19:36
seditionchecking the output logs, im hitting errors adding the repository and hitting ubuntu mirrors (which is weird) so it might not be the script.19:55
seditioni'll keep debuggin19:55
seditionthanks!19:55
smosersedition, http://paste.ubuntu.com/25616651/20:05
smoserthat "worked for me"20:05
seditionsmoser: totally an error with my egress configs. i'm a dummy.20:35
seditionSorry to bother, and thanks so much for the patience and help20:35
smosersedition, No worries.20:38
smoserwe're well aware that config is hard to "validate"20:38
smoserand have been workignon a schema for some of the config modules20:38
seditionThat will be slick20:40
powersjsmoser: https://code.launchpad.net/~powersj/cloud-init/+git/cloud-init/+merge/33116720:46
powersjsmoser: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/171868120:48
ubot5Ubuntu bug 1718681 in cloud-init (Ubuntu Artful) "Package copyright file omits Apache 2 license" [Undecided,In progress]20:48
seditionWelp. Everything works. I am really impressed. I just started learning Terraform and figured I might as well do user data scripts correctly with cloud-init.21:21
seditionreally excellent stuff.21:21

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