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

=== JanC_ is now known as JanC
ccfielhello02:02
ccfielsilence :)02:02
kyrofaccfiel, hey there :)02:03
ccfielhello kyrofa! :)02:03
ccfielkyrofa, have you used snappy? :)02:03
kyrofaccfiel, indeed I have02:03
ccfielkyrofa, in what application? if you dont mind :)02:04
kyrofaccfiel, of course not. Well, first of all, I work on it. Snapcraft in particular. I've also packaged a few different things, such as a PiGlow service for the raspberry pi 2 and ownCloud02:06
ccfielkyrofa, I am still a newbe here still teting the example. I just wondering is ubuntu core read only OS and you snap application on it?02:08
kyrofaccfiel, not really, things are just really confined. Parts of it are read-only since snaps are packaged with squashfs02:09
kyrofaccfiel, each snap has a few different directories where they can write02:10
kyrofaThose directories are specific to that snap and no other snap can write to/read from them02:11
ccfielkyrofa, oh i see because for now I have a raspberry pi with raspbian on it and monitoring some sensors. Its running great but one issue I encounter is if there is a power outage sometime the system corrupt I have to get a monitor and keyboard to fix it.02:11
ccfielkyrofa, would it solve this in ubuntu core? :)02:12
ccfielkyrofa, am i in the right track?02:12
kyrofaccfiel, I guess that depends on what exactly the problem is. What is getting corrupted? How do you go about fixing it?02:12
ccfielkyrofa, just a simple fsck and done02:13
kyrofaccfiel, ah, so the filesystem itself. Honestly I'm not sure if that's a problem you'd run into with ubuntu core02:13
kyrofaccfiel, I know the guy I'd ask, but he's in germany and is thus likely asleep02:14
ccfielkyrofa, I was reading the site and documents it claims ubuntu core/snappy is for loT so if you have a device that is loT it should be like an appliance and should behave like one :)02:15
kyrofaccfiel, indeed. Such checks may be run on boot, but I'm not sure02:16
ccfielkyrofa, if ubuntu core is like our phone that the main OS core is readonly and the application is sandbox then this will be my solution :)02:18
ccfielkyrofa, I tried the sample snapcraft i tried "snapcraft stage" it works successfully but there no .snap file. I tried "snapcraft assemble" it always says FileExistsError: [Errno 17] File exists: '/home/ccfiel/snappy/snapcraft/examples/mosquitto/snap/meta/'02:44
ccfielany ideas?02:44
kyrofaccfiel, try `snapcraft clean` and then simply run `snapcraft`02:45
ccfielkyrofa, still the same error :(02:48
kyrofaccfiel, so when you run `snapcraft clean` that entire `snap` folder should be gone, yes?02:49
ccfielkyrofa, yes it has02:50
kyrofaccfiel, pastebin the log for me02:50
ccfielkyrofa, http://pastebin.com/hqMxhiUX02:53
stgraberjdstrand: can you review the lxd I uploaded in the store this morning when you have a moment? thanks02:54
ccfielkyrofa, what version snapcraft are you using?03:11
kyrofaccfiel, 2.5 here, the example works for me. How about you?03:12
ccfielkyrofa, my version 1 I think this is the problem03:14
ccfielkyrofa, what ppa did you used? :)03:15
ccfieland version of your ubuntu?03:15
kyrofaccfiel, perhaps you're running on too new of an example. Make sure you're using the ones from here: https://github.com/ubuntu-core/snapcraft/tree/1.x/examples03:15
kyrofaOr apt-get install snapcraft-examples and use those03:15
kyrofaccfiel, xenial, no PPA necessary03:15
ccfielkyrofa, is xenial stable to used?03:16
kyrofaccfiel, I actually run trusty. My xenial stuff is all lxc03:16
ccfielkyrofa, thanks for tips :)03:18
kyrofaccfiel, sure thing :)03:18
kyrofaccfiel, bed time for me, so good luck!03:19
ccfielkyrofa, thanks!03:20
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
dholbachgood morning08:11
asacogra_: did you ever snapcraftify a simple ftp server?08:27
asacogra_: or even better a postfix/procmail/fetchmail/some-imap solution :)08:28
noizerGood morning08:33
ogra_asac, nothing that needs user management yet, since that needs special setup (a db or something)09:40
ogra_(also snappy is changing way to much still, i cant re-do my mailserver every two weeks because the scurity model changed)09:41
asacogra_: i would be happy with unconfined for my personal vendor pi2 :P09:42
asacfor now09:42
asacanyway, let me put my webserver and ftp server in one snap for now09:42
ogra_even unconfined you have the issue that you need user mgmt09:42
asacso i can use my scanner again :)09:42
asacwhats a good ftpd that is easy to run?09:42
ogra_vsftpd ?09:42
asacsaw most use xinetd09:42
asacis that a simple daemon?09:42
ogra_nah, most of them *can* use inetd :)09:42
asachmm. dont think my scanner can do sftp09:42
asacok so guess i have to put inetd in and put special config up09:43
ogra_(doesnt mean you need to)09:43
asacwell, they dont have daemon commands... at least the ones i tried just exited09:43
ogra_feel free to grab some ideas from http://bazaar.launchpad.net/~ogra/+junk/upnp-server/files09:43
asacguess if there is non i can just get the most simplest i can find09:44
ogra_(not up to date wrt interfaces)09:44
asacnon that can run daemon itself09:44
* asac checks09:44
asaclighthttp is surely in the mix for my goal09:44
ogra_see the readme09:45
asacwow, serious copy plugin usage09:46
ogra_sqlite needs some special treatment ... either you patch it (like i do there) or you allow all of fchown in the security settings09:46
asacthats the fchown pathc?09:47
asacyeah. can we land that in archive?09:47
asacat least the one gave to a partner back then felt just right (TM)09:48
ogra_well, jamie wanted that upstream fixes it09:48
ogra_(there was a ML discussion)09:48
asacso we rather keep sqlite not working for snaps from archive?09:48
asacwell, he didnt see the patch09:48
asacdo you have yours?09:48
ogra_well, i thinnk the long term plan was to simply allow fchown09:48
asacwant to see if its the same09:48
asacsure, long term is not 1609:48
kyrofaGood morning09:49
asacand sqlite definitely should just work from archvie imo09:49
ogra_it in the tree ;)09:49
asactoo many folks use it09:49
ogra_http://bazaar.launchpad.net/~ogra/+junk/upnp-server/view/head:/sqlite.patch09:49
asacah ok09:49
asacyours is ugly09:49
asaclet me find mine :)09:49
asacthat is safe09:49
ogra_heh, i really didnt care :)09:49
ogra_it works :)09:49
asacright. i am sure noone will resist from landing my just in archive09:49
ogra_yeah, i never wanted to do something archive worthy :)09:50
asacright my patch is not in patch form, but its:09:50
asac  return osGeteuid() ? 0 : osFchown(fd,uid,gid); -> return osGeteuid() || osGeteuid() == uid ? 0 : osFchown(fd,uid,gid);09:50
asacwhich is simply correct09:51
asace.g. if you are already root, no need to try to become root09:51
* asac creates a real patch09:51
ogra_right, yu kill the function, i kill the executions09:51
asacwell, i fix the logic to avoid a no-op call09:52
asacwhich triggers our confinement barrier09:52
asacand all is clean and fine09:52
asacfor everyeone with this09:52
ogra_sumbit it then :)09:52
asacyet producing it now09:52
ogra_(though we are in hard freeze atm, might take a while to land)09:53
* asac installs quilt09:53
asacyeah, better late than never09:53
ogra_ppisati, sooo ... thats where i ended yesterday ... http://paste.ubuntu.com/15473201/09:54
asacogra_: do we have a bug?09:54
asacthat i can ref in the patchname09:54
ppisatiogra_: that doesn't look good :)09:54
ogra_ppisati, it stops there, heartbeat stops after a while, but funnily my cursor keeps blinking ...09:55
ppisatiogra_: uhm09:55
ogra_(usually the cursor freezes along with the board)09:55
ppisatiogra_: yep09:55
ppisatiogra_: i'm thinkg about the serial changes they made on the raspi309:55
ogra_i have some suspicion that the initrd overwrites the dtb at 0x0200000009:55
ogra_hmm09:55
ogra_wouldnt it keep booting if it was just the serial ?09:56
ppisatiogra_: yes, indeed you say heartbeat goes on for a bit09:56
ppisatiogra_: maybe it hangs later on09:56
ppisatiogra_: i would try first without initrd09:56
ogra_while uboot runs09:56
ogra_how would i do that ... its snappy :P09:57
ogra_ah, well, i could see some kernel output indeed09:57
ppisatiogra_: manually, stop uboot and try to load manually kernel and point the dtb09:57
ppisatijust to see if serial is ok09:57
ppisatiright09:57
ogra_there is something not right with serial in general ... uboot copy/paste ends up with garbage09:58
ogra_whilch makes editing long lines really hard (and indeed the snappy scripts are all long lines :P)09:58
ppisatiogra_: are you aware of the changes they made to the serial in the raspi3?09:58
ogra_i only saw the changelog entry09:59
ppisatiogra_: they connected the only real serial to the blueooth dongle09:59
ogra_ouch09:59
ppisatiogra_: ok, let me give you some background info09:59
ppisatiogra_: by defaukt the serial is a sw serial that is affected by the frequency of core09:59
ogra_ah, thats why you force the 250 in your config.txt ?10:00
ppisatiogra_: yep10:01
ogra_btw ... no change without inittrd, so my theory doesnt fly10:01
ppisatiogra_: and i did some other changes10:01
ppisatiogra_: let me check my board10:01
ogra_ppisati, just to make sure, i'm using the latest raspi2 4.4 kernel from the archive here10:13
ppisatiogra_: i'm doing an upgrade on my raspi3 as we speak10:13
ogra_oh, you had an older kernel in use ?10:14
kyrofaogra_, is there any way to generate an image with swap enabled?10:17
FJKong  /join #ubuntu-sdk10:17
ppisatiogra_: no, actually i had a newer :)10:18
ogra_kyrofa, nope, that would need some hackery (at least in the initrd when we generate the fstab) ... file a bug, we can make it a cmdline option ;)10:19
ogra_(thought perhaps we should have a mail discussion first ... if we want to allow swap at all)10:19
ogra_ppisati, hah !10:20
kyrofaogra_, alright I'll shoot one out, thanks! To be clear, when you say cmdline option, which component are you referring to?10:21
ogra_kernel cmdline10:21
kyrofaAh okay10:21
ogra_swapdevice=/dev/foobar0p110:21
kyrofaGotcha10:21
ogra_and perhaps "swapfile=/path/to/file"10:21
ogra_that would get you a long first boot though10:22
ogra_(cant create swapfiles fast)10:22
kyrofaDoes it create the swapfile?10:22
kyrofaAh, no fallocate eh?10:22
ogra_well, it needs to be filled with actual zeros ... you cant create a sparse file10:22
ogra_if we have swapfile we also need swapfilesize10:23
kyrofaogra_, I've used that successfully in the past for a swapfile. Did I just get lucky?10:23
ogra_oh ?10:23
ogra_perhaps mkswap got clever ... usually you cant create a file with holes10:23
kyrofaogra_, yeah, fallocate, mkswap, swapon. Works for me10:24
kyrofaNow I'm curious about that10:24
ogra_oh10:24
ogra_i didnt know about fallocate !10:24
ogra_how could i not !10:25
* kyrofa taught ogra_ something. I'm calling it a day10:25
* ogra_ is hardcore dd user if it comes to img files :P10:25
asacogra_: how do i go about propsing https://bugs.launchpad.net/ubuntu/+source/sqlite3/+bug/1560899 aws something considerable for landing after beta freeze?10:25
ubottuLaunchpad bug 1560899 in sqlite3 (Ubuntu) "sqlite triggers syscall error if run as root in snappy default confinement (fchown not allowed)" [Undecided,New]10:25
* asac forgot the process, who to subscribe etc.10:25
asac:(10:26
* asac old guy10:26
ogra_https://wiki.ubuntu.com/FreezeExceptionProcess10:26
ppisatiogra_: nope, it works...10:26
ppisatiogra_: do you have an image that i can dd and debug here?10:26
ogra_ppisati, what exactlöy ?10:26
ppisatippisati: the latest raspi2 kernel10:26
ogra_hmpf ... my SD is 128GB ... and already resized (and i'm working on the SD)10:27
ogra_but technically you shoudl be fine with the boot partition ... one sec10:28
ppisatiogra_: so, the difference might be in cmdline.txt / bootargs10:28
ppisatior what else? /me thinking...10:29
asacogra_: subscribed release... lets see if someone will pick it up10:29
asaci will assign it to you for now :P10:29
asacj.k.10:29
ogra_ppisati, http://people.canonical.com/~ogra/snappy/snappy-boot.img.xz and http://paste.ubuntu.com/15478441/10:33
* zyga looks at apparmor again10:54
ogra_ppisati, woah ...10:57
ppisatiogra_: ???10:57
ogra_it boots (totally broken, but i have output )10:57
ogra_i swear i have copied the same dtb ten times in place and it didnt work10:58
ogra_ubuntu@localhost:~$ uname -a10:58
ogra_Linux localhost.localdomain 4.4.0-1004-raspi2 #5-Ubuntu SMP Mon Mar 14 22:27:12 UTC 2016 armv7l armv7l armv7l GNU/Linux10:58
ppisatiogra_: your image indeed doesn't boot here10:58
ppisatiogra_: weird10:58
ppisatiogra_: bad sd maybe?10:58
ogra_ppisati, copy the dtb from system-boot/canonical-pi2-linux.sideload_IPOcSSWBccOI.snap/dtbs/bcm2710-rpi-3-b.dtb to system-boot/10:59
ogra_then try again10:59
ogra_but i have honestly done that ten times before and it didnt work10:59
ppisatimd5 are indeed different11:01
ogra_yes, i was switching between the upstream one and ours11:01
ogra_hmm, reboot doesnt work11:01
ogra_lets see if it boots again :)11:02
ppisatiahaha11:02
ogra_it does !11:03
ogra_looks like we have an rpi3 image ;)11:03
ppisaticool11:03
ogra_no wifi though :/11:04
ppisatithat something to investigate11:04
ogra_i see the brcmfmac, cfg80211 and bcm2835_wdt modules loaded though11:05
ogra_butu no device in /proc/net/dev11:05
ogra_ppisati, we really need to quieten that FS2F driver ... that looks so scary11:07
ogra_wo11:07
ogra_w11:07
ogra_ubuntu@localhost:~$ dmesg11:08
ogra_dmesg: read kernel buffer failed: Operation not permitted11:08
ppisatinope, no wifi even on a normal ubuntu image11:08
ppisatii need to check upstream11:08
ogra_brcmfmac_sdio mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.bin failed with error -211:08
ogra_there you go11:08
ogra_https://github.com/RPi-Distro/firmware-nonfree/blob/master/brcm80211/defines11:10
ppisatiuri: http://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git11:11
ppisatisounds like it should be part of linux-firmware11:11
ogra_yeah ... but /lib/firmware/brcm/ actually doesnt have that file11:12
ogra_heh11:13
ogra_http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree/brcm doesnt either :P11:13
ogra_lies !11:13
ogra_ah, well https://github.com/RPi-Distro/firmware-nonfree/tree/master/brcm80211/brcm has it ... says "added 27 days ago"11:14
ogra_so its actually pretty new11:15
ogra_wired network works well btw11:15
* ogra_ installs webdm11:16
* ogra_ wonders what "shadowsocks" is 11:17
ogra_oh, now reboot works too (from ssh this time ... seems the serial connection held it back last time)11:21
ogra_pitti, :(12:11
ogra_Mar 23 11:56:08 localhost systemd[1]: Starting Create Volatile Files and Directories...12:11
ogra_Mar 23 11:56:08 localhost systemd[1]: Failed to start Create Volatile Files and Directories.12:11
ogra_ubuntu@localhost:~$ ls -lh /etc/mtab12:11
ogra_lrwxrwxrwx 1 root root 17 Mar 23 05:11 /etc/mtab -> /proc/self/mounts12:11
ogra_so that didnt help12:11
ogra_ppisati, yay ... and it boots fine on the pi2 too !12:28
ogra_i get no serial login prompt on the pi2 though ... thats a bit weird12:29
ogra_mvo, please approve https://myapps.developer.ubuntu.com/dev/click-apps/4194/rev/5/ ... (gets us rpi3 support)12:33
kyrofaogra_, are you going to merge rpi3 support into the rpi2 gadget in snappy-systems?12:53
ogra_kyrofa, yes12:54
ogra_(it just a newer uboot and firmware)12:54
kyrofaAwesome :) . Do you anticipate that landing soonish, or is there more work to be done on it?12:55
ogra_i want to find out why i dont get a serial tty on the pi2 currently12:55
ogra_once i have that fixed we'Re good to go i think12:56
kyrofaogra_, ppisati great work you two! :)12:56
ogra_kyrofa, http://people.canonical.com/~ogra/snappy/all-snaps/rpi3/gadget-snap.tgz for the imaptient ;)12:57
ogra_*impatient12:57
kyrofaogra_, nah, I'm not impatient. Just curious ;)12:58
ogra_ah, i thougth you wanted to update the owncloud thingie12:58
mvoogra_: approved12:58
* ogra_ hugs mvo 12:59
* mvo hugs ogra_13:00
ogra_hmm, no serial console even if i completely drop console=tty113:01
ogra_this is weird13:02
ogra_really strange13:03
kyrofaogra_, I do, but I don't want to jump the gun. It needs to work well on the rpi2 as well13:03
kyrofaogra_, although as soon as the u-d-f --install thing works again, I'll probably stop using the owncloud gadget fork anyway13:04
kyrofaWhich I guess is just waiting on the new ubuntu-core to make it to stable13:04
ogra_yeah13:06
ogra_ppisati, any idea abotu that serial thing ?13:08
ogra_(i dont think it is critical, but a nice to have)13:11
ppisatiogra_: is the serial console the only missing piece? i mean, do you see the system booting?13:11
ogra_ppisati, system boots fine i just dont get anything after "Starting kernel ..." ,,, if i set console=tty1 i get proper output on the monitor ... just nothing at all on serial (no login prompt)13:12
=== chihchun is now known as chihchun_afk
ppisatiogra_: ok, then no output when kernel start13:13
ogra_right13:13
* ppisati thinks13:13
ogra_argh13:15
ogra_now i accidentially dropped all console= args :P13:15
ogra_heh13:15
ogra_and it defaults to tty113:15
ppisatiogra_: might be uboot that is tailored for the raspi3, or (but i don't think so) the "core_freq=250" in config.txt13:16
ogra_[    0.103026] Serial: AMBA PL011 UART driver13:17
ogra_[    0.103379] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev213:17
ogra_the driver is fine at least13:17
ppisatifirst try to remove the core_freq option from config.txt13:18
ppisatiif that doesn't fix it, i would try with a uboot.bin + uboot.env from the rpi2 image13:19
ogra_well, but thats not what i'm after :)13:20
ogra_same uboot for both boards :)13:20
ppisatiogra_: yeah, i know13:20
ppisatiogra_: but at least we find where the problem is13:20
ppisatiogra_: remebr that we are using a version of uboot that is not published by upstream anymore13:21
ogra_well, it is clear that the difference is in uboot.bin13:21
ogra_i dont get why systemd doesnt start a console ...13:21
ogra_i think we can live without boot log output on serial13:22
ogra_but a login console needs to work13:22
ppisatii think we should get both working13:22
ogra_yes, but login is more important13:22
ogra_err13:23
ogra_Mar 23 13:21:18 localhost systemd[1]: Started Serial Getty on ttyAMA0.13:23
ogra_Mar 23 13:21:18 localhost systemd[1]: Started Getty on tty1.13:23
ogra_Mar 23 13:21:18 localhost systemd[1]: Reached target Login Prompts.13:23
ogra_ubuntu@localhost:~$ ps ax|grep getty13:24
ogra_  963 ?        Ss+    0:00 /sbin/agetty --keep-baud 115200 38400 9600 ttyAMA0 vt22013:24
ogra_  964 tty1     Ss+    0:00 /sbin/agetty --noclear tty1 linux13:24
ogra_...13:25
ogra_ubuntu@localhost:~$ ls -l /dev/ttyAMA013:25
ogra_crw--w---- 1 root tty 204, 64 Mar 23 13:21 /dev/ttyAMA013:25
ogra_btw, dropping the the option from config.txt doesnt change anything13:26
ogra_hmm13:27
ogra_<ogra_> [    0.103026] Serial: AMBA PL011 UART driver13:27
ogra_err13:27
ogra_ppisati, did you try booting your image on a pi2 yet ?13:28
ppisatiogra_: i think i tried but i hit some problems13:35
ppisatiogra_: don't remember exctly13:35
ppisatilet me try13:35
* ogra_ sees init_uart_clock and init_uart_baud as config.txt options13:36
qenghoHave any of you had trouble with the dynamic linker inside a snap? I'm getting this. If I run the same code in the same place without the launcher wrapping it, it runs as expected.13:37
qengho"""Inconsistency detected by ld.so: dl-open.c: 691: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed!"""13:37
jdstrandzyga: hey, note while you are looking at apparmor again, can you pull in the latest updates to ubuntu-core-security from trunk?13:37
jdstrandzyga: r209 for the default policy, but also the others if you already pulled them in somewhere (home, unity7, x, etc)13:39
jdstrandzyga: r209 is critical for landing13:39
zygajdstrand: yep, can you file a bug on snappy and assign it to me so that we don't lose thise13:40
jdstrandzyga: is the default template change landed already? do you have the other interfaces landed?13:41
zygawhat do you mean by default template change?13:41
jdstrandthe apparmor generator that produces the default policy13:41
jdstranddid that land?13:41
zygathe answer is no, I guess, I will propose apparmor (and everything else) as soon as 702 lands13:42
zygapartially13:42
zygaI evolved that to the point where it's different ;)13:42
jdstranddoes the partially part involve the actual policy?13:42
jdstrandI reviewed a PR for that, I don't know if it landed13:42
zygajdstrand: yes but that has changed since13:42
zygajdstrand: well, not the actual content there13:42
zygajdstrand: so in any case, we'll have to sync that13:42
jdstrandzyga: what I'm getting at is if you just add me to a PR that touches that file, I'll remember. or I could do a PR, or a bug13:43
jdstrandtell me what is easiest for you and I'll do it13:43
zygajdstrand: wait then13:43
zygajdstrand: I'd love if you work on a PR instead but please wait for something else to land to do it, ok?13:44
jdstrandzyga: sure that's fine. note that if policy generation starts happening on the image without r209, apps won't start13:44
zygajdstrand: (we're talking today)13:44
zygajdstrand: with all the changes today I would be surprised if they did13:45
jdstrandheh13:45
zygajdstrand: chipaca is landing snap revisions and snap IDs13:45
zygajdstrand: we're aiming at end of the week/after long weekend for everything working again13:45
zygajdstrand: (including interfaces)13:45
jdstrandwell, I'd prefer my little corner wasn't the reason for that :)13:45
jdstrandjust ping me and I'll do a PR13:45
zygajdstrand: thanks, understood13:46
ppisatiogra_: same here13:56
ppisatiogra_: boots fine, but no output after uboot13:56
ogra_k13:57
ogra_ohm crap13:58
ogra_i see it13:58
ogra_ 99 #ifdef CONFIG_BCM283713:58
ogra_100 #define CONFIG_BCM283X_MU_SERIAL13:58
ogra_101 #else13:58
ogra_102 #define CONFIG_PL01X_SERIAL13:58
ogra_103 #endif13:58
ogra_pi2 uses the latter13:58
ogra_i wonder if it explodes if i enable both13:59
ppisatiuboot14:00
ppisatiyeah, saw that14:00
ogra_doesnt explode on the pi2 ... still boots14:01
ogra_but no login prompt14:02
ogra_bug 155624114:05
ubottubug 1556241 in debian-installer (Ubuntu) "installer sets "iface encf5f0 inet dhcp" although a static IP address was preseeded" [High,Confirmed] https://launchpad.net/bugs/155624114:05
AnInstanceOfMeHello all ... I've followed instructions here https://developer.ubuntu.com/en/snappy/build-apps/get-started/ to the letter (I'm running 16.04), but just get "Unable to locate package snappy-tools". I added the ppa as per that page - it complained about a weak digest. Any pointers?14:11
kyrofaAnInstanceOfMe, I'm afraid those docs are still a bit of a mix regarding 15.04/16.0414:33
kyrofaAnInstanceOfMe, you don't need the PPA for xenial, and you should just install, say, snapcraft directory (e.g. sudo apt-get install snapcraft)14:33
kyrofadirectly rather. Too many directories today14:33
elopiokyrofa: ping, meeting.14:34
kyrofaelopio, on my way, sorry14:35
ogra_ppisati, no matter what i do or try i cant get the kernel spit out anything on serial (and i heavily mangled the uboot build config by now ... funnily i also dont seem to be abe to break it either :)14:36
ogra_ppisati, i have a slight suspicion it is the dtb or kernel itself14:36
AnInstanceOfMeRight, thanks for that, no probs.14:37
ppisatiogra_: actually if i swap out the raspi2 uboot, it works14:42
ogra_swap in you mean :)14:42
ppisatiogra_: yeah14:42
ppisatiogra_: seems like the serial is left in a incosistent state, and the kernel doesn't recover it14:42
ppisatilet's dig some more14:43
ogra_yeah14:43
looljdstrand: heya14:55
looljdstrand: we're trying to run /bin/ip from a snap and get a permission denied; I tried with security-template: unconfined and that didn't help, now I'm trying with read-paths: [/bin/ip], but surprizingly it didn't help either14:55
lool[Wed Mar 23 14:54:36 2016] audit: type=1400 audit(1458744876.069:79): apparmor="14:56
loolSTATUS" operation="profile_load" profile="unconfined" name="openswitch.sideload_14:56
loolstart-openswitch_IPUAXRQSfQNe" pid=1810 comm="apparmor_parser"14:56
lool[Wed Mar 23 14:54:40 2016] audit: type=1400 audit(1458744880.129:80): apparmor="14:56
loolDENIED" operation="open" profile="openswitch.sideload_start-openswitch_IPUAXRQSf14:56
loolQNe" name="/bin/ip" pid=1826 comm="ops-init" requested_mask="r" denied_mask="r"14:56
loolfsuid=0 ouid=014:56
looljdstrand: https://github.com/ops-snappy/ops-snappy/blob/master/snapcraft.yaml is the snapcraft def and I tried adding caps: [] and replacing security-template with read-paths, to no luck14:57
joc_elopio: good morning leo, all the tests passed at last :) https://github.com/ubuntu-core/snapcraft/pull/36414:58
ogra_ppisati, http://paste.ubuntu.com/15480016/ (pi3)  ... vs http://paste.ubuntu.com/15479995/ (pi2)14:58
ogra_and in fact there is actually a ttyS0 device on the pi314:59
* ogra_ wonders about "base_baud = 0" on the pi214:59
ppisatiogra_: i've something different15:00
ppisatihttp://pastebin.ubuntu.com/15479739/15:00
ogra_well but you compare two different images15:01
ppisatiogra_: the difference is just in uboot at this point15:01
ogra_i use the same image and compare it on both boards15:02
ppisatisame bcm-bootloader and same kernel15:02
ogra_right15:02
ogra_nontheless, the pi3 expects a ttyS015:02
ogra_http://paste.ubuntu.com/15480016/15:02
ogra_about 6 seconds into the boot it also enables the ttyAMA0 one15:03
ogra_[    6.967253] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev215:03
ogra_well, 7 rather15:03
ogra_but the actual serial console seems to be on ttyS0 ... initialized around 4 sec15:04
ppisatiiirc the console was being rewritten by the firmware15:04
* ogra_ does a fresh clone ... lets see 15:06
elopiojoc_: awesome!15:06
elopio sergiusens_, kyrofa: joc_'s pr is ready for a review.15:06
ogra_iirc our issue with the upstream uboot was that we forgot sudo for mkknlimg15:06
ogra_bah ... and the missing defconfig15:09
kyrofaelopio, this has happened twice now: http://162.213.35.179:8080/job/github-snapcraft-autopkgtest-cloud/244/console15:12
kyrofa(quota)15:12
kyrofaelopio, should I just keep trying, or is there a problem?15:13
elopiokyrofa: no, I need to delete the instances manually.15:13
elopiowhen scalingstack is having a hard day, it takes a long time to build the instances. So we send the delete command while they are still building, and they are kept around.15:14
kyrofaOh, okay15:14
jdstrandlool: is openvswitch using a fs namespace?15:14
looljdstrand: netns15:15
jdstrandlool: a perhaps better first question is-- what are the contents of your /var/lib/snappy/apparmor/profiles/openswitch_start-openswitch_... file15:16
looljdstrand: dont know about fs namespace15:16
zygajdstrand: so the prerequisite lanted, I'll iterate for a sec but I can now propose apparmor configurator (terrible name) and you can target policy changes there15:16
looljdstrand: http://paste.ubuntu.com/15480149/15:16
zygajdstrand: I'll keep you posted15:16
zyga*landed*15:16
looljdstrand: oh sorry15:16
jdstrandyeah, I don't think that is what you meant to paste :)15:17
jdstrandzyga: ack15:17
looljdstrand: http://paste.ubuntu.com/15480172/15:19
loolno bin/ip there15:19
jdstrandlool: more importantly, that isn't unconfied15:20
jdstrandunconfined15:20
loolno15:20
loolwell I had removed it in the last attempt15:20
loolto not mix both15:20
loolbut unconfined doesn't work either15:20
elopiokyrofa: you can try now.15:20
kyrofaThanks elopio15:21
looljdstrand: trying with unconfined again15:21
jdstrandlool: the caps you want is network-management btw15:21
jdstrandlool: but yes, let's see what happens with unconfined15:22
jdstrandlool: please remove and purge the snap and then install15:22
looljdstrand: ah! I did remove but not purge15:23
loolhttp://paste.ubuntu.com/15480195/15:23
loolno unconfined again15:23
asacsergiusens_: FAQ i guess... how do i use a ppa?15:24
looljdstrand: still no luck, http://paste.ubuntu.com/15480203/15:24
looldespite a snappy purge openswitch15:25
jdstrandlool: I don't know how new your snappy is. I wonder if security-template is no longer being honored15:25
loolthe apparmor stuff is regenerated15:25
code1o6lool, Hey, I'm new is that a snapcraft.yaml?15:25
looljdstrand: ah it's the mvo image, but updates might not be applied15:25
loollet's see with latest snappy15:25
jdstrandlool: well, another thing to try is:15:25
jdstrandplugs:15:25
jdstrand  networking:15:25
jdstrand    interface: old-security15:25
jdstrand      caps: [network-client, network-management]15:26
jdstranderr, caps shouldn't be indented that far15:26
jospoortvlietkyrofa: any chance you could join some Pi drive ppl in #techandme ??15:28
code1o6lool, jdstrand, I'm making a very simple snappy package that uses nmap and a bash script. Kinda like the one from getting started however I'm having issues is the getting started tutorial I believe is for snappy 16.04. Any help would be highly appreciated15:29
code1o6*not getting started. build your first snap tutorial15:30
asacsergiusens_: FAQ i guess... how do i use a ppa for stage-packages?15:32
code1o6here is my yaml http://paste.ubuntu.com/15480263/15:33
sergiusens_asac, that's only for plugins; why do you need this?15:33
looljdstrand: of course after updating snappy, things work15:33
asacbecause i have a patch to apply to a package15:33
looljdstrand: sorry15:33
asacthat i want to use15:33
code1o6Here is my bash script http://paste.ubuntu.com/15480269/15:33
asacsergiusens_: why wouldnt we allow to add-repositories for apt?15:34
asacglobally15:34
sergiusens_asac, or if added to your host system and using this variable that is about to go away LOCAL_SOURCES15:34
loolcode1o6: I'd suggest starting from a snapcraft checkout15:34
loolcode1o6: and reading through the examples15:34
code1o6I did15:34
sergiusens_asac, you don't have the master plan in your head; trust me :-)15:34
asacsergiusens_: hmm. doesnt sound good15:34
code1o6I did exactly from the tutorial15:34
asacsergiusens_: is there a trick coming to make what i want to do easy?15:35
asacwithout ppa?15:35
sergiusens_asac, create a bug about stage-package's and ppa's I guess; but the original idea was that stage packages would come from the archive15:36
asaclike deb-source plugin that builds something from a debsource?15:36
code1o6The only difference is that I changed "$SNAP_DATA" to "$SNAP_APP_DATA_PATH" because it was for 16.0415:36
asacthey come fromt he archive, but there might be need to do stuff different :)15:36
asaci actually think the dpkg-buildpackage plugin might be neat :P15:36
jdstrandzyga: erf, how to you unrequest a PR?15:36
zygajdstrand: close it!15:36
asaci could apt-get source, hack away and jkust use that15:36
sergiusens_asac, that will be horrible ;-)15:36
jdstrandhow do I close it? :)15:36
zygajdstrand: there's a button at the bottom of the page15:36
asacsergiusens_: maybe from how it would need doing with pbuilder and friends?15:37
jdstrandah there it is15:37
asacbut from the feel it woudl be nice15:37
asachave a bug in an archive package15:37
jdstrandthanks15:37
asacjust take the source, patch it and build it nicely15:37
sergiusens_asac, if there's a bug in an archive package it should ideally be fixed15:37
code1o6lool, when i try to run the bash script in /apps/unisys-test/whatever I believe it fails to run since it doesn't have the right folder permissions.15:37
asaci have never been a fan of such idealistic statements when something doesnt work15:38
asacyes, the world should all be clean and upstream15:38
asacbut realitity is i need to get something done now :P15:38
loolcode1o6: which folder are you trying to open?15:38
asacand we have beta freeze even15:38
asacand i dont even know if my patch is great and want to first test it by using it :)15:38
asacin snapcraft15:38
asacanyway, i will figure15:38
code1o6http://paste.ubuntu.com/15480269/15:38
=== sergiusens_ is now known as sergiusens
code1o6lool, it just pipes the output of nmap to test.out15:39
sergiusensasac, well bottom line is it is not supported today15:39
code1o6then golang static websever should display that folder15:39
ogra_ppisati, hmm https://github.com/swarren/u-boot/commit/97e783304448f240b33ab308cd9e18df5d8f69ca15:39
code1o6just like the tutorial does it for the webcam15:39
asacright. i can file a bug and then wait till that feature is there :)15:39
asacguess i cant setup my home ftp server on snappy then :)15:40
code1o6instead of creating pictures from fswebcam i use nmap15:40
code1o6lool, I'm still quite understand how filesets work. This is how I did it http://paste.ubuntu.com/15480263/15:41
code1o6I'm guessing that the issue in my snapcraft.yaml15:41
asacsergiusens: https://bugs.launchpad.net/snapcraft/+bug/156106815:42
ubottuLaunchpad bug 1561068 in Snapcraft "cannot use ppa or deb source packages conveniently" [Undecided,New]15:42
code1o6brb, going to get coffee15:43
asachmm. vsftpd doesnt even have a git tree from what i see15:45
jdstrandzyga: https://github.com/ubuntu-core/snappy/pull/71815:45
asaclets go for tarball mess then :/15:45
ogra_asac, its probably so small that the maintainer just types it in from memory before building ;)15:45
code1o6back15:45
loolcode1o6: sorry I need to focus on something else for a while, if you dont get help here I'll be back with you reading the backlog15:46
zygajdstrand: thanks15:46
asachaha ... /me joins #vsftpd15:46
zygajdstrand: I've chaged the patch summary, we just indicated the package, not a particular file15:46
zygajdstrand: if you have more I'll gladly take them :)15:46
zygajdstrand: I'm working on some final bits that put all security stuff on disk and in memory15:47
jdstrandzyga: what does 'whitelist this please' mean?15:47
zygajdstrand: just iterating to make it pretty and robust15:47
ogra_ppisati, any idea what the dtb names are in that commit ? they dont seem to match any rpi dtb i have ever seen15:47
ogra_(like: none of them)15:47
zygajdstrand: it's a command to one of the bots that says that this pull request is trusted, it triggers tests to run when a non-member of the ubuntu-core organization proposes a pull request15:48
asacogra_: so in your example you have the sqlite hacked binary in the source tree15:48
asacbecause its not easy to just use ppas?15:48
ogra_asac, yeah, and have a copy line15:48
asacor do you build sqlite completely?15:48
asacright15:48
jdstrandzyga: I see15:48
asacawful15:48
ogra_sure :)15:48
asaci feel super resistant against such things15:48
ogra_its a demo snap ...15:48
ogra_feel free to make it better ;)15:48
* ogra_ only cares about having working binaries 15:49
asaci am ... files a bug15:49
asachttps://bugs.launchpad.net/snapcraft/+bug/156106815:49
ubottuLaunchpad bug 1561068 in Snapcraft "cannot use ppa or deb source packages conveniently" [Undecided,New]15:49
jdstrandzyga: so, the next step from my perspective is adding all the existing ubuntu-core-security (from trunk!) caps as interfaces15:49
asacppa is good, deb-soure plugin woudl be even more awesome15:49
zygajdstrand: I think we are ready-ish for that now15:49
jdstrandzyga: so I'll wait for you to do that before I make other policy change PRs15:49
* ogra_ would just like to have patches auto-applied :)15:49
zygajdstrand: if you can, just add them15:49
asacogra_: not sure why i need snapcraft if i have to build the binaries elsewhere15:49
zygajdstrand: one pull request per interface15:49
asacand then copy them in my tree :P15:49
asaccould just do the old way of doing it somehow then15:50
jdstrandzyga: I'm not sure how...15:50
zygajdstrand: look at interfaces/builtin/network.go15:50
zygajdstrand: just copy-paste15:50
ogra_asac, to r9oll the snap ... this snap is from early 15.04 days and was always just carriesd along15:50
zygajdstrand: 99% of the file is the security content or generic boilerplate15:50
ogra_back then there was no such thing as snapcraft15:50
jdstrandoh, I didn't know you did one already15:50
asacogra_: but it is snapcraft :)15:50
zygajdstrand: just paste the right security content and the right profile name15:50
ogra_asac, now it is15:50
asacsoyou could have just kept it manual15:50
ogra_no15:50
ogra_snappy build will be gone soon15:50
asacwell just mksquashfs15:51
asac:)15:51
zygajdstrand: I can help you out with this but it would be much faster and might align with having interfaces really work by the end of the week15:51
ogra_and i still use the copy plugin15:51
asaci did that a few times15:51
roadmrhey snappers! my snap is having trouble accessing the network (it's a server thingy): http://paste.ubuntu.com/15479495/ I have the old-security plug stuff from the gopaste example but still I see this. What am I missing?15:51
asacroadmr: how does your snapy.yaml look?15:51
zygaroadmr: hey15:52
roadmrasac: like crap :) let me paste it15:52
roadmrzyga: hello!15:52
asacroadmr: thsoe are not really network ones15:52
asacat least they dont look like it15:52
asacbut who am i :) ... maybe seeing you have a syntax error in you snap.yaml will explain it15:53
zygawith everything that happens this week I'd imagine it could be broken, not sure how away latest devel images are from git master15:53
roadmrasac: http://paste.ubuntu.com/15480423/ this is just the apps and plugs15:53
roadmrasac: blatantly copied from the gopaste example really :/15:53
zygajdstrand: merged15:54
zygaroadmr: it looks good, I'd wait for after easter though15:54
zygaroadmr: 90% of snappy is upside down this week15:54
zygaroadmr: with major changes landing15:54
ogra_just do a handstand15:55
zygaroadmr: and next week I'd use network interface15:55
zygaroadmr: not old security15:55
roadmrzyga: yay!!15:55
ogra_though typing is hard in that position15:55
zyga(I suspect that next week old-security is the only interface that will not work)15:55
zyga(while everything else will)15:55
roadmrogra_: haha :) a handstand sounds like a skill, rather than an interface :)15:55
ogra_heh15:55
zygaI'll get o-s to work too but after15:55
elopiofgimenez: git push --set-upstream origin bug/mkdir_gnupg15:55
elopiosorry15:55
elopiofgimenez: https://github.com/ubuntu-core/snappy-jenkins/pull/11415:56
asacroadmr: dunno... i never had problems, but didnt use override15:57
jdstrandzyga: fyi, we need old-security/seccurity-override and old-security/security-policy to work at least (the other two can go away afaic)15:57
jdstrandzyga: next week is fine, just saying, we should plan on those working. we can chat at some point when it makes sense about what those should be doing and how the interact with interfaces15:57
asacroadmr: so its different for me15:57
asacinterface: old-security15:58
zygajdstrand: wooot15:58
zygajdstrand: wait, what about system calls?15:58
zygajdstrand: security-policy -- that's the "different template" support, right?15:58
asacroadmr: http://paste.ubuntu.com/15480453/15:58
asacthats what i would try15:58
zygajdstrand: and security-override is like a custom snippet, right?15:58
fgimenezelopio, ok thx!15:58
jdstrandzyga: regarding the other caps, I'm on it. I didn't realize network was already there15:58
jdstrandzyga: security-policy is 'use my custom raw policy and don't use interfaces/apparmor.go and interfaces/seccomp.go"15:59
zygajdstrand: thanks, I'm sure we can land them quickly16:00
zygajdstrand: I see, that's okay, this should be supported with what I'm hacking on now16:00
jdstrandzyga: security-override is 'use interfaces like normal, but add these few extra things I specified'16:00
zygajdstrand: perfect16:00
zygajdstrand: I'm 100% confident we'll get all of this to work now16:00
jdstrandnice16:00
roadmrasac: thanks! I'll try that right now...16:00
zygajdstrand: (it works now but I need to rebase on top of what mvo did first)16:01
zygajdstrand: and there's a looong review ahead :)16:01
asacroadmr: but as said not sure about -override part16:02
roadmrasac: ok, we'll know soon enough :)16:03
jdstrandzyga: why doesn't git reset --hard origin/master pull in the change you just merged?16:05
zygajdstrand: git is offline except for "pull" and "fetch"16:06
zygajdstrand: git fetch --all16:06
jdstrandzyga: that didn't do it either16:06
asacgit fetch origin16:06
jdstrandI already trid git pull16:07
asacthen do the checkout / reset16:07
zygajdstrand: I'd normally pull instead16:07
zygajdstrand: git pull origin master16:07
jdstrandI tried a pull before I asked the question16:07
zygajdstrand: safer than reset --hard16:07
zyga^^ like that16:07
roadmrasac: so it didn't work :/ I still see the same apparmor DENIED stuff :/ I'm OK to wait until next week if things are wobbly right now16:07
jdstrandzyga: it says I am up to date, but I am clearly not. I don't have 71816:08
asacguess so16:08
* jdstrand sighs16:09
asacjdstrand: git branch16:09
asacgit log -l116:09
asaci think you might be on different head\16:10
jdstrandthat's what I'm saying16:10
asacthen you think16:10
jdstrandI have Merge pull request #71716:10
jdstrandI do not have 718 which github says is committed16:10
asacdo you see it in the fetched branches?16:10
asace.g. git log origin/master ?16:10
asacif not its a caching prob16:11
asacof course only after doign git fetch origin first16:11
jdstrandgit log origin/master doesn't show it either16:11
jdstrandI did git fetch origin16:11
asacand git remote show origin16:11
jdstrandmaybe I'm confused by what github is saying16:11
asacshows the right origin?16:11
asacon master on github there is 71816:12
asacno confusion on that front16:12
jdstrandmaybe I cloned it wrong?16:12
asacyes, check git remote show origin16:12
asacmaybe that points to your own tree16:12
jdstrandhttp://paste.ubuntu.com/15480553/16:12
jdstrandit seems to16:13
jdstrandI don't know why16:13
asacyou probably jus started with that16:13
asacits not problem16:13
asacjust add the upstream origin16:13
asaclike git remote add upstream https://github.com/ubuntu-core/snappy16:13
asacgit fetch upstream16:13
asacand then you can checkout upstream/master16:13
jdstrandis that the normal way or is it a workaround because I cloned wrong?16:14
asacwell. its certainly not abnormal to have your own repo as origin and the upstream repo as something else16:14
asacdepends on the perspective16:14
asac:)16:14
jdstrandmy perspective is I just want to have something that I trip on *every* time16:15
jdstrand:P16:15
asaclol16:15
asacyou have to learn this then16:15
zygajdstrand: yeah, I have origin as myself and upstream as upstream :)16:15
asacno way around it :)16:15
zygajdstrand: it's all personal16:15
asacgit is not bzr16:15
jdstrandI git that (see what I did there! :)16:15
zyga...16:15
zyga...16:15
jdstrandbut I'm trying to figure out what the git flow is16:15
zygawe see (see what I did here)16:15
zyga(except it took a while)16:15
asacjdstrand: git flow is really very freeform... do what you want :)16:16
zygajdstrand: I typically git fetch once a day or when something I care about lands16:16
asacyou add the repos you care about with some name (origin, upstream, doesnt matter)16:16
jdstrandassamaybe that is the issue16:16
asacand then make local working branches for whatever youw eant to work on16:16
asac:)16:16
asacand push to wherever you want to push16:16
zygayep16:16
zygait's the hippygit workflow16:16
asaci try to avoid magic stuff... becuase i dont understand what it doesn :)16:17
asacso just do it old way :)16:17
asacjdstrand: so if you do git branch -a you see all the branches you ahve fetched from remote repos16:18
jdstrandI know what happened16:18
asacthat you ahve configured in snappy remote16:18
asacand all that doesnt have ORIGIN./ is just local16:18
jdstrandit is the combination of github and git16:18
asacyou can always just delete all that if you are confused16:18
jdstrandie, I forked ubuntu-core/snappy.git16:18
asacand checkout whhatever you want as master from all those things available from upstream repo16:18
jdstrandthat gave me jdstrand/snappy.git16:18
jdstrandI cloned jdstrand/snappy.git16:18
asacyes16:19
jdstrandI was thinking that github would do something magic there16:19
jdstrandbut now the upstream bit makes sense16:19
jdstrandok16:19
jdstrandthanks!16:19
asacthats how you usually end up with your own repo on github :)16:19
asachehe16:19
asacso the security-override in the plug thing is not really the way to do that right?16:21
asace.g. to allow syscalls16:21
asacfor me the network caps work, but not the syscall whitelist16:21
asachttp://paste.ubuntu.com/15480672/16:21
sergiusenselopio, help here would be nice http://162.213.35.179:8080/job/github-snapcraft-autopkgtest-cloud/243/console16:21
asacjdstrand: do you know?16:21
zygajdstrand: related to asac's question, do you think we need to support "syscalls" as thing in old-security16:22
zyga(I know the custom snippet think is sufficient for that)16:22
elopiosergiusens: I think I already solved that. We had a lot of slow scalingstack instances hanging around.16:22
asachmm. i think it actually worked16:22
asaci get now a complain about missing cap setgid16:23
asac    security-override:16:23
asac      syscalls: [setgroups]16:23
asac      caps: [setgid]16:23
asacthat doesnt feel right :)16:23
asaclet me add that to the other caps16:23
asacwhere i have network-listener16:24
asacok that was clearly wrong :)16:24
* ogra_ takes a break16:24
asacjdstrand: its odd... i now have http://paste.ubuntu.com/15480726/ and i managed to get rid of setgid capabilityt complain and setgroups syscalls complain, but this doesnt fix the sys_admin complains16:27
asaczyga: ^16:27
zygano idea :-(16:27
zygaI haven't tried using old-security much and I don't really follow the magic behind it16:28
asachttp://paste.ubuntu.com/15480738/16:28
zygaasac: but I can promise you to support this next week16:28
asacthats the complains i got before16:28
asacnow i only get the sys_admin one16:28
zygaasac: when I know what happens inside16:28
sergiusenselopio, hm16:28
asacjdstrand: nevermind i got rid of all complains.... was just confused by scanlog16:30
sergiusensmorphis, btw https://github.com/ubuntu-core/snapcraft/pull/39716:30
asacstill have troubles16:30
sergiusensand lool ^16:30
morphissergiusens: yeah!16:30
mvipasac is most of the Snappy team in Paris now?16:32
asacmvip: no most are distributed16:33
* asac does the ogra now :)16:34
asaccopies hacked binaries into snapcraft sourc etree16:35
asacand i must admit once you have done it once it doesnt feel that bad anymore :)16:35
ogra_haha16:36
mvipasac yeah i know, but i thought Didier, Rircardo and Maarten were there so i just thought you had an event or something.16:36
mvip*Ricardo16:36
ogra_thats the tie and suit guys :)16:36
mvipogra_ ;)16:37
mvipWhile i have seen Maarten in suit, i haven't seen Ricardo or Didier in one ;)16:37
ogra_they have a party budget to take out customers, so they can have in-person meetings ... us poor developers have to stay at home ;)16:37
mvipogra_ hahaha16:38
asacricardo and didier did an important one day thing there :)16:38
mvipah ok16:38
asacmectors wanst there afaik, but you newver know :_)16:38
mvipasac i've been chasing Ricardo by email but he appears to be MIA16:38
asache is vac16:38
ogra_back next week16:39
asacback mon16:39
mvipah ok.16:39
asacif you need urgent help let me know :)16:39
mvipasac nah we talked at MWC about doing a pre-16.04 Hangout for my devs to avoid common pitfalls16:39
mvipbut now we're halfway there already16:39
mvipbut thanks for the offer16:40
asacmvip: half way where?16:40
mvipasac: yeah we've ported most of the code from 15.04, but there were a few changes that they're still working on16:41
asacic16:41
asacok sounds good. just remember there are still changes happening on trunk16:41
mvipyeah i know16:41
asacteam will probably improve stuff till very shortly before release16:41
asacgoodie16:41
mvipyeah but we want to open up the beta with some beta customers asap, and since there is no migration plan from 15.04 (w/out re-flashing), we kinda have to bite the bullet with 16.0416:42
asaczyga: where is the old-secureity code?16:42
asaci cannot find it16:42
asacneed to know if the field is called capabilities16:42
zygaasac: snappy/*16:42
zygaasac: mostly security.go16:42
zygaasac: but it's not easy to follow IMHO16:42
zyga(e.g. compare to interfaces/builtin/$iface_name.go16:42
zygaasac: :-(16:42
asacindeed16:43
asacjdstrand: really would love to know where i can put stuff like sys_chroot16:44
asaci tried putting it in old-security -> caps16:44
asacdoesnt work16:44
asacthen in override -> capabilities, but the code doesnt seem to suggest such field exists16:44
ogra_even if it did you'd most likely have to change it again next week :P16:44
asacits odd16:45
* ogra_ waits til someone actually calls the stuff stable ... i gave up forward porting my snaps every week16:45
asaci get complain that syscall chroot is missing16:45
asacthen i add that and then it complains about missing cap sys_chroot16:45
asacwonder why we always have both16:45
ogra_i doubt you will be able to implement that sanely at all16:45
asacogra_: how can i make it unconfined?16:45
ogra_turn off chrooting in your daemon16:46
asacmy machien crashed s i have to get this working today16:46
asacno matter what16:46
zygaasac: unconfined is going away, developer mode is replacing that16:46
ogra_zyga, on a pre-snap basis ?16:46
asacyes, but i need it working today16:46
zygayep16:46
ogra_*per-snap16:46
asacdoesnt matter what goes away16:46
zygaasac: sure, just FYI16:46
stgraberjdstrand: hey, any chance you can look at that lxd upload?16:46
asacsoo how to do unconfined these days?16:46
asac:)16:46
ogra_asac, http://bazaar.launchpad.net/~ogra/+junk/htop-unconfined/files that worked two weeks ago16:47
ogra_(obsolete again though)16:47
asacyep great16:47
* asac tries the equiv16:47
=== kickinz1 is now known as kickinz1|eod
sergiusensmvo, hey, how is meta/gui defined?16:56
sergiusensmvo, or what lives in it?16:56
mvosergiusens: I'm off for dinner now, lets talk later or tomorrow. its just icon in there and desktop files for now17:01
jdstrandstgraber: done17:11
stgraberjdstrand: thanks17:11
=== olli_ is now known as olli
elopioogra_: the package on the ppa build successfully today. If you can trigger a snap build, that would be nice.17:43
code1o6Hey guys, can someone take a look at my snapcraft.yaml to see if there is anything wrong with it. I'm not sure if I'm doing the filesets part right http://paste.ubuntu.com/15480263/17:53
sxjinstalled snappy on VirtualBox-4.3.36-105129, have tried ubuntu/ubuntu for username/password18:05
sxjget "login incorrect"18:05
sxjhave typed them carefully but still the same error18:06
jdstrandzyga: not sure if you are still around, but how do I list available interfaces? I'm on trunk and wanted to se how that part workeed18:11
zygather'es no way to do that18:12
zygajdstrand: just add a test in all_test.go18:12
jdstrandtoday or ever?18:12
zygatoday, we haven't designed anything that needs it yet18:12
zygajdstrand: one thing I'd envison was the developer mode debug checker18:12
zygajdstrand: but it's not implemented in any way18:12
jdstrandzyga: ok, so, the debugging tool I need to write will need some of this18:13
jdstrandbut let's not worry about that now18:13
zygajdstrand: it should be trivial to expose this on CLI18:13
zygajdstrand: one day18:13
sxjdownloaded the ova image from http://cloud-images.ubuntu.com/ubuntu-core/15.04/core/stable/current/core-stable-amd64-cloud.ova18:18
ogra_elopio, building18:33
elopiothank you!18:40
jdstrandzyga: sorry to keep bothering you: ./run-tests18:46
jdstrandcan't load package: package _/home/jamie/bzr-pulls/snappy.jdstrand/arch: cannot find package "_/home/jamie/bzr-pulls/snappy.jdstrand/arch" in any of:18:46
jdstrand/usr/lib/go/src/_/home/jamie/bzr-pulls/snappy.jdstrand/arch (from $GOROOT)18:46
jdstrand/home/jamie/src/gopath/src/_/home/jamie/bzr-pulls/snappy.jdstrand/arch (from $GOPATH)18:47
zygajdstrand: don't be sorry18:47
zygajdstrand: first of all, forget about run tests for a sec18:47
jdstrandI did ./get-deps.sh18:47
zygajdstrand: go to interfaces/builtin18:47
zygajdstrand: and run "go test"18:47
zygajdstrand: that's 99% of what matters18:47
jdstrand./bool_file_test.go:126: undefined: builtin.MockEvalSymlinks18:47
zygahmmm18:47
zygaok18:47
zygaquick sanity check18:47
zygayour code should be in $GOPATH/src/ubuntu-core/snappy18:48
zygathat is18:48
zygaafter get-deps18:48
zygayour snappy fork should be exactly there18:48
zygaotherwise nothing works18:48
jdstrandzyga: that worked18:49
jdstrandzyga: I use a symlink from $GOPATH/src/ubuntu-core/snappy to somewhere else18:49
jdstrand13:49 < jdstrand> zyga: that worked18:50
jdstrand13:49 < jdstrand> zyga: I use a symlink from $GOPATH/src/ubuntu-core/snappy to somewhere else18:50
jdstrandzyga: I was 'somewhere else'18:50
zygammm18:50
jdstranddoi18:50
jdstrandI'm doing too much at once :)18:50
zygaI'd suggest the other way around (have real stuff in $GOPATH and a symlink to reach faster but I'm glad that this works as well18:50
zygajdstrand: thanks for asking :)18:51
zygajdstrand: quick tip from my back of commands:18:53
zygago test . -cover -coverprofile $GOPATH/src/github.com/ubuntu-core/snappy/cover.out && go tool cover -html $GOPATH/src/github.com/ubuntu-core/snappy/cover.out -o $GOPATH/src/github.com/ubuntu-core/snappy/coverage.html18:53
zygaxdg-open $GOPATH/src/github.com/ubuntu-core/snappy/coverage.html18:53
=== chihchun_afk is now known as chihchun
=== ubott2 is now known as ubottu
sergiusensmvo, kyrofa https://github.com/ubuntu-core/snapcraft/pull/39919:14
code1o6sjx, I recommend using kvm, aka virtual machine manager19:19
code1o6works great19:19
=== daker_ is now known as daker
=== tedg_ is now known as tedg
=== inaddy_ is now known as inaddy
code1o6Can anyone take a look at my snapcraft.yaml19:20
code1o6Is anyone running snappy core 16.0419:23
zygacode1o6: I'd suggest just asking the question19:24
zygacode1o6: aka, don't ask to ask, just ask19:24
zygacode1o6: "I have a problem $DESCRIPTION_OF_PROBLEM with my snapcraft.yaml -- $PASTEBIN_OF_SNAPCRAFT_YAML"19:25
code1o6Zyga, I have several time on multiple days19:25
code1o6ey guys, can someone take a look at my snapcraft.yaml to see if there is anything wrong with it. I'm not sure if I'm doing the filesets part right http://paste.ubuntu.com/15480263/19:25
code1o6So, it builds but my bash script doesn't create test.out file. When I try running nmap binary it fails /apps/unisys-test/blah/nmap19:26
code1o6http://paste.ubuntu.com/15480269/19:27
code1o6that's the bash scripts the should run using glue from snapcraft.yaml19:27
code1o6The webserver gets started but I believe that the permission in the directory are not correct since the test.out file does not get created19:28
code1o6I tested my bash script in ubuntu and works perfectly. So, the problem is that the Build your first snap tutorial from canonical is outdated. The example source they provide is for 16.0419:30
code1o6So there is something I must be missing or that I have extra19:30
code1o6zyga, ^^19:31
zygacode1o6: unfortunately I cannot help you out, I'm not familiar with filesets, perhaps sergiusens can answer; if not I'd suggest sending that same question to snappy-app-devel mailing list19:32
code1o6I'm just following the tutorial from here https://developer.ubuntu.com/en/snappy/build-apps/your-first-snap/. Look at the last two sections. It doesn't make any sense19:34
code1o6filesets, and extending metadata19:35
code1o6at the end they says edit snapcraft.yaml one more time and then it says again but if you look at the code for both of them they are completely different19:36
zygacode1o6: developer docs are somewhat out of date between what's in 15.04 and 16.0419:36
zygacode1o6: I haven't used filesets at all so I cannot say if that's affected19:36
code1o6I understand that zyga, I even have friends at canonical but unfortunately they don't work in snappy core project. So I'd appreciate any help from the developers.19:37
zygaI'd suggest looking for dholbah, he should be able to help with the docs and perhaps point you at the right person19:39
sergiusenszyga, code1o6 there have been no changes for filesets though19:40
sergiusenswhere does this project live? and I hope you are on xenial19:40
code1o6sergiusens, its 15.0419:50
code1o6The project where I build the snap package its 15.1019:51
sergiusenscode1o6, why are you doing stuff on 15.04?19:51
sergiusensall the great stuff is in 16.0419:52
code1o6I wish I could upgrade but its part of Dell IOT device and it's shipping with 15.0419:55
code1o6sergiusens, ^^19:55
sergiusenscode1o6, ah, valid reason :-)19:56
sergiusenscode1o6, is you project anywhere to look at?19:56
sergiusenscode1o6, I'm almost sure you call to ip -4 addr show eth0 fails19:57
sergiusenscode1o6, can you install snappy-debug19:57
sergiusensand run sudo snappy-debug scanlogs19:58
code1o6sergiusens, it's not in github but here are all the files that are in my project folder. Snapcraft.yaml http://paste.ubuntu.com/15480263/ my webui http://paste.ubuntu.com/15480269/ and webui.go http://paste.ubuntu.com/15482363/20:00
code1o6I can post it in github if you'd like20:00
code1o6Why are you sure sergiusens ?20:00
code1o6It works in ubuntu and I thought ip should be built into snappy20:00
code1o6let me try  it right now20:00
sergiusenscode1o6, because if the `ip` comes from the system you are probably missing some security allowances20:01
sergiusenssnappy-debug will confirm20:01
code1o6snappy-debug is not found20:02
code1o6Is it a snap?20:03
code1o6sergiusens, do you run that in snappy or my project folder?20:04
jdstrandnetwork-management is the cap you would use on 16.04, network-admin on 15.0420:05
jdstrandzyga: sorry, another question: https://travis-ci.org/ubuntu-core/snappy/jobs/11806507520:05
jdstrandzyga: you said go test was enough, but travis says otherwise20:06
code1o6guys how do you run snappy-debug20:08
jdstrandsudo snappy install snappy-debug20:08
jdstrandsudo snappy-debug.security scanlog20:08
code1o6nvm20:09
code1o6thanks20:09
code1o6serguisens, was right http://i.imgur.com/q9W5hKT.png20:14
code1o6can someone take a look at it?20:14
code1o6it says to add 'capability net_admin'20:15
jdstranddid you see what I said above?20:15
jdstrandnetwork-management is the cap you would use on 16.04, network-admin on 15.0420:15
code1o6oic20:15
code1o6so just change that20:15
code1o6what is cap? capability?20:16
jdstrandor add it, yes20:16
code1o6jdstrand, thank you so much.20:16
code1o6plugs:20:18
code1o6  listener:20:18
code1o6    interface: old-security20:18
code1o6    caps: [network-listener]20:18
code1o6 [network-admin]20:18
code1o6like this?20:18
jdstrandcaps: [network-listener, network-management]20:18
code1o6I thought you said network-admin20:18
jdstrandsince you specified network-listener, this is 16.04, so use network-management, plus, I'm assuming you still want network-listener20:18
jdstrandit is currently network-management on 16.04, changed from network-admin20:19
code1o6jdstrand, [network-admin, network-listener]20:20
jdstrandno20:20
jdstrand[network-listener, network-management]20:21
code1o6<jdstrand> network-management is the cap you would use on 16.04, network-admin on 15.04????20:21
jdstrandyes20:21
jdstrandyou are on 16.04, use network-management20:21
code1o6no i'm in 15.0420:21
jdstrandnot if you are using 'plus'20:21
jdstrandplugs*20:22
code1o6Well I have to use 15.04. How would I make it compatible then20:22
jdstrandif you are on 15.04, drop all the 'plugs' stuff and simply use: caps: [network-client, network-admin]20:22
jdstrandcode1o6: eg:20:23
jdstrandservices:20:23
jdstrand  foo:20:23
jdstrand    caps: [network-client, network-admin]20:23
jdstrandcode1o6: fyi, you need to make sure you are using the right snapcraft for 15.0420:24
code1o6jdstrand, does it look okay? http://paste.ubuntu.com/15482558/20:27
jdstrandcode1o6: the services bit does, yes. I am not a snapcraft expert though20:28
jdstrandso I can't comment on the other parts20:28
jdstrandI mean, it looks ok otoh20:28
* ogra_ is still curious if you will in the end be able to make nmap work within the confinement boundaries20:33
ogra_i mean ... it needs quite some system access to collect the info (switching the NIC into promiscous mode for example)20:33
jdstrandit will cause apparmor doesn't have fine-grained network mediation yet20:34
code1o6it doesn't need to be in promscous mode20:34
jdstrandCAP_NET_ADMIN is essentially all that is needed20:34
code1o6jdstrand, I guess it progress http://paste.ubuntu.com/15482674/20:42
zygajdstrand: looking20:43
jdstrandzyga: ./run-tests passed here locally20:44
zygajdstrand: hmm, travis merges AFAIR20:44
jdstrandcode1o6: yes, notice the timestamp, your network-admin worked20:44
zygajdstrand: can you rebase / merge master20:44
zygajdstrand: and see if that fixes it20:44
zygajdstrand: looks like pre native plug/slot info branch20:44
jdstrandcode1o6: File: /apps/unisys-test.sideload/IPUTNKTTWKUK/test.out. use $SNAP_DATA_PATH/test.out instead20:45
jdstrandzyga: erf, I forked from https://github.com/ubuntu-core/snappy.git and am up to date20:45
zygajdstrand: ok, let me have another look20:46
zygajdstrand: you are not20:47
zygajdstrand: https://github.com/ubuntu-core/snappy/pull/720/files#diff-aa51e80575985c01c3fa42dabdd454ddR4020:47
zygajdstrand: this is before 702 landed20:47
jdstrandit said I had 718 though20:47
zygajdstrand: 702 changed Plug/Slot API20:47
ogra_code1o6, ah, you would only do higher level stuff ?20:47
* jdstrand shakes fist at git20:47
zygajdstrand: (landing order != proposal order)20:47
ogra_yeah, i guess that works20:47
zygajdstrand: fetch / rebase20:47
zygajdstrand: and see what happens20:47
jdstrandmeh, I just did several of these20:48
zygajdstrand: tests will fail for you locally then, I suggest doing a quick vimdiff on your new _test file and other interface _test file to see how to change that20:48
zygajdstrand: the change is totally automatic20:48
zygajdstrand: git fetch upstream20:48
zygajdstrand: git rebase upstream/master20:48
jdstrandI don't see how git clone gave me the wrong thing20:48
zygajdstrand: assuming upstream remote is github.com/ubuntu-core/snappy20:48
zygajdstrand: what is wrong?20:49
code1o6jdstrand, like this http://paste.ubuntu.com/15482722/?20:49
* jdstrand has been struggling getting a git workflow going only to find he had the wrong branch20:49
code1o6ogra_, what are you talking about?20:49
ogra_nmap20:49
jdstrandcode1o6: seems fine20:49
ogra_doesnt that usually also do arp scans and such ?20:49
code1o6well I wanted to do -sS but that requires sudo20:50
jdstrandzyga: git fetch upstream is up to date20:50
zygak20:50
code1o6for now I'll try getting it working first20:50
ogra_code1o6, right, thats what i mean ...20:50
zygajdstrand: do you see ea2f84a3362ba4b7757f178a6da82f5938181f1b20:50
zygajdstrand: you have to have it in your branch20:50
jdstrandcommit ea2f84a3362ba4b7757f178a6da82f5938181f1b20:51
jdstrandMerge: c887a47 813c11220:51
jdstrandAuthor: Zygmunt Krynicki <me@zygoon.pl>20:51
jdstrandDate:   Wed Mar 23 18:00:44 2016 +010020:51
jdstrand    Merge pull request #702 from zyga/use-std-plugs-and-slots20:51
jdstrand    20:51
jdstrand    interfaces, daemon, overlord: use snap.{Plug,Slot}Info natively20:51
zygajdstrand: is that in the branch you are on?20:51
jdstrandyes20:51
zygajdstrand: can you check that your firewall test looks the same to network test (for example)20:51
zygajdstrand: and that it looks like this:20:52
zygahttps://github.com/ubuntu-core/snappy/blob/master/interfaces/builtin/network_test.go#L3820:52
zygajdstrand: ^^20:52
zygajdstrand: git status20:52
zygajdstrand: git branch20:52
zygajdstrand: maybe your are in some weird place20:52
zygajdstrand: or you are pushing to some weird location so tests locally pass but you pushed something else earlier20:53
jdstrandzyga: it is in everything except my firewall-controll branch20:53
zygajdstrand: there you go20:53
zygajdstrand: git rebase upstream/master20:53
jdstrandzyga: apparently I forked and started working before that was merged20:53
zyga:-)20:53
* jdstrand wonders why zyga said to work on these with that change not landed :)20:53
zygajdstrand: AFAIR at that time it *has* landed :D20:54
zygajdstrand: you just didn't fetch20:54
zygajdstrand: look at the timestamps20:54
jdstrandso, https://github.com/ubuntu-core/snappy/pull/721 passed travis20:54
jdstrandand the other two I started will have had that20:54
jdstrandI'll update firewall-control20:54
code1o6jdstrand, I'm still getting adjust program to not write to SNAP_APP_PATH20:57
jdstrandit isn't SNAP_APP_PATH20:57
jdstrandit is SNAP_DATA_PATH20:58
code1o6http://i.imgur.com/GxJrEA6.png20:58
jdstrandcode1o6: I suggest: sudo snappy install hello-world ; hello-world.env | grep SNAP20:58
jdstrandcode1o6: whoops20:58
jdstrandcode1o6: SNAP_DATA, not SNAP_DATA_PATH20:59
code1o6jdstrand, yes that what I did SNAP_DATA_PATH20:59
jdstrandI know, I said it wrong20:59
jdstrandSNAP_DAT20:59
jdstranderf20:59
jdstrandSNAP_DATA20:59
code1o6jdstrand, testing20:59
code1o6jdstrand, Same error message21:03
code1o6I though SNAP_DATA was for 16.0421:03
jdstrandoh sigh21:04
jdstrandSNAP_APP_DATA_PATH21:05
jdstrandsorry, that should work21:05
code1o6https://github.com/ubuntu-core/snapcraft/commit/04b1a13bc03305bc3180e71ede2f39b3183482d921:05
jdstrandnote, hello-world.env is awfully handy21:05
code1o6jdstrand, I get the same result21:11
code1o6jdstrand, wait21:12
code1o6jdstrand, it works so where is $SNAP_DATA_PATH ?21:19
zygacode1o6: look at launcher (in $PATH) to see21:19
zygals /snaps/bin21:19
code1o6you mean /apps/bin?21:20
zygayes, sorry :)21:21
zyga(I didn't know it changed already, I know it was supposed to change)21:21
code1o6I found the bash script but it not in the same directory21:22
code1o6zyga, I'm having now luck21:24
zygacode1o6: cool :)21:25
code1o6zyga, oops *no21:25
zygacode1o6: well, all I wanted to say is that you can look at the scripts21:27
code1o6Found it but it's empty21:27
zygacode1o6: and see what variables are set21:27
zygacode1o6: then something is wrong, it should not be empty21:27
jdstrandSNAP_DATA_PATH isn't a thing (I said it was, I was wrong). SNAP_DATA is 16.04 and SNAP_APP_DATA_PATH is 15.04. both are in /var/lib/snaps/...21:27
code1o6it was /var/lib/apps/21:27
jdstranderf21:28
jdstrand15.04 is /var/lib/apps/...21:28
jdstrandETOOMANYCHANGES :)21:28
code1o6yes21:28
code1o6jdstrand, I know :(21:28
code1o6jdstrand, can I try to run nmap from /apps/blah/bin/nmap21:29
jdstrandcode1o6: not easily. I suggest adding something to 'binaries' like so:21:30
jdstrandbinaries:21:30
jdstrand  - name: sh21:30
jdstrand     caps: [network-client, network-admin]21:30
jdstrandlet's change that21:31
jdstrandbinaries:21:31
jdstrand  - name: bin/myshell21:31
jdstrand    caps: [network-client, network-admin]21:31
jdstrandthen create bin/myshell to be:21:31
jdstrand#!/bin/sh21:31
jdstrandsh21:32
jdstrandthen you can do: appname.myshell21:32
jdstrandand get a shell where you can play around with equivalent confinement, run nmap, etc21:32
jdstrandcode1o6: I'm going to have to step away. good luck!21:33
code1o6okay, just add binaries section to snapcraft.yaml21:33
code1o6jdstrand, thanks for all help :D21:33
jdstrandyeah21:34
zygajdstrand: https://github.com/ubuntu-core/snappy/pull/733/23:45
zygajdstrand: just FYI, you don't have to review it yet23:45
zygajdstrand: this *makes it happen* :-)23:45
zygaogra_: ^^ :-)23:45

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