/srv/irclogs.ubuntu.com/2017/04/10/#cloud-init.txt

=== shardy is now known as shardy_lunch
=== shardy_lunch is now known as shardy
=== jgrimm-away is now known as jgrimm
smoserlarsks, here. reading13:28
larskssmoser: thanks. Any thoughts? Mostly I was confused by the "vendor-data is just like user-data" in the docs vs. the whole discussion about json blobs and a "cloud-init" key in the bug report (e.g., in comment #6).13:54
smoserlarsks, https://public.etherpad-mozilla.org/p/cloud-init-vendordata maybe helps ?13:56
larskssmoser: but it this correct? http://cloudinit.readthedocs.io/en/latest/topics/vendordata.html13:57
larsks"Vendordata is handled exactly like user-data." E.g., pass it a '#cloud-config' file and everything is happy...13:58
larsksThat seems different from "The ideal situation is for vendor-data to come in a dictionary with a top level 'cloud-init' key."13:58
smoserpassing just a 'cloud-config' blob should work, yes.13:59
smoseras the datasource woul d just load that as a string13:59
smoserand pass it to convert_vendordata13:59
smoserwhich would return that string13:59
larsksBut *also* a JSON document (with no #<type> header)?13:59
smoseri'm not sure what you're getting at.13:59
larsksCan the vendor-data blob be a JSON document? (instead of, e.g., a #cloud0-config document)14:00
smoserif its a '#cloud-config' blob that will work. but it will just be a single 'part'14:00
smoserit could be, yes.14:00
smoserbut thats kind of up to the datasource code to know that this vendor might send json14:00
larsksI see.  So for openstack, at least, the assumption is that there is a top-level 'cloud-init' key in the JSON, and the value of that key is a string that is a user-data style format of some sort.14:01
smosera string or a list14:01
smoserbut yeah, thats best. as it is then multiple parts (which is nice) and namespaced to cloud-init14:02
larsksSure.  Thanks. I'm trying to reproduce a problem someone reported and just trying to understand how vendor-data is handled. Thanks!14:02
smoseryeah, those docs are not clear :-(14:03
utlemmingsmoser: hey, sorry I just got back from vacation and was looking at https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/32162314:37
utlemmingit looks like that conflicts with my MP at: https://code.launchpad.net/~utlemming/cloud-init/+git/cloud-init-1/+merge/32118314:37
utlemmingspecifically, my MP allows for arbitrary nics14:38
smoserutlemming, well, i did drop the nic renaming. but that is by desing.14:47
smoserso the scenario that you were trying to allow for (i think) should never occur.14:47
smoseryou were papering over an problem where the metadata described nics attached that were not attached.14:48
smoser(by mac address)14:48
smoseri think14:48
smoseryeah. if digital oceans metadata gives me bad data, cloud-init randomly picking a "first nic" is not really going to do anyone any good.14:49
utlemmingsure, that makes sense14:52
utlemmingI'm double checking my MP because I think yours and mine does the same thing14:52
utlemmingsmoser: so https://git.launchpad.net/~utlemming/cloud-init/tree/cloudinit/sources/helpers/digitalocean.py?h=lp-1676908&id=ca7acab88e42d8861ea00b2e1ca12fb58ea7a7bb is what I proposed14:54
utlemmingand that drops the entire warn thing14:54
utlemminglet me fix that up real fast to give you the explicit check14:54
smoserwhich warn thing ?14:55
utlemminghttps://git.launchpad.net/~smoser/cloud-init/tree/cloudinit/sources/helpers/digitalocean.py?h=feature/digital-ocean-more-strict&id=09b7035d3f448b1f8b7fab29d3884c903bce8d97#n14814:55
smoserutlemming, so that warn happens when cloud-init sees a 'nic type' that it doesnt understand.14:57
smoserie, 'public' or 'private'.14:57
smoserif d.o added a new 'semi-private' type14:57
smoserthen cloud-init would warn there.14:57
utlemmingright, and I've dropped that logic14:58
smoserwhich i think is sane. we could raise a RuntimeException14:58
smoserbut at very least we should warn.14:58
utlemmingI dropped it for a couple of a reasons, mostly be because we'14:58
utlemmingwe have seen problems on our private management network with it14:58
utlemmingbecause we have a 'management' network that we use14:58
utlemmingand it breaks in that space14:59
smoserwell, what is the right thing to do there ?15:01
smosera.) handle correctly the 'management' network15:01
smoserb.) WARN "hey, there is this thing called management i dont understand!"15:01
smoserc.) FAIL "hey, there is this thing...."15:01
smoserin my mp, i think taht its just doing 'b'15:01
smoserd.) add minimal knowledge of 'management' and change that to just do nothing but with a DEBUG message15:02
smoserbut doing nothing doesnt seem right15:02
smoserutlemming, i have to run, i'm sorry. i'll be back in tomorrow AM15:03
erick3khello15:03
erick3knacc i ended up installing ubuntu 16 manually15:03
erick3k0 problems15:03
naccerick3k: rather than using cloud-init?15:04
utlemmingsmoser: sure thing, I'll look at it and send something up :)15:04
utlemmingthanks for looking15:04
erick3knacc i mean rather than using cloud image15:04
erick3ki isntalled ubuntu with the iso15:04
naccerick3k: ah15:04
erick3kworks like a charm man15:04
naccerick3k: but you are using the 14.04 cloud image?15:05
erick3kexcept for the 5 mins timout that i removed is perfect15:05
erick3kyes 14.04 is cloud image and works15:05
erick3kanyways15:05
erick3ki installed debian 8 (iso cloud image also does not work properly)15:06
erick3kand installed cloud-init but the / partition does not grow15:06
erick3ktried installing cloud-initiramfs-growroot but does not exist15:06
erick3kany idea whats the package needed ? i thought cloud-init came with it15:06
naccerick3k: no idea, maybe smoser or rharper know15:08
erick3kty15:08
erick3kfound it apt-get install cloud-initramfs-growroot i think15:09
rharpergrowroot requires specific partitioning15:11
naccerick3k: ah, typo before?15:11
rharperit basically calls resize2fs15:11
erick3knacc i guess haha15:11
rharperso, if you're root device has no extra partitions past where root is (like say root is on sda1 and no other partitions, but free space)15:11
rharperthen resize can grow15:11
erick3krharber by specific you mean a single / partition with ext4?15:12
rharpery15:12
naccrharper: oh that makes sense -- just a general wrapper around that normal use-case?15:12
erick3kyes thats how i install my templates so should work now15:12
rharpernacc: yes15:13
rharperopenstack for example can have arbitrary sized block devices15:13
rharperso they lay down the cloud-image, and upon first boot, will grow the rootfs to fill the disk15:13
naccrharper: right, that makes sense15:13
naccand means you don't need to know the disk size up front15:13
rharperunless you inject your own config (cloud-init can also do disk partitioning and such)15:13
rharpernacc: exactly15:13
erick3know it worked, wonder why apt-get install cloud-init doesn't install the growpart utility15:22
naccerick3k: presumably because installing that package changes functionality which should be opt-in not on by default?15:23
rharperit's part of the cloud-guest-utils15:24
erick3knacc i agree but i think it is installed on ubuntu and not on debian15:24
rharperso it's in the *guest* image by default;  the server ISO is not a cloud image itself15:24
erick3kok15:25
=== rangerpbzzzz is now known as rangerpb
rharperthere's always a tradeoff w.r.t default package lists15:25
=== rangerpb is now known as rangerpbzzzz
powersjsmoser: I found a bug with a reference to "ci-tool". Appears to be https://bazaar.launchpad.net/~smoser/cloud-init/ci-tool/view/head:/ci-tool22:29
powersjIs this in cloud-init under a new name now or just a handy utility you had?22:29
rharperpowersj: I've not heard of ci-tool22:44
rharperunder bazaar means it's likely and older tool22:44
powersjrharper: ok, thanks!22:44
rharperlooks like a handy util;  it could be merged under cloud-init/tools  if it's still useful22:45
powersjrharper: there was a suggestion to put it in cloud-utils as well22:49
rharperah22:55
rharperpowersj: that's also a possibility22:55

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