=== chihchun_afk is now known as chihchun [06:33] ogra_: I blame fw_setenv for the breakage and I think I can prove it: http://paste.ubuntu.com/11923858/ [06:34] ogra_: thats operating on the pristine uboot.env I got from you and that was generated with mkenvimage, no snappy involved at all and notice the corruption at the end of the file [06:39] ogra_: I think I have a plan, lets see if it works [07:10] good morning [07:10] good morning [07:15] ogra_: I uploaded a fix to the ppa that should fix the corruption, its a bit ugly, I work on a nice version with proper tests etc now. its also very panic()y to ensure that any remaining issues are caught [07:15] ogra_: once the updated uboot-go is in, we need to rebuild snappy and make a new image and then fingers crossed :) [07:17] hey fgimenez and dholbach, good morning! [07:19] hi mvo dholbach and all :) [07:22] hey hey :) [08:02] mvo, thanks ! [08:03] mvo, i still dont get how it broke between 125 and 126 though ... only the config was different there [08:04] (and 125 was to 100% reliable) [08:16] reading through backlog you guys had some fun last night - anything i should test with 126? [08:16] longsleep, no, but the next build [08:17] ogra_: ok - did you make any changes to the saveenv logic? [08:18] not yet, i'm cleaning that up now, but since it worked for both of us before it should technically be fine, this is more cosmetic to rip out the inconsistent quoting [08:18] ogra_: i think i have alreayd put double quotes around everthing - are you doing that too? [08:18] yep [08:19] our current snappy_boot only has half of the vars and values quoted [08:19] (on the BBB that is) [08:20] well, i only put double quotes around stuff used for comparison, for the rest i never use double quotes [08:21] ok - i see what you mean i am inconsitent there too [08:21] * longsleep is fixing [08:21] heh [08:21] as i said ... simply cosmetic [08:22] by the way - what is the reason to have snappy_cmdline as seperate var ? [08:22] i think its unclean to just add that value at the end of mmcroot and will probably remove the var [08:22] i'm also putting a saveenv behind every setenv here [08:23] really [08:24] well, for the snappy_boot line ... not for everything :) [08:24] i need to make it multi line to make sense of it [08:24] yeah i figured that much :) [08:26] ogra_: mine currently looks like this https://pad.struktur.de/p/snappy_boot [08:26] ogra_: where do you put extra setenv? [08:26] saveenv [08:27] http://paste.ubuntu.com/11924149/ [08:27] i cant open your url ... insufficient privs [08:27] err [08:27] maybe its blocked from outside [08:27] let me check your diff [08:27] The requested URL /insufficient_privileges was not found on this server. [08:27] :D [08:28] thats like "the url "broken link" was not found" [08:28] hehe [08:29] i think the pad is not in outside DNS and you end up at some fallback server [08:29] * ogra_ notes he ends up at a fedora server .... thats all it says [08:29] so you saveenv whenever the snappy_ab is changed - not sure why this is required - i was under the impression that this is only for the current boot [08:30] well, it means you keep the condition if you powered off the board before the boot finished [08:31] mhm, what is the difference between boot failure and powered off - shouldnt it roll back in that case? [08:31] yes [08:33] ok i see your point - i was under the impression only snappy_mode was set to try on upgrade. But that would make no sense. [08:33] well ok hold on [08:34] it would make sense if the system upgrade would set snappy_ab to the upgraded partition value as well [08:34] it will roll back in both cases ... weather or not the var is set ... [08:34] then you would not have to save that change from u-boot ? [08:35] either all the vars are stored and the next boot will switch back to the former partition .... or none of the vars is stored so they are reset and it boots normal ... [08:36] ogra_: I can build you a custom snappy if you want to test/explore with the fixed code until the full image is ready [08:36] but in the latter case the bootloader will never know that an upgrade boot was attempted ... in the former it will ... the result is the same [08:36] the next boot will only switch to former partition if it failed to boot when the successfull boot does not reset snappy_mode and snapp_trial_boot [08:36] mvo, i can wait for the full image ... btw, did you make the snappy_trial_boot a boolean ? [08:36] longsleep, exactly [08:37] so why do you saveenv the snappy_ab change in u-boot then? [08:37] ogra_: its still a unset, I can change that now (would like to change it in both grub and uboot then in wily) do you think its important? i.e. will uboot be unhappy if its not set at all? [08:38] * longsleep does not get it - lets get some coffee [08:38] mvo, well, i'd like to exclude the possibility that it could get unhappy ... i have no proof, only gut feeling [08:39] longsleep, hmm, yeah, prehaps i have a brainfart here [08:40] ogra_: lets use this https://etherpad.mozilla.org/sglergmwrt - i hope you can open that :) [08:40] arg [08:40] it did format it [08:40] lol [08:40] in a weird way [08:40] that is just plain stupid [08:40] paste it in, gets formatted [08:41] what is "run setup" ? [08:42] thats setting up fdt based on variables [08:42] and how do you hand over the initrd, i dont see that in bootm [08:42] https://public.pad.fsfe.org/p/snappy_boot [08:43] copy paste fail - forgot the last line [08:43] ah ! [08:43] :) [08:43] so [08:43] i fail to see why the setenv snappy_ab parts need to be saved [08:44] looks good ... and i thihnk based on the above i'll leave out the saveenv [08:44] and i would like to get rid of snappy_cmdline [08:44] feels strage to just add it to mmvroot [08:45] well, it is good to have it separate for better readability ... [08:45] just added the setup - so you get the whole picture [08:46] so that you can see the actual cmdline options in one go without having to pick them out of an already way to long snappy_boot line [08:46] ogra_: so the only question is what does happen when the system gets updated. Someone sets snappy_mode to try - i get that much, the question is if snappy_ab is also changed or not [08:46] it is [08:46] snappy cvhanges it from userspace [08:47] it sets "ab" to the "other" partition and sets trial_boot to 1 [08:47] ogra_: good, then it would be bad to saveenv snappy_ab from u-boot [08:48] ogra_: i just changed snappy_cmdline to be added by mccargs to bootargs [08:48] i think that is cleaner [08:50] * ogra_ needs to check how mmcargs looks on the BBB and RPi [08:50] uh [08:51] i think it just sets the bootargs. It is called by snappy to pull in mmcroot as this contains the snappy_ab variable [08:51] never noticed that before ... BBB sets rootfstype there [08:51] yeah i saw that. I think that is redundant [08:51] no, thats dangerous [08:51] mhm ok :) [08:52] mmcrootfstype=ext4 rootwait [08:52] not so clever if we switch to some other fs :) [08:54] yeah [08:55] ogra_: so in the pad i now have my complete mmcargs with snappy_cmdline put there, instead of in the setenv in snappy_boot [08:55] feels cleaner [08:55] yes, i did the same here (anmd dropped mmcrootfstype) [08:58] ok great - so what is the problem with build 126 / why did you add the saveenv's in the first place? [09:01] ogra_: above you wrote the system sets ab to the other partition and trial_boot to 1. Is that really so? I think it should not touch trial_boot, but set snapp_mode to try instead? [09:02] Good morning all; happy Gorgeous Grandma Day! 😃 [09:03] longsleep, 126 corrupts the uboot.env file by adding a value without a var name to it [09:03] ogra_: I triggered a new armhf build for 15.04, fingers crossed [09:03] fw_setenv actually allows things like: "fw_setenv ' ' 1" [09:03] mvo, \o/ [09:04] oh [09:04] any news about using uboot-go instead? [09:08] longsleep, it is go ... [09:09] (meaning it is a static binary of 2MB size) [09:25] ogra_: thats great then [09:41] ogra_: btw - i wanted to ask you how to handle upgrades from snappy-system.txt to uboot.env. When an new image is released and gets updated to uboot.env [09:41] i'm not sure we do that [09:41] (we do use the old files if they exist, so it only affects new installs) [09:42] mhm [09:42] ok [09:42] so version 4 will contain the new and old behavior then? === howefield_afk is now known as howefield [09:48] ogra_: looks like the new armhf 15.04 is available [09:48] * mvo downloads [09:51] mvo: version 128 sounds good? [09:51] * ogra_ downloads too [10:01] mvo, ogra_ : all right i am booted into 128 - let me know if you want me to do any specific tests [10:02] Mhm - fw_printenv Read error on /boot/uboot/uboot.env: Success [10:09] davidcalle, I added an item to the trello card about generalising the markdown importer so we can import docs from lp:snapcraft too - I'll look into that now [10:09] mvo: well, fw_printenv cannot read or set anything in the .env file, while uboot-go works just fine [10:10] longsleep: hm, hm, let me investigate [10:11] mvo: i see the scary config in /etc/fw_env.config [10:11] mvo: i also just updated uboot-go to latest git and it still works [10:12] (ODROIDC)root@odroid:~# fw_setenv foo bar [10:12] Read error on /boot/uboot/uboot.env: Success [10:12] Error: environment not initialized [10:12] (ODROIDC)root@odroid:~# fw_printenv [10:12] Read error on /boot/uboot/uboot.env: Success [10:17] longsleep: so 113/rolling works with fw_setenv/fw_printenv, I create a 15.04 one now [10:20] mvo: did you fix the issue with the OEM snap in rolling? (bug #1477224) [10:20] Bug #1477224: OEM snap does not install when building image for rolling [10:20] bug 1477224 in Snappy "OEM snap does not install when building image for rolling" [Undecided,New] https://launchpad.net/bugs/1477224 [10:20] longsleep: no, I think its a race actually, after ~5 tries it worked for me [10:20] ok let me try that [10:22] mvo, hmm ... settin snappy_ab to b and snappy_mode to try doesnt get me booted from b [10:23] ogra_: does it show the correct values in the uboot prompt with printenv? [10:24] havent checked that yet [10:24] * ogra_ isnt sure if our logic is actually correct [10:26] did you see what i wrote above: ogra_: above you wrote the system sets ab to the other partition and trial_boot to 1. Is that really so? I think it should not touch trial_boot, but set snapp_mode to try instead? [10:26] mvo, http://paste.ubuntu.com/11924535/ [10:26] yeah, the trial_boot looks wrong [10:28] setting trial_boot to 1 and mode to try works [10:29] yes - but you should not set trial_boot, you should set mode to try and ab to the one which you want to try [10:29] whats how i see it at least [10:29] right, but thats not what the logic we have does [10:30] * ogra_ takes a look at the old code [10:30] no? i think it does just that [10:30] http://paste.ubuntu.com/11924535/ is the currentl logic [10:30] yes [10:30] but that is in uboot [10:30] it onl switches if mode is try and at the same time trial_boot is 1 [10:31] sigh [10:31] yes but it only has to switch if the boot failed [10:31] why cant cloud-init not write to /dev/null [10:31] so annoying [10:31] +1 [10:31] well, at least i dont see corruption now [10:31] from my point of view, uboot is only switching in case of roll back [10:32] the try is done from the system side after update [10:32] it shoudl also switch in case of upgrade :) [10:32] set try and ab to other [10:32] and it doesnt with the current logic [10:32] so the system does only set try but not ab to other [10:32] thats the error then [10:32] no, the system sets try and ab to the other [10:32] then all is good [10:33] well, no [10:33] it doesnt boot from b if i set it to b [10:33] well it should, because mode is try, it boots from whatever ab is set to because trial boot is 0 [10:34] http://paste.ubuntu.com/11924564/ [10:34] so either ab is a or if its b then trail boot is 1 [10:37] if ab is b and you want to boot it from b, then trial boot needs to be 0 [10:37] ogra_: hm, hm U-Boot# printenv snappy_ab [10:37] snappy_ab=b [10:38] ok, then trial boot is 1 [10:38] U-Boot# printenv snappy_ab [10:38] snappy_ab=b [10:38] and snappy_mode is try as well I assume? [10:38] i.e. the env is read correctly? [10:38] http://paste.ubuntu.com/11924581/ [10:38] ah, wait, didnt check mode [10:39] ab is definitely b after reboot [10:39] as you can see in the paste it boots a though [10:40] well, for me it boots just fine from b when i set it to b, saveenv and reset [10:40] just snappy_ab b ?without the try? [10:40] without hte snappy_mode try? [10:40] if ab is set to b and mode is try, then trial is 1 if it boots from a [10:41] yes without the try [10:41] let me try with try [10:41] ok that boots from a [10:42] so .. [10:42] script does not work [10:42] let me check [10:43] http://paste.ubuntu.com/11924593/ [10:43] mvo, ^^^ [10:43] so ab is set to b and mode to try [10:43] * ogra_ doesnt get that [10:43] ah i guess the problem is that snappy_trial_boot is not set and then always returns true [10:43] i remember test to behave that way [10:44] yeah, thats why i wanted a boolean [10:44] * ogra_ sets it ... once cloud-init lets me [10:44] if test ${snappy_trial_boot} = 1; then echo yes; fi [10:44] yes [10:44] echo ${snappy_trial_boot} [10:44] mvo, what sets it ? [10:44] thats…unexcpected [10:44] if snappy_trial_boot is not set then it always sets to a [10:45] u-boot, seriously? [10:45] if i set it to 0 [10:45] it works just fine [10:45] mvo, well, thats the hush shell implementation ... cant blame uboot itself :) [10:45] hm, quoting maybe? [10:45] if test "${snappy_trial_boot}" = "1"; then echo yes; fi [10:45] give no output [10:46] no, my script is quoted [10:46] i remember having this issue before [10:46] yeah, i have a local fix for the quoting, but its not that [10:46] http://paste.ubuntu.com/11924602/ [10:46] looks like quoting to me unless I miss something [10:46] hmm [10:47] mvo: no it does not work with the quoting either [10:47] http://paste.ubuntu.com/11924610/ [10:47] longsleep: how does yours look like? [10:47] longsleep: could you pastebin it please? [10:47] so what are the actual reasons for using cloud-init ? this is really annoying the hell out of me (additionally to the extra 30sec boot time it spams the console all the time) [10:47] i know we have distro ways of generating ssh keys [10:47] mvo: http://paste.ubuntu.com/11924615/ [10:48] and i guess it wouldnt be to hard to have user creation code adopted from d-i or some such [10:48] what else does cloud-init do for us ? [10:49] i have checked that a couple of weeks ago. It creates the default user too i think [10:49] and something with the hostname [10:49] right [10:49] see what i write [10:49] *wrote [10:50] we have tools for that in the distro that we use on the livecd for example [10:50] its a 10 line script or so [10:50] same goes for ssh ... its a few extra lines to have it create keys if they dont exist [10:50] longsleep: hm, thats confusing. does your uboot shell also behave like what I see in http://paste.ubuntu.com/11924610/ ? [10:50] and setting the hostname from /proc/cpuinfo isnt to hard either [10:50] mvo: i just checked that [10:51] mvo: mine behaves differently [10:51] mvo: if test "${snappy_trial_boot}" = "1"; then echo yes; fi [10:51] yes [10:51] i just dont get why we have to go through all the pain with cloud-init for these tzhree bits ... and make it really hard and uncomfortable for developers [10:51] (with unset trial boot) [10:51] longsleep, mvo most likely a version thing [10:52] ogra_: yeah - i think you should ask the one who added it - i would really love to see it go away [10:52] ogra_: let me check Git [10:52] seems everyone would [10:52] so yeah setting trial_boot to 0 gets me properly booted from b as expected [10:53] longsleep: woah, thats amazing, uboot is always good for a suprise [10:53] mvo: http://paste.ubuntu.com/11924645/ [10:53] mvo: indeed [10:53] mvo, well, vendors are good for surprises in that case ;) ... since they fork off from ancient uboot versions and never merge back usually [10:54] ah yes [10:54] http://git.denx.de/?p=u-boot.git;a=commit;h=2453de99df576fb907fe06cac58c628e3590833f [10:54] ogra_: yeah, looks like we need to make it bool and also change grub to be on the safe side, it looks on the bbb quoting will help, but if thats not universal its no good [10:55] yep [10:55] amazing [10:55] thanks longsleep [10:56] i did remember seeing that because i have another u-boot where i needed the -e for test and thus merged around in test command before [10:56] * longsleep is going to have some lunch [10:56] longsleep: do you also a yes for ' if "" = "1"; then echo yes; fi' [10:56] mvo: err sorry [10:56] mvo: what do you want me to run? [10:57] got it hold on [10:58] mvo: you missed a test in there right? else if gives unknown command [10:58] mvo: empty string works just fine [10:59] longsleep: yes, sorry. I wonder if "if printenv snappy_trial_boot; then echo yes; fi works [10:59] longsleep: interessting and crazy [10:59] WOAH ! [10:59] mvo, why is /var/lib/dpkg/info not wiped ? [11:00] ogra_: we only do that on wily [11:00] (BeagleBoneBlack)ubuntu@localhost:~$ du -hcs /var/lib/dpkg/info/ [11:00] 9.2M /var/lib/dpkg/info/ [11:00] ah, k [11:00] then i'm fine [11:00] mvo: that seems to work http://paste.ubuntu.com/11924669/ [11:01] mvo, that meanbs we have 9.2M extra space there in which we could ass uboot-go ;) [11:01] lol [11:01] *add [11:01] yeah, I thnk we should add it [11:01] http://people.canonical.com/~mvo/tmp/beagleblack_1.10_all.snap <- that has a snap with the quotes, building a new image+mp will be at least 2h that we can't test the rest :/ [11:02] pitti had suggested how we restart the network from inside the 'first boot' unit; does anybody remember how it was? [11:02] longsleep: I wonder if that could/should be used so that we can continue iterating, the image building is so slow :/ [11:02] mvo, does that have my MP merged ? [11:02] ogra_: I used your 1.9 snap [11:02] cool [11:02] as the base and just added the quotes [11:02] its writing now [11:02] mvo, hmm, no [11:02] mvo: so for your u-boot it works with quotes? [11:03] mvo: i could merge the fix into my u-boot [11:03] longsleep: it appears to be, I'm double checking [11:03] you probably also want snappy_trial_boot=0 in uboot.env.in [11:03] but i guess it will be trouble [11:03] ogra_: thats in there already afaict [11:03] as that change is from early 2014 [11:03] * mvo double-checks [11:03] oh [11:03] longsleep: yeah, I think the final version needs to set it to "0" [11:03] ah, yeah [11:04] heh ... i dont know my own code after two days anymore ... [11:04] longsleep: I'm just sick of waiting for another image and want to give it a good beating (for testing) [11:04] ogra_: I don't after 2h [11:04] * ogra_ guesses he should check for some vacation :) [11:04] mvo: but for testing now i am fine with whatever workaround [11:04] mvo, but you have kids distracting you ... thats fine :P [11:04] then I can prepare a branch after lunch, its trivial [11:04] ogra_: you have cats, about the same, no ;) ? [11:04] nah, they lseep during the day :) [11:04] *sleep [11:05] * longsleep now really goes for lunch [11:05] * mvo is also hungry [11:06] * ogra_ considers breakfast :) [11:10] Cogito ergo ipomoea batatal. [11:10] * Chipaca takes a break === kickinz1|afk is now known as kickinz1 [11:49] ogra_: http://people.canonical.com/~mvo/tmp/beagleblack_1.11_all.snap <- latest that works for me, i.e. it now boots b when I set snappy_ab b and snappy_mode try [11:50] next I will make it not unset the env [12:02] Chipaca: if you have a moment, it would be great if you could check https://code.launchpad.net/~mvo/snappy/snappy-no-unset-trial-boot and https://code.launchpad.net/~mvo/snappy/15.04-snappy-uboot-no-unset-trial-boot [12:02] ogra_: ^--- those branches set to "0" instead of unsetting [12:02] mvo: are those the result of what you and ogra debugged this morning? [12:02] Chipaca: yes, its the result of trying to be as compatible with u-boots quirks as possible [12:06] mvo: +1'ed; code looks sane, and i've watched you debug it :) [12:07] Chipaca: heh, thanks [12:07] Chipaca: crazy I say this u-boot [12:07] but it seems its under control [12:12] mvo: i did some more testing and found that all combinations seem to work as long as no variable is not defined. [12:12] mvo: See https://github.com/longsleep/snappy-odroidc/blob/uboot-env-support/oem/boot-assets/uboot.env.in for my latest env [12:16] longsleep: great, the above MP fixes the undefined vars [12:16] * mvo is still a bit disappointed by uboot, really [12:18] well u-boot is getting better and has improved a lot since 2014 [12:18] unfortunately most vendors have based their u-boot on 2013 something .. [12:18] yeah, sorry, I'm ranting a bit [12:19] at least it is open source - imagine you had to deal with closed source issues [12:19] longsleep: heh :) good point [12:19] i am pretty sure uefi implementations are even worse than u-boot is [12:23] mvo, could be a lot worse ... we could have to deal with redboot or aboot :) [12:24] merge looks good indeed [12:29] hmm [12:29] * ogra_ wonders why his phone screen doesnt turn on on notofocations [12:29] *notifications === fgimenez_ is now known as fgimenez [12:35] WOW ... [12:35] https://launchpad.net/~snappy-dev/+archive/ubuntu/image/+packages [12:35] why does it say "no signer" for the last snappy build [12:36] auto upload from the daily builds [12:36] thats ok [12:36] I triggered builds now and once they are in we can get the golden image [12:36] hopefully :P [12:36] does it correct that later ? [12:37] ogra_: the later? you mean the unset vs set = 0? [12:37] i mean the "no signer" i have never seen that before [12:37] I thnk its there all the time, for every daily build [12:37] * mvo could be wrong though [12:37] i wonder why i never noticed it before [12:38] i not only need new teeth and vacation apparently but also glasses :P [12:38] * ogra_ is happy he still has some hair at least :P [12:41] mvo: so you think the fw_* commands will work with the next build? [12:41] mvo: i did not manage to get the rolling release to accept my oem snap :/ [12:41] fw_* should work, yes [12:42] they already work here right now though [12:43] oh - so am an 128 and they do not work for me [12:43] oh ? [12:43] longsleep: crc error? or something else? [12:43] 4 vs 5 byte again? [12:44] no i got 5 byte env [12:44] parses fine with uboot-go [12:44] size also corret on disk and maches fw_env.config? [12:44] fw_env.config needs the hex size [12:44] if its nothing like this I run out of ideas :/ [12:44] the config has the two lines with the comment for 5 bytes [12:45] uboot-go is smarter and figures the size out by itself [12:45] mhm [12:46] http://paste.ubuntu.com/11925071/ [12:47] 5 bytes until the b [12:47] longsleep: what fize has the file? [12:48] mvo: 32768 bytes [12:48] fgimenez: I was wondering if we could leave your job code only for provisioning. [12:48] (thats the value in u-boot compile time) [12:48] fgimenez: like leave the --command flag out, and make the main return an ip. [12:48] longsleep, to small then [12:48] err [12:49] +uboot.env is created from uEnv.txt via: [12:49] +$ mkenvimage -r -s 131072 -o uboot.env uboot.env.in [12:49] elopio, sure, the cloud package takes care of that [12:49] from our beaglebone README in the snap branch [12:49] longsleep: hm, so we need to set 0x8000 in fw_env.config for you or you increase the env [12:50] ogra_: why too small? [12:50] probably best if you increase it as we have no way right now to change fw_env.config [12:50] how large should it be [12:50] longsleep, 128k [12:50] oh ok [12:50] just use the same mkenvimage call [12:51] * mvo will explore to put uboot-go into the image, thats all a bit insane IMNSO [12:51] i doo [12:51] see https://github.com/longsleep/snappy-odroidc/blob/uboot-env-support/oem.mk#L29 [12:51] mvo, +1000 [12:51] I mean, it seems bad to force everyone to use our env size just because of a silly config [12:51] longsleep, no, you use -s 32768 [12:51] yes [12:51] i was not aware that i have to use another size [12:51] fgimenez: so I'm thinking, on snappy/_integration-tests/main.go we can do a kvm-ok. If it succeeds, run adt-run ... -- snappy. If it doesn't, call your project and get an ip from canonistack, and then adt-run ... -- ssh ip. [12:51] +$ mkenvimage -r -s 131072 -o uboot.env uboot.env.in [12:51] but no problem [12:52] longsleep: yeah, you wouldn't have to, actually you don't have to except for testing [12:52] longsleep, well, preferably fw_* would autodetect it [12:52] longsleep: snappy itself is not touch fw_setenv/printenv at all [12:52] but the command is originally for MTD devices [12:52] yeah [12:52] it uses its own uboot env handling (thanks god for that) [12:54] fgimenez: also, I'm getting this error: http://paste.ubuntu.com/11925094/ [12:55] mvo, looks lilke the packages have built [12:55] (ppc failing on vivid) [12:55] * longsleep rebuilds u-boot with 128k env size [12:56] elopio, the error is because the credentials you are using, the key specified with -k is not present, [12:57] ogra_: yeah, I triggered a rootfs build some minutes ago [12:57] so once that new image is available I guess QA needs to test the hell out of it [12:57] wheee !! [12:57] elopio, when we meet later we can talk about the shared user credentials [13:02] mvo, ogra_ ok confirmed fw_* works with 128k size - thanks! [13:02] yay! [13:02] :) [13:02] silly hardcoding in the confi file [13:02] +g [13:02] oh yes [13:02] but i guess we get what we ask for ... abusing an MTD tool for a random file :) [13:03] fgimenez: ok, got it working now, thanks. I think the ssh security group is not needed, as the default is to allow the port 22. [13:03] ohh, image build, now its just a matter of waiting for it to be imported [13:03] yeah .... already uploading [13:05] utlemming: could you add the image # into the cloud image name? [13:10] elopio, ok thx, i'll correct that and some errors because of the import paths, at least when running from an instance without gopath defined [13:13] * ogra_ builds a new image [13:13] oh, i cant [13:13] ! [13:13] mvo, where is your snap ? :) [13:16] (could you upload it somewhere) [13:17] oh man ! [13:17] ogra@anubis:~/datengrab/rpi/uboot/bbb/snappy/snappy-systems$ snappy revert [13:17] Unknown command `revert'. Please specify one command of: booted, build, config, firstboot, hw-assign, hw-info, hw-unassign, info, install, internal-run-hooks, internal-unpack, list, login, purge, remove, rollback, search, set, update or versions [13:17] * ogra_ makes snappy a hardlink to bzr on his machine :P [13:18] ogra_: http://people.canonical.com/~mvo/tmp/beagleblack_1.11_all.snap [13:18] thx [13:18] yw [13:18] * rsalveti reads backlog [13:18] yay, looks like the image is there [13:18] yep [13:18] mvo: when you have a moment, and it's not urgent at all, i could use a review on https://code.launchpad.net/~chipaca/snappy/service/+merge/265658 [13:18] also on its pre-req [13:18] Chipaca: sure [13:19] * Chipaca ~> lunch [13:19] rsalveti: executive summary: more fighting with uboot and its quirks, we *think* we have a final image [13:19] yeah [13:19] rsalveti: that just finished building ~2min ago [13:19] we are pretty pretty sure we do :) [13:20] rsalveti: if ${var_that_is_not_set} = "1"; then echo yes; fi returns yes in uboot, that took us a while to figure out (well, me at least) [13:20] even with quotes its still not working on an older uboot [13:20] boolean ftw :) [13:24] mvo: ogra_: in uboot, does if "11" = "1"; then echo yes; fi produce yes? [13:24] ie, is = a prefix search? [13:24] no [13:25] but if "" = "1" can produce yes in older versions [13:25] Chipaca, http://git.denx.de/?p=u-boot.git;a=commit;h=2453de99df576fb907fe06cac58c628e3590833f [13:26] * ogra_ twiddles thumbs waitin for dd [13:26] ogra_: use godd, it tells me that I need to wait 8 more min utes [13:26] this makes the thumb twiddle much more planable [13:27] mvo, but it doesnt speed up anything [13:27] or killall -USR1 dd [13:27] * mvo thinks about complex patterns [13:27] i know how to get a progressbar ... i wrote usb-imagewrite 5 years ago using the USR hack [13:27] ogra_: did you send a USR signal every N seconds? just curious? [13:28] Chipaca: shhh, don't tell people that the 7 lines of go code for godd are not needed ;) [13:28] * ogra_ would be more interested in a patch to dd so that it automatically determines the fastest blocksize for me and speeds up the write ;) [13:28] ogra_: mvo: clearly, your computers need more ram! http://downloadmoreram.com/ [13:28] mvo, yeah ... two processes [13:29] a shell wrapper to call the dd with a watch ... and a pygtk UI that reads from it to show a UI progressbar [13:29] (i never found the time to port it away from hal though ... and left it die) [13:29] ogra_: neat! [13:31] heh, it is still promoted on https://help.ubuntu.com/community/Installation/FromImgFiles [13:31] "for systems up to 12.10" ... :P [13:32] * ogra_ boots the new image [13:36] * ogra_ reboots and crosses fingers [13:37] yay ... boots from b [13:38] same here [13:38] rebooting back to a [13:38] works too :) [13:40] yay [13:40] ok, lets torture it a bit with reset button and reboot -f [13:40] go go go [13:40] and someone needs to test upgrades from older image sto the new and check that the old uEnv.txt is still fully supported and understood [13:40] etc [13:41] we need the images for that ... on the server i mean [13:41] and the snap approved in the store [13:41] (not sure how else you could upgrade manually ... does sideloadign the oem snap work ? [13:43] mvo, btw, why do we need to give a and b ... wouldnt it be better to have something like "other" and snappy or the bootloader automatically pick the currently not used path ? [13:44] ogra_: hm, upgrading the oem snap is actually a problem, we can't allow that before we can not also write a new uboot [13:45] so i think it tried all possible ways to kill it now ... removing power, reset button "reboot -fp" ... no corruption [13:45] (and it reacts as expected still) [13:46] that shoudl also finally fix vmayorals issues with the erle bots [13:46] yeah, someone needs to send him a mail that its finally under control [13:46] (if he is not on irc) [13:46] well, once we released it i'll write an announcement mail and also some documentation for porters [13:47] i just dont want to do that before we have a 100% final implementation [13:47] ogra_: uh, looks like someone approved beagleblack 1.9 in the store [13:47] (seems we hit a roadblock every time we think we are done ... i got careful :) ) [13:47] mvo, eeek ! [13:48] so better push .11 over it [13:48] ogra_: well, the remaining roadblock is what to do with existing users [13:48] right [13:54] mvo: wow, that is annoying (the if check issue) [13:54] and wow, you guys had a lot of fun :-) [13:55] LOL [13:55] FSVO fun :) [13:55] so you guys had to path u-boot in the end? [13:55] ogra_: puhh, all good, I *think* we are save, boot-assets are only handled by u-d-f so we are good for the upgrade [13:55] no, in the beginning :) [13:56] *patch [13:56] rsalveti, we only ptach the enabling of uboot.env into the config, nothing more [13:56] right, cool [13:57] *patch [13:57] :P [13:57] mvo: ogra_: so did we approve the oem we didn't yet want to land? [13:57] (such a hard word to type :P ) [13:57] beagleblack 1.9 [13:57] yes [13:57] why? [13:57] but there is a 1.11 that we need anyway [13:57] no idea, i dont know who approved and why [13:57] so would 1.9 break the current stable image? [13:57] yes [13:57] crap [13:57] so is the new image ready - so i can give it another try? [13:57] half breeded [13:58] which is why we havent approved it [13:58] longsleep, yeah [13:58] well, if 1.9 is already causing us pain, just push 1.11 [13:58] mvo, ^^^ [13:58] and let's hope we can release today === zyga is now known as zyga-afk [13:59] * longsleep is downloading [13:59] at least we can test it easily [13:59] rsalveti, +1 ... that took way to long again :/ [13:59] ogra_: might be a good time to promote latest edge to alpha [13:59] does that make sense without the snap ? [13:59] i think we need 1.11 first ... then promote [14:00] sure, I was assuming we can do both in parallel [14:00] or that, yeah [14:13] all right, booted into 129 - lets have some fun [14:15] ogra_, mvo : 129 works just fine (faking update by fw_setenv snappy_ab b; fw_setenv snappy_mode try; reboot) [14:16] yay [14:16] let me try rollback [14:19] ogra_, mvo : Rollback works as well - so all green from me :) [14:23] ogra_: do we need to wait for mvo to upload a new oem? [14:24] from what i understand is that old oem should work with new image but new oem will not work with old image [14:24] that the state for my odroidc oem at least [14:26] longsleep, \o/ [14:26] rsalveti, it is uploaded but someone needs to approve it [14:27] rsalveti: already uploaded, just needs approval [14:27] I guess I can approve it, but would need to find it first [14:27] let me check [14:27] https://myapps.developer.ubuntu.com/dev/click-apps/2277/ [14:28] ogra_: mvo: done [14:29] longsleep: thanks a bunch for all your help and testing and feedback [14:29] rsalveti: \o/ [14:30] so let me push edge to alpha then [14:31] elopio, fgimenez do you guys have time to test the new 15.04 image in edge? we need to be sure that upgrades do not break, especially with beagleblack 1.8 from the last stable to the current alpha [14:31] ogra_: cool [14:31] mvo, sure, on it [14:32] thanks! [14:34] mvo: yes. [14:34] mvo, hmm, that doesnt look right http://system-image.ubuntu.com/ubuntu-core/15.04/edge/generic_amd64/ [14:34] fgimenez: mvo: current stable is the same as alpha#3, so we can start flashing that one. [14:35] mvo, last build is from yesterday [14:35] fgimenez: want to meet, or do you prefer to spend the time testing? [14:36] ogra_: oh, I did not triggered amd64, one sec [14:36] mvo, did you buiuld with ARCHES= set when you re-triggered a build ? [14:36] ogra_: I did [14:36] ah [14:36] ogra_: to speed it up [14:36] yeah [14:36] armhf is copied to alpha now [14:37] I triggered a full build now too [14:37] waiting for amd64 now :) [14:38] elopio, as you like, i have the ho open :) [14:38] elopio: great, the important part is that beagleback is still 1.8 on the base image so that we are confident that existing users will not break with the new oem part. I'm 96% certain they won't but the remaining 4% worry me a bit [14:38] * longsleep thinks i should implement that into the new oem as well [14:42] mvo: how did you handle this case, how do you know if you have to load snappy-system.txt ? [14:58] longsleep: I check for /boot/uboot/uboot.env, if thats there I assume its the new system. this will only be put in place by u-d-f [15:00] mvo: ah - you are saying that updating the oem snap from the store does not change stuff below /boot/uboot ? [15:00] mvo: or where is this check? [15:01] longsleep: yes, new boot-assets are not put into place [15:02] mvo: ok, that essentially means that there is no way to upgrade from old oem uboot to new one? [15:03] longsleep, works in rollinng afaik [15:04] hi everyone, just realized https://developer.ubuntu.com/en/snappy/guides/filesystem-layout/ changed [15:04] i noticed that system-a is now "2 GB" [15:05] do the new BeagleBone Black images includes this change? [15:05] ogra_: you mean in rolling, the boot-assets are put in place on update? [15:05] also, what happened to "system-boot"? [15:06] mmm, the filesystem information conflicts with what's provided at https://developer.ubuntu.com/en/snappy/guides/transactional-updates/ [15:11] hm, it shouldn't be 2gb, wonder what happened in there [15:12] vmayoral, FYI we reworked the uboot bits the last days, i'll write an announcement and documentation soon, that should one and for all fix all your corruption issues [15:13] ogra_: that's great, thanks a lot [15:13] you likely want to adjust your oem snaps for that then [15:14] ogra_: the oem snap? [15:14] well, the ones you use for your bootloader [15:15] (i think i saw a few in the store) [15:15] ogra_: i'd expect to modify something within the boot partition (e.g. the initrd.img). Currently our oem snap does not contain any dtb [15:16] oh, i didnt know, i thought you include uboot and a uboot confi for the dtb overrides [15:17] ogra_: that'll happen soon i hope :) [15:23] rsalveti: wrt bug 1466672, given that webdm isn't useful if there's no network, i think what we want to happen is it's only started when an external interface is brought up [15:23] bug 1466672 in Snappy trunk "webdm failed to start / Failed to listen 224.0.0.251:5353" [Undecided,New] https://launchpad.net/bugs/1466672 [15:23] +1 [15:24] its doesnt do that currently though [15:24] there is no auto-starting [15:24] rsalveti: given that, i propose we modify the generated service startup scripts so that, if a service specifies an external port, we make it depend on having an external network [15:25] ok, seems the image is done [15:25] mvo: so, I can't flash alpha like this: http://paste.ubuntu.com/11925656/ ? [15:25] * ogra_ copies again to alpha [15:25] rsalveti: keying off of having an external port means we can implement it with no changes to published meta description [15:25] elopio, oh, why ? [15:26] ogra_: not sure, it's booting into debian. [15:26] might be my sdcard, so I'll try with the new one. [15:26] did you hold down the S2 button ? [15:27] ogra_: no. [15:28] didn't we change it so the s2 button does nothing anymore? [15:28] well, try that :) [15:28] no, we cant change the RM [15:28] *ROM [15:29] elopio, mvo ogra_ mmm it seems to fail to rollback from 6 to 3 here http://paste.ubuntu.com/11925667/ [15:29] * ogra_ would like to see the bootloader messages on serial console for that [15:29] how can i get the output from the serial console? [15:30] with your serial cable :) [15:30] fgimenez: ctrl+a + H saves it to a log file [15:30] ogra_, yep :) but the screen... ok thx elopio [15:30] that's ctrl+a and then H [15:30] elopio: might be that you get a beaglebone thats too new I wonder if the store can give you 1.8, let me see [15:30] or if you use screen use the -L option [15:30] it will create a screenlog.0 file and log everything in $(pwd) [15:30] ogra_, ok thx, trying now [15:31] mvo: just trying update from 129 to 130 - getting "can not find file /writable/cache/assets/vmlinuz" http://paste.ubuntu.com/11925676/ - any idea? [15:32] update seems to work [15:32] despite the errors ? [15:32] *error [15:32] well, it wrote the other patition, trying boot now [15:32] elopio: could you please try if http://people.canonical.com/~mvo/tmp/beagleblack_1.8_all.snap with u-d-f works? so download and then --oem ./beagleblack_1.8_all.snap ? [15:33] mvo: sure. [15:33] ogra_: no - it seems it did not write the changes to the environment [15:33] hrm [15:33] (ODROIDC)root@odroid:~# snappy list -v [15:33] Name Date Version Developer [15:33] ubuntu-core 2015-07-23 129 ubuntu* [15:33] ubuntu-core 2015-07-23 130 ubuntu! [15:33] odroidc 2015-07-23 0.3 * [15:33] Reboot to use the new ubuntu-core. [15:33] when i reboot it boots into 129 [15:34] fgimenez: so you upgraded from 3->6 and then the rollback showed the behvior in the pastebin? could you pastebin ls -al /boot/uboot/ please [15:34] longsleep: so you just get this warning? let me look at the source, no ideas right from the top of my head [15:35] mvo: is there an option to allow-unauthenticated from udf? beagleblack_1.8_all.snap failed to install: Signature verification failed [15:35] mvo: yes that warning and nothing more [15:35] longsleep: oh, so your changes got applied to the other partiton but it did not boot the other one? [15:35] mvo: correct [15:35] elopio, weird, that works locally [15:35] mvo, of course, this is the serial console log http://paste.ubuntu.com/11925689/ [15:35] elopio: I thought it did that automatically with --developer-mode :/ [15:35] ogra_, ^ [15:36] mvo: probably stopped because of the vmlinuz error before modify of the uboot.env [15:36] elopio, sudo ubuntu-device-flash core --channel=edge --oem beagleblack_1.8_all.snap --developer-mode -o bbb.img 15.04 [15:36] mvo: That's it. I wasn't using dev mode. [15:36] longsleep: what does fw_printenv|grep ^snappy show? and ls -al /boot/uboot? [15:36] longsleep: aha, that makes sense, yes [15:36] elopio: cool [15:36] mvo: http://paste.ubuntu.com/11925696/ [15:37] mvo, http://paste.ubuntu.com/11925697/ [15:37] ogra_, fgimenez I wonder if the rollback failed because of spl_load_image_fat_os: error reading image args, err - -1 in the pastebin [15:37] mvo: but why does it want an vmlinuz file - my oem snap provides uImage [15:37] guys, recently i've noticed that when creating some snaps, I get ".sideload" at the end. Can anyone explain why's that? [15:37] mvo, no [15:37] fgimenez: it looks like it tried booting a, then failed and reverted to b? [15:37] ogra_: no? [15:37] mvo, SPL doesnt need more than finding uboot.img [15:38] mvo: sorry meant device tarball - that provides uImage and not vmlinuz [15:38] you can ignore the messages [15:38] longsleep: ohhh, I think we may have hardcoded vmlinuz :/ [15:38] mvo: ah - well [15:38] longsleep: we call it "normalized" instead of hardcoded but its the same :( [15:39] mvo: i guess i can write it to vmlinuz even if it is not a vmlinuz [15:39] fgimenez: thanks, the uboot dir looks fine, you were not migrated to the new uboot.env which is what we expected [15:39] riht [15:39] the serial log looks ok too [15:39] mvo: you should probablu use the name provided in device/hardware.yaml - there i say kernel: assets/uImage [15:39] loads the old files, they seem to contain data too and it even writes snappy-stamp.txt [15:40] ogra_: in the pastebin http://paste.ubuntu.com/11925689/ I see in line ~205 that it tries to load a/vmlinz, boots it, then 227 has the uboot prompt again and it boots b/ again, so I wonder if the kernel on a/ failed somehow [15:40] longsleep: *cough* indeed [15:40] mvo, yeah, but why would it ? its the same kernel [15:40] longsleep: thats a diferent bug, I need to look at this (or sergio when he is back) [15:40] ogra_: I have no clue, there is also no message [15:40] right [15:41] unless its the same corruption we are trying to fix with the new uboot.env [15:41] but that feels a bit too much like magic-rabitt-to-explain-this-problem [15:41] yeah [15:41] and that usually also errors [15:41] there are no errors [15:42] * mvo nods [15:42] fgimenez, can you paste uEnv.txt and snappy-system.txt [15:42] fgimenez: could you md5sum the kernels in /boot/uboot/?/vmlinuz [15:42] Chipaca: I think that's ok [15:42] mvo: i will add a ticket, and change my device tarball to use vmlinuz [15:43] longsleep: thanks [15:43] but yeah, we can start the service once we get the network I guess [15:43] ogra_, http://paste.ubuntu.com/11925725/ [15:44] fgimenez, thanks, looks all as expected [15:44] mvo, http://paste.ubuntu.com/11925728/ [15:44] interesting ! [15:45] they should be the same binary [15:45] i wonder if mvo is actually right and we hit fs corruption on the old version [15:46] (BeagleBoneBlack)ubuntu@localhost:~$ md5sum /boot/uboot/?/vmlinuz [15:46] 73d20f826ae7ec09671950057dee0db8 /boot/uboot/a/vmlinuz [15:46] 73d20f826ae7ec09671950057dee0db8 /boot/uboot/b/vmlinuz [15:46] that is how it shoudl look like [15:46] so i guess the a kernel got corrupted somehow [15:47] elopio: you are writing a alpha rev3 image too right? what md5sum do you have for the kernel(s). does it match http://paste.ubuntu.com/11925728/? [15:47] longsleep: thanks! this part the code in snappy needs some love iirc [15:49] mvo: yeah - added bug #1477657 - now chaning stuff to be named vmlinuz (btw, that worked when updating from 2 to 3 in stable). Do you check for initrd name as well (because that is named uInitrd for me) [15:49] Bug #1477657: Snappy update fails because of hardcoded assets/vmlinuz [15:49] bug 1477657 in Snappy "Snappy update fails because of hardcoded assets/vmlinuz" [Undecided,New] https://launchpad.net/bugs/1477657 [15:50] ogra_: there were some more issues with non-store device part updates, right ? longsleep is hitting some issue - or is the odroid oem in the store? [15:51] the latter [15:51] and no, updates in 15.04 should theoretically work, we never blocked them there [15:52] (practically it is a matter of the uboot setup ) [15:52] if they used to work they shoudl still do [15:53] right - but my uboot setup is fine and stable updates with my released stuff from https://www.stdin.xyz/downloads/snappy/odroidc/ work [15:53] (that is the same snap as in the store) === chihchun is now known as chihchun_afk [15:57] mvo: nop: http://paste.ubuntu.com/11925776/ [15:57] lol [15:57] so now we have 3 different md5 sums for the same kernel [15:58] (... proposedly same kernel) [16:00] elopio, that's before the update + rollback, right? [16:01] fgimenez: yes, I've just flashed [16:01] with http://paste.ubuntu.com/11925790/ [16:02] * mvo gets dinner [16:03] elopio, mine was after, i flashed the image with the normal --oem beagleblack [16:03] updating now... [16:07] why, oh why, has go decided that setsockopt is private? [16:07] :-( [16:07] fgimenez, yeah, i dont think that works, you cant use the current snap in the store with an image 3 rootfs [16:08] you would have to use the 1.8 version of it [16:08] http://people.canonical.com/~mvo/tmp/beagleblack_1.8_all.snap [16:09] ogra_, ok thx, i'll try that [16:13] ogra_, elopio btw i flashed the alpha #3 -image for the previous [16:14] release, a week or so ago [16:16] fgimenez, yes, but using the new oem snap from the store [16:17] mvo: mhm even when i ship vmlinuz in my device tree it still fails with same error [16:17] so, I do snappy rollback ubuntu-core 3 [16:17] and I also have to rollback the beaglebone package, right? [16:17] or it will magically rollback? [16:17] no, you dont [16:17] it *should* be backwards compatible on upgrades [16:17] "should" [16:17] "should".... [16:17] let's see... [16:18] (the folder also does contain a initrd.img and initrd.img-3.19.0.0-23-generic) [16:18] ogra_, ok, the oem snap was already the new one by then, thanks [16:18] longsleep, yeah, thats something still to fix on sergiusens plate ... we need the versioned binary to make system-image recognize there is a new binary [16:21] ogra_: mhm i dont understand - the only thing which needs to happen is the change to the environment to try the update - isnt it? [16:22] longsleep, yeah, the versioned vmlinuz is unrelated to that [16:22] leaving, nice evening o/ [16:23] ogra_: ok - so now i am stuck, seems like the update does require a vmlinuz file in /writable/cache/assets which i have no way to provide [16:23] nop, can't rollback. [16:23] now I get the same md5sums that fginther [16:23] elopio, los ? [16:23] *logs [16:24] sorry fginther. fgimenez left. [16:24] ogra_: on their way. [16:24] (serial specifically) [16:24] elopio, nw [16:29] elopio: same output as well, i.e. it tries to boot a/ (or b/) and then you return to the uboot prompt? [16:32] ogra_: mvo: http://people.ubuntu.com/~elopio/logs/bbb-rollback-alpha7-3.log.0 [16:32] mvo: yes. [16:34] sigh, why cant any browser open that inline [16:35] mvo: so seems i am unable to do an automatic update, because of it not finding vmlinuz - i updated #1477657 accordingly [16:37] elopio, if you cp the b kernel to the a partition, does it work then (make a backup of the file in a first) === chihchun_afk is now known as chihchun [16:41] mvo, elopio, hmmm, is that the cirrect uboot that is being used there ? [16:41] *correct [16:41] looks like the onboard one === chihchun is now known as chihchun_afk === chihchun_afk is now known as chihchun [16:43] (iirc ours had a git hash in the version instead of -dirty, i could be wrong though) [16:44] ogra_: $ sudo cp /boot/uboot/b/VMLINUZ /boot/uboot/a/ ? [16:44] it starts booting on a [16:44] but it says LZMA data is corrupt [16:44] elopio, right, it starts and then resets itself and boots b [16:44] oh, you mena after the copy ? === chihchun is now known as chihchun_afk [16:45] *mean [16:45] ogra_: yes, after copy. It doesn't reset. [16:45] ok, copy the initrd too [16:45] it's stuck waiting for root device ... system-a [16:45] the lzma error likely talks about the initrd [16:50] ogra_: emergency mode. [16:50] did it load the initrd before going there ? [16:53] ogra_: yes: http://people.ubuntu.com/~elopio/logs/bbb-rollback-alpha7-3-copying_b_kernel.log.0 [16:53] oh, why can my browser open this one inline but couldnt the former ... weird [16:54] elopio, ah, thats expected since you use a kernel that has no modules in that rootfs [16:54] so yeah, your a kernel *and* your a initrd were corrupt ... wow, thats really gross [16:55] rsalveti, ^^ [16:55] rsalveti, after upgrading from alpha 3 the original alpha3 kernel in /boot/uboot/a/ and the initrd get broken [17:00] * ogra_ scratches head [17:00] ogra_: after update, should i still have the old version on the "other" partition? [17:01] oh, meanwhile my 129 install upgraded in bg and asks me to reboot [17:01] * ogra_ does so [17:01] ogra_: nice - that is was failed for me because of bug #1477657 :( [17:01] Bug #1477657: Snappy update fails because of its looking for non existing /writable/cache/assets/vmlinuz [17:01] bug 1477657 in Snappy "Snappy update fails because of its looking for non existing /writable/cache/assets/vmlinuz" [Undecided,New] https://launchpad.net/bugs/1477657 [17:02] longsleep, yeah, a should still have the install kernel and b the one for the new image [17:03] ogra_: ok - so then i can confirm that update works fine when i set the uboot.env stuff manually [17:03] i now have booted 130 and 129 on the other [17:04] ogra_: so for you there is a vmlinuz in /writable/cache/assets/ ? [17:04] * longsleep wonders where this comes from [17:04] Name Date Version Developer [17:04] ubuntu-core 2015-07-23 129 ubuntu* [17:04] ubuntu-core 2015-07-23 130 ubuntu! [17:04] * ogra_ curses [17:05] mhm - maybe your update also didnt set the env variables then [17:05] so it clearly boots from the b partition ... i see it mounting system-b during boot as readonly partition ... [17:05] but snappy thinks i'm still on 129 [17:05] mhm thats strange [17:05] yes [17:05] snappy bug most likely [17:05] mine says i am on 130 [17:06] what does the exclamation mark mean? [17:06] i am pretty sure it means something as mine does not have it [17:06] /dev/mmcblk0p3 on / type ext4 (ro,relatime,data=ordered) [17:06] definitely the b partition [17:07] (BeagleBoneBlack)ubuntu@localhost:~$ ls /writable/cache/assets/ [17:07] initrd.img initrd.img-3.19.0-23-generic [17:07] no vmlinuz here [17:07] but i guess simply because we didnt update it (system-image strips it then) [17:08] mhm - then maybe you have the same error but just didnt see it because you auto updated and i did it manually by calling snappy update ? [17:08] no [17:08] i called snappy update the second time [17:08] didnt change a thing [17:08] mhm [17:08] it boots by default from b now [17:08] ok [17:08] but snappy still thinks it is 129 [17:09] what if you boot from a ? [17:11] hmpf [17:11] snappy rollback also only boots from b [17:12] * longsleep tries that [17:14] ogra_: yes confirmed - snappy rollback does not work for me either - still booted 130 / 129 now marked with ! [17:14] ogra_: what values do you have in /etc/system-image/channel.ini ? [17:15] ogra_: and /writable/cache/system//etc/system-image/channel.ini ? [17:15] http://paste.ubuntu.com/11926102/ [17:16] http://paste.ubuntu.com/11926112/ [17:16] writable has 130 [17:19] added another bug #1477692 about the rollback issue [17:19] Bug #1477692: snappy rollback ubuntu-core does not change uboot.env [17:19] bug 1477692 in Snappy "snappy rollback ubuntu-core does not change uboot.env" [Undecided,New] https://launchpad.net/bugs/1477692 [17:20] is there a way to undo the rollback, unmark it somehow? [17:20] * ogra_ doesnt know [17:21] this starts getting depressing :( [17:21] do it like me, grab some cuba libre from the bar next door [17:22] no bars around me ... [17:22] (i live in an awkward place in an awful city :/ ) [17:23] you should grab your laptop and go to a bar :P [17:23] well, the only bars kassel has are on the other side of the city [17:23] and are not exciting either ... [17:25] ogra_: longsleep: a manual update should undo the manual rollback [17:26] Chipaca, well, whatever i do it boots from b [17:26] neither update nor rollback change that [17:26] (i guess i could enforce it by setting the uboot vars directly though, but not via any snappy command it seems) === JamesTai1 is now known as JamesTait [17:26] ogra_: that means the snappy output is correct its really in 129, what does fw_printenv |grep ^snappy show? [17:27] oh, wow, that works without sudo ! [17:28] mvo, everything as expected http://paste.ubuntu.com/11926167/ [17:28] ogra_: hm, except that it should be snappy_ab=a, no? [17:28] for 129, yes [17:28] for the state i'm in b is correct ... since it booted that [17:29] (but indeed 129 isnt then) [17:29] you are b with 129 but you actually want to be in a which is 130, do I understand that correctly? [17:29] no [17:29] b should be 130 [17:29] i got an auto upgrade and got asked to reboot [17:29] that properly booted to b ... but still shows 129 [17:30] what was b before? and a? [17:30] a was my original install of 129 [17:30] and now a is 130? [17:30] no idea, i cant boot to a [17:30] unless i hack the vars directly [17:30] (i guess, didnt try yet) [17:31] oh, hm, what does snappy set ubuntu-core active=130 give you? [17:31] with sudo [17:31] i installed 129 and booted to a ... then i got an auto update and was asked to reboot ... on reboot i see it booting to b proper ... but snappy list still shows i'm running 129 [17:32] nothing [17:32] =129 doesnt return anything either though ... [17:32] ok, let me look deeper, thanks! [17:32] just dumps me back to the shell prompt [17:33] Chipaca: mhm snappy-update ubuntu-core does nothing [17:34] I think there is another missing piece [17:34] I'm on it [17:34] yeah [17:34] looks like [17:34] meanwhile i'll try to manually switch back to a to check potential corruption [17:36] yup, manually works fine [17:37] (BeagleBoneBlack)ubuntu@localhost:~$ snappy list -v [17:37] Name Date Version Developer [17:37] ubuntu-core 2015-07-23 130 ubuntu* [17:37] ubuntu-core 2015-07-23 129 ubuntu [17:37] after manual switch to a [17:38] yes i did that too [17:38] so apparently a actually has 130 ... and b had 129 ... [17:38] worked for me [17:38] for whatever weird reason [17:39] ok, snapy rollback doesnt roll me back [17:39] still boots a [17:39] yes - me neither [17:39] but at least i dont have any coorruption here [17:39] i am now stuck in this [17:39] (ODROIDC)root@odroid:~# snappy list -v [17:39] Name Date Version Developer [17:39] ubuntu-core 2015-07-23 130 ubuntu* [17:39] ubuntu-core 2015-07-23 129 ubuntu! [17:39] odroidc 2015-07-23 0.3 * [17:39] Reboot to use ubuntu-core version 129. [17:39] cant seem to set it back to 130 [17:40] now ... why do we get corruption when switching from image 3 to the latest [17:40] mhm - maybe the fat in 3 is already corrupted? [17:40] longsleep, yeah ... mvo is on it [17:41] longsleep, well, it isnt corrupted until you upgrade apparently [17:41] longsleep: I will have something ready RSN [17:41] Chipaca: will you be around for a review? [17:41] and the fat as a whole seems to be ok ... only the a directory contents are corrupted after upgrade [17:41] ogra_: not using a big enough hammer [17:42] davmor2, dude ... hammers all the way down here ... and from the sides too [17:42] no dice though [17:42] :) [17:43] ogra_: hm, if we still have corruption :( [17:43] mvo, i dont [17:44] mvo, federico and elopio do when coming from image 3 [17:44] So, if you guys are interested in why i am working on the ODROID stuff with snappy - check out https://www.kickstarter.com/projects/spreed/spreedbox-the-most-private-video-chat-and-file-exc [17:44] just launched [17:44] mvo, the old kernel and initrd are trashed if you upgrade from old to now [17:44] i.e. from the snappy-system-txt way ... [17:45] ogra_: aha, only with the old uboot? thats ok [17:45] mvo, not really ok ... but yeah [17:45] there is no reason why the a subdir content should get corrupted [17:45] (b is fine) [17:46] it only breaks rollback though === zyga-afk is now known as zyga [17:46] ogra_: could you please put http://people.canonical.com/~mvo/tmp/snappy_armhf onto your image as /usr/bin/snappy and see if that helps? [17:47] oh how i hate that we dont have wget on the image :P [17:48] Chipaca: https://code.launchpad.net/~mvo/snappy/15.04-snappy-more-uboot-fiddling if you have a moment should unblock ogra and I will a version in trunk thats nicer [17:53] mvo, rollback seems to work, update doesnt ... [17:54] though i might have confused the system with my manual switching before upgrading in the beginning [17:55] (by using fw_setenv for corruption tests) [17:59] why does snappy update always re-download 130 [18:00] * ogra_ considers a fresh flash of 129, i think i cinfused the system to much [18:05] elopio: ogra_: usually when the kernel name is VMLINUZ instead of vmlinuz that means the fs got corrupted somehow [18:06] rsalveti, well, only the a directory [18:06] rsalveti, he can fix it by copying the b content to the a dir [18:06] well, "fix" ... it then fails to find the modules indeed [18:08] if you are coming from 3, that is expected, isn't it? [18:08] because it will still run fatwrite [18:08] rsalveti, fatwrite writes to the toplevel dir [18:08] still, that is the original behavior I had [18:08] rsalveti, the a dir shouldnt be touched at all [18:08] fsck was later touching everything [18:09] there was no fsck ... at least i didnt see it in the logs [18:09] the long file names were all renamed to match 8 chars [18:09] should be [18:09] during boot [18:09] well, erhaps i didnt see all logs [18:09] rsalveti, so not being able to roll back to 3 is acceptable ? [18:09] let me start fresh with image 3 [18:10] i wonder what happens for the next rollback then :/ [18:10] ogra_: right, we can't avoid that [18:10] because we can't update the bootloader [18:10] and the updater is not yet separated [18:10] well, people using fatwrite will go on doing so [18:10] while people installing freshly will get the new behavior [18:10] right, what we said is that we'd ask people to manually update the bootloader [18:10] at least for this release [18:11] while we can fix the remaining issues, like splitting the updater and making it able to upgrade the bootloader [18:11] k [18:11] Chipaca: and https://code.launchpad.net/~mvo/snappy/snappy-more-uboot-fiddling [18:11] ogra_: keep me updated, need to bring the kids to bed [18:11] all i'm worried about now is what happens if you upgrade from 4 to 5 or some such [18:12] ogra_: if the new snappy binary helps or not [18:12] mvo, will do ... i just created a new 129 image and wont touch the bootloader vars this time [18:12] mvo, rollback worked ... update didnt ... but i'm not sure thats not caused by my tinkering [18:12] ogra_: cool, you can also just copy uboot.env from e.g. the beagleblack 1.11 snap, saves some time :) [18:13] ogra_: did we publish 2 images for alpha? [18:13] ogra_: keep me updated if it updates the env vars etc, I will check back in some minutes [18:13] rsalveti, yes, i didnt notice that there were no amd64 builds [18:13] my fault, sorry [18:13] (amd64 only had one promotion) [18:13] oh, but only for amd64 [18:13] sorry, armhf [18:13] yes [18:14] would like to align the numbers if possible [18:14] to make sure we have the same content [18:14] hmm [18:14] otherwise this will create even more confusion [18:14] but I also wanted us to release another image to alpha [18:14] so we could test the upgrade from -1 to latest [18:14] yeah, but i'm not sure thats easily doable if we dont do an amd64 only build [18:14] to make sure the new logic will handle the next update without corruption [18:15] let's do one amd64 only build [18:15] (though i guess we can do that to get them in line again) [18:15] and do a build for both [18:15] will do once we're ready [18:15] there are still issues [18:15] ogra_: what are the current issues? [18:15] rsalveti, rollback not working [18:15] rollback from what? [18:15] (snappy rollback is a no-op) [18:16] 3->7->3? [18:16] that might indeed be a problem [18:16] yes :) [18:16] because since we're not creating the stamp anymore [18:16] mvo has a fix ... i'll test in a minute with a fresh 129 image [18:16] great [18:24] well still create the stamp if you start from 3, no? we do not change existing snappy-system.txt or uEnv.txt the new boot-assets are only applied on fresh u-d-f runs [18:24] of course, once a user manually flahes he/she can not go back [18:24] yeah, afaik [18:25] cool, so we are all aligned [18:26] ok, so i'm booted into 129 on partition a ... i did put snappy_armhf in place and am now updating [18:27] * ogra_ twiddles thumbs [18:28] * ogra_ wonders why he gets to awful download rates [18:31] mvo, hmm http://paste.ubuntu.com/11926470/ [18:31] (see the pre-last line) [18:31] isn't this the issue longsleep had? [18:31] bug #1477657 [18:31] Bug #1477657: Snappy update fails because of its looking for non existing /writable/cache/assets/vmlinuz [18:31] bug 1477657 in Snappy "Snappy update fails because of its looking for non existing /writable/cache/assets/vmlinuz" [Undecided,New] https://launchpad.net/bugs/1477657 [18:31] yes [18:32] anything i should capture before reboot ? [18:32] * ogra_ wnats to see if it at least boots to b now [18:33] ogra_: ah - thats a relief you see that issue too [18:33] (BeagleBoneBlack)ubuntu@localhost:~$ ls /writable/cache/assets/ [18:33] initrd.img initrd.img-3.19.0-23-generic [18:33] and it is correct :) [18:34] * ogra_ reboots anyway [18:34] will not boot to the one it just updated as the env file was not updated [18:34] yay [18:34] boots from b [18:34] oh [18:34] then something was fixed? [18:34] well, i'm testing mvo's new snappy binary from above [18:35] ah i see [18:35] that makes sense [18:35] so the error is no error and only a warning [18:35] well, it might be an error ... the bootloader config is updated before though ... see my paste [18:36] (BeagleBoneBlack)ubuntu@localhost:~$ snappy list -v [18:36] Name Date Version Developer [18:36] ubuntu-core 2015-07-23 130 ubuntu* [18:36] ubuntu-core 2015-07-23 129 ubuntu [18:36] yay [18:36] now lets see rollback [18:36] * longsleep cheers [18:36] great [18:36] nope ... [18:37] still boots from b [18:37] oh ! [18:37] wait :P [18:37] did it work? [18:37] i replaces snappy with the new binary on a but not on b [18:37] rsalveti, no [18:37] sigh [18:37] but the b partition has the wrong snappy binary [18:38] once cloud-init is done and i can log in i'll try again [18:38] *twiddle* [18:39] YAY [18:39] works [18:39] rollback gets me back to a now [18:39] * ogra_ will try that a few times to be sure [18:40] sigh ... cloud-init ... [18:40] another minute of wasted worktime [18:41] (BeagleBoneBlack)ubuntu@localhost:~$ snappy list -v [18:41] Name Date Version Developer [18:41] ubuntu-core 2015-07-23 129 ubuntu* [18:41] ubuntu-core 2015-07-23 130 ubuntu [18:41] * ogra_ snappy updates again [18:42] properly boots b [18:43] hey, i don't understand snappy. does it replace the old ubuntu completely? [18:44] will in the future all software on ubuntu be packaged as snappy? [18:44] no, it will be developed in parallel [18:44] ok but in the future? [18:44] somce new variants will only be available as snappy though [18:44] and i can have snappy installed on an old ubuntu? [18:45] snappy is a special installation variant ... a special package manager and essentially a lot more ... you cant just install it on a deb based ubuntu. no [18:46] does snappy have a graphical desktop? can i use it as a desktop machine? [18:46] (snappy systems also dont have dpkg or apt ) [18:46] but i thought it was developed in parallel? [18:46] there will be snappy variants with graphical desktop, yes [18:47] mvo, all fine, get your MP in ! [18:47] so for example, if i use snappy on my server right now and i need a specific package for my code to compile, maybe there won't be a snappy version yet and it won't work? [18:47] * ogra_ has done 5 update/rollback cycles now ... no more issues [18:48] hio_, for that there is a special tool in development that will bundle your deb packages for a project into a snap that you can install (or upload to the ubuntu store to provide it to others) [18:49] rsalveti, ^^ with mvo's MP all is fine here ... update/rollback between edge 129/1330 works fine for me [18:49] *130 [18:49] what relation does it have to docker? none? [18:49] you can use docker pretty easily with it [18:49] there is already a docker framework in the store you can use [18:49] ogra_: \o/ thank you so much for the testing [18:50] docker would be a mother layer on top of it ok, good [18:50] another* [18:50] mvo, i still feel a bit uncomfortable that people going on to use the fatwrite stuff will get corruption [18:50] now someone just needs to review :) [18:50] but i guess there is not much we can do [18:50] ogra_: that's great [18:50] ok how far long is the development? should i use it right now as my server ? [18:50] yeah [18:51] ogra_: we could auto-migrate them, but then there is really no rollback (automigrate via custom boot script) [18:51] but thats very scary [18:51] hio_: depends on what you want to run as your workload [18:51] you can run docker containers or you can create services that could be provided by a snap [18:51] a java webserver [18:51] and push that in our store [18:51] mvo, well, and indeed super dangerous to dd to the disk ... if power fails that moment you are completely bricked [18:52] i don't want to push things into the store, i might want my own store though [18:52] can i create my own snappy repo? [18:52] no [18:52] at least not yet [18:52] you can set up a push service that sideloads the snaps [18:52] there is an idea of having private store [18:53] yeah [18:53] which is essentially just a sub-store of the official store then [18:53] i don't want it to be online, its in my own LAN [18:53] right, then you can script something that pushes snaps via ssh [18:53] then for now you could create the snap and just sideload it [18:54] what exactly do you mean by "sideload"? i assume theres still just a simple cmdline so i can install my own snappy packages [18:54] yeah, once you create it, you can install it locally or even remotely [18:54] with snappy-remote [18:54] ok good [18:54] there is either a commandline or a remote tool [18:55] sideloaded means it's not coming from the store [18:55] right [18:55] ogra_: will you take care of the reviews? [18:56] rsalveti, of go code ? ... [18:56] ogra_: at least check if the logic is fine in there [18:56] i can do that but cant give any guarantees if what i say makes even sense [18:56] let me take a look as well [18:56] https://code.launchpad.net/~mvo/snappy/snappy-more-uboot-fiddling/+merge/265715 [18:56] right? [18:57] looks like [18:57] by the timestamp [18:57] bah, thats big [18:58] i'm not sure my judgement is helpful, it looks ok to me (and well, i just ran the binary and it worked :P ) [19:01] approved [19:04] * longsleep is leaving for the night - check out our kickstarter bringing a Spreed hardware device powered by Snappy: https://www.kickstarter.com/projects/spreed/spreedbox-the-most-private-video-chat-and-file-exc [19:04] (sorry for the spam) :) [19:04] longsleep, dude ... i have quite a bunch of G+ followers, you need to ppaste such a thing earlier ! [19:05] well it just started - there are 29 days to go [19:05] any sharing would be very nice :) [19:06] yeah, no prob [19:06] cool thanks - see you tomorrow [19:06] director of bits and bytes ... heh [19:06] do you have that on your business card too ? :) [19:07] only the first part [19:07] no idea where that came from :P [19:07] heh [19:41] * rsalveti waits mr to land before triggering a new image [19:41] webdm failed to install: Get https://myapps.developer.ubuntu.com/site_media/appmedia/2015/04/ubuntu.png: EOF [19:41] wat [19:52] yay [19:52] * mvo looks forward for the new image [20:35] mvo: still needing that review? [20:38] Chipaca: looks like rsalveti already did it, so all good :) tomorrow is enough [20:38] and we almost have a new image [20:38] yeah, image 131 is currently being imported [20:38] then will migrate to alpha and test it a bit more [20:38] yay [20:39] and maybe, hopefully, we can release it tomorrow [20:39] *fingerscrossed* [20:52] image 131 seems to be out [20:53] * ogra_ waits for 130 to tell him about the auto update :) [21:07] (BeagleBoneBlack)ubuntu@localhost:~$ snappy list -v|tail -1 [21:07] Reboot to use the new ubuntu-core. [21:07] :D [21:07] auto updated ... [21:07] * ogra_ reboots [21:09] (BeagleBoneBlack)ubuntu@localhost:~$ snappy list -v [21:09] Name Date Version Developer [21:09] ubuntu-core 2015-07-23 131 ubuntu* [21:09] ubuntu-core 2015-07-23 130 ubuntu [21:09] :D [21:09] * ogra_ tries a rollback [21:12] (BeagleBoneBlack)ubuntu@localhost:~$ snappy list -v [21:12] Name Date Version Developer [21:12] ubuntu-core 2015-07-23 130 ubuntu* [21:12] ubuntu-core 2015-07-23 131 ubuntu [21:12] looks good [21:15] rsalveti, looks all good over here [21:15] rollback and update work, no corruption [21:16] great, let me promote to alpha then [21:17] +1 [21:17] rsalveti, oh, wait [21:17] what now? :-) [21:17] didnt we want an amd64 only buuld first ? [21:17] *build [21:17] already did that [21:18] oh, heh [21:18] well, then go for it ... the copy-image should still be in cdimages history [21:19] alright, copied for armhf [21:19] copying for amd64 [21:19] yay [21:19] done, image 8 is the latest edge [21:20] now let me flash image 3 first :-) [21:20] dont try to roll back :P [21:21] :-) [21:24] stop breaking everything guys [21:24] geez [21:26] ricmm, it was broken already [21:28] * ogra_ blames microsoft ... for inventing vfat [21:31] ogra_: crap, need to use 3 with the sideloaded oem snap [21:31] yeah [21:31] do you have the link for that in hands? [21:31] oh cloud-init [21:31] rsalveti, http://people.canonical.com/~mvo/tmp/beagleblack_1.8_all.snap [21:31] * rsalveti kicks it [21:31] thanks [21:33] Signature verification failed [21:33] ogra_: how to skip that? [21:33] --developer-mode [21:34] haha, alright [21:34] :) === chihchun_afk is now known as chihchun