/srv/irclogs.ubuntu.com/2016/03/15/#snappy.txt

dholbachgood morning07:33
didrockshey dholbach!07:34
dholbachsalut didrocks07:36
=== joc|away is now known as joc_
kyrofaGood morning12:02
Marin_Hey, anyone here to help with snappy service problem?12:06
ogra_Marin_, you have to be a bit more specific i guess :)12:52
kyrofaogra_, can the auto-update be disabled in ubuntu core?13:03
ogra_kyrofa, yeah, tghrough snappy config ubuntu-core13:04
ogra_echo -e "config:\n  ubuntu-core:\n    autoupdate: false\n" | sudo snappy config ubuntu-core -- -13:05
ogra_something like that should work13:05
kyrofaogra_, thank you!13:05
ogra_mvo, regarding bug 1546821 .... do we need to omit -no-xattrs too for os snaps ? (see the last comments)13:39
ubottubug 1546821 in Snappy "please add -all-root and -no-xattrs to mksquashfs options" [Undecided,New] https://launchpad.net/bugs/154682113:39
mvoogra_: the OS snap is not using xattrs AFAIC13:41
mvoAFAIC13:41
mvoAFAIK13:41
mvo*sigh*13:41
mvoogra_: this is something in snappy13:41
ogra_mvo, so it wouldnt break if that was used ?13:41
mvoogra_: I think it won't break either way13:41
ogra_ok13:41
mvoogra_: but we can not use -root-only (or wahtever it was called)13:42
mvothat will definitely break13:42
ogra_just making sure that fixing bug 1557513 will be enough to drop snappy build13:42
ubottubug 1557513 in Snapcraft "please add option to override -all-root in "snapcraft snap"" [High,New] https://launchpad.net/bugs/155751313:42
=== jkridner is now known as beagleslackbot
=== beagleslackbot is now known as jkridner
ryanleesipesHello!14:03
ogra_mvo, Chipaca http://paste.ubuntu.com/15391784/ :(14:06
ogra_(this is todays dragonboard image)14:06
kyrofaHi ryanleesipes!14:08
mvoogra_: in qemu?14:09
ogra_mvo, ? arm64 in qemu ?14:09
mvoogra_: or on real HW?14:09
ogra_thats the dragoboard image i just built from the most recent snaps on cdimage14:10
ogra_there is another issue14:10
mvoogra_: and its running on your dragonboard? hm, the traceback looks scary14:10
ogra_http://paste.ubuntu.com/15391819/14:10
mvoogra_: its not even touching our go code yet when it panics14:10
ogra_mvo, well, snap install seems to work, it is only the old "snappy install"14:10
mvoogra_: interessting14:11
ogra_2016/03/15 14:08:31.229390 kernel_os.go:167: can not get boot settings: cannot determine bootloader14:11
mvoogra_: can not get boot settings is also not cool14:11
ogra_this one looks scary though14:11
mvoogra_: how does ls /boot/uboot look ? do you have the uboot.env there?14:11
ogra_perhaps due to having grub installed now ?14:11
mvoogra_: yeah, I was wondering this too14:11
mvoogra_: iirc the code looks for a grub.cfg in /boot so it should not affect it, but maybe it does14:12
ogra_oh man14:12
ogra_ubuntu@localhost:~$ ls /boot/uboot/14:12
ogra_ubuntu@localhost:~$14:12
ogra_...14:12
ogra_ubuntu@localhost:~$ ls /boot/efi/14:12
ogra_EFI                                                install.yaml14:12
ogra_canonical-dragon-linux.sideload_IPAIJHReTMLK.snap  snappy-system.txt14:12
ogra_dtbs                                               uboot.env14:12
ogra_ubuntu@localhost:~$14:13
ogra_lovely14:13
ogra_so it now mounts under /boot/efi14:13
ogra_ubuntu@localhost:~$ mount |grep boot14:14
ogra_/dev/mmcblk1p8 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)14:14
ogra_/dev/mmcblk1p8 on /boot/grub type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)14:14
ogra_and ....14:15
ogra_ubuntu@localhost:~$ sudo mount /dev/mmcblk1p8 /boot/uboot14:15
ogra_ubuntu@localhost:~$ snappy list14:15
ogra_Name                   Date       Version      Developer14:15
ogra_canonical-dragon       2016-02-12 0.7.1        canonical14:15
ogra_canonical-dragon-linux 2016-03-15 IPAIJHReTMLK sideload14:15
ogra_ubuntu-core            2016-03-15 IPAIJIIJHeDL sideload14:15
ogra_Reboot to use canonical-dragon-linux version IPAIJHReTMLK.14:15
ogra_Reboot to use ubuntu-core version IPAIJIIJHeDL.14:15
ogra_(note that i installed webdm before i noticed that issue ... there is no webdm listed now)14:15
ogra_it sits under /snaps though14:15
mvipricmm you around?14:17
mvip /msg nickserv set password 6V8gEoK.HYzUY6XpAsF14:23
mviplol ops14:23
kyrofamvip, might want to change that now... ;)14:24
mvipkyrofa lol yeah done already14:24
ogra_Mar 15 14:32:53 localhost kernel: [ 1416.561031] audit: type=1400 audit(1458052373.895:292): apparmor="DENIED" operation="create" profile="xkcd-webserver.canonical_xkcd-webserver_16.04-4" pid=1908 comm="xkcd-webserver" family="inet" sock_type="stream" protocol=014:33
ogra_hmpf14:33
ogra_so our latest rootfs is definitely heavily broken in various ways14:33
jdstrandit needs 'network-client'14:33
jdstrandoh, maybe this is what didrocks was talking about yesterday14:34
ogra_(bootloader broken, snappy list not showing packages)14:34
ogra_(snappy itself throwing exceptions)14:34
ogra_jdstrand, yeah, i guess14:35
jdstranddidrocks: btw, the 'description' warning from the review tools for xkcd was accurate-- there is a 'description' tucked in the apps section. I made that warning more clear in trunk. the other issue I fixed in trunk14:35
jdstrand(couldn't find binary)14:35
ogra_ubuntu@localhost:~$ snappy list|grep webdm14:35
ogra_ubuntu@localhost:~$ snappy list|grep xkcd14:35
ogra_xkcd-webserver         2016-03-14 16.04-4      canonical14:35
* ogra_ scratches head14:35
jdstranddidrocks: there is a new review tools rollout to the store imminent, but these changes won't be until the next one14:35
ogra_ubuntu@localhost:~$ ps ax|grep webdm14:35
ogra_ 1244 ?        Ssl    0:02 /snaps/webdm.canonical/0.16.1/bin/aarch64-linux-gnu/snappyd14:35
ogra_funnily it runs and i can use itr14:36
=== charles_ is now known as charles
didrocksjdstrand: ah, great! We will fix the description with next upload then :)14:39
mvipHey didrocks. How are things? You recovered from MWC? ;)14:42
ogra_mvo, mind if i revert the grub stuff for now ?14:42
mvoogra_: ok14:44
ogra_mvo, at least the grub migration error on boot is now gone on the dragonboard :P14:48
mvoogra_: heh14:54
didrocksmvip: I fortunately did yeah! :) Quite busy to prepare content for 16.04 (dev website, slide decks and such)14:55
didrocksmvip: how about you?14:55
kyrofaHey ogra_ I'm trying to automate a way to get the writable partition on an external HD. Ideally I'd be able to create two images, one for the SD card that doesn't contain the writable partition, and one for the external HD that does. Then each image can be flashed to its respective device and voila. Does that sound possible?15:08
ogra_kyrofa, we only have two partitions (well, plus bootloader if needed)15:17
ogra_kyrofa, technically you want to split bootloader+boot vs writable ...15:17
ogra_thats indeed possible to do using scripts and kpartx15:18
ogra_(i.e use sgdisk/fdisk to find the writable partition in the img file, create a fresh img for writable, format it, mount it, copy the contents, delete the writable partition on the original img)15:19
kyrofaogra_, ah, excellent15:21
kyrofaogra_, I'm going to take a crack at this. I'm sure I'll have questions if that's alright?15:21
ogra_sure15:21
elopiofgimenez: are you coming?15:33
fgimenezelopio, yep omw15:34
=== kickinz1_ is now known as kickinz1
=== chihchun is now known as chihchun_afk
mvipdidrocks: good good. Lots of events as of lately, but i guess one cannot complain ;)16:05
mvipdidrocks: any progress on the dev website?16:05
didrocksmvip: quite some on the getting started, the rest will take longer obviously :)16:12
didrocksmvip: I can share with you some mockups if you are interested16:13
jdstrandzyga-phone: with all the feedback on https://github.com/ubuntu-core/snappy/pull/658 and your most recent comment, thinking I'll hold off on my portion of the review?16:47
zyga-phonejdstrand: looking16:54
zyga-phonejdstrand: ah, I think that has stabilized now16:54
zyga-phonejdstrand: a review of that would help16:54
zyga-phonejdstrand: from the security POV16:54
jdstrandok16:55
zyga-phonejdstrand: note that I've dropped the checks for UID/GID since it makes no sense in snapd context16:56
zyga-phonejdstrand: and it was making the code a lot more complex given the atomic renames we do16:56
=== vrruiz_ is now known as rvr
ogra_mvo, just FYI, after removing grub the dragonboard image totally behaves ... no more segfaults or anything ... seems seeding grub confused the system mmore than just through mounting everything under /boot/efi17:43
ogra_hmm, though snappy list still doesnt show webdm17:44
ogra_oh !17:44
ogra_it shows webdm if i sudo ...17:44
ogra_seems to be a permission prob17:44
ogra_wow, weird17:46
ogra_so installing xkcd-webserver makes it show up without me using sudo17:46
ogra_(but webdm is hidden from the list)17:46
* ogra_ doesnt get that17:47
ricmmmvip: yes?17:47
ogra_ricmm, i had to remove grub from arm64 again, it made everything explode17:47
ogra_ricmm, what is it neede for ?17:48
ogra_*needed17:48
ricmmogra_: well obviously arm64 devices that use grub ;)17:48
ricmmwhat explodeD?17:48
ogra_the whole boot process ... everything got mounted under /boot/efi regardless17:48
ogra_that in turn completely broke snappy itself17:48
ogra_<ogra_> ubuntu@localhost:~$ mount |grep boot17:49
ogra_<ogra_> /dev/mmcblk1p8 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)17:49
ogra_<ogra_> /dev/mmcblk1p8 on /boot/grub type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)17:49
ogra_(thats on a uboot system)17:49
ogra_that caused: http://paste.ubuntu.com/15391784/  and http://paste.ubuntu.com/15391819/17:50
ricmmwhy would that have happened17:50
ogra_removing the grub package and everything is back to normal17:50
ricmmits a core bug then17:50
ogra_yeah, somewheer17:51
ogra_*where17:51
ricmmcould you send mvo/me an email about this with all the info17:51
ogra_surely needs fixing .... but i guess we are not expecting a grub based arm64 arch within the next few weeks ?17:51
ricmmI have one on my table right now17:51
ogra_damn17:51
ogra_port it to uboot :P17:51
ricmmwell, they went through an effort to make it uefi :p17:51
ricmmanyways, just send us an email17:52
ricmmshould be a simple bug17:52
ogra_will do17:52
ricmmno reason why things cant coexist :)17:52
* ricmm adds to board17:52
ogra_well, doesnt u-d-f handle them differently ?17:52
ogra_i.e. grub is installed out of the rootfs17:52
ricmmit does, but it should work fine17:52
ogra_while uboot has to come with the gadget17:52
ricmmi.e. armhf supports it17:52
ogra_and iirc there are also checks for mountpiints17:53
ricmmonly thing we did was add arm64 bits17:53
ricmmright it might be doing some hackish thing to determine the bootloader setup17:53
ogra_i.e. if /boot/grub exists (which the package created) we assume grub17:53
ricmmby probing mountpoints17:53
ricmmright17:53
ricmmthats not necesarily a nice thing to do :)17:53
ogra_yeah, i guess that causes the wrong mounts17:53
ogra_the other bits are fallout17:53
ricmmok send the email will track tomorrow17:54
ricmmthanks for pointing that out17:54
ogra_will do17:54
* ogra_ is close to having auto-uploads of the daily builds ready ... then we should have daily snaps in the store ;)17:55
ogra_and with these snaps auto-resize on dragonboard finally works \o/17:56
ricmm\o/17:56
ogra_(these = http://cdimage.ubuntu.com/ubuntu-core/daily-preinstalled/current/ )17:56
zyga-phoneogra_: woot, great18:07
zyga-phoneogra_: is there something I should change in ubuntu-image?18:07
ogra_hmm, the amd64 image exposes the same weird snappy list behavior18:08
ogra_zyga-phone, nah, i plan to auto-push them to the store ... rolling edge should always have the dailies ... promoting them to rolling stable should then stay a manual process18:09
zyga-phoneogra_: nice18:09
zyga-phoneogra_: will existing images auto-resize?18:09
ogra_(perhaps we can tie that to the testing infra later though)18:09
zyga-phoneogra_: or is that some firstboot speciallity18:09
ogra_the check happens on every boot ... if there is more than 10% free space it will resize to full disk size18:10
ogra_so technically not a first boot thing ... but likely to run on first boot and never again :)18:10
ogra_with the smally all-snaps setup we could now default to 1GB images btw18:11
ogra_it is ~180MB per kernel+os snap (by 2 since we have two of them installed usually) ... and ~130MB for /boot18:12

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