/srv/irclogs.ubuntu.com/2015/07/17/#snappy.txt

=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== ev_ is now known as ev
* conyoo good morning o_O05:51
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
fgimenezgood morning07:15
JamesTaitGood morning all; happy Friday, and happy Yellow Pig Day! 😃08:38
mvoogra_: I think we are getting somewhere https://github.com/mvo5/uboot-env-go might be simpler for us than fw_setenv/printenv and we can use it directly, but I will stop on that for now and wait how the rest of the uboot env work goes09:22
ogra_mvo, yeah, i'm fiddlin with a snap currently to have the needed bits (and i also did a new checkout of the latest uboot before producing the new binary)09:28
mvoogra_: nice09:32
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
ogra_mvo, wget http://people.canonical.com/~ogra/snappy/bootloader/beagleblack_1.9_all.snap && sudo ubuntu-device-flash core --channel=edge --oem beagleblack_1.9_all.snap --developer-mode -o bbb.img 15.04 ... then dd it ...10:23
ogra_it has all env vars inside the uboot.env and ships an empty uEnv.txt (i think snappy still checks for that file to determine if we boot uboot)10:24
ogra_boots fine for me10:24
ogra_mvo, http://paste.ubuntu.com/11892121/ is the content of my input file for uboot.env10:26
ogra_(note there is nothing from snapy-system.txt in it yet)10:28
mvoogra_: hm, we need that snappy-system.txt in there too, no?10:39
ogra_yes, and the stamp10:39
mvoogra_: yeah, uEnv.txt is currently needed, my branch fixes that (or will)10:40
ogra_but that requires changes to udf10:40
mvoaha, is that writing it?10:40
ogra_i think so ... sergiusens should know10:40
mvoso udf would basilcy have to take the uboot.env and append the new bits from the oem snap (?)10:40
mvoout uboot.env with all the default config10:40
mvoif so I add a task for that to the card10:41
ogra_well, the above is only the basic bit, with that we should have a good image to do the further work10:41
mvook10:41
mvoso the uboot.env will just load the snappy-system.txt (?)10:41
ogra_i guess we *could* just put the snappy-system.txt content inside uboot.env at the snap level10:41
mvoI guess thats fine, we may even keep that if its just reading from that file, i.e. as long as we keep the system_ab and stuff out10:41
ogra_i would like to get rid of all these scattered single files ...10:42
mvothe important part is that the uEnv.txt needs to no longer take the stamp into account and instead a new trail boot var10:42
mvoyeah, agreed10:42
ogra_the question is, do we want  that for 15.0410:42
ogra_or do we just want the very basic bits for 15.04 to not risk stability10:42
mvothats a good question, my gut feeling is yes, the amount of churn is already pretty substancial, so best to have 15.04 and 16.04 in sync10:43
ogra_(whouch would mean only snappy_ab and the stamp inside the env10:43
ogra_ok, then we need udf involvement i thinnk10:43
ogra_and either write the snappy-system.txt content to the uboot.env directly ... or have the file content in the snap (not sure why we dont have that currently, there might be a reason)10:44
mvoI guess the reason is to keep snappy-system.txt bits small10:46
ogra_i'm a little curious what happens to the env settings that come from ATAGs ... once we call "saveenv" they will be stored in uboot.env10:46
ogra_(MAC address and the like ... nothing that chnages anyway, but i wonder if uboot will get alon with them being already set)10:47
mvoATAGs?10:47
ogra_well, or values from the dtb ... not sure, but there are like 10 vars set by default even without any environment10:48
mvoaha10:48
mvook10:48
ogra_and saveenv during the boot will save them in uboot.env10:48
ogra_(and i dont thin there is something where you can only save a single var change to the environment, afaik it is all or nothing)+10:49
sergiusensmvo: ogra_ that is automatic already (if the file is listed)10:49
ogra_sergiusens, "that" ?10:49
sergiusensogra_: uboot.env copy from udf10:49
ogra_sergiusens, yeah, thats not the issue10:50
ogra_sergiusens, we need to feed the content of snappy-system.txt into uboot.env10:50
ogra_and afaik thats created by udf, no ?10:50
sergiusensogra_: yes10:50
ogra_so it needs to learn about that ... or we move snappy-system.txt content directly into the snap10:51
sergiusensogra_: you should be able to override it by adding it to the gadget (and that would be supported in uprgades for rolling at least)10:51
ogra_(meaning directly into uboot.env at creation time)10:51
ogra_so i could ship an empty file ... and in parallel push the content into uboot.env10:52
ogra_hmm10:52
ogra_sounds doable10:52
sergiusensogra_: this might put some stress in mvo's work into doing the right thing (TM) inside snappy on upgrades, but he's smart ;-)10:54
ogra_yeah, snappy needs to modify uboot.env10:54
ogra_instead of the txt files10:54
ogra_hrm10:54
sergiusensogra_: right, but it needs to save the snappy-system.txt values before overwritting it, that's all10:55
ogra_and we need to completely re-write the whole logic of the snappy_boot command10:55
ogra_sergiusens, we can just have "snappy_stamp_last", "snappy_ab_last" and "snappy_mode_last" vars if we need that10:56
ogra_and have snappy store the values inside uboot.env too10:56
ogra_i want to get rid of all additional files10:57
ogra_at least for rolling (not sure we fcan for 15.04)10:57
mvoogra_: do we need to change it all? grub is also doing it with a single env, it seems we can copy that behavior for now. and yes +1 for snappy_ab_last etc11:01
mvoogra_: thats going to be needed anyway for the os/kernel snap work11:01
mvoogra_, sergiusens: sound I need to write some uenv merge code, let me do that11:02
ogra_mvo, whats "it" ?11:05
ogra_do you mean snappy_boot ?11:05
ogra_we need to et rid of the fatwrite call in it at least ... and also change the testing for snappy_stamp ... since it wont be a file but a variable value now11:05
mvoogra_: right, there is a snappy_trial_boot env in grub, one sec and I give you the details11:06
mvoogra_: ok, so grub works like this: on boot grub itself sets snappy_trial_boot=1 and the boot-sucesss command in snappy clears that11:09
mvoogra_: we could simply do the same for uboot now, right? my branch for snappy implements this cleaning in uboot now too11:09
ogra_yeah11:09
ogra_i'm just preparing a snap with merged snappy-systerm-txt (and an empty .txt file)11:10
mvosilly question, whats the canonical location for uEnv.txt?11:10
mvoogra_: coool!11:10
ogra_(still using the old snappy_boot command though)11:10
mvook11:11
* ogra_ wishes for faster dd11:11
ogra_*twiddle*11:17
ogra_yay, seems to boot11:17
ogra_bah11:21
ogra_sergiusens, udf doesnt seem to respect the empty snappy-system.txt file ...11:21
ogra_i still have content in it11:21
ogra_http://paste.ubuntu.com/11892317/11:23
ogra_sergiusens, ^^^11:23
* ogra_ empties it manually ... crosses fingers and reboots11:25
ogra_looks like it boots11:25
sergiusensogra_: k11:26
ogra_geez !11:26
ogra_(BeagleBoneBlack)ubuntu@localhost:~$ cat /boot/uboot/snappy-system.txt11:26
ogra_snappy_mode=regular11:26
ogra_snappy_ab=a11:26
ogra_still writes to it somewhere11:26
sergiusensogra_: you need a new snappy which mvo is taking care of I gues11:26
sergiusenss11:26
ogra_ah, it writes that file after boot ?11:27
sergiusensogra_: yeah, with the snappy-boot task11:27
ogra_k11:27
sergiusensor snappy booted11:27
ogra_well, but udf needs fixing too11:27
sergiusensogra_: yes; but it is going to be hard to fix as we need to support older images too :-/11:28
sergiusensogra_: that use that snappy logic11:28
ogra_well, just make it not create the snappy-system.txt file if the snap ships it11:28
ogra_that would be anough11:29
ogra_*enouh11:29
ogra_bah !11:29
sergiusensogra_: right, but think of 15.04 and creating older images which still use the older snappy logic11:29
ogra_i only think of 15.04 here11:30
sergiusensogra_: 15.04 rev 1 then11:30
ogra_right11:30
ogra_but there the snaps dont ship snappy-system.txt at all11:30
ogra_so that should be safe11:30
* ogra_ would really like to know why he only gets the colored "OK" output every second boot 11:31
sergiusensogra_: right, but if we replace it from u-d-f and the old snappy logic is in place, rollbacks and upgrades would be broken11:31
ogra_hmm11:32
mvowhere is the cannical uEnv.txt location? do we have that in git somewhere?11:34
ogra_in the snap11:34
ogra_(snappy-hub i think... )11:34
* ogra_ hacks the loading of snappy-system.txt out of uboot.env ... lets see if it gets along, then the content wont matter 11:35
ogra_and more dd fun ...11:36
mvoogra_: try godd - it has a progress bar :)11:37
ogra_mvo, and that makes it faster ?11:37
ogra_:P11:37
mvoogra_: weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeel11:37
ogra_:D11:37
mvoogra_: do you want me to build you a snappy with boot-success that uses snappy_trial_boot?11:38
ogra_well, if that can write to uboot.env already11:38
mvoit can using fw_setenv, but I can make you a better (native) version I think that does not need /etc/fw_env.config11:39
ogra_with your ned code ? yeah11:40
ogra_*new11:40
mvoyep11:40
mvoogra_: eh, sorry, I mean, whats the canonical location of snappy-system.txt ? i.e. the file that implements the actual logic?11:42
ogra_mvo, on disk it is /boot/uboot/snappy-system.txt ... in udf i dont know11:42
ogra_if this dd ever finishes i'll know if we can boot completely without it11:42
mvoogra_: right, udf was the bit that I was looking for, thanks! i.e. in what version control system it is11:43
mvothanks!11:43
* sergiusens celebrates an exit status 2 on snappy install11:43
ogra_looks good !11:43
mvosergiusens: you were on fire yesterday? so many branches11:43
ogra_(the boot i mean)11:43
sergiusensmvo: well none are really ready for review, I just got scared that I'd lose my laptop somehow and have to redo stuff :-P11:44
mvolol11:44
ogra_i updated http://people.canonical.com/~ogra/snappy/bootloader/beagleblack_1.9_all.snap ... snappy-system.txt shouldnt be used at all anymore with that11:47
ogra_(now we have snappy_stamp left)11:47
mvonear11:48
mvoneat11:48
mvo!11:48
ogra_so we shouldnt need changes to udf11:48
ogra_(it is just ugly that the file sticks around but wont do harm)11:48
* ogra_ notes it might be time for some breakfast11:48
ogra_:P11:48
ogra_brb11:49
ogra_bah, crap, forgot the meerting ... no food for me then11:50
mvoogra_: highly untested, but http://people.canonical.com/~mvo/tmp/snappy will use /boot/uboot/uboot.env  to set snappy_ab, snappy_mode and snappy_trial_boot11:54
ogra_mvo, i assujme i replace /usr/bin/snappy with that ?11:56
mvoogra_: yes11:58
ogra_[FAILED] Failed to start Notify bootloader that boot was successful.11:58
ogra_[FAILED] Failed to start Run snappy firstboot setup.11:58
ogra_[FAILED] Failed to start Run snappy compatibility hooks.11:58
mvoogra_: uh, thats the amd64 build11:58
mvoogra_: I need to give you the arm build of course11:58
ogra_lovely :P11:58
ogra_at least we know it still boots to a prompt even with broken snappy binary :P11:58
ogra_ogra@anubis:~/datengrab/rpi/uboot/bbb$ file snappy11:59
ogra_snappy: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=faa20b2d15c5c16533f51239a2a517f78db36dd6, not stripped11:59
ogra_heh, yeah11:59
mvoogra_: armhf version is upload12:02
mvoogra_: armhf version is uploading12:02
ogra_cool12:02
mvoogra_: try http://people.canonical.com/~mvo/tmp/snappy_armhf12:03
ogra_mvo, looks good, no failures this time12:07
mvoogra_: cool, will a binary that can dump the env help?12:08
mvoogra_: to verify that it works?12:08
ogra_(BeagleBoneBlack)ubuntu@localhost:~$ cat /boot/uboot/snappy-system.txt12:08
ogra_(BeagleBoneBlack)ubuntu@localhost:~$12:08
ogra_and it didnt write to the file :)12:08
ogra_yeah, that might help12:08
ogra_i guess to test the whole update/rollback stuff i need to build a -1 image12:09
ogra_(and even then i'm not sure i can actually update)12:09
mvoogra_: http://people.canonical.com/~mvo/tmp/uboot-env-armhf12:10
mvoogra_: that uboot-env-armhf /boot/uboot/uboot.env print12:10
mvoogra_: hopefully works12:10
ogra_(BeagleBoneBlack)ubuntu@localhost:~$ ./uboot-env-armhf /boot/uboot/uboot.env print|wc -l12:13
ogra_7012:13
ogra_mvo, looks good12:13
mvoogra_: does the content look ok too? i.e. snappy_boot_trial is cleared (if you set it already)?12:14
ogra_not sure a regular user should be able to run this :)12:14
mvoogra_: and try is set back to regular?12:14
mvoogra_: heh :)12:14
ogra_mvo, http://paste.ubuntu.com/11892475/12:15
mvoogra_: that looks good can you try "uboot-env-armhf /boot/uboot/uboot.env set snappy_mode=try", then reboot, then see if the boot sets it to "snappy_mode=regular" after the boot?12:17
ogra_(BeagleBoneBlack)ubuntu@localhost:~$ sudo ./uboot-env-armhf /boot/uboot/uboot.env set snapy_mode=try12:17
ogra_panic: runtime error: index out of rang12:17
mvoups, sorry12:17
mvoogra_: that looks good can you try "uboot-env-armhf /boot/uboot/uboot.env set snappy_mode try"12:18
mvohas to be two args12:18
ogra_doesnt work :(12:18
mvosame error?12:18
ogra_(BeagleBoneBlack)ubuntu@localhost:~$ sudo ./uboot-env-armhf /boot/uboot/uboot.env set snapy_mode try12:18
ogra_(BeagleBoneBlack)ubuntu@localhost:~$ ./uboot-env-armhf /boot/uboot/uboot.env print|grep ^snappy_mode12:18
ogra_snappy_mode=regular12:18
ogra_no error ...12:18
mvouh12:18
ogra_oh12:18
ogra_bah12:18
* ogra_ tries without typo 12:19
ogra_(BeagleBoneBlack)ubuntu@localhost:~$ sudo ./uboot-env-armhf /boot/uboot/uboot.env set snappy_mode try12:19
ogra_(BeagleBoneBlack)ubuntu@localhost:~$ ./uboot-env-armhf /boot/uboot/uboot.env print|grep ^snappy_mode12:19
ogra_snappy_mode=try12:19
mvo:)12:19
ogra_works without PEBKAC12:19
ogra_;)12:19
mvopuhhh, I was scared for a minute12:19
=== tedg is now known as ted
=== ted is now known as tedg
kyrofakgunn, another change we might want to consider making for Ubuntu Personal: Disable the automatic reboot13:30
kyrofakgunn, just make the power button red or something13:31
kgunnkyrofa: sorry...automatic reboot ?13:34
kyrofakgunn, yeah, Ubuntu Core seems to be configured to automatically update and reboot. Which makes a certain amount of sense for embedded devices13:34
kyrofakgunn, but I'm not sure how much sense it makes for Ubuntu Personal (which still seems to be configured that way)13:35
kgunnseb128: ^ not sure who we'd talk to...i mean i guess this is based on our touch update technology, and it doesn't autoupdate/reboot afaik13:36
seb128kgunn, kyrofa, does it really make more sense for an embedded device? depends what the device is doing13:38
kyrofakgunn, yeah, heads up-- first few times you fire up the VM and try to ssh in only to see "snappy autopilot triggered a reboot to boot into an up to date system" or "Going down for a reboot" it catches you a bit by surprise :P13:38
seb128if that's your car engine control you don't want it to reboot while you are driving :p13:38
kyrofaseb128, oh it certainly depends!13:38
kyrofaseb128, but I can see it making sense for a router or something. Keep it up-to-date and secure13:39
kyrofaseb128, if it was up to me, I'd definitely not make it the default on anything13:40
kyrofaseb128, but it seems to be that way on Ubuntu Core, at least for the time being13:40
kyrofaseb128, wait... maybe that's an edge thing?13:40
seb128kyrofa, even a router, it might be on a critical infrastructure that should get package cut even for 10 secondes13:40
seb128unsure13:40
kyrofakgunn, seb128: This may be a non-issue if it's only on edge. sergiusens can answer for sure13:41
kyrofaseb128, agreed on the auto-updates. Tough to make that case13:43
seb128yeah13:43
seb128how can we turn it off? do you know?13:44
sergiusenskgunn: kyrofa seb128 I'd discuss the issue with the architecture team13:45
sergiusenssnappy config ubuntu-core config_with_ap_disabled13:45
seb128do we have a way to ship a different default config on the image?13:46
seb128or a standard place in livecd-rootfs or such to call that13:46
mterrymvo, I know you're busy today, but if you have time, I have some snapcraft branches I'd love some action on13:48
sergiusensseb128: create your own gadget snap13:48
sergiusensseb128: and have u-d-f pull that in instead of generic-amd6413:48
seb128just for that?13:48
seb128hum13:49
seb128that sounds like more work that the change is worth13:49
seb128kyrofa, kgunn ^13:49
kyrofaseb128, hum indeed13:49
sergiusensgadget snaps are exactly for that, configs13:49
kyrofaseb128, depends on what's in generic-amd64 though. Might not be too bad13:50
sergiusensseb128: I bet you will diverge more (e.g.; seed in some preinstalled snaps)13:50
kyrofaseb128, yeah, we may need to do that eventually anyway13:50
seb128sergiusens, that's probably true yeah13:50
sergiusensseb128: the gadget snap is like the custom tarball on the phone13:51
sergiusensexcept that it is declared and not just overlayed13:51
seb128sergiusens, yeah, those are things I didn't look at so far and I've no clue about13:52
seb128so I guess it's a good time to learn about them ;-)13:52
sergiusensseb128: don't look too deep though, ricmm is redefining it all13:52
seb128k13:53
sergiusensseb128: some things may move back to the kernel snap (as we had it before)13:53
tedgmterry, So, did you have thoughts about editing the package.yaml in snapcraft?13:56
tedgmterry, It seems like something we're gonna need, and probably in a generic way.13:56
mterrytedg, how do you mean editing?13:58
tedgmterry, For instance having a plugin add a binary13:58
tedgmterry, But also adding the architecture13:59
mterrytedg, oh... I guess I imagined the user would explicitly add binaries and such they wanted -- it's hard to do automatically.  There's caps and maybe calling the binary something different, etc14:00
tedgmterry, So Chipaca was thinking that the QML plugin would get the QML file, and then add a binary for it that was the execution of qmlscene.14:01
tedgmterry, I think that's a reasonable use case, and there'll probably be others. For instance if a plugin added tools.14:01
rsalvetiogra_: so to test if you get the fs corruption or not try image 3 from alpha14:01
rsalvetiand update/rollback to image 514:02
ogra_rsalveti, right, not completely done yet14:02
ogra_wget http://people.canonical.com/~ogra/snappy/bootloader/beagleblack_1.9_all.snap && sudo ubuntu-device-flash core --channel=edge --oem beagleblack_1.9_all.snap --developer-mode -o bbb.img 15.04 ... then dd it ...14:02
ogra_that gets you a setup which doesnt use snappy-system.txt anymore ... but we still need to re-work snappy_boot to remove the fatwrite and need to integrate mvos snappy changes14:03
rsalvetidid we land the snappy changes from mvo?14:03
ogra_not yet14:03
rsalvetiright14:03
rsalvetiand udf changes as well14:03
ogra_i only managed to do an initial test before he left ... we'll work on it more once he returns14:03
ogra_udf changes arent needed14:04
ogra_only cosmetic14:04
rsalvetibut might be good to manually test it with the alpha release, to know if all the work we did will indeed not cause the fs corruption we had14:04
ogra_(teh file will be created but not used by anything)14:04
mterrytedg, so for that use case, we'd want an assemble_fixes() step or something?14:04
ogra_right, once we have all bits ready i'll test alpha14:04
tedgmterry, Yeah, or perhaps the "snap_file()" command would pass the current YAML as an object.14:05
tedgmterry, So then everyone would update it and it gets written out once.14:06
mterrytedg, well there's more they might want to edit, like the apparmor stuff maybe?   But for sure the yaml object is 99% case14:06
mterrytedg, I don't think it semantically fits with snap_files(), but it is the same step14:07
mterrytedg, edit_package()?14:07
mterrytedg, we also might want to version our plugin interface, btw14:07
tedgmterry, Yeah, I guess I figured it was the "final step" or perhaps with assemble.14:09
tedgmterry, Sure, but let's wait until we have plugins that aren't in tree.14:09
mterrytedg, no, snap_files() is actually called on 'snap' step, not 'assemble' one14:10
tedgmterry, Yes, I was more suggesting where it might edit the packaging.14:10
mterrytedg, ah.  Well so far we only copy the metadata into place during assemble.  But maybe we should actually do that during snap...14:11
mterrytedg, maybe all the bits in assemble should really be in snap, so the user can muck with everything in its final position/state14:12
mterrytedg, then assemble is truly just a snappy build call14:12
elopiogood morning.14:13
* mterry waves at elopio14:14
nuclearbobis there a bug somewhere about gpio/i2c support that I can follow?14:16
tedgmterry, Yeah, that makes sense to me.14:17
elopionuclearbob: there is not.14:18
elopionuclearbob: only a mailing list thread and the promise by ogra_ that he will let us know when it's ready. You can file one.14:19
ogra_well, and it is a broader thin ...14:19
ogra_*thing14:19
nuclearbobogra_: if subscribing to the list is the best thing to do, I can do that14:19
ogra_the bugs is "adding support for overlay devicetree files" ...14:19
nuclearbobelopio: thanks14:19
nuclearboboh14:19
nuclearbobthat does sound broader14:19
ogra_it is ... and rather complex, since we look for a generic way and the boards function differently14:20
elopioon my beaglebone I saw the /dev/i2c-014:20
elopioI'll play with that :)14:20
ogra_i will have overlay support in the next rpi image (via manual hacks) but not yet on the beaglebone14:20
nuclearbobokay, the rpi is what I'm looking for since I've got the orange matchbox14:22
ogra_rsalveti, gah14:30
ogra_so now i definitely know that fatwrite even messes up the uboot.env file14:31
ogra_(BeagleBoneBlack)ubuntu@localhost:~$ ./uboot-env-armhf /boot/uboot/uboot.env print|grep ^snappy_mode14:31
ogra_2015/07/17 14:29:29 readUbootEnv failed for /boot/uboot/uboot.env: bad CRC: 4063564654 != 86169824514:31
* ogra_ forgot to take the fatwrite out before reboot14:31
ogra_ogra@anubis:~/datengrab/rpi/uboot/bbb$ ls /media/ogra/system-boot/a/14:40
ogra_DTBS  HARDWA~1.YAM  INITRD.IMG  VMLINUZ14:40
ogra_rsalveti, btw, that looks like the root cause of our corruption ^^^^14:40
ogra_8+3 ...14:40
ogra_(after fatwrite )14:41
rsalvetiogra_: sorry, what is the root cause?14:48
rsalvetiso fatwrite even when writing to a known file is already enough to cause the issue14:49
ogra_rsalveti, seems the driver used by fatwrite doesnt support long filenames14:49
rsalvetiit actually does14:49
rsalvetithat's a consequence of fsck.vfat I believe14:49
ogra_so the a and b directory content names get rewritten14:49
ogra_oh, ok14:49
rsalvetithat doesn't happen all the time14:49
rsalvetisometimes it stays fine, but fsck creates a FSCK0000.REC file14:50
tedgChipaca, so getting those modules added means my snap is now 190 MB14:50
ogra_lovely14:50
ogra_should we perhaps kick it out ?14:50
rsalvetiogra_: so it looks like a combination of fatwrite + fsck14:50
Chipacatedg: hah14:51
Chipacatedg: I win, then14:51
Chipacatedg: you're copying too much stuff14:51
tedgChipaca, I have fonts ;-)14:51
rsalvetiso basically we got back to the initial issue14:51
rsalvetiand might need some fatwrite debugging14:51
ogra_well, as expected ...14:51
ogra_as i said, i forgot to take out the fatwrite stuff before rebooting14:52
ogra_i just find it interesting that it even kills the blob if used like we did14:52
ogra_(this wont happen once we're done)14:52
Chipacatedg: 70MB of fonts?14:52
tedgChipaca, You can never have too many emoji14:53
sergiusensChipaca: tedg put it in a squash14:55
Chipacatedg: 👹14:55
ogra_+114:55
ogra_squash as squash can !14:56
Chipacaalso � with a � of �14:56
* ogra_ wonders whyt kinds of fonts you all use ... i only get broken chars here 14:56
sergiusensogra_: it's on purpose ;-)14:57
Chipacaogra_: symbola + quivira cover most of the fun stuff14:57
sergiusensChipaca: oh rly?14:57
sergiusensChipaca: I thought this was a squashing pun :-P14:57
Chipacafonts are already compressed, fwiw14:57
Chipacaogra_: you just reminded me of my first 3d accelerator15:03
Chipacaogra_: :)15:03
ogra_haha !15:03
ogra_oh yeah, and the fun to get the dirver up15:03
elopiofgimenez: ugh, that 91 tests depends on the 90 test. Are you ok if I just remove both?15:33
fgimenezelopio, sure15:33
elopio91 in this case will just do a fake update, which we already have. And the 15.04_to_rolling branch fully replaces 91.15:33
fgimenezelopio, yes, it's already covered15:35
fgimenezelopio, i'm preparing a branch with the changes to main.go and the template15:40
elopiofgimenez: not sure what you are talking about, but bring it on!15:41
fgimenezelopio, :) for removing the includeShell code, i'll push it shortly15:41
elopiofgimenez: I confirm that the RC test fails to reboot on latest rolling edge.15:41
mvoogra_: is there anything I need to do? i.e. are you blocked on me currently?15:42
fgimenezelopio, yep i'll report it15:42
elopiofgimenez: oh, good. Thanks for mentioning it, I was about to do the same. I give you the honors :)15:42
ogra_mvo, well, land your stuff ... nothing beyond that ... i'll try to get the script bits done before EOD today ... the rest on monday then15:42
mvoogra_: ok15:43
fgimenezelopio, :) thanks, done15:46
ogra_mvo, so when turning snappy_stamp into a boolean we should be fine i guess ? starting with snappy_stamp=0 ... having the boot script set it to 1 (instead of touching the file) ... who sets it back to 0 ? (whi was responsible for deleting it from disk )15:48
mvoogra_: yeah, its snappy_trial_boot=1 in grub, would be good to just mimick that15:49
elopiofgimenez: what do you think of moving all the tests to the tests directory?15:49
mvoogra_: so grub itself sets snappy_trial_boot=1 i in its environment on boot and then the boot-script clears that value15:50
elopioif we have one single package, the filtering is easier.15:50
ogra_mvo, for rolling for sure ... would we want to do that switch in 15.04 though ?15:50
ogra_(reanming the var and all)15:50
mvoogra_: hm, good question, my gut feeling is yes, its a bigger change but at least its the same code path as grub and 16.04. and it will be different in any case from the previous version so the more uniform the better I would say15:51
fgimenezelopio, mm at first we grouped them by the image they needed, hence the 'latest', 'update' packages, which translate to different binaries, i'm not sure if it's applicable yet?15:51
ogra_mvo, ok15:52
sergiusensmvo: ogra_ just convert the 0-1 into a counter15:52
elopiofgimenez: oh, right. You'll have to read the 15.04_to_rolling first for this to make sense.15:52
ogra_sergiusens, err15:52
elopiowe'll talk about it on monday.15:52
sergiusensor is math not doeable in u-boot?15:52
fgimenezelopio, ah ok15:52
ogra_it is but that makes everything more complex15:52
sergiusensogra_: yeah, but we get counter failover which makes mvo happy ;-)15:53
ogra_if test $snappy_stamp = 1; then ...15:53
sergiusensnot for 15.04 though15:53
ogra_thats pretty trivial to add15:53
mvosergiusens, Chipaca: if one of you could review https://code.launchpad.net/~mvo/snappy/snappy-bootsuccess-env/+merge/264981 - that would be very cool, that would unblock ogra_15:53
* Chipaca looks15:53
sergiusensmvo: not enough cleanup15:54
sergiusens:-P15:54
mvosergiusens: followup branch ;)15:54
* sergiusens jokes15:54
sergiusensmvo: oh, lol15:54
mvosergiusens: but totally agreed, there is so much more we can do now15:55
ogra_dont ask me about go ... looks fine to me but that means nothing :P15:55
elopiofgimenez: if you just leave a return at the end of a function, it will find the values it has to return?15:55
fgimenezelopio, if they are named in the signature yes15:55
elopiothat is impressive.15:56
mvoit does, but some people dislike this style15:56
fgimenezelopio, coming from other languages a find it wonderful, yep :) anyway in this case it comes from the gocheck api, not sure if we have another options here15:57
Chipacaelopio: also confusing, so don't do it* :)15:58
mvoogra_: I get some quick dinner, let me know if you need anything I will get to it when I return15:58
Chipaca* unless you have good reason to ;)15:58
* elopio wants to approve this so much...15:58
ogra_mvo, yeah, i dont think so ... will need to fiddle with the snappy_boot cmd now15:58
ogra_(and i need some food myself)15:58
sergiusensmvo: added questions15:58
elopiofgimenez: I'll leave you the +1, you do the top approve when you update the return.15:58
Chipacamvo: lgtm, but sergio beat me to it :)16:00
sergiusensmvo: elopio fgimenez boilerplate returns are ok if the function is small; but you shouldn't name vars if it only adds cruft and no meaning (e.g.; name these (string, string, string, error) but maybe not these (string, error))16:00
elopiosergiusens: so better to keep the signature short than to use a bare return, that makes sense.16:02
sergiusenselopio: go vet catches most of these btw16:03
fgimenezsergiusens, ok, thanks, for implementing a custom checker here https://code.launchpad.net/~fgimenez/snappy/test-writable-paths/+merge/265110 i've seen this http://godoc.org/gopkg.in/check.v1#Checker, perhaps the interface can be satisfied without naming the return values?16:04
elopiosergiusens: it seemed happy with the bare return version.16:04
sergiusenselopio: fgimenez https://golang.org/doc/effective_go.html#named-results16:04
sergiusensfgimenez: you don't need to name the return vals to satisfy an interface iirc16:05
sergiusensfgimenez: elopio in any case, if it makes the code simpler and faster to read, it's a +1 to whatever ;-)16:05
fgimenezsergiusens, or just "return result, error" as elopio mentioned? having them already defined seems to be handy16:05
kgunnhey so, on a rolling core image, i do snappy search mir, i see it...then sudo snappy install mir  fails to install "snappy package not found"16:06
elopiosergiusens: yes, that link basically says the opposite of what you said :)16:06
kgunnwhat's up with that ^ ?16:06
elopiokgunn: do you have the ens3 iface up?16:07
kgunnyes16:07
kgunnwithout it, i couldn't see results in search16:07
elopiolet me kill my instance and try.16:07
sergiusenskgunn: didn't we have this conversation already? :-P16:07
elopioit might need to add the origin.16:07
sergiusenskgunn: there is no 'mir' package https://search.apps.ubuntu.com/api/v1/package/mir16:08
elopioor that :)16:08
sergiusenskgunn: https://search.apps.ubuntu.com/api/v1/search?q=mir does say there isa mir.mvp-demo with no alias16:08
sergiusenswhich is not ok for a framework16:09
sergiusenskgunn: I'd ask the store guys16:09
elopiosergiusens: how do you add an alias ?16:09
* sergiusens pokes at nessita and beuno 16:09
kgunnall news to me16:09
sergiusenselopio: by being a store admin16:09
elopiohttps://bugs.launchpad.net/snappy/+bug/147465816:09
ubottuLaunchpad bug 1474658 in Snappy "Can't install hello-dbus-fwk: snappy package not found" [Undecided,Confirmed]16:09
kgunnall i know is search returns "mir" and you can't install it16:09
elopiokgunn: sergiusens: so it's the same bug ^16:09
sergiusenselopio: so someone must of fiddled with the store database :-/16:10
elopioeither the search should return the origin, or it should be installed without an origin.16:10
sergiusenselopio: yeah, https://search.apps.ubuntu.com/api/v1/search?q=hello-dbus-fwk no alias there16:10
sergiusenselopio: no, frameworks without origin aren't allowed16:10
sergiusenselopio: so the proper client solution is to not show them in the search results until they have an alias16:11
elopiosergiusens: I mean that snappy install could append the origin to the name you pass. Just a suggestion, not saying it's good.16:11
elopiosergiusens: ok, I like that too.16:11
elopiofgimenez: so, I'd say "return result, error", because Chipaca finds it confusing. I was confused too when I read it. Handy, but maybe too fancy.16:13
* Chipaca is the receptacle of the truth, and as such, if he finds something confusing it is only because it *is* confusing16:14
elopiono need to state the obvious :)16:14
elopiosergiusens: can you give the the credentials for the snappy-tarmac user?16:14
kgunnbbiab16:15
sergiusenselopio: let me add your ssh keys16:16
fgimenezelopio, ok done, much clearer now :)16:17
fgimeneznice weekend everyone o/16:18
sergiusenselopio: extending https://tour.golang.org/basics/716:38
elopiobeuno: ev: is this something you will be supporting? https://launchpad.net/snappy-proposed-image-builder17:05
evelopio: no, that's legacy17:06
evelopio: CI works in images; it does not handle creating them. A service can be created for composing an image given some snaps, but the CI architecture won't know about its internals17:07
elopioev: ack. utlemming: what can we do to start a canonistack machine with the latest rolling edge?17:08
utlemmingelopio: rolling edge will be created sometime automatically and then published to Canonistack. One the build appears, you would launch it like you would any other Openstack instance17:10
elopioutlemming: good. Is there an easy way to know the name of the latest image? Or do we have to grep for ubuntu-core and sort the date?17:11
ogra_mvo, ok, http://people.canonical.com/~ogra/snappy/bootloader/beagleblack_1.9_all.snapshould now have workign logic ... it uses snappy_trial_boot as boolean (0/1) instead of the snappy-stamp.txt file ...17:23
mvoogra_: neat! where is the source for that? I would love to have a look17:24
ogra_mvo, http://paste.ubuntu.com/11893726/ ... thats the input file used for uboot.env17:25
ogra_http://paste.ubuntu.com/11893737/ has the steps i used17:27
ogra_(beyond re-packing the .snap)17:28
mvoogra_: neat!17:30
mvosergiusens: thanks for your excellent feedback, I'm fixing now17:30
ogra_with that we're ready for end to end testing on monday i think17:30
sergiusensmvo: no worries, it only popped into my mind in retrospect of the grub work17:31
sergiusensto avoid writing as much as possible :-)17:31
mvosergiusens: :)17:31
nessitasergiusens, needing an alias?17:46
tedgUhg, I'm missing a variable somewhere.17:47
tedgChipaca, Did you ever get "qmlscene: could not find a Qt installation of ''"17:48
beuno'' has been known to be hard to find17:48
tedgI tried dividing by zero, but that didn't help.17:49
ogra_hmm, telegram is dead on both of my phones17:52
tedgogra_, Thumbnailer issue, apparently they dropped the C++ lib17:57
ogra_uuuh17:57
ogra_oh, yeah http://people.canonical.com/~ogra/touch-image-stats/vivid/20150717.changes17:57
* ogra_ notes libsnappy1 in there :D17:58
ogra_secretly sneaking into the phone :)17:58
kenvandineplotting to take over the world18:00
ogra_:D18:03
nessitasergiusens, elopio, the store will not se any alias automatically, so if you need specific packages with alias, you should email Martin and me for us to set manually18:13
sergiusensnessita: beuno it's aliases that WERE there and AREN'T anymore ;-)18:14
nessitasergiusens, yeah? I would say "impossible", but tell me more :-)18:17
nessitasergiusens, I personally never ever set an alias for mir18:17
sergiusensnessita: at least hello-dbus-fwk had an alias18:17
nessitaperhaps beuno did, but lately he ask me to set alias18:17
beunoI sometimes in my sleep change things to mess up sergiusens, yes18:18
sergiusensnessita not sure about mir, all I know is that I told the people asking about it that it needs an alias18:18
sergiusensbeuno: lol18:18
nessitasergiusens, what alias had hello-dbus-fwk set?18:18
sergiusensnessita: aliased to hello-dbus-fwk18:19
nessitasergiusens, and who setthe alias? (I didn't)18:19
sergiusensnessita: I thought 'alias' is a gimmick, we always want it to be 'package_name'18:19
sergiusensnessita: I have no idea! It worked, now it doesn't18:19
sergiusensthat's all I know18:19
sergiusensnessita: and elopio reported a bug, I just saw it had no alias18:20
sergiusensnessita: maybe we can just set it for hello-dbus-fwk and drink some scotch to forget this ever happened :-P18:20
nessitasergiusens, so the only alias we have set are: generic-i386, generic-amd6418:20
sergiusensnessita: what about webdm?18:21
nessitasergiusens, we could do that, but I would like to know that the alias setting process is understood18:21
sergiusensnessita: that did have an alias and made the arrangements to set it18:21
sergiusensheh, yeah, webdm does have an alias18:21
* sergiusens wipes the sweat off his forehead18:22
nessitaas a summary: alias is set by hand by either beuno or matiasb or me, and we don't remove it unless explicitely asked for, and there is no automatic process to set one18:23
sergiusensnessita: wrt the process, beuno promised me that oem and framework snaps would get auto aliased when getting approved into the store (he didn't say when though)18:23
beunosergiusens, FWIW, we're working on allowing al reviewers to set aliases18:23
beunolike yourself18:23
sergiusensbeuno: great18:23
beunowhich we'll follow at some point with some automation18:23
beunobut at least expand the group who can set it significantly18:23
sergiusensbeuno: great, because fwk and oem can't be forked18:24
mvoChipaca: libxkbcommon is uploaded to wily, I clone the repo for a pull-request now, lets see what upstream says18:25
sergiusensnessita: in any case, I didn't ask for hello-dbus-fwk to be aliased, did not approve it into the store nor did I push it; I only noticed it is a framework and it is missing an alias :-)18:25
* sergiusens checks to see who approved hello-dbus-fwk and mir18:27
sergiusensjdstrand: I see you approved hello-dbus-fwk into the store, did you ask any of the store guys to create an alias for it?18:29
sergiusensjdstrand: ditto for mir. Bringing it up as they need to be aliased and it's not automatic18:29
jdstrandsergiusens: I did not18:30
jdstrandsergiusens: on either18:30
jdstrandoh, I didn't realize that18:30
jdstrandso, we must request that all new frameworks must have an alias?18:30
sergiusensjdstrand: yes, it's all related to them not being able to have forks18:31
jdstrandshouldn't the store just do that for us automatically?18:31
sergiusensjdstrand: they have a task open (mentioned ^^)18:31
jdstrandok18:31
jdstrandand yes, I understnad that frameworks can't have forks-- I just didn't realize we had to do the manual request18:32
jdstrandbut glad to hear that is being addressed too18:32
mvoChipaca: just fyi https://github.com/xkbcommon/libxkbcommon/pull/2519:06
tedgjdstrand, I want to give my app access to /run/mir_socket, I don't see a cap for that, so do I just need to override for now?19:34
carif_just confirming: if I were to install Ubuntu Core, I would get the same bits as Snappy Ubuntu core, but I'm using the debian packaging system, not snappy19:44
carif_also, the file layout will be somewhat different because snappy operates a little differently. So I have /apps/**, I can have multiple versions installed, one of them being current and I can revert back to some prior version if I so choose19:45
carif_the phone is somewhat different in that I run images on a device, say a nexus 4/7/10 and I use adb to push the images to the device and then ubuntu-device-flash to update it19:47
tedgThe phone and snappy are both image based, and ubuntu-core is basically the same, there are minor differences in the packages installed.19:48
jdstrandtedg: there should be a mir_client policy group provided by the mir framework19:48
jdstrandtedg: depend on the mir framework, then use mir_client19:48
tedgAh, it's in /var19:49
tedgjdstrand, Thanks :-)19:49
jdstrandnp19:49
carif_those packages are called "clicks" but clicks have been renamed to "snaps"19:49
carif_tedg, ^^^ tar baby19:49
jdstrandtedg: fyi, 'snappy-security list -V ubuntu-core' will show you what policy is available currently on the system19:50
carif_will the phone eventually install its apps in /apps? etc?19:50
tedgjdstrand, Oh, that's good to know. I just used "find" :-)19:51
jdstrandfind will work too :)19:51
tedgcarif_, Yes, in time phone applications will be snaps and the phone will be based on Snappy.19:51
carif_tedg, ty19:51
tedgjdstrand, Not if you start it in /usr …19:52
jdstrandhehe, no19:53
carif_tedg, when that transition happens will the phone utilities like ubuntu-device-flash be deprecated? So I will (say) snapp-remote a snap onto the phone?19:55
* carif_ isn't sure he's asking the question correctly19:56
tedgcarif_, No you can still use u-d-f to flash a phone from a raw state. But like it upgrades itself today, the snappy version will do the same.19:56
tedgcarif_, You could use snappy remote to upgrade/install a snap as well if you wanted. More an additional feature.19:56
carif_vg, last question, in addition to finding snaps at the Ubuntu store, can I have my snappy device (kvm, etc) look for snaps on a local website? rather than using snap-remote to push a snap, I've like to do 'snappy install mikey' and have it find the snap on some local website20:00
carif_tedg, ^^^ ... then I'll let you get back to work20:00
tedgcarif_, We're not going to support that out of the box, we want to do a lot with the store that isn't just "download a file" to make the updates smarter and faster. It's open source, and your device, and all that, but we'd really like people to put things in the store.20:02
tedgClearly you could write a shell script to do it if you wanted pretty easily.20:03
carif_tedg, thanks dude20:03
tedgThere's also a ton of work going into the store so that you can have private stores and things like that.20:03
=== yofel_ is now known as yofel
tedgkgunn, I have Mir snap1, but I don't think that has the seccomp with the socketpair() in it, is there a more up-to-date snap?20:21
kgunntedg: i'm just now uploading actually20:24
rsalvetitedg: mind giving a hand with some reviews? https://code.launchpad.net/~snappy-dev/snapcraft/core/+activereviews is quite a big list20:24
kgunntedg: but, yes y;day (i think) i took that change in from jamie20:25
tedgkgunn, Upload faster! ;-)20:25
tedgrsalveti, Sure, I'll give them a try. Still feel a bit like the student though :-)20:26
kgunntedg: actually...i just cancelled, gonna pull fresh and rebuild to make darn sure it's the right one20:26
rsalvetitedg: :-)20:26
kgunnrsalveti: so who is Mr. snappy store ?21:10
rsalvetibeuno: ^21:10
rsalvetihe's the store itself21:10
kgunnlol21:10
beunoI cp software into people's phone on demand21:11
kgunnso i've got a new mir snap....and i altered the version to be "1.1" from "snap1"...so dropping the "snap"21:11
kgunnand it no likie21:11
tedgBecause we love beuno we wrote snappy-remote to make his life easier.21:11
beunokgunn, it uses debian rules for versioning (for now)21:11
tedgNo more hand copying21:11
kgunnug, so i have to live with snap in the version string?21:12
beunoyou just want me out of a job21:12
beunokgunn, not really, you just need to make it newer from a debian versioning POV21:12
beunonot sure what a character to integer path is21:12
beunokgunn, that will change in the next month or two21:14
kgunnk, for now will just live with "snap" there....21:14
beunoyou'll be able to throw whatever you want as a version, and it'll do updates based on internal revision numbers21:15
beunobut not yet, because phones use that to figure out if it's newer or not21:15
carif_how long does it take for ubuntu-device-flash to update a device? And do I need need to "approve" the update on the device itself or is it just an adp think on my laptop?21:55

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