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

sergiusenskyrofa, well it is all by convention, defacto status quo00:06
kyrofasergiusens, seriously, who writes a tool with this as the setup guide? https://github.com/kyrofa/fboss/blob/master/fboss/agent/tools/README.md00:06
kyrofasergiusens, also: ZERO INSTALL RULES00:07
sergiusensomg :-P00:07
kyrofasergiusens, I'm not sure how to make this thing shippable :P00:08
kyrofasergiusens, but it's very close. Every prepreq worked more or less fine00:08
kyrofaAnd this builds fine00:08
sergiusenskyrofa, sounds good enough; a custom plugin is what makes it work and patches upstream of course00:09
kyrofasergiusens, yeah00:10
kyrofasergiusens, https://github.com/ubuntu-core/snapcraft/pull/35400:28
kyrofasergiusens, as soon as that changelog is given the go-ahead I'll release and email out an update00:37
sergiusenskyrofa, +1; going to call it in since I'll be back here in no more than six or seven hours ;-)00:45
kyrofasergiusens, sounds good, thanks!00:46
sergiusenskyrofa, no need for an announcement on the mailing list or at least not needed for today ;-)01:12
elopioping pitti: our autopkgtests on armhf are failing because: "sudo: no tty present and no askpass program specified". But they pass in amd64.06:16
elopioDo you know what's different in the testbeds?06:16
pittielopio: armhf and s390x run in LXC, the other three arches in a full VM (in  ova)06:27
pitti"nova"06:27
pittielopio: if you have to call sudo in a test, please always call it with -n, to avoid blocking indefinitiely06:27
pittiand use SSH_ASKPASS06:27
pitti(this is usually already set in the test env, but you might change the environment)06:28
elopiopitti: ack. I'll get a lxc tomorrow to give it a try.06:29
didrocksgood morning06:43
didrocksstgraber: hey! do you mind answering to that one (as you did the snap), please? http://askubuntu.com/questions/740692/lxd-snappy-add-and-run-continer06:50
dholbachgood morning07:49
didrockshey dholbach! How are you?07:51
dholbachhey didrocks - doing well, just need to catch up with an avalanche of emails I got over night :)07:51
dholbachhow about you?07:51
didrocksdholbach: quite similar! but I think I'll have time to continue on the importer :)07:52
didrocksalso, freezing here07:52
=== sourcef_ is now known as sourcef
=== JerryKao is now known as JerryKao_mtg
ysionneaumorning08:47
noizermorning08:48
ysionneauis there some documentation somewhere on how to build an armhf snap from an ubuntu xenial amd64?08:52
ysionneauI guess I need some qemu debootstrap stuff08:52
ysionneaubut I'm wondering if the exact instructions are listed somewhere08:52
dpmdavidcalle, dholbach, do you happen to know if we've got any docs for that? ^08:58
dpmand good morning all :)08:58
dpmmorning mvo, while trying to get my calculator desktop snap running I hit an issue that robertancell mentioned you also had with cap-test: "could not connect to display :0". He was saying that "you got a private /tmp directory but the X socket (/tmp/.X11-unix/X0) was not added into the snaps tmp"09:01
mvodpm: could you push the snap somewhere? happy to have a look09:01
dpmsure09:01
dpmmvo, http://bazaar.launchpad.net/~dpm/+junk/calculator-snap/files (see the README too)09:02
dholbachdpm, in terms of docs there's just https://github.com/ubuntu-core/snappy/blob/master/docs/cross-build.md (and building on a device)09:02
mvota09:02
dpmysionneau, ^09:02
dpmthanks dholbach09:02
ysionneaudpm dholbach thanks! :)09:04
mvodpm: try this //paste.ubuntu.com/15251748/09:04
mvodpm: for now, we will need a desktop profile for the security or rather a X11 interface etc09:04
ysionneaudholbach: this tutorial takes for granted that I already created an arm chroot and that I'm running in it?09:05
dpmmvo, cool thanks, let me have a try09:05
dholbachysionneau, I'm sorry - I didn't write the tutorial... let me see if I can find more information...09:05
mvodpm: the syntax for this snippet will change very soon but I will send you a diff once it does09:06
dpmmvo, thanks a lot, building the snap now09:06
dholbachogra_, which doc do we currently recommend for building arm snaps?09:12
dpmmvo, that definitely brought me forward, but now opengl is not happy at all. Do you have any ideas what could be happening here? https://paste.ubuntu.com/1525203109:14
mvodpm: indeed, you need some more libraries in the snap for now, we need to work on this and solve this problem in a generic way because we can't have all apps ship all opengl implementations09:20
zygagood morning09:20
mvohey zyga09:20
zygamvo: don't we want to ship opengl in the kernel snap and use the (forgot the name) library as a dynamic adapter that apps link to?09:21
zyga(so apps just link to that and ship it but that thing actually opens gl libs that live in the kernel snap)09:21
mvozyga: yes, but not on the desktop :)09:21
zygaoh09:22
mvozyga: we need to sit down and solve this problem there too, its a bit unclear what the best path forward is right now09:22
dpmmvo, in the interim, while there is not a generic solution, any tips on which libs/packages I should add to snapcraft.yaml for the calculator app?09:22
dpmI'm hoping getting the app running might help to the discussion too09:23
mvodpm: you will need to put dri/swrast_dri.so into your snap for now09:24
mvodpm: as dri/swrast_dri.so09:24
dpmwith the copy plugin, I guess?09:24
mvodpm: and export LIBGL_DRIVERS_PATH=$(pwd)/dri09:24
mvodpm: in your run wrapper09:24
dpmright09:25
mvodpm: sorry, we are still at a early stage when it comes to convinicence of this process :/09:25
dpmmvo, no worries, looking forward to get my first desktop snap running :)09:25
zygamvo: thinking about it for a second I have a naive idea that might work09:28
zygamvo: we can do the same thing09:28
zygamvo: snappy on the desktop can just depend on a GL implementation09:29
zygamvo: and the same flow from apps shipping the gl shim to the system library will follow09:29
mvozyga: yeah, I think this is what we will do09:30
dpmmvo, two questions -> 1) on that pastebin, libGL also complains about the i965 driver not being found, so I guess I should include that in addition to swrast_dri.so as well? And 2) those libs are already in the generated snap, under ./usr/lib/x86_64-linux-gnu/dri, so I guess I don't need to actually include any and simply update my wrapper with the env variable?09:31
mvodpm: yeah, if the libs are already there, just add the env var09:32
dpmyeah, tryint that now09:32
dpmok, so I'm going to give this a go: "export LIBGL_DRIVERS_PATH=$SNAP/usr/lib/$ARCH/dri"09:33
dpmmvo, success! :-)09:41
mvoyay09:43
dpmmvo, thanks so much! I'll test the store upload now. There is just one small glitch: https://paste.ubuntu.com/15252970 - line 2 where it complains about not being able to write to that location to create the local database. Any ideas?09:44
dholbachdpm, can you tell it where to save its data?09:44
dholbachyou can use $SNAP_USER_DATA env variable09:45
mvodpm: what dholbach said, this location is inside the squashfs so we can not write there. it should use SNAP_DATA or SNAP_USER_DATA to write its database09:45
dpmdholbach, mvo, the database location is set by Qt/QML IIRC, I'll have to find out if it's possible to redefine that, as I think we do with click09:46
dholbachdpm, maybe upstream would accept a patch to check if SNAP_USER_DATA is set and if so, use it?09:48
dholbach(if there's no command line switch or anything)09:48
dpmI'm trying to ask the sdk guys. I used to know how LocalStorage for clicks worked, but I can't remember now09:49
mvodpm: I'm sure we can do something, we did something similar for other packages, just an environment var to redirect the file location is usually accepted upstream09:50
dpmdholbach, mvo, so I've got the following variables defined for my appXDG_DATA_HOME data locations, which I copied from the snapcraft plugin: http://pastebin.ubuntu.com/15253544 - the sdk guys tell me I can override XDG_DATA_HOME. So in principle, I think I'll try an "export XDG_DATA_HOME=$SNAP_USER_DATA". Does that sound sensible?10:08
ogra_dholbach, we have a doc ?10:11
ogra_(i mean an arch specific one )10:12
dholbachogra_, I could imagine that the question on how to build stuff for arm was not brought up the first time :)10:12
ogra_dholbach, no, but i dont know about a doc10:12
dholbachok...10:12
ogra_typically we walk people through here (starting by telling them to use a chroot, container or the classic dimension)10:13
dholbachysionneau asked earlier10:13
ogra_nothing beyond that should be arch specific10:13
ogra_(create the right snapcraft.yaml, run "snpacraft snap" )10:14
ysionneauso far I've been using my own cross compilation tool, but I am starting to doubt that my stuff work correctly (related to my dlopen segfault from yesterday)10:17
ysionneauso I'm willing to do it "your way" to test and compare10:17
ysionneauthat's why I asked how you would do an arm snap10:18
dpmif I've got an snap that I'm creating from fetching e.g. a repo or a .deb package, which already contains an icon, is there a way to get snapcraft.yaml to reference that fetched icon instead of copying it over to the top directory and pointing to that? I can do that, I'm just thinking in terms of unneeded duplication.10:18
ogra_well, if you use snapcraft the only difference is that you need to emulate the other arch or build natively on your snappy install10:18
ogra_(i usually prefer the latter nowadays, that rules out potential probs by emulation or chroot usage)10:19
ysionneauhmm ok so I should create an ubuntu arm image from a debootstrap, boot it with qemu, and use it like a developer machine to build my snap10:20
ogra_ysionneau, you dont have an armhf device ?10:28
ogra_(how will you test your snaps ?)10:29
ysionneauright now no, but I could ask for one, but I prefer testing using qemu10:29
ogra_this will be horridly slow10:29
ysionneauso far I've done all my tests on qemu10:29
ysionneauslower than an arm board with eMMC memory?10:30
ogra_definitely10:30
ysionneauI have access to a Tegra X1 board but it's a bit of a nightmare to boot ubuntu on it, I have not succeeded yet to do it10:31
ogra_i thought there are pre-made ubuntu images from nvidia10:31
ysionneaubecause of the partitionning of this thing which needs tens of paritions for bootloaders etc10:31
ogra_the tegra X1 will fly compared to qemu ... it will be a lot faster even if you just run from SD card10:35
ogra_so i'd grab whatever nvidia provides and use debootstrap to create a xenial chroot on that system ... then build my snaps in there10:36
ogra_(or just grab the classic ubuntu-core tarball, thats faster than debootstrap)10:36
ysionneauyeah would be cool to have ubuntu running on the X1 board10:37
ogra_https://developer.nvidia.com/embedded/linux-tegra10:37
ysionneauI should try again, when the hardware department find one without buggy gpu or buggy pci-e to give me10:37
ogra_buggy GPU should be fine for headless ;)10:38
ysionneauyeah but it caused some kernel panics at boot because the firmware it had was running some gstreamer stuff at boot10:38
ysionneauI thought it was a good idea to complain to hw department so that they give me another board...10:39
ysionneaubad idea. now I have no board =)10:39
ysionneauanyway, I'll use qemu for now, it's not *that* slow10:42
ysionneauit allowed me to play with ubuntu-core and make some snaps, install them, play with them10:43
ogra_ok :)10:46
zygaanyone up for a quick review (tiny) https://github.com/ubuntu-core/snappy/pull/54710:47
sergiusenszyga, mvo https://github.com/ubuntu-core/snapcraft/pull/35611:07
zygasergiusens: looking11:07
mvosergiusens: " coverage/coveralls — Coverage decreased (-83.09%) to 11.657% " hu?11:07
sergiusensmvo, look at my comment :-)11:08
sergiusensmvo, or at the end of https://travis-ci.org/ubuntu-core/snapcraft/jobs/112805796 ;-)11:08
zygasergiusens: nice11:10
torbitHi folks. Is it possible to have a private snappy store ?11:57
kyrofaGood morning!12:11
* zyga goes to fight with his failing hardware for a few moments12:22
sergiusenskyrofa, morning! I have something for you https://github.com/ubuntu-core/snapcraft/pull/35512:29
kyrofasergiusens, gifts? How nice!12:29
sergiusenskyrofa, there's also https://github.com/ubuntu-core/snapcraft/pull/356 which I don't mind more comments for as it will need a rebase anyways ;-)12:33
torbit1anyone home ?12:33
jdstranddpm, mvo: I added a few tasks to our coard on snappy on classic to review these apps. it may happen today, but more likely tomorrow13:08
dpmjdstrand, which apps?13:18
jdstrandcalculator, caps-test, moonbuggy (already had libreoffice and firefox, but I don't think they are ready yet)13:19
jdstrandand by review, I don't mean store review-- I mean test them out and adjust security policies, etc13:19
dpmjdstrand, gotcha, thanks! Let me know if there is anything I can do on my end for calculator. As far as I can tell, everything is working except for the LocalStorage/XDG/Fontconfig issue I mentioned on the e-mail13:21
dpmand probably the list of packaged libs can be trimmed, but my main goal was to just get it to a point it worked, tools were exercised and I could do an upload to the store13:22
* jdstrand nods13:26
mvojdstrand: I would love to talk to you soon about desktop files and snappy13:27
jdstrandthere is a 'Snaps on desktop' catchup later that I was invited to. I wonder if it would make sense to add you to that13:28
jdstrandtedg: opinion? ^13:28
mvojdstrand: yeah13:29
ogra_well, dont we have all that stuff in the phone already ?13:29
ogra_(generating .desktop files that use a wrapper (aa-exec) and all that stuff)13:29
ogra_technically it should only be translated o the new world order13:30
* zyga has another broken hdd, eh :/13:42
zygaspinnig disk of eventual doom13:42
ogra_stop using these mechanical drives :)13:43
zygaone by one13:44
ogra_heh, seeing all the bugs from SweetShark it seems snapcraft is getting a reality check now :)13:47
zygarun-parts: /etc/network/if-up.d/ubuntu-fan exited with return code 113:50
zygahmm, this happens on each ifup13:50
zygaand the network interface is really up but ifupdown thinks it is not13:50
zygawhere should I report this bug, on ubuntu-fan or on snappy?13:53
zygareported as https://bugs.launchpad.net/snappy/+bug/155174713:56
ubottuLaunchpad bug 1551747 in Snappy "ubuntu-fan causes issues during network configuration" [Undecided,New]13:56
ogra_zyga, agains ubuntu-fan i guess13:58
ogra_not sure how wlan capable it is at all13:58
zygaogra_: fan has no upstream project, just a package,14:06
ogra_yeah, weird14:08
tedgjdstrand: mvo: That is fine with me, it's kinda kgunn's meeting so I don't know how many guests I'm allowed to bring though :-)14:09
kgunntedg: it's definitely open to whomever has an impact/interest there14:10
tedgCool, I'll add mvo14:10
kgunnjdstrand: mvo welcome14:10
kgunnwillcooke: ^ :)14:11
ogra_kgunn, strikes me ... we might also want to discuss how to ship graphics drivers on arm/arm64 ... i dont exactly know whats needed we need to ship14:11
tedgThe meeting has been vogtted (sp?) ;-)14:11
ogra_(not actually related to .desktop files etc ... probably deserves its own discussion)14:12
kgunnogra_: what do you mean? i mean it's just another arch14:12
kgunnor am i missing something14:13
ogra_kgunn, well, the RPi has its own binary blob ... most likely shipping libEGL ... do we need mesa too, could the free driver work etc etc ... same goes for the dragonbaord14:13
ogra_i simply dont know what works and what doesnt ... and how i should ship it (most likely inside the kernel snap, butu i dont think we have any common setup for that yet)14:14
kgunnogra_: so it's an either or...mir/qtmir will work on either14:14
kgunnogra_: i will say, mesa is a little nicer being open source and all14:14
kgunnaltho...14:14
kgunnhwc usually has some optimizations based on it's specific chipset14:15
ogra_hwc ?14:15
ogra_i'm talking about linux :)14:15
ogra_we have no andfroid container14:15
kgunnhwc= android's hardware composer14:15
kgunnah14:15
ogra_and nobody worked on such a thing14:15
kgunnogra_: oh i'm sure chipset vendor's have it... :)14:16
kgunnde facto14:16
ogra_i was assuming we use the open or closed linux drivers ... and there i dont know what to ship and what we need additionally14:16
kgunnogra_: who's producing the closed ones ?14:16
kgunni would presume better maintenance/living deliveries14:17
kgunnfor the close ones14:17
ogra_depends on the board ... dragonboard comes with adreno chipset, rpi with some proprietary broadcom14:17
ogra_both have open alternatives ...14:17
ogra_(but i dont know the state of either regarding Mir's needs)14:17
kgunnogra_: are there any complaints regarding the open alternatives ?14:17
ogra_no idea14:17
ogra_thats pretty much the end of my knowledge :)14:18
kgunnogra_: basically if there is gles/egl/drm/kms/gbm following the mesa interface model then we are good to go14:18
ogra_currently both boards are competely headless, we dont ship anything14:18
ogra_but given they are aour reference platforms i guess we should ship some way for people to run graphical stuff14:18
kgunnogra_: i'm keen on getting that on dragonboard14:19
ogra_well, RPi is the typical kodi device ... i guess there too ;)14:19
kgunnogra_: in theory this is totally possible...i've run mir on dragonboard on regular ubuntu distro14:20
ogra_aha !14:20
ogra_using which driver then ?14:20
kgunnogra_: mesa14:20
ogra_uuh14:20
ogra_SW rendering ?14:20
ogra_that doesnt sound like something i'd want to do in production :)14:21
kgunnogra_: nope, it's hw accel gl14:21
ogra_oh14:21
kgunnogra_: i just shared a doc with you14:21
zygaogra_: I have the pi camera14:21
ogra_ok14:21
zygaogra_: trying to get it to work14:21
zygaogra_: do you know if anyone tried that?14:21
zygaogra_: I know what to do, I'm just curious14:21
ogra_zyga, nope14:21
ogra_(i dont know)14:21
kgunnogra_: so in my simple understanding of looking over at the core image side of the house...do you just need to seed the image with packages from that dragonboard distro?14:22
kgunnthen i magically get gl/display drivers as part of the core image?14:23
ogra_kgunn, well, i dont know which ... you surely need either the closed adreno or the open freedreno driver to serve mesa14:23
zygaogra_: k14:24
kgunnogra_: if the drivers themselves are closed...i don't really care, as long as the i/fs are conformant to what we need14:24
ogra_and perhaps also kernel config we might not have enabled atm14:24
ogra_(kms and friends)14:24
kgunnack14:25
ogra_and specifically for the RPi2 i guess also the video codecs to make things like kodi work14:25
kgunnogra_: oh...and that distro is vivid...but i wanna be on xenial14:25
ogra_indeed14:26
ogra_we dont do non xenial for dragon atm :)14:26
kgunnogra_: how to change that ?14:26
ogra_change what ? you want vivid for dragon ?14:26
* kgunn chants "xenial, xenial, xenial..."14:26
qenghoHas anyone seen "Bad system call" crashes in snap apps? I'm just beginning to debug one.14:27
kgunni want xenial for dragon...but with all the gpu goodies14:27
ogra_qengho, grep for syscall in syslog ... then use "scmp_sys_resolver $syscall-id"14:28
ogra_kgunn, right ... me too i guess :)14:28
qengho"sigaltstack"14:28
ogra_what i meant to say above is ... nobody cares for 15.04 anymore ... only for potential security updates until 16.04 release ... then 15.04 will be gone anyway14:28
kyrofaqengho, that might be a seccomp filter denial14:29
ogra_kgunn, i guess we need to drag some low level specialist in to tell us what we need seeded/added14:29
ogra_(my knowledge here is rather limited and ends at: you need a driver with EGL support ... and perhaps MESA)14:30
ysionneauwhat's the package to install on ubuntu-core to have the snapcraft tool?14:33
ogra_ysionneau, snapcraft :)14:34
ysionneauubuntu@localhost:~$ sudo snap find snapcraft14:35
ysionneauerror: no snaps found for "snapcraft"14:35
ysionneau(16.04)14:36
ogra_ysionneau, ah, no, thats not possible14:36
ogra_sudo snappy enable-classic14:36
ogra_snappy shell classic14:36
ogra_that gets you an apt capable environment14:36
ysionneauwhat are those command doing?14:36
ysionneauoh14:36
ogra_(an lxc container that adds the apt bits to the system ... there you can do normal apt-get update and install commands)14:37
ysionneauawesome!14:37
ysionneauthanks14:37
kgunnogra_: i bet camako or similar could help us...14:39
ogra_cool14:39
kgunncamako: basically what would we need to seed from a dragonboard port to get our mir-server snap up and running14:39
kgunncamako: in terms of pkgs14:40
kgunnthat need to be in the core image14:40
ogra_well, even without pkgs :)14:40
camakokgunn, ummm lemme context switch my brain14:40
kgunncamako: lol...i know...vulkan...now snappy14:40
kgunnsorry14:40
camako:-)14:40
camakokgunn, sorry what's the problem we are solving (quite a bit of scrollback to read)14:42
ogra_camako, snappy on arm/arm64 is currently focused on headless14:42
kgunncamako: right, so ogra_ was asking what exactly is needed to be added to the arm snappy image in order to get mir up14:42
ogra_camako, we will surely have users that want to run graphical stuff on RPi2 and dragonboard14:42
ysionneauhmm zyga when using your ubuntu-image script to generate a 16.04 rpi2 image, if I try to do "sudo snappy enable-classic" , then I get write /tmp/classic193779427: no space left on device after some time14:42
kgunne.g. kms, drm, gbm, display driver/fb, gles, egl14:42
kgunncamako: i think that's it ^14:43
ysionneauI guess the disk image is not big enough to enable the "classic" mode14:43
ogra_camako, for that i need to know what we need to include in the kernel (device) snap14:43
ogra_i know there is an open driver for the rpi but have no clue if thats sufficient for mir yet ... and the same goes for the dragonboard, there is freedreno but i'm not sure thats enough14:44
mvothe new snap.yaml skill->interfaces change has landed14:45
ogra_mvo, scary14:45
zygamvo: cool, thanks for doing this14:45
camakokgunn, ogra, dragonboard runs mesa (not android) right?14:45
ogra_re-learning the world again :P14:45
ogra_camako, snappy doesnt have any android container (yet)14:46
zygaogra_: there's a wayland demo on raspberry pi foundation github account, perhaps mir could be there too14:46
ogra_so normal linux drivers for now i guess14:46
camakoogra, ok let me find out and will get back to you14:47
kgunncamako: right atm14:47
ogra_(i guess there is also the input side we need to cover somehow)14:47
kgunnogra_: libinput and usb drivers there...14:47
ogra_camako, cool, thanks ... i know RAOF has looked into rpi a while ago, but we havent talked about it in months14:48
ogra_kgunn, the other issue is if we actually want that in the core rootfs itself (not sure libinput is actually desired by default for example)14:48
ogra_i guess that needs wider discussion14:48
ogra_i know that sabdfl wants us to base the images on the cloud builds, the question is what we can/want to add on top without harming the IoT usecase14:49
kgunnogra_: ah yeah...true...might just be part of mir snap14:49
ogra_(device specifics like drivers should indeed go into the kernel snap ... but the layer above where bits are semi-generic might not)14:50
ogra_i'll send a mail before EOD so we can get a discussion running about that14:51
jdstrandmvo: fyi, we are in the meeting now15:05
mvoyay15:06
camakoogra, kgunn, so I am told dragonboard uses freedreno drivers in mesa... and of course libinput for input... The mir-graphics-drivers-desktop in xenial pulls everything needed in.15:07
camakomir-graphics-drivers-desktop package, that is15:07
jdstrandmvo: you should have an invite15:07
ogra_so our kernel snap should inclide the freedreno driver then, ok15:07
ogra_*include15:07
ogra_thats a first step ...15:07
ogra_for libinput and mesa itself i guess we need more discussion how/where they should be shipped15:08
kgunnogra_: why not make the dragon board image seeding the equivalent to what is amd64 core image today?15:10
kgunnjust thinking like a caveman15:10
ogra_because the rootfs is completely generic15:10
kgunnogra_: i dunno what that means....15:11
ogra_it needs to run on all arm64 boards ... and it needs to still fully support the embedded, robotics and IoT usecases without shipping to much bloat15:11
ogra_dont forget that snappy allows you to update the rootfs completely independently from the device bits, so all device specific stuff needs to be in kernel or gadget snap ... the rootfs can only ship pieces that are completely device independent (i.e. generic)15:12
ogra_ths is why i think we need some wider discussion15:16
ogra_(where/if to seed stuff in core etc)15:16
zygaok, I thik I know what the next step is15:24
elopiokyrofa: https://github.com/ubuntu-core/snapcraft/pull/327 please.15:27
kyrofaelopio, I'll trade you for https://github.com/ubuntu-core/snapcraft/pull/35715:27
elopiokyrofa: I'm looking at it already. Unfair trade, I demmand compensation.15:28
kyrofaelopio, :D15:28
kyrofaelopio, looks good-- is it ready to ship? Or are you still tweaking?15:31
elopiokyrofa: ready!15:31
kgunnogra_: wondering, would it be too much to have 3 images effectively... core-headless, core-headed, personal15:33
kgunnaltho core-headed and personal might start to approach each other...15:33
kgunn?15:33
ogra_kgunn, thats a sabdfl question :)15:33
ogra_as i said "wider discussion" :)15:33
kgunn;)15:33
=== rcj` is now known as rcj
kgunnricmm: ^15:33
kgunni know you follow the mir-on-core discussion...15:34
ogra_yeah, he probably even has concrete plans or knows more than us :)15:34
* tedg got dropped because of "an error"15:35
ogra_tedg, just fix it then :P15:35
zygaogra_: so it seems our kernel is missing a few modules15:38
zygaogra_: do you know who knows about pi2 kernel maintenance?15:38
kyrofaSo dduffey, you need the agent and fboss_route.py, right? Anything else?16:03
tedgogra_: Apparently logging in and out fixed it, but I got 2FA, so I think I was probably kicked by beuno :-)16:04
jdstrandmvo (beuno and zyga you may be interested in this): the way I see it is there is some sort of 'X' interface that snaps declare (fine-- we need that for the security perms any way)16:04
dduffeykyrofa, config files16:05
kyrofadduffey, alright, any other executables?16:06
dduffeyhttps://github.com/opennetworklinux/fboss-package/tree/master/etc/fboss16:06
jdstrandmvo (beuno, zyga): then either gnome software has a little indication that if the app declares it, it mentions that it needs expanded access to your session, or on first launch of the app we say it needs expanded access to the session16:06
dduffeykyrofa, not that I am aware of16:06
dduffeybasically everything from the repo you have, plus this repo (minus the kernel modules and /dev entries) https://github.com/opennetworklinux/fboss-package16:06
kyrofadduffey, okay so those json files aren't included in fboss?16:07
kyrofadduffey, is that something you would want to ship yourself?16:07
jdstrandmvo (beuno, zyga): I don't like click-through security though, and that is all this is, but if we must allow all devs access to X in this manner, I think this is the best we can do. both sides have merit. what is intersting about the wrapper approach is that it sort of feels like a trust prompt16:08
dduffeykyrofa, I would like then in the fboss snap so they are there already16:09
dduffeyyeah, they don't look to be in the fboss repo itself16:09
kyrofadduffey, ah, I wasn't clear. I mean do you want to use exactly those (i.e. make a part pulling down that repo and copying those json files over), or would it be better to ship your own json file(s) specific to this snap?16:10
kyrofadduffey, even if you manually copied them16:10
kyrofadduffey, I suspect manually copying them and maintaining them as part of the recipe would be best, but it's up to you16:11
dduffeykyrofa, I would just like to use the unmodified for now16:11
dduffeythere are some changes I need to make to the initscript to work16:11
dduffeybut those json's worked fine on ubuntu 14.04 for the purposes of the demo16:11
jdstrandmvo (and beuno): if first launch only-- it is easy to imagine a prompt that says something like "This application is requesting privileged access to your desktop session". Then say 'Allow', 'Temporarily allow', 'Deny' (or something). if 'allow'ed, then touch a file somewhere outside of the app's perms such that if that file exists on next run, the prompt is skipped16:11
kyrofadduffey, do you envision ever needing to change them?16:12
dduffeykyrofa, not over the next two week :)16:12
jdstrandmvo (beuno): this generalizes beyond 'X' which I think is good. since there will be no content-hub, in addition to X apps need to have access to (almost) all non-hidden directories in the user's home16:13
kyrofadduffey, alright16:13
dduffeyATM I just want to make it so if we install the snap we get to a working demo state, even if it is a fixed config16:13
kyrofadduffey, so in order to fetch those configs (where they don't have a build system) you'll need to create a `make` part, with a Makefile to pull them down and copy them appropriately. Refer to the OpenNSL one16:14
kyrofadduffey, whereas if you copied them in manually you could use the `copy` plugin to move them into the snap. Make sense?16:15
dduffeykyrofa, got it16:16
dduffeykyrofa, thanks for pointing to an example16:16
kyrofadduffey, no problem. Particular pointer to the use of DESTDIR16:17
kyrofa(that'll be the root of the snap)16:17
dduffeykyrofa, can you point to a "copy" example?16:17
kyrofadduffey, https://github.com/ubuntu-core/snapcraft/blob/1.x/examples/shout/snapcraft.yaml16:18
kyrofadduffey, you should checkout the entire examples/ dir when you're able16:18
dduffeykyrofa, thanks16:19
ogra_zyga, it is the archive kernel, maintained by the kernel team (mainly ppisati )16:19
ogra_zyga, file a bug against linux-raspi216:20
mvojdstrand: I think implementing this is straightforward16:26
dduffeykyrofa, snapcraft stops on failing to make install (i.e. no .snap) ...16:27
kyrofadduffey, yup, exactly16:27
kyrofadduffey, lack of install rules16:27
dduffeyls16:28
ogra_file not found16:28
kyrofadduffey, so the cmake plugin is super simple. It calls cmake, make, and make install with a DESTDIR pointing into the snap16:32
kyrofadduffey, that leaves it up to the codebase to determine what should go in the snap. Unfortunately, fboss doesn't specify anything16:33
dduffeykyrofa, the only think I think I used/copied was "wedge_agent" although it looks like there may be a sim_agent binary as well16:33
kyrofadduffey, indeed, there seems to be a few things in there16:34
kyrofadduffey, and from the README, the process of making fboss_route.py actually workable is terrible16:35
dduffeykyrofa, yeah, it looks like they are abusing cmake16:36
dduffeybut folling there directions it does build16:36
dduffeyand then I manually copied the agent over into place (on 14.04)16:36
kyrofadduffey, so is it statically linked, then?16:37
kyrofadduffey, you don't have to run it out of the source tree or anything?16:37
dduffeykyrofa, I would have to go back and review ... I think I installed .debs, then I build it from source, and then I copied over the build agent to verify it would work ... so half/half16:38
kyrofadduffey, blech :P16:38
kyrofadduffey, it does seem to be a rather large executable, so it may very well be static16:39
fgimenezelopio, the credentials in the tarmac server are the scalingstack ones, for accessing the host we were using so far the canonistack ones (where the host is created), the key filename in my case looks like ues-snappy-integration-tests_lcy02.key16:41
fgimenezelopio, i'll upload them there too16:42
plarsWhat's the right gadget snap to use now?16:46
plarsI'm getting "expected 1 gadget snaps, found 0"16:46
plars...with --gadget canonical-pc.canonical16:47
kyrofasergiusens, elopio man, travis's breakneck speed along with requiring that PRs are up-to-date with master = one new feature a day or so16:59
ysionneauzyga: ok for enable-classic to work I just had to increase ram (-m 1024) + mount -o remount,size=150M /tmp16:59
ysionneaunow it works o/16:59
zygaysionneau: cool17:00
zygaysionneau: it works on pi with one gig very wel17:00
zygawell17:00
ysionneauI don't know how much ram I had, I was not specifying -m17:01
ysionneaumaybe I had very small amount ^^17:01
dduffeykyrofa, I'm going to focus on building the 15.04 image with the correct kernel/modules/dev entries ... I'm stuck with the usersnap snap build ... not sure I can really take that further :/17:06
kyrofadduffey, adding the right install rules doesn't work?17:07
dduffeykyrofa, it doesn't look like it is building wedge_agent17:12
dduffeykyrofa, even a blank install rule where it doesn't copy it over (for now) is fine17:12
dduffeybecause then for testing I could install the snap and manually copy over the missing pieces17:13
kgunnso i used to do "snappy search" to see what was available in the store...is there something equivalent ?17:19
kgunnand this documentation is now wrong https://developer.ubuntu.com/en/snappy/start/using-snappy/17:20
kgunnsergiusens: ^17:21
beunoso17:21
beunothe store is broken atm17:22
beunohold tight17:22
kgunnbut still there is no "search"17:24
kgunncommand17:24
ogra_kgunn, "snap find"17:24
ogra_(note: not "snappy")17:25
kgunnah...ok...might want to update the online docs for that17:25
kyrofaogra_, what's the difference between snappy and snap?17:25
kyrofaogra_, or is everything transitioning to snap?17:26
ogra_kyrofa, ask someone who was at some sprint :P17:26
kyrofaogra_, boy no kidding17:26
ogra_:)17:26
beunothere is no difference17:26
beunotrying to nail down the name17:26
ogra_(i really have no idea, but we apparently fragmented into two now)17:26
beunowe'll use one or the other17:26
kyrofabeuno, whew, good17:26
ogra_beuno, how about we nail it down *before* having two half commands for the same bits ;)17:27
beunoogra_, sorry, my time machine is in the shop this week17:27
* ogra_ bets thats the typical thing to forget about before 16.04 ... and then we are screwed :P17:27
kyrofabeuno, they keep it for a WEEK?17:27
kgunnyeah, as of now snappy doesn't have find...but snap does....seems like a difference17:27
jdstrandmvo: yes, I agree17:28
jdstrandmvo: it might be good to get beuno's opinion on the approach first though17:28
zygakyrofa: snap is the new command line tool17:43
zygakyrofa: it's talking to snapd over the REST api17:43
zygakyrofa: snappy is the kitchen sink that we're replacing17:43
kyrofazyga, ah, okay17:43
kyrofazyga, so snappy will go away?17:43
zygakyrofa: I think so17:43
zygakyrofa: I'm sure we'll ship 16.04 with just snap and snapd17:44
zygakyrofa: no snappy17:44
kyrofazyga, good info, thank you :)17:44
sergiusenskgunn, so we only deal with snapcraft; I know; as one of the main developer entry points people expect us to know everything18:06
beunowell18:06
sergiusenskgunn, but you really want to ping Chipaca or mvo about snap and snappy; we are really operating as different teams so I don't even know what the status is on all their plans :-)18:06
beunozyga, it's not clear if it'll be snap or snappy18:07
=== dpm is now known as dpm-afk
jdstrandmvo, sergiusens: hey, with mvo's interfaces announcement, wondering when I should push the review tools branch18:24
jdstrandlooking at bug 154942718:25
ubottubug 1549427 in Snappy "migrate from skills to interfaces" [High,In progress] https://launchpad.net/bugs/154942718:25
=== thesheff17_ is now known as thesheff17
=== dpm-afk is now known as dpm
sergiusensjdstrand, well I have this https://github.com/ubuntu-core/snapcraft/pull/35618:51
sergiusenswe plan to release https://launchpad.net/snapcraft/+milestone/next either late Wednesday or Thursday18:51
jdstrandok, I'll commit to the tree then and do a pull request to the store later18:53
Shibesnappy will run everything in docker containers?18:55
Shibewouldn't that be slow18:55
Shibeand how big are docker images compared to regular apps?18:55
jdstrandShibe: that isn't how snappy works18:55
ShibeI'm not sure how then18:55
ShibeI've read about it but I haven't gotten the full explanation18:56
Shibehow does it run docker images?18:56
jdstrandShibe: docker is available on snappy if you want to use it, but normal snappy apps don't use docker18:56
Shibeokay18:56
jdstrandShibe: sudo snappy install docker18:56
jdstrandthen use docker like you normally would18:56
Shibewhat does snappy use for packaging then?18:56
ShibeI thought it used docker images?18:56
jdstrandno18:56
Shibeokay18:57
Shibewhat's the format18:57
jdstrandUbuntu Core 15.04 it used ar-based files and in 16.04 it will use squashfs18:57
Shibeoh ok18:57
jdstrandsnappy apps are integrated with the system (though in a very controlled manner). there is application isolation using a number of technologies18:58
=== devil is now known as Guest21712
jdstrandso, install a snap, and you see it on the system. when you run it, it runs under a sandbox18:58
jdstrandwhich is different from how docker images work18:59
Shibeokay19:01
=== Guest21712 is now known as devil_
evplars: hey, sorry. Just saw your message. We’re sprinting this week19:12
evthe world should be stabilised, yes19:12
plarsIt's cool, I talked to cprov19:13
plarsyeah, everything is broken :(19:13
plarsall my agents run any job19:13
plarsleo just ran a bbb job on an x86 box19:13
plarsit's awesome19:13
plarshe said y'all would talk about it at the sprint19:15
plarshopefully we can come to some kind of solution19:15
sergiusenselopio, kyrofa so now that we have adt; what about using that as the gate instead of travis?19:20
kyrofasergiusens, you mean the required bit? What does travis give us that adt doesn't?19:21
sergiusenskyrofa, from what I am seeing, not much now19:27
sergiusenskyrofa, coverage reports19:27
elopiosergiusens: I'm +1, but a little worried when scalingstack is funny.19:27
sergiusenselopio, today travis is funny ;-)19:27
kyrofaMakes me a little nervous too, but then travis has been funny lately as well19:27
kyrofaExactly19:27
elopioI always wanted to keep travis as a safety need for those cases, but maybe we can reenable it when they have more resources.19:27
sergiusenselopio, doesn't this use the real adt infra or did you just replicate?19:28
sergiusenskyrofa, wdyt https://github.com/ubuntu-core/snapcraft/pull/358 ?19:55
sergiusenszyga, kyrofa should I merge https://github.com/ubuntu-core/snapcraft/pull/356 ?19:56
kyrofasergiusens, I've not been able to look at it yet, but it looks like you have some other reviews there19:56
dduffeykyrofa, I just sent you access info to get the the Facebook Wedge running 15.04 snappy w/ the kernel and modules loaded19:57
sergiusenskyrofa, yeah, it was reviewed by zyga; maybe give it a light check although by now I don't want to change anything as it just finished the travis run19:57
kyrofasergiusens, checking now19:57
kyrofasergiusens, does os.umask effect files created in self.run(), then?20:01
sergiusenskyrofa, yes, because it is spawned from this env20:05
sergiusenskyrofa, I testted that; but writing an integration test with that feels a bit too convoluted20:05
kyrofasergiusens, huh. Yeah, seems okay to me, though it's not a feature I use much so I can't pretend to understand it completely20:05
kyrofasergiusens, this doesn't change the umask outside of snapcraft though, right?20:06
sergiusenskyrofa, no; also tested that :-)20:08
sergiusenskyrofa, I can ask jdstrand20:12
sergiusensjdstrand, what do you think about doing https://github.com/ubuntu-core/snapcraft/pull/35820:12
sergiusens?20:12
kyrofasergiusens, yeah he'll know more20:12
jdstrandsergiusens: interesting-- so wrt to umask, the store will set umask(0) to not get in the way of what the developer intended20:23
jdstrandsergiusens: a umask of 022 seems very reasonable, but on the other hand, not sure if we should second guess the developer's intent20:23
jdstrandsergiusens: (re the store, it when doing the unsquashfs/mksquashfs check)20:24
sergiusensjdstrand, I'm just trying to solve https://bugs.launchpad.net/snapcraft/+bug/151539420:25
ubottuLaunchpad bug 1515394 in Snapcraft "Restrictive umask and permissions may cause a built snap to be unusable" [High,In progress]20:25
jdstrandsergiusens: I'm not sure what umask(0) is going to do within the context of snapcraft though-- eg, with stage-packages, etc20:25
sergiusensjdstrand, the intent problem is what I guess I can't get out of if trying to do this with snapcraft20:25
jdstrandlet me read that bug20:26
jdstrandI do plan to add some tests to the review tools on weird perms, but I probably wouldn't complain if someone had '640' files (for example)20:27
jdstrandsergiusens: is there a way for people to 'fix up' perms? I guess snapcraft build and then before snapcraft snap they could20:28
sergiusensjdstrand, a '0' basically means only 'root' can see it20:28
jdstranda umask of zero means don't apply a mask20:29
sergiusensjdstrand, err, 640 (the 0 there)20:29
sergiusenssorry for being confusing20:29
jdstrandsergiusens: it would, yes20:29
sergiusensso if it were a cli command it would not be runnable20:29
jdstrandbut that would be fine for a daemon for example20:29
sergiusensyes, until or if we do per uid runs20:29
jdstrandthis gets into second gussing what the dev wants20:29
sergiusensI am not so worried about the writable bits as this gets squashed anyways20:30
sergiusensjdstrand, yeah, so if that is the case, then this bug is probably not a bug20:30
sergiusenswe can warn I guess20:30
jdstrandyeah, a tasteful warning might be the way to go20:31
sergiusensjdstrand, in review tools or snapcraft?20:32
sergiusensor maybe checking the current umask20:32
jdstrandI was thinking snapcraft could look at the umask20:32
jdstrandand then say "Hey, you may know what you're doing but I'd like to mention this might cause you problems'20:32
jdstrandthat may not be the exact working you want :)20:32
jdstrandwording*20:33
sergiusensjdstrand, thanks for the suggestion, I'll switch to that as it is not as invasive20:33
jdstrandnp20:33
sergiusenskyrofa, https://github.com/ubuntu-core/snapcraft/pull/35920:36
kyrofasergiusens, lovely :)20:40
=== ljp is now known as lpotter

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