/srv/irclogs.ubuntu.com/2017/08/03/#cloud-init.txt

mbweMorning everybody08:47
smosergood morning mbwe (or afternoon for you now)12:52
smoserpowersj, how'd you do the ascii video things ?16:57
smoserwhat'd you use?16:57
smoserascii cinema ?16:57
powersjsmoser: apt install asciinema16:58
powersjmake an account16:58
powersjand run 'asciinema rec -t "title name"'16:58
powersjdo whatever, then type exit or Ctrl-D16:58
smoserk16:58
rharpersmoser: I think bug 1672833  is fixed-release now;   after some trial/error with getting user-data into the instance correctly (This is the file I attached in the ec2 console http://paste.ubuntu.com/25234630/)  The i3.large launched and formats/mounts the nvme device just fine.18:12
ubot5bug 1672833 in cloud-init "AWS NVME SSD (i3 family) ephemeral storage fails to mount via fs_setup" [Medium,Confirmed] https://launchpad.net/bugs/167283318:12
rharperI suspect the rework on the fs_setup/mount earlier this year resolved the issue18:13
smoserrharper, hm..18:15
smosercan you let me into your instance ?18:15
rharperyes18:15
smoserit is quite possible, even probabable that the funny device name/partition delimiter 'p' caused that18:15
smoserand now is fixed.18:15
rharperyes18:15
rharperI think that might have been it18:16
rharperfollowing the code path, the nvme devices don't have a "special name" so the translator returns None, it's not a metadata disk, so it should just work as a device; my testing in the unittests showed that; so I was wondering if there was some sort of hotplug or something else going on18:16
rharperthat user-data in my paste works fine in a ConfigDrive under KVM with an nvme device, so I tested the i3 and it just works as well18:17
smoserrharper, right. so that works but you had to know that the ephemeral disk was nvme18:18
smoseryou can refer to devices as 'ephemeral0'18:18
rharperwell, it's not clear in the bug what's not working then18:19
rharperthe config in the bug works (if you append the #cloud-config when adding it via the console) on the latest images18:19
rharpersmoser: are you suggesting if they replaced '/dev/nvme0' with 'ephemeral0' that should work ?18:19
smoserhttp://paste.ubuntu.com/25234714/18:19
smoserright18:20
smoserand iv'e wanted to add support for a user to name aliases like that.18:20
smoserso the user coudl then just declare that "ephemeral0" is "/dev/nvme0" or whatever18:20
smoserand override any thing provided by the md18:20
rharperwell, the metadata says ephemeral0 is sdb (which I think this was the bug in the metadata you were alluding to)18:20
smoserthus making your example user-data more easily modified to work with sdb or nvme or whatever18:21
smoserright18:21
rharperI see, ideally, you can write a more common user-data18:21
rharperand if you launch without an nvme it would still work18:21
rharperhrm, I'd like to get clarity; it's not clear from the bug that the submitter intended that18:21
smoseryeah, definitely he submitted it with nvme18:22
smoseras the path18:22
smoserso uyeah18:22
smoserblackboxsw, were you reviewing https://code.launchpad.net/~msaikia/cloud-init/+git/cloud-init/+merge/322991 ?20:11
blackboxswsmoser: I need to close out on that. just got through the fisrt one. will wrap that and rharper's other branch up today20:13
smoserblackboxsw, http://paste.ubuntu.com/25235459/21:06
smoserawesome.21:06
smoseri failed to execute your script file, but i did *my* job, so exit value 021:06
blackboxswrharper: addressed most of your review comments on https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/328241 just pushed21:06
rharperk21:06
smoseri have some in flight there21:06
rharperblackboxsw: what about the find first nic with an address21:07
rharpersmoser: interested in your thoughts on that one too21:07
rharperblackboxsw: smoser: also I had a question about changing the metadata date string;  what's the impact there ?  is it SRU'able?21:10
rharperI suppose it should be similar to how OpenStack has versioned metadata strings; but we keep those around IIRC21:10
blackboxswrharper: yeah was pondering that comment. so we are naturally sorting that list of interface names before looking for a valid address.21:10
rharperblackboxsw: right, but the interface may or may not have an address21:10
rharperideally we filter for all interface with address, then sort21:11
rharpermaybe I'm being overly pedantic here; but I sortof would want similar heuristics used to select the "right" interface that we pick for fallback networking21:12
blackboxswrharper: I don't follow how that's different?21:12
blackboxswif only eth2 and eth4 have a mac address, how would that sort logic change if we filter out by interfaces with mac's first  or during our loop21:13
blackboxswyou are thinking a kernel might bring up a mac address mid-loop?21:13
rharperwell, that's possible, but that's not waht I was thinking;  I was thinking ip address, not mac;   the mac should be stable21:14
rharperbut hotplug is an edge case21:14
rharperwe already have that gap in fallback networking as well (if the "right" one didn't show up till after we've tried to generate a network config)21:14
blackboxswright. yeah I call bad sysfs filename "address" file == mac-address21:14
rharperdoes the fallback code which picks an interface to configure; does that achieve what you want (find me an itnerface to dhcp on)and if so? can we reuse that21:15
rharperI think it does (prefers certain names and other heuristics21:16
rharperI feel it woudl be good to pick in the same way21:16
rharperah, it's not callback (buried in generate_fallback_config)21:17
smoserjust hit 'submit' on my comments.21:17
smoserrharper, it is a *mac* address.21:17
smosernot an ip address.21:17
rharperyeah, I realize that now21:17
rharperbut I'd like to reuse the interface name choice code21:18
rharperit was partially lifted from generate_fallback_config; if we made that a stand-along function, it could get reused21:18
smoseryeah, there is a lot of duplicate-ish code there21:18
smosera function for 'mac_address(nic)' would have made it clearer too :)21:18
rharperright, 75% of generate_fallback_config is "pick the best interface"21:19
smoserhttps://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/32854221:19
smoserwe do have to do something about the api version though. we can't just straight up change that.21:19
smoserthe thing that i had talked with blackboxsw about was to read the list of available api versions21:20
smoserand sect a newer one if we have one.21:20
smoseri think we probably have to do something like:21:20
smoser read the old version instance-id21:20
smoser try:21:20
smoser   see if "%s/" returns a list of YYYY-MM-DD21:21
smoser    if so, check for newer version, and set api_ver = that21:21
smoser  except E:21:21
smoser   that didnt work, use the old api_version21:21
smoserthat way we use the old version unless the md tells us they have the newer version available (and amazon's does)21:22
smoserif theres a lookalike that doesnt, then they should fix their md service.21:22
rharpersmoser: do we do that datestring check in openstack ?21:23
smoserwe do something like it....21:23
smoser_find_workign_version21:23
rharperyeah, looking at that now21:23
blackboxsw+1 on the old/new API version support. I had forgotten about that in the mix. right so we need a fallback to 200921:23
rharperright21:24
rharperblackboxsw: right; that was my concern21:24
rharperit's shame they can't point to the new url in the old metadata21:24
rharperthat way we don't take a hit on a  possible not-present URL21:24
rharpersort of like a union of metadata with a link to the next set21:25
smoserwell, they kind of do21:25
smoserthey list the versions that are present21:25
blackboxswshall we only support  a limited # of release metadata versions ?  SUPPORTED_METADATA_VERSIONS = ['2016-09-02', '2009-04-04',]21:25
blackboxswand attempt to hit each in priority order if present?21:26
rharpersmoser: oh, nice21:26
smoseryou can enter into http://169.254.169.254/21:26
smoserand i think you get a list.21:26
smoserthats what openstack does.21:26
rharperok21:26
smoserthe issue is that i was saying a lookalike might not do that21:26
smoser(aws does)21:26
smoserand we've never depended on that list before.21:26
blackboxswroger. but even if there is a list of X releases reported, should cloud-init attempt only the known MD versions that we have tested against (and skip any interim versions we may not understand)21:27
rharpersmoser: oh, bummer21:28
rharperthat sorta stinks;  so everyone pays for the hit to the new metadata version if it's not there21:28
blackboxswor everyone pays to hit a list endpoint too I guess21:29
blackboxswwe could just make it Ec2Local hitting that MD version21:31
blackboxswbut, still most lookalikes I'd imagine would also allow for init-local dhclient init. hmm21:31
smoserblackboxsw, right. only hit the two that we've known to work.21:32
smoserhit/consider21:32
smoserrharper, but on amazon the metdata service is fast. the "hit" is not a big deal :)21:33
smoserand on amazon also you can always assume any version that your code knows about is there.21:33
smoserinteresting that the only value in the list is to provide clients on a lookalike a way to check.21:34
rharper'any version your code knows about is there'  how does that work ?21:34
blackboxswapproved https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/32854221:45
blackboxswsmoser: aws does provide a list from http://169.254.169.254/21:46
blackboxswnot sure if that's considered "faster" than attempting  a version dir in the metadata sevice that doesn't exist21:46
blackboxswin dumb human testing w/ time  it looks like the list http://169.254.169.254/ plus string match is about comparable  to a 404 on version not present21:49
blackboxswmaybe a little faster to just try the known version and cope w/ the 40421:50
=== nacc_ is now known as nacc

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