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

sergiusenselopio: rollback fails for you, right?03:31
rsalvetisergiusens: fails for me as well03:33
rsalvetisergiusens: check https://bugs.launchpad.net/snappy/+bug/147412603:33
ubottuLaunchpad bug 1474126 in Snappy "failed to rollback from 15.04 alpha #4 to #3" [Critical,Confirmed]03:33
sergiusensrsalveti: I have this fix I've been trying to test for a while now :-/03:33
sergiusensrsalveti: first a bad sdcard with fully corrupted content, now this...03:34
rsalvetiright, this corruption issue seems to be quite normal03:34
sergiusensrsalveti: oh, and not sure I ever noticed, but it doesn't look like vfat03:34
rsalvetiseems at the moment we call fsck for the vfat partition things break03:34
sergiusensrsalveti: HARDWA~1.YAM03:34
rsalvetisergiusens: that is vfat03:35
sergiusensyeah03:35
sergiusensrsalveti: don't we get long file names?03:35
rsalvetithat's an extension03:36
rsalvetiit seems fsck changed it03:36
rsalvetiit is supported by the original flash03:36
rsalvetiall good and so on, but at the time it runs fsck, boom03:36
rsalvetithe time it worked fine I had a FSCK... file in the partition03:37
rsalvetiFSCK0000.REC03:37
rsalvetiwhen it failed I didn't get this file, but the content changed03:37
rsalvetinot sure yet when we call fsck03:38
sergiusensrsalveti: fsck is part of our new init?03:38
rsalvetidoesn't look like it03:38
rsalvetimaybe part of the boot process, done by systemd, not sure03:38
rsalvetigoing to bed now, we can check tomorrow03:40
sergiusensrsalveti: ok, then you don't get to test my fix03:40
sergiusens:-P03:40
sergiusensuntil tomorrow03:40
rsalvetiright :-)03:40
sergiusensrsalveti: smart in using the dup files btw ;-)03:40
rsalvetipropose it anyway03:40
rsalvetigreat03:41
sergiusensrsalveti: I will, as soon as I can do some street testing03:41
rsalvetialright, later man, have a good night03:41
sergiusensgood night03:42
=== chihchun_afk is now known as chihchun
fgimenezgood morning07:02
dholbachgood morning07:12
=== erkules_ is now known as erkules
=== chihchun is now known as chihchun_afk
ogra_yippie !!!08:55
ogra_https://launchpad.net/~ubuntu-cdimage/+livefs/ubuntu/wily/ubuntu-core-system-image/+build/3237008:55
ogra_we has arm64 images :)08:55
tbrogra_: oh. does that mean I'll be able to try something on the dragonborad?09:05
ogra_tbr, well, no idea if it boots or how our bootloader setup on arm64 is at all09:06
tbr(yes, I'm able to bring my own hw-adaptation. Just rebuilt the kernel to get usb-networking)09:06
tbrthe state of bootloaders on aargh64 is 'special'.09:07
ogra_at least all packages build and enable rolling a rootfs, not sure i can say more about these images :)09:07
JamesTaitGood morning all; happy Pandemonium Day! 😃09:07
ogra_uuuuuh09:08
tbrthat's fine. I might give it a go, but will probably have some questions09:08
* tbr wishes JamesTait a merry Setting Orange09:08
* JamesTait sets his orange on the desk, to eat later.09:09
Chipaca            sourceFiles |= set([os.path.join(root, d) for d in dirs])10:53
Chipacamterry:10:53
Chipacaoh, no mterry10:53
rsalvetimorning11:54
Chipacamo'in11:54
rsalvetiogra_: mvo: did you guys had time to check the email sergiusens sent yesterday?12:20
rsalvetiabout bug 147412612:20
ubottubug 1474126 in Snappy "failed to rollback from 15.04 alpha #4 to #3" [Critical,Confirmed] https://launchpad.net/bugs/147412612:20
mvorsalveti: not yet, sorry, let me do that now. I was absorbed in snapcraft stuff, mterry has too many good ideas :)12:37
* mvo looks now12:37
rsalvetimvo: haha, no worries :-)12:37
ogra_hmm12:38
* ogra_ didnt notice a mail 12:38
ogra_checking again12:38
rsalvetiogra_: it seems sergiusens forgot to include you12:38
rsalvetibut was basically about this bug ^12:38
rsalvetihe created https://code.launchpad.net/~sergiusens/snappy/noUselessUpdate/+merge/264665 to fix 147412512:39
rsalvetibut we can't test it easily because of bug 147412612:39
ubottubug 1474126 in Snappy "failed to rollback from 15.04 alpha #4 to #3" [Critical,Confirmed] https://launchpad.net/bugs/147412612:39
ogra_right, i saw that12:39
ogra_so as i commented on the bug, it could well be that fatwrite messes up the filesystem12:40
* ogra_ doesnt really trust it 12:40
ogra_still so new and rarely used anywhere12:40
rsalvetiogra_: yeah, looks like it12:44
rsalvetiogra_: I did the update, then decided to run fsck.vfat and it was all good12:44
rsalvetibut once I rebooted, boom12:44
ogra_i wonder if it is something simple ... like fatwrite not being aboe to truncate files ...12:44
ogra_so you would have to delete them first12:45
ogra_i didnt really find many bugs though ... i guess it is really rarely used12:45
rsalvetiogra_: mvo: one other question I had, why do we keep /boot/uboot mounted all the time?12:45
ogra_we shouldnt (i dont know why, ask jodh ? )12:45
mvorsalveti: I don't think there is a good reason12:46
ogra_also, why dont we sync mount it ?12:46
mvoI think we do that, no?12:46
* ogra_ doesnt see a sync option 12:46
mvothe sync mount I mean12:46
rsalveti/dev/mmcblk0p1 on /boot/uboot type vfat (rw,relatime,sync,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)12:46
rsalvetiwe do use the sync option12:46
ogra_hmm12:46
mvoogra_: outdated initrd ;) ?12:46
rsalvetilet me remove the fatwrite piece and check again12:46
ogra_(RaspberryPi2)ubuntu@localhost:~$ mount|grep boot12:47
ogra_/dev/mmcblk0p1 on /boot/uboot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)12:47
ogra_weird12:47
rsalvetiit seems that makes fsck.vfat unhappy and then it changes the fs12:47
ogra_shouldnt be to outdated12:47
rsalvetiI was on image 4 (bbb)12:47
ogra_(15.04 stable image 3 though)12:48
ogra_but i thought that should have sync set12:48
mvoogra_: yeah, we set to sync a good while ago, in the 15.04 timeframe12:50
mvoodd12:50
ogra_right12:50
ogra_i use the initrd from cdimage with removed modules12:50
ogra_nothing else changed12:50
ogra_rsalveti, are our tools able to remount /boot rw before operating on it ?12:51
ogra_just switching it to ro might be a bit dangerous if they dont :)12:52
rsalveti/boot/uboot is always rw12:53
ogra_yes, it shouldnt12:54
ogra_but if we make it ro, can the tools deal with it ?12:54
ogra_hmm12:55
ogra_                else12:55
ogra_                        bootdir="$ubootdir"12:55
ogra_                        echo "$boot_partition $bootdir auto sync 0 2" >> "$fstab"12:55
ogra_                f12:55
rsalvetiI'd expect it to only be mounted when needed, since it's a vfat partition12:55
ogra_so that is what it is supposed to write to fstab12:55
rsalvetiyup12:55
ogra_(RaspberryPi2)ubuntu@localhost:~$ grep uboot /etc/fstab12:55
ogra_/dev/mmcblk0p1 /boot/uboot auto defaults 0 012:55
ogra_and that is what my fstab has12:55
rsalveti/dev/mmcblk0p1 /boot/uboot auto sync 0 212:56
rsalvetibbb, image 312:56
ogra_rpi image 312:56
ogra_how weird12:56
ogra_i wonder if systemd re-writes the fstab entry somehow12:59
ogra_i dont see any explanation in the code why it would be "auto default"12:59
=== chihchun_afk is now known as chihchun
rsalvetimvo: oh, and https://code.launchpad.net/~sergiusens/snappy/noUselessUpdate/+merge/264665 reminds me that we need to prioritize the work to update the upgrader before doing the upgrade13:21
tedgMorning folks13:21
rsalvetinot super urgent, but would be good for us to put some hands on it later this month13:21
tedgChipaca, Were you able to get a libxcbcommon patch working?13:21
Chipacatedg: i'm not sure, right now13:21
Chipacaum13:22
Chipacaread: i have a working patch13:22
Chipacabut i'm not sure the patch works13:22
Chipacais that clearer? i'm not sure :)13:22
tedgHmm, how do you know it's a working patch then? :-)13:22
mvorsalveti: indeed13:23
mvotedg: it builds, so we shipped it.13:24
tedg\o/13:24
Chipacatedg: and the not sure is because http://pastebin.ubuntu.com/11877692/13:26
sergiusensmorning13:27
tedgChipaca, There seems to be reads from /home/ubuntu/thing/lib and /apps/qmlapp.sideload/0/usr/lib, seems there should only be one of those?13:28
rsalvetisergiusens: morning :-)13:28
Chipacatedg: it is one, there's a symlink but i'll unify so it melts minds less13:29
tedgIf you're running confined, symlinks don't help.13:30
Chipacanot running confined13:30
rsalvetisergiusens: ogra_: mvo: yeah, if I remove the fatwrite command it all works fine13:31
mvohey sergiusens, good morning13:32
Chipacatedg: http://pastebin.ubuntu.com/11877734/13:32
mvoChipaca: hm, that looks like progress compared to yesterday, no?13:35
Chipacatedg: oh, wait, that one is using the wrong socket13:35
tedgChipaca, Ah, so to the next step :-)  Looks like it can't find the Mir socket. Probably not running as user 100013:35
Chipacatedg: with the right socket: http://pastebin.ubuntu.com/11877746/13:35
tedgYeah, need to set MIR_SOCKET probably.13:35
ogra_rsalveti, well, how do you switch ? by manually editing the file ?13:35
Chipacayeh, i'd commented it out, because with that it finds it but still can't connect (?)13:35
Chipacabut it gets further ahead with it, so13:36
Chipacapermission denied13:36
Chipacadammit13:36
Chipacahttp://pastebin.ubuntu.com/11877751/13:36
Chipaca^ with the right perms, and the right socket13:36
tedgWhat Mir server are we using? Demo Server? System compositor?13:37
Chipacademo server13:37
Chipacawhich is what is in the mir package13:37
tedgK, I don't think that it requires notification that we're going to connect. I think it stubs out the auth parts.13:38
Chipacatedg: the permission denied was on the socket itself13:38
Chipacatedg: but i don't know if you're talking about that :)13:38
tedgKinda both :-)13:39
tedgMir also does it's own auth depending on the server.13:39
Chipacaah, ok13:39
tedgThere are some MIR debugging environment variables, let me try to find them.13:39
Chipacathe mir wrapper does take care of the socket and its permissions, but i'm running it directly myself to have the console output13:40
tedgWell, you can get the console output from systemd13:40
Chipacai know i should be able to, but couldn't find it in journalctl13:42
tedgOh, my Mir branch was only 200K objects out of date...13:42
ogra_rsalveti, so i'd really like to get rid of using fatwrite, i wonder if we could ship a uboot.env file wih a binary environment instead ... only containing the a/b variable, that way we can just run saveenv to switch it (if anything reads the snappy_stamp.txt file from userspace we need to handle that separately though)13:43
tedgChipaca, I think this is the useful variable: MIR_CLIENT_RPC_REPORT=log13:44
Chipacatedg: in the environ of the server, client, both?13:44
tedgChipaca, Client, though sever can also be used if we're confused still :-)13:45
tedgChipaca, Here is what I wrote down: MIR_SERVER_{DISPLAY_REPORT,COMPOSITOR_REPORT,CONNECTOR_REPORT,MSG_PROCESSOR_REPORT,SESSION_MEDIATOR_REPORT}=log13:45
mvosergiusens: thanks for your branch, I'm trying to reproduce this now13:45
Chipacaoh yeah baby13:45
Chipacatedg: http://pastebin.ubuntu.com/11877784/13:46
mvorsalveti: is there anything unusual about your sd card? particularly big maybe?13:46
tedgChipaca, Huh, perhaps look at the server?13:47
Chipacatedg: that was on the server, fwiw13:47
tedgOtherwise we're gonna need #ubuntu-mir's help13:47
tedgOh, try on the client.13:47
Chipacatedg: i get no extra input from the client with those, nor with MIR_CLIENT_ of same13:48
Chipacatedg: i've got to run, will read when i return13:53
tedgChipaca, K, I'll ping some central time folks when they log in as well.13:53
Chipacata13:53
Chipacaand i'll get the different bits and bobs up when i return, also, so others can reproduce13:54
sergiusensmvo: np13:55
ogra_pitti, could anything in systemd touch/modify fstab during boot ?13:59
* ogra_ really doesnt get how the /boot/uboot entry can end up differently in fstab than what was echoed into it 14:00
pittiogra_: read for sure; changing, I'm not aware of anything14:00
ogra_i have this code ... echo "$boot_partition $bootdir auto sync 0 2" >> "$fstab"14:01
ogra_and end up with:14:01
ogra_(RaspberryPi2)ubuntu@localhost:~$ grep boot /etc/fstab14:01
ogra_/dev/mmcblk0p1 /boot/uboot auto defaults 0 014:01
ogra_i dont get how that can happen14:02
pittiso that's not system-image writing fstab from a template and writable-paths or so?14:02
pittiand is /etc/fstab writable in the first place?14:02
ogra_no, it is the initrd script checking for uboot and then echoing this line into fstab14:02
pittiso /etc/fstab is a symlink to /etc/writable/fstab or so?14:03
ogra_to my knowledge thats the only place we handle /boot/uboot14:03
ogra_fstab is a bindmount14:03
ogra_into /run/image.fstab14:03
pittiso perhaps your echo happens before the bind mount?14:04
ogra_http://paste.ubuntu.com/11877845/14:04
ogra_thats the code snippet14:04
ogra_(it happens afterwards)14:04
ogra_i dont see anything wrong with that code14:06
pittiwhat does handle_writable_paths() do?14:06
pittiit doesn't happen to assign fstab= to something else by chance?14:06
ogra_it loops over the writable paths file and echos the lines as proper fstab lines14:06
ogra_oh14:06
* ogra_ checks for uboot in writable-paths14:06
ogra_(RaspberryPi2)ubuntu@localhost:~$ grep boot /etc/system-image/writable-paths14:07
ogra_(RaspberryPi2)ubuntu@localhost:~$14:07
ogra_nope14:07
rsalvetimvo: nothing unusual, no14:09
rsalvetiogra_: we got logic from our userspace to check for that stamp file14:09
rsalvetito then change the boot mode because it was successful14:09
rsalvetisince it boots with "try" first14:09
ogra_rsalveti, right, so the uboot.env would have to add it to cmdline and the initrd would have to echo that into the stamp file14:10
ogra_so that uboot.env still stays the master and writin only happens from the kernel vfat driver14:10
ogra_and not from uboot14:10
rsalvetiright, I guess that's a way14:11
rsalvetienv + kernel cmdline + logic in initrd14:11
ogra_yeah14:11
ogra_just requires that all uboots we support can handle such an env14:11
ogra_at least for upgradeable devices14:12
rsalvetiogra_: are we shipping uboot with bbb?14:12
rsalvetior are we booting the uboot that is already flashed in the board?14:12
ogra_we are shipping a uboot.img14:12
ogra_(and SPL too i think)14:12
rsalvetithat uboot is super old14:12
ogra_hmm14:13
ogra_i wonder if you guys actually boot the EMMc one14:13
rsalvetieasy to check14:13
rsalvetiogra_: yeah, we're loading the spl and uboot that is already flashed in the emmc14:14
mvoogra_: I like your idea14:14
ogra_aha !14:14
rsalvetibecause to boot from the sd card completely you have to hold the button while turning on the board14:15
ogra_rsalveti, so likely a different fatwrite then14:15
rsalvetiU-Boot SPL 2014.10-dirty (Dec 18 2014 - 22:07:26)14:15
ogra_or wipe the MMC14:15
rsalvetiU-Boot 2014.10-dirty (Dec 18 2014 - 22:07:26)14:15
rsalvetithe one we ship14:15
rsalvetiright14:15
rsalvetiU-Boot SPL 2014.04-00015-gb4422bd (Apr 22 2014 - 13:24:29)14:15
rsalvetiU-Boot 2014.04-00015-gb4422bd (Apr 22 2014 - 13:24:29)14:15
rsalvetithe one we boot14:15
ogra_well, less dirty at least :P14:16
ogra_damn ...14:16
ogra_didnt zyga's patch land that was supposed to enforce that ?14:16
rsalvetiogra_: nops14:16
rsalvetisince the only way to force our bootloader is by not having the original one or by pressing the button14:17
ogra_https://code.launchpad.net/~zyga/snappy-hub/fix-1464275/+merge/26183314:17
mvohm, I did a fresh flash of my sd card some minutes ago and I have: "U-Boot 2014.10-dirty (Dec 18 2014 - 22:07:26)" in my boot message - but I did press the button in the past, will it remember that?14:17
rsalvetimaybe you wiped out your emmc14:17
ogra_well, it is supposed to remember it14:17
ogra_but i have no clue how that works14:18
mvoboth is likely14:18
rsalvetidon't think it remembers it14:18
mvook14:18
rsalvetiat the moment you unplug power and plug it again, it should try emmc first again14:18
ogra_so looking at zyga'S patch there ... it would still use the MMC uboot14:18
ogra_but enforce loading the SD14:18
ogra_so that wouldnt actualyl help14:19
rsalvetino, when you run that you're already in uboot14:19
ogra_right :/14:19
* ogra_ sees no way around this except wiping the MMC on first boto or some such14:19
ogra_*boot14:20
ogra_... not great :/14:20
rsalvetiogra_: or do your env dance suggestion you said14:20
rsalvetiI'm checking now if our fatwrite is better14:21
ogra_well, will that help ? are we sure the bootx command behaves the same ... etc etc ?14:21
ogra_its not only fatwrite14:21
ogra_i ean, we can indeed use my suggestion to take fatwrite out of the equation ... but there are 6 months between the two uboots ... i would be surprised if we wouldnt hit other issues14:22
ogra_*mean14:22
ogra_(8 monts actually ... temporary math weakness :P )14:24
mvosergiusens, rsalveti: hrm, so I tried to test 15.04a3 -> 15.04a4 -> 15.04a3 but when I rollback I get the following error http://paste.ubuntu.com/11877942/ on boot. this is new, right?14:25
mvoogra_: -^14:25
ogra_mvo, no, thats exactly the issue we are diuscussing14:26
ogra_*discussing14:26
mvoogra_: thats the corruption?14:26
ogra_fatwrite updates the file and trashes the vfat14:26
mvook, cool14:26
ogra_if the fatwrite from the older uboot is used14:26
mvoso  â€¦ I get this with "U-Boot 2014.10-dirty (Dec 18 2014 - 22:07:26)14:26
mvo"14:26
rsalvetiyeah, so that shows that our uboot is busted as well14:27
mvoI never see a different U-Boot boot string14:27
ogra_yeah14:27
mvo*weeeh*14:27
rsalvetiand another interesting thing, my ethernet doesn't work with our uboot14:27
rsalvetiit only works with the uboot provided by the board14:27
rsalvetigot bbb rev c14:28
ogra_wow. thats weird14:28
rsalvetimvo: that's the issue that elopio had for quite a while14:29
rsalvetibut that we were never able to find out why14:29
sergiusensmvo: that's the second bug14:29
=== bjf is now known as __bjf
sergiusensmvo: to test the fix for the first bug, resync the kernel and initrd from /boot ;-)14:29
elopiogood morning.14:30
mvosergiusens: :) just commented, I will look into adding a test now, but a cup of tea first :)14:31
elopiofgimenez: looking at your failures, for some reason systemctl status docker_docker-daemon_*.service prints nothing for you on the stdout.14:31
elopioI'll check what's going on.14:31
elopiofgimenez: lets skip our meeting today, unless you want to discuss about something.14:31
mvosergiusens: honestly this fatwrite thing is really alarming to me shows that we really need some bbb auto testing14:31
fgimenezelopio, ok np, i'll check the output of systemctl14:32
rsalvetimvo: yeah14:34
rsalvetion the good side plars is getting that going soon :-)14:34
rsalvetibut yeah, it's super bad14:34
sergiusensmvo: to be fair, this is an untested code path14:36
ogra_sergiusens, rolling back and upgradin is untested ?14:36
rsalvetiguess the main problem is when we're changing kernel versions14:36
elopiofgimenez: I see, the *.service seems to work on 15.04 but not on rolling.14:37
rsalvetiwhen updating/rolling back with the same kernel version I think that's mostly fine14:37
rsalvetibut might still get broken I believe, and why elopio got it from time to time14:37
sergiusensogra_: for new kernels, yes14:37
ogra_ah, it is our first new kernel ?14:37
ogra_k14:37
fgimenezelopio, yes, the output is from rolling/edge 10714:38
sergiusensogra_: I don't think so, but channel changing for testing this are all flawed IMO (unless it is indeed a channel change test)14:39
fgimenezelopio, btw i have a branch for selecting the release, branch and revision for the tests almost done, will ping you when pushed14:39
elopiofgimenez: nice.14:40
mvorsalveti: yeah, thats the good part, we have the tests and a plan and all that :)14:40
mvoand thats probably what the erle guys also experienced from time to time14:41
ogra_yeah14:41
elopiopitti: do you know why this works on systemd 219 but not on 222?14:42
elopiosystemctl status docker_docker-daemon_*.service14:42
pittielopio: not off the top of my head; what does "not work" mean?14:48
elopiopitti: on 219 it returs the status. On 222 it returns nothing.14:48
pittielopio: indeed; mind filing a bug about this, so that we can track this? (busy with something else right now)14:52
elopiopitti: sure thing.14:52
pittielopio: thanks; I'll bisect it14:52
sergiusensrsalveti: ogra_ if we revert the fix in uenv.txt, will we get something workable again (wrt fatwrite)?14:53
ogra_sergiusens, no14:53
ogra_that fix wont change anything14:53
sergiusensogra_: why did this only start now?14:54
ogra_sergiusens, dunno, did we do this kind of test before ? (multiple updates and rollbacks)14:54
sergiusensogra_: yes we have14:55
sergiusensogra_: just the previous release was a 3 to 4 jump between releases14:56
ogra_probably it only happenms if the fat content changes between two fatwrites14:56
ogra_which now happens due to the kernel upgrade14:56
ogra_(i'm really just guessing here ... fact is that it doesnt break if fatwrite isnt used at all)14:58
rsalvetiright, I believe it's because of the newer kernel14:59
ogra_do we know if the uboot fat driver can handle long filenames  ?15:00
elopiopitti: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/147442615:00
ubottuLaunchpad bug 1474426 in systemd (Ubuntu) "systemctl status globbing does not work on version 222" [Undecided,New]15:00
ogra_we also started using the longer filenames for the kernel15:00
elopiofgimenez: for now, I'll modify GetCurrentVersion to get a packageName.15:00
ogra_(thanks to the version)15:01
=== chihchun is now known as chihchun_afk
pittielopio: thanks15:03
plarsogra_: rsalveti: sorry, just now catching up after I got off a call - yes this is what I was complaining about a long time ago when trying to get BBB to boot properly - that we just accidentally boot snappy on it because we have a working uboot on emmc, and that uboot could easily break on the sd card if you don't force it to boot from there15:16
ogra_plars, yeah, but there is no way for us to enforce SD ...15:17
ogra_unless we wipe it15:17
ogra_well, wipe the MMC15:17
plarsogra_: there is one other way15:17
mvoohhhh?15:18
ogra_how ?15:18
plarsogra_: holding the s2 button down, or jumpering lcd_data02 I think, to gnd will do it15:18
ogra_right15:18
plarsit forces booting from the sd (including bootloader)15:18
ogra_or solder a wire ...15:18
plarsogra_: well, a jumper wire is so much easier :)15:18
ogra_not realy a softwareish solution :)15:18
ogra_and we cant really destroy peoples MMC installs15:19
plarsogra_: so my current plans for instrumenting bbb include this, and use s2 along with a stable image on emmc to flash the sd, then force booting onto the sd15:19
plarsogra_: but if/when we get the recovery stuff, then we won't want to do that of course - and it becomes really critical that we don't break uboot15:19
ogra_yeah :(15:20
plarsogra_: but that makes me wonder, do we really need to change the bootloader that often? except maybe at the beginning?15:20
plarsogra_: once it stabilizes shouldn't we be able to mostly leave it alone?15:20
ogra_well, its not our bootloader that has issues ... it is the case where we boot the onboard one and use fatwrite from it15:21
plarsif you are updating it only ever 12-16 months, it's much easier to be super careful and make sure we don't break it before landing the change15:21
plarsah15:21
plarsogra_: why is it calling fatwrite from the onboard one?15:22
ogra_the uboot scripts execute it to set the a or b partition in a file on the boot partition15:22
plarsoh, right15:22
plarsso this is just the nature of bbb, by default it tries to load the bootloader from emmc, unless you press the s2 button after poweron15:23
beunoFWIW, in both my bbb15:24
beunoI didn't need to press anything15:24
beunoit boots from the SD if it's there15:24
plarsbeuno: yeah, that's accidental and the source of the problem :)15:24
beunoplars, this is why I don't do hardware  :p15:25
plarsbeuno: I've been complaining about this for a while now, what's happening is that it's loading the bootloader off of your emmc15:25
plarsbut the bbb default image is set up to check if there's something it can load from the sd15:26
elopiopitti: other question, is there a way to wait for a service to be loaded and running?15:26
pittielopio: another unit should just have After=foo.service15:27
elopiopitti: but not inside a unit. Like I install a package, and I want a command to wait until it's up before using it.15:27
pittielopio: other than polling "systemctl is-active foo.service" I don't know; usually invoke-rc.d waits until it's up already15:28
pittielopio: asking on #systemd (freenode) might be useful, perhaps I'm missing some kind of "wait-active"15:28
elopiopitti: ack, thanks.15:28
elopiois-active is already an improvement to what I have :)15:29
pittielopio: other than that a while/is-active/sleep loop would work for now15:29
pittielopio: that smells a bit weird -- you  have a package whose postinst auto-starts a service, but it's not up when apt-get finishes?15:30
plarsogra_: if there's a known fix for this uboot bug, I'm sure rcn-ee would be open to adding it in his images, then we could point people who are running the default image on emmc to update to that?15:30
pittielopio: packages are expected to do that; i. e. that sounds like a bug in that .service, or in the package15:30
elopiopitti: well, on snaps we don't have post-inst.15:30
ogra_plars, well, the issue is to use fatwrite at all :P15:30
plarsoh15:31
ogra_plars, i'm looking at a way to not use it at all15:31
elopioI'm not sure if we can make something to wait on install.15:31
plarsok15:31
pittielopio: ah, ok15:31
pittielopio: but what would start the shipped units then?15:31
pittielopio: whatever that ^ is, if it does "systemctl start", that's also synchronous, i. e. waits until it's started15:31
pittielopio: unless you call it with --no-block15:32
elopiopitti: hum, so maybe that works. I'm just following this comment that says:15:34
elopio"FIXME: sucks, needed because "systemctl start" does not wait until the service is really started."15:34
elopiomaybe that's not true anymore.15:34
pittithat has never been true15:34
pittiit might be true that the .sevice's Exec* commands do not wait15:34
pittii. e. do whatever you need to do to wait until the started service is up15:35
pittibut then the polling loop doesn't help you either15:35
pittior it specifies a wrong Type= (simple instead of forking, etc.)15:35
elopiopitti: I see. Oh, but here's another case where we do need to wait:15:36
elopioif ssh starts before the service starts, then the test might run before the service is running.15:36
pittielopio: ah, this might be something to fix in autopkgtest15:37
pittielopio: i. e. not start before systemctl list-jobs becomes empty15:37
elopiopitti: oh, I like that.15:38
plarsIs there a good description somewhere of pxe booting snappy?15:38
elopioI see that the service has no type, which defaults to simple, which should wait until the service is up. So if it doesn't, is a package bug.15:47
elopiofgimenez: are you ok if I remove all this waits, and see how it goes? If it fails, we report bugs to fix the packages.15:48
fgimenezelopio, yes, much better. If we need to wait for something we could use goroutines and channels too15:50
elopiofgimenez: I was trying to use a ticker to poll every 1 second, and made a mess instead :)15:50
elopioI need to get better at parallelization.15:51
fgimenezelopio, me too :) we could encapsulate all this logic somehow so that we can reuse, we'll need it again for sure15:52
elopiofgimenez: btw there's this tiny branch that needs review: https://code.launchpad.net/~elopio/snappy/test_the_tests_tests/+merge/26417015:53
fgimenezelopio, sure15:54
rsalvetilool: why are we not using the u-boot from the archive?15:56
rsalvetiit seems we're using the one from http://people.canonical.com/~lool/snappy-bbb/15:56
ogra_lool, did your patches land upstream (so that they would be in the wily archive uboot) ?15:56
rsalvetisergiusens: how can I retrieve the content of the beaglebone oem snap from the store?15:57
elopiook, xkcd fails without the sleep. So I suppose there's a bug on the networking-service template.16:03
sergiusensrsalveti: get it from te link16:07
sergiusensrsalveti: https://search.apps.ubuntu.com/api/v1/package/beagleblack the anondownload one16:07
sergiusensrsalveti: or just lp:snappy-hub and look for the snappy-systems branch (I would create a series, but I think asac is still owning the snappy-hub project).16:08
tedgUhg, so I installed the Mir demo server before setting up SSH.16:08
tedgIs there a way to figure out the IP address KVM gave something?16:09
rsalvetisergiusens: cool, thanks16:09
sergiusenstedg: kvm only does lo by default, so you would need to redir anyways and not care about the ip16:09
tedgI used virt-manager so it sets up the interface.16:09
sergiusenstedg: I do alias kvm_snappy='kvm -m 1500 -redir :8022::22 -redir :8080::8080 -redir :4200::4200'16:09
sergiusenstedg: oh, then I don't know :-)16:10
jobotHello, I have snappy on a beaglebone black using the image from here https://developer.ubuntu.com/en/snappy/start/#try-beaglebone. I have installed owncloud and would like it to use storage from a usb drive, but I cannot seem to mount the usb to have it writeable. Any guidance appreciated. Thanks16:30
elopiojobot: I could mount my usb drive on bbb.16:56
elopioand then I can use chown to give the ubuntu user write permissions on the mount.16:57
elopiowhat's the problem you are getting16:57
elopio?16:57
jobotThanks. It's when I set owncloud storage to /mountlocation , it says that it's not writable17:09
jobotI guess I didn't chown it. Are there any other mount settings required?17:10
elopiojobot: I haven't used owncloud yet, so I don't know. But I can write to my usb.17:14
jobotok I will give it a go. Thanks!17:19
=== He4dShOt_ is now known as He4dShOt
* rsalveti is still trying to clone git://git.denx.de/u-boot.git19:25
ogra_did it grow so much the recent years ?19:28
rsalvetiogra_: no, just super slow to clone19:28
rsalveti30kb/s19:28
ogra_nice, feels like home :P19:28
rsalvetihahah19:28
plarssomeone picked up the other phone and messed up the modem? :)19:29
plarselopio: is https://code.launchpad.net/~snappy-dev/snappy/selftest still the right place to look for snappy selftests?19:54
plarselopio: or is there newer test code somewhere else?19:55
sergiusensplars: it's all in trunk now20:01
plarselopio: sergiusens: awesome, thanks, looking through the readme now... it looks like it may prompt me for a ssh password? does it try a default or can you give it one in advance to try?20:06
sergiusensplars: don't think so, but I can't attest to that20:18
sergiusens:-)20:18
plarssergiusens: hmm, I can't even get it to run at the moment, but it's probably some go issue20:18
plarsit doesn't seem to work like the previous adt stuff did20:18
sergiusensplars: build on x86 and run on arm? maybe missing some cross compile flags there ;)20:19
sergiusenselopio should be able to help there20:19
plarssergiusens: yeah, I'll talk to him when he's back around20:19
rsalvetisergiusens: what removes snappy-stamp.txt?20:32
sergiusensrsalveti: nothing20:46
sergiusensrsalveti: is it being removed?20:47
rsalvetisergiusens: that's the file created by u-boot, just wanted to know about the logic that handles it20:47
rsalvetiin the userspace side20:47
rsalvetidoc says it's undone by /lib/systemd/system/ubuntu-core-snappy.service20:48
rsalvetiwhich doesn't exist20:48
rsalvetiso someone removes /boot/uboot/snappy-stamp.txt20:49
sergiusensrsalveti: it's not called ubuntu-core-snappy.service, that's one problem I guess20:49
rsalvetiright :-)20:50
sergiusensrsalveti: there seems to be a job missing ...20:51
rsalvetithe file gets removed20:51
sergiusensrsalveti: it's ubuntu-snappy.boot-ok.service20:51
sergiusensrsalveti: oh, nvm, it's a task most likely and systemctl doesn't list those by defualt20:51
sergiusensrsalveti: sudo journalctl -u ubuntu-snappy.boot-ok.service20:52
rsalvetisergiusens: right, so it's snappy itself that handles it21:03
rsalvetiExecStart=/usr/bin/snappy booted21:03
sergiusensrsalveti: oh, yeah, sorry, forgot that was only obvious to 3 people :-P21:04
sergiusensrsalveti: I fixed a bug there not long ago to avoid needless writes if you may recall21:04
rsalvetisergiusens: yeah, I wonder if the problem is because the file size is 0 for the stamp file21:04
rsalvetitrying to write some data on it now21:05
sergiusensrsalveti: it should never be zero21:05
rsalvetinot a lot of changes from upstream at the fat code21:05
sergiusensrsalveti: oh, the stamp file, not snappy-system.txt21:05
sergiusensgot it21:05
rsalvetifatwrite mmc ${mmcdev}:${mmcpart} 0x0 ${snappy_stamp} 021:05
rsalvetiyeah, stamp21:05
sergiusensrsalveti: snappy booted does not erase that iirc, it's the bootloader; this way we can rollback if the kernel is corrupted21:06
sergiusensas an example21:06
sergiusensrsalveti: nvm, http://bazaar.launchpad.net/~snappy-dev/snappy/snappy/view/head:/partition/bootloader_uboot.go#L20321:07
sergiusensrsalveti: I forgot how this all works! lool you around?21:07
rsalvetiyeah, saw that21:07
rsalvetisergiusens: didn't break this time with a file != 021:13
rsalvetilet me build a new image with your fix so I can also test the rollback21:13
sergiusensrsalveti: interesting, so if uEnv.txt fatwrote this with something > 0 it would be fine?21:22
rsalvetisergiusens: that is what I'm trying to confirm21:23
rsalvetisergiusens: elopio: give this a try, change /boot/uboot/snappy-system.txt21:24
rsalvetiwith image 321:24
rsalvetichange "fatwrite mmc ${mmcdev}:${mmcpart} 0x0 ${snappy_stamp} 0" to "fatwrite mmc ${mmcdev}:${mmcpart} ${loadaddr} ${snappy_stamp} 10"21:25
rsalvetithen do the update21:25
sergiusensrsalveti: k21:27
sergiusensrsalveti: will take a shortcut and format system-b21:28
=== howefield_afk is now known as howefield
* sergiusens waits21:32
rsalvetiyeah, tried twice and wasn't able to get the same corruption21:38
rsalvetihm, ubuntu-device-flash is the one creating snappy-system.txt21:46
sergiusensrsalveti: yes it is22:23
sergiusensrsalveti: it's not updatable22:24
rsalvetisergiusens: yeah, guess we can fix this all when we split the updater22:30
rsalvetimigrating 124 to alpha22:31
rsalvetiargh, there is one importer running22:31
sergiusensrsalveti:  I can add a fix for u-d-f to at least have new images work correctly22:47
rsalvetisergiusens: I'm waiting the next alpha to show up and will do a bit more testing22:48
rsalvetibut got a local change already for that22:48
rsalvetiimporter takes forever lately22:48
rsalvetiwget https://public.apps.ubuntu.com/anon/download/canonical/beagleblack.canonical/beagleblack.canonical_1.8_all.snap22:56
rsalvetiHTTP request sent, awaiting response... 500 INTERNAL SERVER ERROR22:56
rsalvetibeuno: any issue with the store?22:56
rsalvetiyeah, unable to create a beagle image22:58
rsalvetisigh22:58
sergiusensrsalveti: it downloads fine here23:18
rsalvetisergiusens: yeah, it's working again23:18
beunorsalveti, looking at outages, for future reference, noodles is usually up and running at this hour23:22
beunoor just ask in #u1-internal23:22
rsalvetialright, thanks23:22
rsalvetiwas giving this error for about 10 minutes for me23:22
beunorsalveti, looks like a storm in the internal cloud23:24
beunobeing managed by IS23:25
rsalvetialright :-)23:25
rsalvetisergiusens: elopio: alpha 5 is now available23:30
beuno(winds are picking up, might get a bit bumpier before it gets better)23:33

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