Thursday, 2018-03-22

*** mjturek has quit IRC00:07
prometheanfireianw: I can reboot after growroot is run just fine (it seems)00:11
ianwprometheanfire: ok ... was that a problem?00:12
prometheanfireI was led to believe it was00:13
clarkbprometheanfire: no...00:13
clarkbthe images are booting fine I siad00:13
clarkbthe problem is if you then try to do anything useful in the image that requires more than a little bit of disk00:13
prometheanfireah, so if I dd to a file?00:14
prometheanfirethen reboot00:14
clarkbrebooting is orthogonal00:14
prometheanfiresure, just a useful test00:14
clarkbI was just warning you that you might end up with a non grow rooted root00:14
clarkbbooting will work fine00:14
prometheanfirehmm, growroot seemed to work00:15
clarkbhuh gentoo growroot is less discerning I guess?00:16
prometheanfireit's the same growroot00:17
ianwwhat does fdisk /dev/vda1 show?00:18
prometheanfireDevice     Boot Start      End  Sectors Size Id Type00:19
prometheanfire/dev/vda1  *     2048 41943006 41940959  20G 53 OnTrack DM6 Aux300:19
prometheanfireya, that's not quite right00:19
clarkbfix is on its way, prereq for fix is finally in the gate00:20
prometheanfireyarp00:20
ianwthat's the problem ... possibly gentoo's sfdisk patches out the check that considers "OnTrack DM6 Aux3" a "disk manager" and dies00:21
prometheanfireanyway, systemd is having issues with the console00:21
prometheanfiremaybe00:21
prometheanfire[[0;1;31mFAILED[0m] Failed to start Glean for interface ens3.00:25
prometheanfireSee 'systemctl status glean@ens3.service' for details.00:25
prometheanfirebooo00:25
openstackgerritMerged openstack/diskimage-builder master: Remove tripleo jobs  https://review.openstack.org/55503700:31
clarkbianw ^ I guess approve fix now?00:33
ianwclarkb: ++00:35
ianwi'm just working on a test for it in the nodepool boot tests00:35
clarkbdo you want that first?00:36
ianwclarkb: no, just for ongoing sanity00:41
clarkbok I've approved the fix00:45
ianwhmm, it's harder to come up with a good test for this than i first thought00:59
clarkbianw: maybe just reexecute growroot and check the return code?01:00
ianwwe have two sizes of disk, 512 & 1024 which are used fairly randomly.  i *think* just checking the root is exapnded to 512mib covers it01:00
ianwyeah, i'd sort of like to verify it *actually* worked and the disk is bigger, if we can01:01
ianwsee what happens with https://review.openstack.org/55510301:02
prometheanfireianw: you think devuser should install sudo?01:29
openstackgerritMerged openstack/diskimage-builder master: Fix default partition type  https://review.openstack.org/55477101:30
prometheanfireclarkb: with that merge are we good?01:33
clarkbprometheanfire: need a release too01:33
prometheanfiresays you :P01:34
ianwprometheanfire: there's a DIB_DEV_USER_PWDLESS_SUDO ... i've been stuck before not providing that and having a devuser with only key login.01:40
ianwit probably should bring in sudo ... i guess on every other platform that's already part of base?01:40
ianwprior coment is to say, i've never been 100% on the semantics of devuser/sudo etc01:41
prometheanfireit was part of it by default on gentoo, but a user made the point that a minimal image shouldn't include it01:43
prometheanfirealready tagged?01:48
prometheanfiregot a new task to package 2.12.101:48
prometheanfirecan confirm good on that last patch02:48
prometheanfire/dev/vda1  *     2048 41943006 41940959  20G 83 Linux02:48
*** andreas_s has joined #openstack-dib02:48
*** andreas_s has quit IRC02:53
greghaynesprometheanfire: +1 on devuser should install sudo03:16
prometheanfiregreghaynes: you happen to know simple-init?03:19
greghaynesuhhh, not sure im willing to admit to it03:19
prometheanfireit's a simple question :P03:20
prometheanfire what do we expect `ifup INTERFACE` to do in https://github.com/prometheanfire/glean/blob/master/glean/init/glean%40.service#L13 run dhcp?03:20
greghaynesprometheanfire: I think the idea is for each interface we first call glean to potentially write out a networking config for that interface, then ifup to trigger the actual bring up the interface, run whatever we configured (dhcp client, etc)03:23
greghaynesso its just the bit to poke distro network bringup for the interface glean just wrote config for03:24
prometheanfiregreghaynes: I'd like to convert that to networkd03:24
greghaynesin general or add support for networkd?03:25
greghaynesthe issue is networkd doesnt work cleanly atm on many distros03:25
prometheanfireif gentoo is using systemd for it's init instead of openrc we are using networkd (or the user selects something else like networkmanager)03:27
greghaynesyea I think itd be great to support networkd where its standardish03:27
greghaynesits just on fedora and deb theres competing systems which are the default03:28
greghaynesso for supporting it - does networkd not have a bring interface X up?03:29
prometheanfireya, have to research03:29
prometheanfirewill ask cloudnull :P03:29
openstackgerritMerged openstack/diskimage-builder master: remove portage git directory  https://review.openstack.org/55391403:32
cloudnullprometheanfire: in osa we're actively making networkd the option we use in test https://review.openstack.org/#/c/55272103:42
prometheanfirecloudnull: ya, need to figure out how do work between systemd and glean/simple-init03:45
prometheanfirecloudnull: what I need to do is talk to whoever is the lead for glean...03:50
cloudnulli dont know anything about glean. but i can help with the networkd bits if you need03:50
* prometheanfire doesn't think anyone is leading glean03:52
ianwit's the type of thing that just works ... until it doesn't04:13
*** chhagarw has joined #openstack-dib04:13
clarkbwhat I would do is have a unit that reads the config drive and writes out all the interface configs and set that up before networkd04:15
clarkbThen in the simple init element have it select for that over the distro specific network config (this part is hand wavy but in thoery networkd would work on all the systemd distros)04:16
prometheanfireclarkb: for networkd it can be one file iirc04:17
prometheanfireclarkb: I'll talk to cloudnull tomorow about it (probably), afk for now...04:18
clarkbprometheanfire: the docs I'm reading seem to suggest a .network file per interface but that may just be for human readability04:18
clarkbbut ya single glean unit. write all the .network file(s) content set that before networkd done04:19
cloudnullclarkb: prometheanfire: we have an ansible role which will configure the interfaces https://github.com/openstack/ansible-role-systemd_networkd04:33
cloudnullidk if you can do ansible on localhost? however if you can that might make things easy enough04:33
ianwcloudnull: the point of glean is to be a minimal thing that brings up the network, so ansible kind of breaks that model :)04:35
cloudnullfair enough.04:36
cloudnullgenerating the netdev and network files for networkd is fairly small should be simple enough to template in just about anything04:39
prometheanfirecloudnull: ya, I just didn't want to be the person to jump on this grenade :P05:00
prometheanfirecloudnull: I'll get osa on gentoo, one day...05:00
openstackgerritMatthew Thode proposed openstack/diskimage-builder master: install sudo in the devuser element  https://review.openstack.org/55514905:18
prometheanfiregreghaynes: ^05:18
prometheanfiregreghaynes: feel free to comment or add other distro package mappings for sudo05:18
*** andreas_s has joined #openstack-dib07:21
*** andreas_s has quit IRC07:25
*** rajinir has quit IRC07:25
*** rajinir_ has joined #openstack-dib07:26
*** rajinir_ has quit IRC07:26
*** rajinir_ has joined #openstack-dib07:26
*** rajinir_ is now known as rajinir07:26
*** andreas_s has joined #openstack-dib07:27
*** yolanda_ is now known as yolanda08:35
*** jesusaur has quit IRC09:20
*** jesusaur has joined #openstack-dib09:29
*** hashar has joined #openstack-dib09:58
*** jesusaur has quit IRC11:02
*** jesusaur has joined #openstack-dib11:12
*** dhill_ has quit IRC13:35
*** pickle has joined #openstack-dib13:37
*** mjturek has joined #openstack-dib14:00
*** hashar is now known as hasharAway15:13
*** vmlinuz has joined #openstack-dib15:27
*** andreas_s has quit IRC16:19
*** andreas_s has joined #openstack-dib16:33
prometheanfireianw: happen to know why umount of the build_dir is not working (it seems to still have things like /tmp/dib_build.kG6NA6mS/mnt/proc mounted)16:46
*** andreas_s has quit IRC16:47
*** mjturek has quit IRC16:58
*** mjturek has joined #openstack-dib16:58
*** mjturek has quit IRC17:01
*** mjturek has joined #openstack-dib17:01
openstackgerritDoug Hellmann proposed openstack/diskimage-builder master: add lower-constraints job  https://review.openstack.org/55541218:27
prometheanfireianw: was finally able to reproduce the [[ foo ]] && bar failure18:37
prometheanfirenot sure why it's happening still, but meh18:37
prometheanfireI'll change that pr to a full if18:37
* prometheanfire wonders if package-isntalls can handle installopts18:42
openstackgerritMatthew Thode proposed openstack/diskimage-builder master: enable systemd profile for Gentoo  https://review.openstack.org/55295218:58
ianwprometheanfire: no ... i'm interested in any patches for unmount issues that don't involve just making it lazy ... it's been a persistent problem but hard to track down20:12
openstackgerritMatthew Thode proposed openstack/diskimage-builder master: enable systemd profile for Gentoo  https://review.openstack.org/55295220:13
prometheanfireianw: ya, I saw the review wanting to add -l20:13
prometheanfireand I aggree that is the wrong solution20:13
ianwprometheanfire: what did you do differently to trigger it locally?  i'm interested if it's something we can dib-lint or bashate20:13
prometheanfireianw: can't dib just build is a process namespace, that way you can kill everything in that process namespace, so nothing should be held open20:14
prometheanfireI didn't do anything20:14
prometheanfireit's confusing, I had people at work run the code happily too20:14
ianwsome sort of containierisation is probably a good way forward20:15
clarkbprocess wouldn't necesasrily die right away in that case would it?20:16
prometheanfirekill -9 ppid, then recheck for processes in namespace20:16
prometheanfiredo that a couple times for good measure20:17
*** vmlinuz has quit IRC21:08
*** chhagarw has quit IRC21:12
openstackgerritgreghaynes proposed openstack/diskimage-builder master: [WIP] new diskimage-build command with config  https://review.openstack.org/55400221:26
openstackgerritgreghaynes proposed openstack/diskimage-builder master: Move fail early checks in to python  https://review.openstack.org/55546221:26
openstackgerritgreghaynes proposed openstack/diskimage-builder master: [WIP] Move environment create/cleanup to python  https://review.openstack.org/55546321:26
openstackgerritgreghaynes proposed openstack/diskimage-builder master: [WIP] Move environment create/cleanup to python  https://review.openstack.org/55546321:28
greghaynes^ might be a nice way to get to cleaner process management / using namespaces21:29
openstackgerritgreghaynes proposed openstack/diskimage-builder master: Move fail early checks in to python  https://review.openstack.org/55546221:45
ianwgreghaynes: one thing that always worries me a little about turning python into a shell runner is you basically lose tracing, which is so important for figuring things out22:17
ianwwhen what you're doing comes down to running a series of shell commands in a certain order, unsurprisingly shell does pretty good at that :)22:17
ianwwhat it doesn't do well at is anything involving data structures22:18
greghaynesianw: you should have a look at the bits im removing - they include things like writing python blocks to be executed via pyton -c ')22:19
ianwyeah, oh i agree on moving forwards with something else22:19
greghaynesthe other thing I really hope is this makes logging a lot nicer22:20
ianwjust by the time you add in tracing, logging, error handling, and some configuration ... you're starting to look a lot like ansible :)22:20
greghaynesI think you dont really want 'tracing' here, you just want better logging (which probably includes logs of every time you shell out)22:21
greghaynesbut I dunno, I kind of started it as an experiment to look at 'hey is this significantly easier to write / read than the corresponding bash'22:21
ianwright, that's fundamentally what i mean by tracing22:22
greghaynesoh thats super easy though - just make a wrapper for os.popen or whatnot22:22
ianweven as we've shown, reliably getting output from the console can be non-trivial22:22
ianwyeah, we already have one layer of it in dib-block-device22:23
greghaynesI really want to see where it breaks down in to being more of a pain than bash, but so far ISTM its pretty far on the side of this is way easier to follow22:24
ianwcool, not trying to be overly negative :)22:24
greghaynesyea no worries - I totally get the fear22:24
ianwin dib's defence, i guess that when it started, i doubt anyone was really thinking about containers22:25
ianwwell, chroot was the container at the time22:25
greghaynesyea, still is kinda, it just also has gotten a lot more complex at which point having nicer interfaces between bits of code becomes more valuable22:26
*** andreas_s has joined #openstack-dib22:47
*** andreas_s has quit IRC22:52
*** calebb has quit IRC23:50
*** calebb has joined #openstack-dib23:52

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