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

mgerdts@smoser - I pushed some updates for my merge proposal.  Not sure if I should have clicked "resubmit proposal".  Still learning the ropes with LP.  https://code.launchpad.net/~mgerdts/cloud-init/+git/cloud-init/+merge/34311815:49
=== mgagne_ is now known as mgagne
smosermgerdts: no. dont push 'resubmit' just git push over the top15:51
mgerdtsI did a git push.  Should I have squashed, then push -f?15:53
smosermgerdts: you dont have to squash. we squash when we merge.15:56
smoserand generally, it is nice to  see commits that say "addressed feedback"15:56
smoserie, as you did it is really nice. thank you.15:56
mgerdts:)15:56
mgerdtsThe one thing I've not figured out is a portable way to deal with the byte comparisons, other than ord()15:57
mgerdtsI dislike having special code to help tests pass - there's probably a better way for me to do side_effects but I don't know what that is.15:58
smosermgerdts: ok. i can poke a bit anad see if i can improve that.16:00
mgerdtsthanks16:01
blackboxswlooks like it's cloud-init status meeting time again16:01
smosero/16:01
blackboxsw#startmeeting Cloud-init bi-weekly status meeting16:01
meetingologyMeeting started Mon Apr 16 16:01:49 2018 UTC.  The chair is blackboxsw. Information about MeetBot at http://wiki.ubuntu.com/meetingology.16:01
meetingologyAvailable commands: action commands idea info link nick16:01
rharpero/16:02
blackboxswHi folks, welcome to cloud-init's bi-weekly status meeting. Feel free to interject at any time or bring up branches/bugs/questions over the next 30-60 mins. We'll have a number of folks around to get eyes and/or keyboards onto any problems.16:03
dpb1o/16:03
blackboxswAs always we'll go through the following topics (feel free to suggest others): Recent-changes, In-progress Development, and ~30 mins Office Hours)16:04
blackboxsw#topic Recent-changes16:04
blackboxswa quick rundown of the hi level changes landed:16:06
blackboxswPrune integration test artifacts16:06
blackboxswAdd support for LXD 3.0, fix pylxd integration test dependency16:06
blackboxswFix Ubuntu proposed integration test CI job16:06
blackboxswFix ec2 validation of instance-data.json network info16:06
blackboxswDo not retry optional userdata on 404 (LP: #1702160)16:06
blackboxswAdd explicit cloud-init package dependency on isc-dhcp-client (LP: #1759307)16:06
ubot5`Launchpad bug 1702160 in cloud-init "OpenStack datasource should not retry user-data on 404" [Medium,Fix released] https://launchpad.net/bugs/170216016:06
ubot5`Launchpad bug 1759307 in cloud-init (Ubuntu) "missing dependency on isc-dhcp-client (dhclient)" [Medium,Fix released] https://launchpad.net/bugs/175930716:06
blackboxswadditionally from most recent commits we have:16:08
blackboxswtools: Fix make-tarball cli tool usage for development16:08
blackboxswrenderer: support unicode in render_from_file.16:08
blackboxswImplement ntp client spec with auto support for distro selection16:08
blackboxswApport: add Brightbox, IBM, LXD, and OpenTelekomCloud to list of clouds.16:08
blackboxswtests: fix ec2 integration network metadata validation16:08
blackboxswtests: fix integration tests to support lxd 3.0 release16:08
blackboxswcorrect documentation to match correct attribute name usage.16:08
blackboxswcc_resizefs, util: handle no /dev/zfs16:08
blackboxswLast week rharper found and fixed a regression in zfs resize behavior that was blocking our ubuntu SRU16:09
blackboxswWe have uploaded those fixes, as well as rharper's ntp spec changes (which should incorporate a number of robjo's opensuse/sles needs too)16:09
blackboxswanything else notable that I'm missing gentlemen?16:10
blackboxswIf not, I'll jump to in-progress development16:10
blackboxsw#topic In-progresss Development16:11
blackboxswSo, on the ubuntu side of the house we are about to approve the cloud-init 18.2 SRU (Stable release update) into xenial and artful. Just one more validation run and we should be good to see 18.2.4 on xenial, artful. Ubuntu Bionic is already a few commits beyond that.16:13
blackboxswOn Ubuntu as well we are beating the drop to the Bionic LTS (Long term release) feature/bug freeze.16:13
blackboxswThis week marks the last week for use to get fixes into Bioinic images before that release is cut.16:14
blackboxswso we'll be heads down on any Bionic-specific changes that need to get in.16:14
blackboxswFeel free to checkout our trello board @16:14
blackboxsw#link https://trello.com/b/hFtWKUn3/daily-cloud-init-curtin16:14
blackboxswwe track all tasks we are working on in public view there so if there are any questions you can ping one of us here about our development efforts16:15
blackboxswadditional tasks that are in flight:  bash-autocompletion for cloud-init CLI (rhaper).  dropping ifconfig and route in favor of 'ip' (bbsw), and moving openstack datasource to cloud-init's local stage16:17
blackboxsw(smoser)16:17
blackboxswalso a couple of bugs to fix such as #157099716:17
blackboxsw#link https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/175940616:17
ubot5`Ubuntu bug 1759406 in cloud-init (Ubuntu) "sru cloud-init (17.2-35-gf576b2a2-0ubuntu1~16.04.1 update to 18.2-4-g05926e48-0ubuntu1)" [Medium,Confirmed]16:17
blackboxswoops paste fail:16:17
blackboxsw#link https://bugs.launchpad.net/bugs/157099716:17
ubot5`Ubuntu bug 1570997 in ssh-import-id (Ubuntu Xenial) "fail if HOME environment variable is not set" [Low,Fix committed]16:17
blackboxswI think that about wraps in-progress development, anything else that should be noted smoser rharper ?16:18
rharperI think you covered it16:18
smoserssh-import-id is not relally at all related to cloud-init16:18
smoserthanks blackboxsw16:19
blackboxswoops grabbed the wrong one, was thinking about this card16:19
blackboxsw#link https://trello.com/c/JVaXSfpo/749-eol-fix-for-ssh-file16:19
smoserright.16:19
blackboxswalso of note, in some of our SRU testing we found time-tracking gaps in cloud-init analyze tracking on Azure. rharper put of a logging tracker fix to avoid those tracking gaps16:21
blackboxsw#link https://code.launchpad.net/~raharper/cloud-init/+git/cloud-init/+merge/34312316:21
smoseri'll point out one thing i just finished up with...16:21
smoserfor testing ubuntu, the https://github.com/cloud-init/ubuntu-sru/ has 'get-proposed-cloudimg' and 'lxc-proposed-snapshot'16:22
smoserwhich now work more like each other.l and can do more than just upgrade cloud-init.16:22
blackboxswthanks smoser. Great tools to quicken dev-test cycles and make cloud-init development easier. That wraps up what we've been up to. We can probably move to the open forum for any discussions folks want to have16:23
blackboxsw#topic Office Hours (next ~30 mins)16:23
blackboxswWe'll be hanging out here for anyone who wants more eyes on a review, feature discussions or bug triage....16:24
smosermgerdts: i'm poking at the branch i think i shoudl be able to get something.16:28
mgerdtsI'm working on a bunch of fixes for things that have turned up on bhyve with SmartOS.  Since we are looking to transition from KVM to bhyve, we will need to provide updates at least as far back as xenial and probably trusty.  Is the process for this any more complicated than get the fixes in master, then cherry-pick the fixes into branches?16:29
mgerdtsthanks @smoser16:29
rharpermgerdts: we preferrer not to cherry; rather we release master back to xenial via our SRU (Stable Release Update) process; however, we spend a lot of effort to not modify existing behavior on prevlous SRU releases;  so if the changes to support bhyve can be done in a compatible way (working with either) that'd be best;  worst-case, we patch in release specific bahvior into the release branch.17:09
mgerdtsPretty much everything that I've got queued up is fully compatible.17:13
mgerdtshttps://bugs.launchpad.net/cloud-init/+bug/1667735 implements proper protocol negotiation over the serial port.   The lack of this has caused problems with KVM at times too.17:14
ubot5`Ubuntu bug 1667735 in cloud-init (Ubuntu Trusty) "cloud-init doesn't retry metadata lookups and hangs forever if metadata is down" [Medium,Confirmed]17:14
mgerdtshttps://bugs.launchpad.net/cloud-init/+bug/1746605 adressess times when cloud-init and other software may be trying to use the metadata serial port at the same time.  This is purely a bug fix.17:15
ubot5`Ubuntu bug 1746605 in cloud-init "DataSourceSmartOS needs locking" [Medium,Confirmed]17:15
mgerdtsI hit it when rc.local and cloud-init were both trying to get metadata.17:15
mgerdtshttps://bugs.launchpad.net/cloud-init/+bug/1763480 makes it so that cloud-init doesn't stack trace and exit when there is no customer_metadata.  This is an unlikely case, but something that is hit when you are testing things that don't need ssh keys, etc.17:17
ubot5`Ubuntu bug 1763480 in cloud-init "DataSourceSmartOS list() should always return a list" [Medium,Confirmed]17:17
mgerdtshttps://bugs.launchpad.net/cloud-init/+bug/1763512 finishes off the partial implementation of sdc:routes support.  Previously, we didn't publish the required information to VMs, so it is fair to consider this a new feature.17:18
ubot5`Ubuntu bug 1763512 in cloud-init "DataSourceSmartOS ignores sdc:routes" [Medium,Confirmed]17:18
mgerdtshttps://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1763511 is probably the most incompatible change.  New ephemeral disks will get ext4 instead of ext3, which is needed for larger disks that seem to be getting more common.17:19
ubot5`Ubuntu bug 1763511 in cloud-init (Ubuntu) "DataSourceSmartOS should default to ext4" [Undecided,New]17:19
mgerdtsI think that's all that I have in the works right now.  Do any of these sound like they would be problematic as far back as Xenial?17:21
rharpernew features are OK ,bug fixes are fine as well; I think that different filesystem is somewhat tricky17:29
smoseri think i'm generally ok with the different filesystem.17:30
smoserif the reason is that simply ext3 can't handle super-big17:31
rharperyeah, that doesn't seem so user-visible w.r.t configuration;17:31
smoserwe could ensure being more backward compat if we checked the size of the disk and made an ext4 if > that-size17:32
smoserthen there'd less issue17:32
smoserbut more complication and future we'd be stuck with that17:32
rharperyeah, it wouldn't have worked on ext3 then it would be fine to use ext417:32
smoserso i'd rather really just bite the bulleet17:32
rharperit could be a metadata flag that the Datasource looks for17:32
smoserrather than describing to pepole forever "well, if your  disk is < X you'll get ext3 otherwise ext4"17:32
blackboxswrharper: got time for a netplan global dns hangout?17:49
rharpery17:49
blackboxswI want to make sure I'm reading the tea leaves right17:49
smosermgerdts: http://paste.ubuntu.com/p/5qdtFzY8w7/17:52
blackboxswok rharper I'm in cloud-init hangout17:52
smoserthat makes tests pass. and i think the changes to the code path are right17:52
rharperok17:52
rharperbrt17:52
smoserit is still hacked in a sense that the response only deals with fp.read(1) rather than possibly anything that read more than 1.17:54
cyphermoxblackboxsw: rharper: what's this about netplan global dns?17:56
rharpercyphermox: converting network v1 syntax from maas into something that works with netplan which doesn't have "dns" unbound to any interfaces17:57
cyphermoxok17:57
rharpermaas I believe has fixed this for 2.4.x17:57
rharperthey no longer will emit the type: nameserver  but legacy maas would have that, so we've a branch that stuffs them in reasonable places under defined interfaces which don't already have DNS values17:58
blackboxswcyphermox: just SRU validation w.r.t. https://bugs.launchpad.net/cloud-init/+bug/175088417:58
ubot5`Ubuntu bug 1750884 in cloud-init "[2.4, bionic] /etc/resolv.conf not configured correctly in Bionic, leads to no DNS resolution" [Medium,Fix released]17:59
cyphermoxall good17:59
blackboxswooops, and /me forgot the end the epic meeting18:11
blackboxswthx rharper for the chat18:11
blackboxsw#endmeetiung18:11
blackboxsw#endmeeting18:11
meetingologyMeeting ended Mon Apr 16 18:11:33 2018 UTC.18:11
meetingologyMinutes:        http://ubottu.com/meetingology/logs/cloud-init/2018/cloud-init.2018-04-16-16.01.moin.txt18:11
blackboxswe18:11
rharpery18:11
mgerdtssmoser: everything checks out on my end with your change.  I've pushed an update to LP.  Thanks!18:34
blackboxswok just finished SRU verification20:32
blackboxswofficially.20:32
blackboxswI'm adding the verification-done tags now20:32
rharper\o/20:34
smosermgerdts: still there?20:48
* mgerdts here20:48
smoserok. i'm on 62cafc5080ce3a21180770b65c43bb0964cdd70d of your (i think out of date branch)20:48
smoseri paste-failed earlier20:48
smoserhttp://paste.ubuntu.com/p/MtHPY4PKRb/20:49
smoserthats what i have now. i have been working on it since.20:49
smoserhttp://paste.ubuntu.com/p/Qq9YZkfJQY/20:51
smoserthat one with flake8 fixes20:52
smoserhttp://paste.ubuntu.com/p/kbhVHvJHCs/ <-- and that with one fix20:53
mgerdtsok, is it this last one I should be grabbing?20:53
smoseryeah.20:53
smoseri can paste files too if thats easier20:53
mgerdtsIs there a trick to make curl work with paste.ubuntu.com?20:54
smosernot really20:54
smoserhere https://hastebin.com/raw/exukejojec20:54
smoserhttps://hastebin.com/raw/fagotonixu20:54
mgerdtsI'm fine with (and prefer) patches.  It's just the download to my mac, scp where I need it to be, then run patch workflow that is tedious.20:55
mgerdtscurl | patch is much eaiser20:55
smosermgerdts: patch raw https://hastebin.com/raw/damujotohe21:21
smosersorry. went afk for a bit21:21
mgerdtsno worries.. I had it worked out already.  Was just reading through trying to make sense of it all.21:22
smoseri think its fairly straight forward. the reader just returns the bytes it has. like BytesIO21:22
smoserbut allows the 'end_byte' to indicate an EOF. so as to get your short readds in there.21:23
mgerdtsYeah, mostly so.  It looks as though it has more features than are strictly needed and I was just looking to see if there was something I was missing.21:23
smoseri did the ShortReader rather than what i initially had because previously only 'read(1)' would work. if we changed the implementation it'd be busted.21:23
smoseryeah... i knwo.21:23
mgerdtsI think we pretty much have to stick with read(1), as we don't have a way to put bytes that shouldn't have been read back.  But maybe that'21:24
mgerdtss not a big deal21:25
smoseryeah.21:25
mgerdtstox is happy, and it still seems to work in a VM.21:26
mgerdtsI've pushed this change up to LP.21:27
mgerdtsthanks, again, for your help with this.21:27
mgerdtsfrom my read of the docs, I should be able to put cloud-config into cloud-init:user-data and that should override defaults.   But that seems not to work, at least for disk_setup and fs_setup.  Any idea where I might be going wrong?  https://hastebin.com/ovopajituh.php21:35
rharpermgerdts: do you have your cloud-init.log ?21:45
mgerdtshttps://hastebin.com/oxekuluhum.sql21:47
mgerdtsI guess it is sql because it found 'blob' in it somewhere.21:48
rharperlooks like yourr layout isn't correct21:48
rharperyou have a boolean and it should be a list of partition sizes21:48
rharperoh, I see21:49
rharperthe single partition21:49
rharper Failed to find device during available device search.21:50
rharper2018-04-16 21:13:42,054 - cc_disk_setup.py[DEBUG]: Automatic device for /dev/vdb identified as None21:50
rharper2018-04-16 21:13:42,054 - cc_disk_setup.py[DEBUG]: No device aviable that matches request.21:50
rharperit didn't find your /dev/vdb21:50
mgerdtsDoing a fresh run... one minute21:53
mgerdtshttps://hastebin.com/wexarotilu.go21:56
rharperlooking21:56
mgerdtschanged layout and overwrite to false.  cloud-init clean, rm /var/log/cloud-init*21:56
mgerdtsthen halted the vm, rolled-back the zvol under vdb to its initial state (all zeroes), then booted it.21:57
rharperthat looks good21:57
rharpercc_disk_setup.py[DEBUG]: Creating file system ephemeral0 on /dev/vdb21:57
rharper2018-04-16 21:53:25,025 - cc_disk_setup.py[DEBUG]:      Using cmd: ['/sbin/mkfs.ext3', '/dev/vdb', '-L', 'ephemeral0', '-F']21:57
rharper2018-04-16 21:53:25,025 - util.py[DEBUG]: Running command ['/sbin/mkfs.ext3', '/dev/vdb', '-L', 'ephemeral0', '-F'] with allowed return codes [0] (shell=False, capture=True)21:57
rharper2018-04-16 21:53:25,402 - util.py[DEBUG]: Creating fs for /dev/vdb took 0.386 seconds21:57
mgerdtsbut I specified xfs21:58
rharperoh, fs isn't right though, you wanted xfs21:58
rharperhrm21:58
mgerdtsIt looks like I'm specifying it correctly but it's just being mishandled, right?21:59
rharperI don't know what's getting passed to mkfs, but it appears that it's not the fs_setup entry22:00
mgerdts2018-04-16 21:53:25,011 - cc_disk_setup.py[DEBUG]: Partitioning disks: {'/dev/vdb': {'_origname': 'ephemeral0', 'overwrite': False, 'table_type': 'mbr', 'layout': False}}22:00
mgerdtsthat comes some time after it shows that it picked up the config that I set in user-data22:01
rharperhrm, lemme check something22:01
mgerdtsnotice that it says mbr rather than gpt22:02
rharpery22:02
rharperthis smells like user-data from DataSource isn't getting updated22:02
rharperhrm, let's see if we can find it in object; on the instance: # python3 -c "from cloudinit import stages; import cloudinit; cloudobj = cloudinit.stages._pkl_load('/var/lib/cloud/instance/obj.pkl'); print(cloudobj.userdata_raw)"22:10
mgerdtsdevice_aliases: {'ephemeral0': '/dev/vdb'}22:10
mgerdtsdisk_setup:22:10
mgerdts    ephemeral0:22:10
mgerdts         table_type: gpt22:10
mgerdts         layout: False22:11
mgerdts         overwrite: False22:11
mgerdtsfs_setup:22:11
mgerdts    - label: ephemeral022:11
mgerdts      filesystem: xfs22:11
mgerdts      device: ephemeral0.022:11
rharperI see your debug message22:11
rharperbut I want to see if it's recorded into the object; the 'ud' param in the datasource is kepted as self.userdata_raw22:11
rharperthat's referenced in the cloudify() stage which merges config before calling modules22:11
* rharper steps away for a bit 22:27
mgerdtsyay, figured it out22:37
mgerdtsneeds to start with '#cloud-config`22:37
mgerdtsand with that, I'm stepping away too.22:38
mgerdtsthanks for your help rharper22:38

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