=== JanC_ is now known as JanC [02:02] hello [02:02] silence :) [02:03] ccfiel, hey there :) [02:03] hello kyrofa! :) [02:03] kyrofa, have you used snappy? :) [02:03] ccfiel, indeed I have [02:04] kyrofa, in what application? if you dont mind :) [02:06] ccfiel, 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 ownCloud [02:08] kyrofa, 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:09] ccfiel, not really, things are just really confined. Parts of it are read-only since snaps are packaged with squashfs [02:10] ccfiel, each snap has a few different directories where they can write [02:11] Those directories are specific to that snap and no other snap can write to/read from them [02:11] kyrofa, 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:12] kyrofa, would it solve this in ubuntu core? :) [02:12] kyrofa, am i in the right track? [02:12] ccfiel, I guess that depends on what exactly the problem is. What is getting corrupted? How do you go about fixing it? [02:13] kyrofa, just a simple fsck and done [02:13] ccfiel, ah, so the filesystem itself. Honestly I'm not sure if that's a problem you'd run into with ubuntu core [02:14] ccfiel, I know the guy I'd ask, but he's in germany and is thus likely asleep [02:15] kyrofa, 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:16] ccfiel, indeed. Such checks may be run on boot, but I'm not sure [02:18] kyrofa, 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:44] kyrofa, 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] any ideas? [02:45] ccfiel, try `snapcraft clean` and then simply run `snapcraft` [02:48] kyrofa, still the same error :( [02:49] ccfiel, so when you run `snapcraft clean` that entire `snap` folder should be gone, yes? [02:50] kyrofa, yes it has [02:50] ccfiel, pastebin the log for me [02:53] kyrofa, http://pastebin.com/hqMxhiUX [02:54] jdstrand: can you review the lxd I uploaded in the store this morning when you have a moment? thanks [03:11] kyrofa, what version snapcraft are you using? [03:12] ccfiel, 2.5 here, the example works for me. How about you? [03:14] kyrofa, my version 1 I think this is the problem [03:15] kyrofa, what ppa did you used? :) [03:15] and version of your ubuntu? [03:15] ccfiel, 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/examples [03:15] Or apt-get install snapcraft-examples and use those [03:15] ccfiel, xenial, no PPA necessary [03:16] kyrofa, is xenial stable to used? [03:16] ccfiel, I actually run trusty. My xenial stuff is all lxc [03:18] kyrofa, thanks for tips :) [03:18] ccfiel, sure thing :) [03:19] ccfiel, bed time for me, so good luck! [03:20] kyrofa, thanks! === 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 [08:11] good morning [08:27] ogra_: did you ever snapcraftify a simple ftp server? [08:28] ogra_: or even better a postfix/procmail/fetchmail/some-imap solution :) [08:33] Good morning [09:40] asac, nothing that needs user management yet, since that needs special setup (a db or something) [09:41] (also snappy is changing way to much still, i cant re-do my mailserver every two weeks because the scurity model changed) [09:42] ogra_: i would be happy with unconfined for my personal vendor pi2 :P [09:42] for now [09:42] anyway, let me put my webserver and ftp server in one snap for now [09:42] even unconfined you have the issue that you need user mgmt [09:42] so i can use my scanner again :) [09:42] whats a good ftpd that is easy to run? [09:42] vsftpd ? [09:42] saw most use xinetd [09:42] is that a simple daemon? [09:42] nah, most of them *can* use inetd :) [09:42] hmm. dont think my scanner can do sftp [09:43] ok so guess i have to put inetd in and put special config up [09:43] (doesnt mean you need to) [09:43] well, they dont have daemon commands... at least the ones i tried just exited [09:43] feel free to grab some ideas from http://bazaar.launchpad.net/~ogra/+junk/upnp-server/files [09:44] guess if there is non i can just get the most simplest i can find [09:44] (not up to date wrt interfaces) [09:44] non that can run daemon itself [09:44] * asac checks [09:44] lighthttp is surely in the mix for my goal [09:45] see the readme [09:46] wow, serious copy plugin usage [09:46] sqlite needs some special treatment ... either you patch it (like i do there) or you allow all of fchown in the security settings [09:47] thats the fchown pathc? [09:47] yeah. can we land that in archive? [09:48] at least the one gave to a partner back then felt just right (TM) [09:48] well, jamie wanted that upstream fixes it [09:48] (there was a ML discussion) [09:48] so we rather keep sqlite not working for snaps from archive? [09:48] well, he didnt see the patch [09:48] do you have yours? [09:48] well, i thinnk the long term plan was to simply allow fchown [09:48] want to see if its the same [09:48] sure, long term is not 16 [09:49] Good morning [09:49] and sqlite definitely should just work from archvie imo [09:49] it in the tree ;) [09:49] too many folks use it [09:49] http://bazaar.launchpad.net/~ogra/+junk/upnp-server/view/head:/sqlite.patch [09:49] ah ok [09:49] yours is ugly [09:49] let me find mine :) [09:49] that is safe [09:49] heh, i really didnt care :) [09:49] it works :) [09:49] right. i am sure noone will resist from landing my just in archive [09:50] yeah, i never wanted to do something archive worthy :) [09:50] right my patch is not in patch form, but its: [09:50] return osGeteuid() ? 0 : osFchown(fd,uid,gid); -> return osGeteuid() || osGeteuid() == uid ? 0 : osFchown(fd,uid,gid); [09:51] which is simply correct [09:51] e.g. if you are already root, no need to try to become root [09:51] * asac creates a real patch [09:51] right, yu kill the function, i kill the executions [09:52] well, i fix the logic to avoid a no-op call [09:52] which triggers our confinement barrier [09:52] and all is clean and fine [09:52] for everyeone with this [09:52] sumbit it then :) [09:52] yet producing it now [09:53] (though we are in hard freeze atm, might take a while to land) [09:53] * asac installs quilt [09:53] yeah, better late than never [09:54] ppisati, sooo ... thats where i ended yesterday ... http://paste.ubuntu.com/15473201/ [09:54] ogra_: do we have a bug? [09:54] that i can ref in the patchname [09:54] ogra_: that doesn't look good :) [09:55] ppisati, it stops there, heartbeat stops after a while, but funnily my cursor keeps blinking ... [09:55] ogra_: uhm [09:55] (usually the cursor freezes along with the board) [09:55] ogra_: yep [09:55] ogra_: i'm thinkg about the serial changes they made on the raspi3 [09:55] i have some suspicion that the initrd overwrites the dtb at 0x02000000 [09:55] hmm [09:56] wouldnt it keep booting if it was just the serial ? [09:56] ogra_: yes, indeed you say heartbeat goes on for a bit [09:56] ogra_: maybe it hangs later on [09:56] ogra_: i would try first without initrd [09:56] while uboot runs [09:57] how would i do that ... its snappy :P [09:57] ah, well, i could see some kernel output indeed [09:57] ogra_: manually, stop uboot and try to load manually kernel and point the dtb [09:57] just to see if serial is ok [09:57] right [09:58] there is something not right with serial in general ... uboot copy/paste ends up with garbage [09:58] whilch makes editing long lines really hard (and indeed the snappy scripts are all long lines :P) [09:58] ogra_: are you aware of the changes they made to the serial in the raspi3? [09:59] i only saw the changelog entry [09:59] ogra_: they connected the only real serial to the blueooth dongle [09:59] ouch [09:59] ogra_: ok, let me give you some background info [09:59] ogra_: by defaukt the serial is a sw serial that is affected by the frequency of core [10:00] ah, thats why you force the 250 in your config.txt ? [10:01] ogra_: yep [10:01] btw ... no change without inittrd, so my theory doesnt fly [10:01] ogra_: and i did some other changes [10:01] ogra_: let me check my board [10:13] ppisati, just to make sure, i'm using the latest raspi2 4.4 kernel from the archive here [10:13] ogra_: i'm doing an upgrade on my raspi3 as we speak [10:14] oh, you had an older kernel in use ? [10:17] ogra_, is there any way to generate an image with swap enabled? [10:17] /join #ubuntu-sdk [10:18] ogra_: no, actually i had a newer :) [10:19] 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] (thought perhaps we should have a mail discussion first ... if we want to allow swap at all) [10:20] ppisati, hah ! [10:21] ogra_, alright I'll shoot one out, thanks! To be clear, when you say cmdline option, which component are you referring to? [10:21] kernel cmdline [10:21] Ah okay [10:21] swapdevice=/dev/foobar0p1 [10:21] Gotcha [10:21] and perhaps "swapfile=/path/to/file" [10:22] that would get you a long first boot though [10:22] (cant create swapfiles fast) [10:22] Does it create the swapfile? [10:22] Ah, no fallocate eh? [10:22] well, it needs to be filled with actual zeros ... you cant create a sparse file [10:23] if we have swapfile we also need swapfilesize [10:23] ogra_, I've used that successfully in the past for a swapfile. Did I just get lucky? [10:23] oh ? [10:23] perhaps mkswap got clever ... usually you cant create a file with holes [10:24] ogra_, yeah, fallocate, mkswap, swapon. Works for me [10:24] Now I'm curious about that [10:24] oh [10:24] i didnt know about fallocate ! [10:25] how could i not ! [10:25] * kyrofa taught ogra_ something. I'm calling it a day [10:25] * ogra_ is hardcore dd user if it comes to img files :P [10:25] ogra_: 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] Launchpad 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:26] :( [10:26] * asac old guy [10:26] https://wiki.ubuntu.com/FreezeExceptionProcess [10:26] ogra_: nope, it works... [10:26] ogra_: do you have an image that i can dd and debug here? [10:26] ppisati, what exactlöy ? [10:26] ppisati: the latest raspi2 kernel [10:27] hmpf ... my SD is 128GB ... and already resized (and i'm working on the SD) [10:28] but technically you shoudl be fine with the boot partition ... one sec [10:28] ogra_: so, the difference might be in cmdline.txt / bootargs [10:29] or what else? /me thinking... [10:29] ogra_: subscribed release... lets see if someone will pick it up [10:29] i will assign it to you for now :P [10:29] j.k. [10:33] ppisati, http://people.canonical.com/~ogra/snappy/snappy-boot.img.xz and http://paste.ubuntu.com/15478441/ [10:54] * zyga looks at apparmor again [10:57] ppisati, woah ... [10:57] ogra_: ??? [10:57] it boots (totally broken, but i have output ) [10:58] i swear i have copied the same dtb ten times in place and it didnt work [10:58] ubuntu@localhost:~$ uname -a [10:58] Linux localhost.localdomain 4.4.0-1004-raspi2 #5-Ubuntu SMP Mon Mar 14 22:27:12 UTC 2016 armv7l armv7l armv7l GNU/Linux [10:58] ogra_: your image indeed doesn't boot here [10:58] ogra_: weird [10:58] ogra_: bad sd maybe? [10:59] ppisati, copy the dtb from system-boot/canonical-pi2-linux.sideload_IPOcSSWBccOI.snap/dtbs/bcm2710-rpi-3-b.dtb to system-boot/ [10:59] then try again [10:59] but i have honestly done that ten times before and it didnt work [11:01] md5 are indeed different [11:01] yes, i was switching between the upstream one and ours [11:01] hmm, reboot doesnt work [11:02] lets see if it boots again :) [11:02] ahaha [11:03] it does ! [11:03] looks like we have an rpi3 image ;) [11:03] cool [11:04] no wifi though :/ [11:04] that something to investigate [11:05] i see the brcmfmac, cfg80211 and bcm2835_wdt modules loaded though [11:05] butu no device in /proc/net/dev [11:07] ppisati, we really need to quieten that FS2F driver ... that looks so scary [11:07] wo [11:07] w [11:08] ubuntu@localhost:~$ dmesg [11:08] dmesg: read kernel buffer failed: Operation not permitted [11:08] nope, no wifi even on a normal ubuntu image [11:08] i need to check upstream [11:08] brcmfmac_sdio mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.bin failed with error -2 [11:08] there you go [11:10] https://github.com/RPi-Distro/firmware-nonfree/blob/master/brcm80211/defines [11:11] uri: http://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git [11:11] sounds like it should be part of linux-firmware [11:12] yeah ... but /lib/firmware/brcm/ actually doesnt have that file [11:13] heh [11:13] http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree/brcm doesnt either :P [11:13] lies ! [11:14] ah, well https://github.com/RPi-Distro/firmware-nonfree/tree/master/brcm80211/brcm has it ... says "added 27 days ago" [11:15] so its actually pretty new [11:15] wired network works well btw [11:16] * ogra_ installs webdm [11:17] * ogra_ wonders what "shadowsocks" is [11:21] oh, now reboot works too (from ssh this time ... seems the serial connection held it back last time) [12:11] pitti, :( [12:11] Mar 23 11:56:08 localhost systemd[1]: Starting Create Volatile Files and Directories... [12:11] Mar 23 11:56:08 localhost systemd[1]: Failed to start Create Volatile Files and Directories. [12:11] ubuntu@localhost:~$ ls -lh /etc/mtab [12:11] lrwxrwxrwx 1 root root 17 Mar 23 05:11 /etc/mtab -> /proc/self/mounts [12:11] so that didnt help [12:28] ppisati, yay ... and it boots fine on the pi2 too ! [12:29] i get no serial login prompt on the pi2 though ... thats a bit weird [12:33] mvo, please approve https://myapps.developer.ubuntu.com/dev/click-apps/4194/rev/5/ ... (gets us rpi3 support) [12:53] ogra_, are you going to merge rpi3 support into the rpi2 gadget in snappy-systems? [12:54] kyrofa, yes [12:54] (it just a newer uboot and firmware) [12:55] Awesome :) . Do you anticipate that landing soonish, or is there more work to be done on it? [12:55] i want to find out why i dont get a serial tty on the pi2 currently [12:56] once i have that fixed we'Re good to go i think [12:56] ogra_, ppisati great work you two! :) [12:57] kyrofa, http://people.canonical.com/~ogra/snappy/all-snaps/rpi3/gadget-snap.tgz for the imaptient ;) [12:57] *impatient [12:58] ogra_, nah, I'm not impatient. Just curious ;) [12:58] ah, i thougth you wanted to update the owncloud thingie [12:58] ogra_: approved [12:59] * ogra_ hugs mvo [13:00] * mvo hugs ogra_ [13:01] hmm, no serial console even if i completely drop console=tty1 [13:02] this is weird [13:03] really strange [13:03] ogra_, I do, but I don't want to jump the gun. It needs to work well on the rpi2 as well [13:04] ogra_, although as soon as the u-d-f --install thing works again, I'll probably stop using the owncloud gadget fork anyway [13:04] Which I guess is just waiting on the new ubuntu-core to make it to stable [13:06] yeah [13:08] ppisati, any idea abotu that serial thing ? [13:11] (i dont think it is critical, but a nice to have) [13:11] ogra_: is the serial console the only missing piece? i mean, do you see the system booting? [13:12] 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) === chihchun is now known as chihchun_afk [13:13] ogra_: ok, then no output when kernel start [13:13] right [13:13] * ppisati thinks [13:15] argh [13:15] now i accidentially dropped all console= args :P [13:15] heh [13:15] and it defaults to tty1 [13:16] ogra_: might be uboot that is tailored for the raspi3, or (but i don't think so) the "core_freq=250" in config.txt [13:17] [ 0.103026] Serial: AMBA PL011 UART driver [13:17] [ 0.103379] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2 [13:17] the driver is fine at least [13:18] first try to remove the core_freq option from config.txt [13:19] if that doesn't fix it, i would try with a uboot.bin + uboot.env from the rpi2 image [13:20] well, but thats not what i'm after :) [13:20] same uboot for both boards :) [13:20] ogra_: yeah, i know [13:20] ogra_: but at least we find where the problem is [13:21] ogra_: remebr that we are using a version of uboot that is not published by upstream anymore [13:21] well, it is clear that the difference is in uboot.bin [13:21] i dont get why systemd doesnt start a console ... [13:22] i think we can live without boot log output on serial [13:22] but a login console needs to work [13:22] i think we should get both working [13:22] yes, but login is more important [13:23] err [13:23] Mar 23 13:21:18 localhost systemd[1]: Started Serial Getty on ttyAMA0. [13:23] Mar 23 13:21:18 localhost systemd[1]: Started Getty on tty1. [13:23] Mar 23 13:21:18 localhost systemd[1]: Reached target Login Prompts. [13:24] ubuntu@localhost:~$ ps ax|grep getty [13:24] 963 ? Ss+ 0:00 /sbin/agetty --keep-baud 115200 38400 9600 ttyAMA0 vt220 [13:24] 964 tty1 Ss+ 0:00 /sbin/agetty --noclear tty1 linux [13:25] ... [13:25] ubuntu@localhost:~$ ls -l /dev/ttyAMA0 [13:25] crw--w---- 1 root tty 204, 64 Mar 23 13:21 /dev/ttyAMA0 [13:26] btw, dropping the the option from config.txt doesnt change anything [13:27] hmm [13:27] [ 0.103026] Serial: AMBA PL011 UART driver [13:27] err [13:28] ppisati, did you try booting your image on a pi2 yet ? [13:35] ogra_: i think i tried but i hit some problems [13:35] ogra_: don't remember exctly [13:35] let me try [13:36] * ogra_ sees init_uart_clock and init_uart_baud as config.txt options [13:37] Have 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] """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] zyga: hey, note while you are looking at apparmor again, can you pull in the latest updates to ubuntu-core-security from trunk? [13:39] zyga: r209 for the default policy, but also the others if you already pulled them in somewhere (home, unity7, x, etc) [13:39] zyga: r209 is critical for landing [13:40] jdstrand: yep, can you file a bug on snappy and assign it to me so that we don't lose thise [13:41] zyga: is the default template change landed already? do you have the other interfaces landed? [13:41] what do you mean by default template change? [13:41] the apparmor generator that produces the default policy [13:41] did that land? [13:42] the answer is no, I guess, I will propose apparmor (and everything else) as soon as 702 lands [13:42] partially [13:42] I evolved that to the point where it's different ;) [13:42] does the partially part involve the actual policy? [13:42] I reviewed a PR for that, I don't know if it landed [13:42] jdstrand: yes but that has changed since [13:42] jdstrand: well, not the actual content there [13:42] jdstrand: so in any case, we'll have to sync that [13:43] zyga: 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 bug [13:43] tell me what is easiest for you and I'll do it [13:43] jdstrand: wait then [13:44] jdstrand: I'd love if you work on a PR instead but please wait for something else to land to do it, ok? [13:44] zyga: sure that's fine. note that if policy generation starts happening on the image without r209, apps won't start [13:44] jdstrand: (we're talking today) [13:45] jdstrand: with all the changes today I would be surprised if they did [13:45] heh [13:45] jdstrand: chipaca is landing snap revisions and snap IDs [13:45] jdstrand: we're aiming at end of the week/after long weekend for everything working again [13:45] jdstrand: (including interfaces) [13:45] well, I'd prefer my little corner wasn't the reason for that :) [13:45] just ping me and I'll do a PR [13:46] jdstrand: thanks, understood [13:56] ogra_: same here [13:56] ogra_: boots fine, but no output after uboot [13:57] k [13:58] ohm crap [13:58] i see it [13:58] 99 #ifdef CONFIG_BCM2837 [13:58] 100 #define CONFIG_BCM283X_MU_SERIAL [13:58] 101 #else [13:58] 102 #define CONFIG_PL01X_SERIAL [13:58] 103 #endif [13:58] pi2 uses the latter [13:59] i wonder if it explodes if i enable both [14:00] uboot [14:00] yeah, saw that [14:01] doesnt explode on the pi2 ... still boots [14:02] but no login prompt [14:05] bug 1556241 [14:05] bug 1556241 in debian-installer (Ubuntu) "installer sets "iface encf5f0 inet dhcp" although a static IP address was preseeded" [High,Confirmed] https://launchpad.net/bugs/1556241 [14:11] Hello 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:33] AnInstanceOfMe, I'm afraid those docs are still a bit of a mix regarding 15.04/16.04 [14:33] AnInstanceOfMe, 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] directly rather. Too many directories today [14:34] kyrofa: ping, meeting. [14:35] elopio, on my way, sorry [14:36] 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] ppisati, i have a slight suspicion it is the dtb or kernel itself [14:37] Right, thanks for that, no probs. [14:42] ogra_: actually if i swap out the raspi2 uboot, it works [14:42] swap in you mean :) [14:42] ogra_: yeah [14:42] ogra_: seems like the serial is left in a incosistent state, and the kernel doesn't recover it [14:43] let's dig some more [14:43] yeah [14:55] jdstrand: heya [14:55] jdstrand: 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 either [14:56] [Wed Mar 23 14:54:36 2016] audit: type=1400 audit(1458744876.069:79): apparmor=" [14:56] STATUS" operation="profile_load" profile="unconfined" name="openswitch.sideload_ [14:56] start-openswitch_IPUAXRQSfQNe" pid=1810 comm="apparmor_parser" [14:56] [Wed Mar 23 14:54:40 2016] audit: type=1400 audit(1458744880.129:80): apparmor=" [14:56] DENIED" operation="open" profile="openswitch.sideload_start-openswitch_IPUAXRQSf [14:56] QNe" name="/bin/ip" pid=1826 comm="ops-init" requested_mask="r" denied_mask="r" [14:56] fsuid=0 ouid=0 [14:57] jdstrand: 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 luck [14:58] elopio: good morning leo, all the tests passed at last :) https://github.com/ubuntu-core/snapcraft/pull/364 [14:58] ppisati, http://paste.ubuntu.com/15480016/ (pi3) ... vs http://paste.ubuntu.com/15479995/ (pi2) [14:59] and in fact there is actually a ttyS0 device on the pi3 [14:59] * ogra_ wonders about "base_baud = 0" on the pi2 [15:00] ogra_: i've something different [15:00] http://pastebin.ubuntu.com/15479739/ [15:01] well but you compare two different images [15:01] ogra_: the difference is just in uboot at this point [15:02] i use the same image and compare it on both boards [15:02] same bcm-bootloader and same kernel [15:02] right [15:02] nontheless, the pi3 expects a ttyS0 [15:02] http://paste.ubuntu.com/15480016/ [15:03] about 6 seconds into the boot it also enables the ttyAMA0 one [15:03] [ 6.967253] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2 [15:03] well, 7 rather [15:04] but the actual serial console seems to be on ttyS0 ... initialized around 4 sec [15:04] iirc the console was being rewritten by the firmware [15:06] * ogra_ does a fresh clone ... lets see [15:06] joc_: awesome! [15:06] sergiusens_, kyrofa: joc_'s pr is ready for a review. [15:06] iirc our issue with the upstream uboot was that we forgot sudo for mkknlimg [15:09] bah ... and the missing defconfig [15:12] elopio, this has happened twice now: http://162.213.35.179:8080/job/github-snapcraft-autopkgtest-cloud/244/console [15:12] (quota) [15:13] elopio, should I just keep trying, or is there a problem? [15:13] kyrofa: no, I need to delete the instances manually. [15:14] when 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] Oh, okay [15:14] lool: is openvswitch using a fs namespace? [15:15] jdstrand: netns [15:16] lool: a perhaps better first question is-- what are the contents of your /var/lib/snappy/apparmor/profiles/openswitch_start-openswitch_... file [15:16] jdstrand: dont know about fs namespace [15:16] jdstrand: 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 there [15:16] jdstrand: http://paste.ubuntu.com/15480149/ [15:16] jdstrand: I'll keep you posted [15:16] *landed* [15:16] jdstrand: oh sorry [15:17] yeah, I don't think that is what you meant to paste :) [15:17] zyga: ack [15:19] jdstrand: http://paste.ubuntu.com/15480172/ [15:19] no bin/ip there [15:20] lool: more importantly, that isn't unconfied [15:20] unconfined [15:20] no [15:20] well I had removed it in the last attempt [15:20] to not mix both [15:20] but unconfined doesn't work either [15:20] kyrofa: you can try now. [15:21] Thanks elopio [15:21] jdstrand: trying with unconfined again [15:21] lool: the caps you want is network-management btw [15:22] lool: but yes, let's see what happens with unconfined [15:22] lool: please remove and purge the snap and then install [15:23] jdstrand: ah! I did remove but not purge [15:23] http://paste.ubuntu.com/15480195/ [15:23] no unconfined again [15:24] sergiusens_: FAQ i guess... how do i use a ppa? [15:24] jdstrand: still no luck, http://paste.ubuntu.com/15480203/ [15:25] despite a snappy purge openswitch [15:25] lool: I don't know how new your snappy is. I wonder if security-template is no longer being honored [15:25] the apparmor stuff is regenerated [15:25] lool, Hey, I'm new is that a snapcraft.yaml? [15:25] jdstrand: ah it's the mvo image, but updates might not be applied [15:25] let's see with latest snappy [15:25] lool: well, another thing to try is: [15:25] plugs: [15:25] networking: [15:25] interface: old-security [15:26] caps: [network-client, network-management] [15:26] err, caps shouldn't be indented that far [15:28] kyrofa: any chance you could join some Pi drive ppl in #techandme ?? [15:29] lool, 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 appreciated [15:30] *not getting started. build your first snap tutorial [15:32] sergiusens_: FAQ i guess... how do i use a ppa for stage-packages? [15:33] here is my yaml http://paste.ubuntu.com/15480263/ [15:33] asac, that's only for plugins; why do you need this? [15:33] jdstrand: of course after updating snappy, things work [15:33] because i have a patch to apply to a package [15:33] jdstrand: sorry [15:33] that i want to use [15:33] Here is my bash script http://paste.ubuntu.com/15480269/ [15:34] sergiusens_: why wouldnt we allow to add-repositories for apt? [15:34] globally [15:34] asac, or if added to your host system and using this variable that is about to go away LOCAL_SOURCES [15:34] code1o6: I'd suggest starting from a snapcraft checkout [15:34] code1o6: and reading through the examples [15:34] I did [15:34] asac, you don't have the master plan in your head; trust me :-) [15:34] sergiusens_: hmm. doesnt sound good [15:34] I did exactly from the tutorial [15:35] sergiusens_: is there a trick coming to make what i want to do easy? [15:35] without ppa? [15:36] 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 archive [15:36] like deb-source plugin that builds something from a debsource? [15:36] The only difference is that I changed "$SNAP_DATA" to "$SNAP_APP_DATA_PATH" because it was for 16.04 [15:36] they come fromt he archive, but there might be need to do stuff different :) [15:36] i actually think the dpkg-buildpackage plugin might be neat :P [15:36] zyga: erf, how to you unrequest a PR? [15:36] jdstrand: close it! [15:36] i could apt-get source, hack away and jkust use that [15:36] asac, that will be horrible ;-) [15:36] how do I close it? :) [15:36] jdstrand: there's a button at the bottom of the page [15:37] sergiusens_: maybe from how it would need doing with pbuilder and friends? [15:37] ah there it is [15:37] but from the feel it woudl be nice [15:37] have a bug in an archive package [15:37] thanks [15:37] just take the source, patch it and build it nicely [15:37] asac, if there's a bug in an archive package it should ideally be fixed [15:37] lool, 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:38] i have never been a fan of such idealistic statements when something doesnt work [15:38] yes, the world should all be clean and upstream [15:38] but realitity is i need to get something done now :P [15:38] code1o6: which folder are you trying to open? [15:38] and we have beta freeze even [15:38] and i dont even know if my patch is great and want to first test it by using it :) [15:38] in snapcraft [15:38] anyway, i will figure [15:38] http://paste.ubuntu.com/15480269/ === sergiusens_ is now known as sergiusens [15:39] lool, it just pipes the output of nmap to test.out [15:39] asac, well bottom line is it is not supported today [15:39] then golang static websever should display that folder [15:39] ppisati, hmm https://github.com/swarren/u-boot/commit/97e783304448f240b33ab308cd9e18df5d8f69ca [15:39] just like the tutorial does it for the webcam [15:39] right. i can file a bug and then wait till that feature is there :) [15:40] guess i cant setup my home ftp server on snappy then :) [15:40] instead of creating pictures from fswebcam i use nmap [15:41] lool, I'm still quite understand how filesets work. This is how I did it http://paste.ubuntu.com/15480263/ [15:41] I'm guessing that the issue in my snapcraft.yaml [15:42] sergiusens: https://bugs.launchpad.net/snapcraft/+bug/1561068 [15:42] Launchpad bug 1561068 in Snapcraft "cannot use ppa or deb source packages conveniently" [Undecided,New] [15:43] brb, going to get coffee [15:45] hmm. vsftpd doesnt even have a git tree from what i see [15:45] zyga: https://github.com/ubuntu-core/snappy/pull/718 [15:45] lets go for tarball mess then :/ [15:45] asac, its probably so small that the maintainer just types it in from memory before building ;) [15:45] back [15:46] code1o6: 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 backlog [15:46] jdstrand: thanks [15:46] haha ... /me joins #vsftpd [15:46] jdstrand: I've chaged the patch summary, we just indicated the package, not a particular file [15:46] jdstrand: if you have more I'll gladly take them :) [15:47] jdstrand: I'm working on some final bits that put all security stuff on disk and in memory [15:47] zyga: what does 'whitelist this please' mean? [15:47] jdstrand: just iterating to make it pretty and robust [15:47] ppisati, any idea what the dtb names are in that commit ? they dont seem to match any rpi dtb i have ever seen [15:47] (like: none of them) [15:48] jdstrand: 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 request [15:48] ogra_: so in your example you have the sqlite hacked binary in the source tree [15:48] because its not easy to just use ppas? [15:48] asac, yeah, and have a copy line [15:48] or do you build sqlite completely? [15:48] right [15:48] zyga: I see [15:48] awful [15:48] sure :) [15:48] i feel super resistant against such things [15:48] its a demo snap ... [15:48] feel free to make it better ;) [15:49] * ogra_ only cares about having working binaries [15:49] i am ... files a bug [15:49] https://bugs.launchpad.net/snapcraft/+bug/1561068 [15:49] Launchpad bug 1561068 in Snapcraft "cannot use ppa or deb source packages conveniently" [Undecided,New] [15:49] zyga: so, the next step from my perspective is adding all the existing ubuntu-core-security (from trunk!) caps as interfaces [15:49] ppa is good, deb-soure plugin woudl be even more awesome [15:49] jdstrand: I think we are ready-ish for that now [15:49] zyga: so I'll wait for you to do that before I make other policy change PRs [15:49] * ogra_ would just like to have patches auto-applied :) [15:49] jdstrand: if you can, just add them [15:49] ogra_: not sure why i need snapcraft if i have to build the binaries elsewhere [15:49] jdstrand: one pull request per interface [15:49] and then copy them in my tree :P [15:50] could just do the old way of doing it somehow then [15:50] zyga: I'm not sure how... [15:50] jdstrand: look at interfaces/builtin/network.go [15:50] jdstrand: just copy-paste [15:50] asac, to r9oll the snap ... this snap is from early 15.04 days and was always just carriesd along [15:50] jdstrand: 99% of the file is the security content or generic boilerplate [15:50] back then there was no such thing as snapcraft [15:50] oh, I didn't know you did one already [15:50] ogra_: but it is snapcraft :) [15:50] jdstrand: just paste the right security content and the right profile name [15:50] asac, now it is [15:50] soyou could have just kept it manual [15:50] no [15:50] snappy build will be gone soon [15:51] well just mksquashfs [15:51] :) [15:51] jdstrand: 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 week [15:51] and i still use the copy plugin [15:51] i did that a few times [15:51] hey 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] roadmr: how does your snapy.yaml look? [15:52] roadmr: hey [15:52] asac: like crap :) let me paste it [15:52] zyga: hello! [15:52] roadmr: thsoe are not really network ones [15:52] at least they dont look like it [15:53] but who am i :) ... maybe seeing you have a syntax error in you snap.yaml will explain it [15:53] with everything that happens this week I'd imagine it could be broken, not sure how away latest devel images are from git master [15:53] asac: http://paste.ubuntu.com/15480423/ this is just the apps and plugs [15:53] asac: blatantly copied from the gopaste example really :/ [15:54] jdstrand: merged [15:54] roadmr: it looks good, I'd wait for after easter though [15:54] roadmr: 90% of snappy is upside down this week [15:54] roadmr: with major changes landing [15:55] just do a handstand [15:55] roadmr: and next week I'd use network interface [15:55] roadmr: not old security [15:55] zyga: yay!! [15:55] though typing is hard in that position [15:55] (I suspect that next week old-security is the only interface that will not work) [15:55] (while everything else will) [15:55] ogra_: haha :) a handstand sounds like a skill, rather than an interface :) [15:55] heh [15:55] I'll get o-s to work too but after [15:55] fgimenez: git push --set-upstream origin bug/mkdir_gnupg [15:55] sorry [15:56] fgimenez: https://github.com/ubuntu-core/snappy-jenkins/pull/114 [15:57] roadmr: dunno... i never had problems, but didnt use override [15:57] zyga: 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] zyga: 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 interfaces [15:57] roadmr: so its different for me [15:58] interface: old-security [15:58] jdstrand: wooot [15:58] jdstrand: wait, what about system calls? [15:58] jdstrand: security-policy -- that's the "different template" support, right? [15:58] roadmr: http://paste.ubuntu.com/15480453/ [15:58] thats what i would try [15:58] jdstrand: and security-override is like a custom snippet, right? [15:58] elopio, ok thx! [15:58] zyga: regarding the other caps, I'm on it. I didn't realize network was already there [15:59] zyga: security-policy is 'use my custom raw policy and don't use interfaces/apparmor.go and interfaces/seccomp.go" [16:00] jdstrand: thanks, I'm sure we can land them quickly [16:00] jdstrand: I see, that's okay, this should be supported with what I'm hacking on now [16:00] zyga: security-override is 'use interfaces like normal, but add these few extra things I specified' [16:00] jdstrand: perfect [16:00] jdstrand: I'm 100% confident we'll get all of this to work now [16:00] nice [16:00] asac: thanks! I'll try that right now... [16:01] jdstrand: (it works now but I need to rebase on top of what mvo did first) [16:01] jdstrand: and there's a looong review ahead :) [16:02] roadmr: but as said not sure about -override part [16:03] asac: ok, we'll know soon enough :) [16:05] zyga: why doesn't git reset --hard origin/master pull in the change you just merged? [16:06] jdstrand: git is offline except for "pull" and "fetch" [16:06] jdstrand: git fetch --all [16:06] zyga: that didn't do it either [16:06] git fetch origin [16:07] I already trid git pull [16:07] then do the checkout / reset [16:07] jdstrand: I'd normally pull instead [16:07] jdstrand: git pull origin master [16:07] I tried a pull before I asked the question [16:07] jdstrand: safer than reset --hard [16:07] ^^ like that [16:07] asac: 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 now [16:08] zyga: it says I am up to date, but I am clearly not. I don't have 718 [16:08] guess so [16:09] * jdstrand sighs [16:09] jdstrand: git branch [16:09] git log -l1 [16:10] i think you might be on different head\ [16:10] that's what I'm saying [16:10] then you think [16:10] I have Merge pull request #717 [16:10] I do not have 718 which github says is committed [16:10] do you see it in the fetched branches? [16:10] e.g. git log origin/master ? [16:11] if not its a caching prob [16:11] of course only after doign git fetch origin first [16:11] git log origin/master doesn't show it either [16:11] I did git fetch origin [16:11] and git remote show origin [16:11] maybe I'm confused by what github is saying [16:11] shows the right origin? [16:12] on master on github there is 718 [16:12] no confusion on that front [16:12] maybe I cloned it wrong? [16:12] yes, check git remote show origin [16:12] maybe that points to your own tree [16:12] http://paste.ubuntu.com/15480553/ [16:13] it seems to [16:13] I don't know why [16:13] you probably jus started with that [16:13] its not problem [16:13] just add the upstream origin [16:13] like git remote add upstream https://github.com/ubuntu-core/snappy [16:13] git fetch upstream [16:13] and then you can checkout upstream/master [16:14] is that the normal way or is it a workaround because I cloned wrong? [16:14] well. its certainly not abnormal to have your own repo as origin and the upstream repo as something else [16:14] depends on the perspective [16:14] :) [16:15] my perspective is I just want to have something that I trip on *every* time [16:15] :P [16:15] lol [16:15] you have to learn this then [16:15] jdstrand: yeah, I have origin as myself and upstream as upstream :) [16:15] no way around it :) [16:15] jdstrand: it's all personal [16:15] git is not bzr [16:15] I git that (see what I did there! :) [16:15] ... [16:15] ... [16:15] but I'm trying to figure out what the git flow is [16:15] we see (see what I did here) [16:15] (except it took a while) [16:16] jdstrand: git flow is really very freeform... do what you want :) [16:16] jdstrand: I typically git fetch once a day or when something I care about lands [16:16] you add the repos you care about with some name (origin, upstream, doesnt matter) [16:16] assamaybe that is the issue [16:16] and then make local working branches for whatever youw eant to work on [16:16] :) [16:16] and push to wherever you want to push [16:16] yep [16:16] it's the hippygit workflow [16:17] i try to avoid magic stuff... becuase i dont understand what it doesn :) [16:17] so just do it old way :) [16:18] jdstrand: so if you do git branch -a you see all the branches you ahve fetched from remote repos [16:18] I know what happened [16:18] that you ahve configured in snappy remote [16:18] and all that doesnt have ORIGIN./ is just local [16:18] it is the combination of github and git [16:18] you can always just delete all that if you are confused [16:18] ie, I forked ubuntu-core/snappy.git [16:18] and checkout whhatever you want as master from all those things available from upstream repo [16:18] that gave me jdstrand/snappy.git [16:18] I cloned jdstrand/snappy.git [16:19] yes [16:19] I was thinking that github would do something magic there [16:19] but now the upstream bit makes sense [16:19] ok [16:19] thanks! [16:19] thats how you usually end up with your own repo on github :) [16:19] hehe [16:21] so the security-override in the plug thing is not really the way to do that right? [16:21] e.g. to allow syscalls [16:21] for me the network caps work, but not the syscall whitelist [16:21] http://paste.ubuntu.com/15480672/ [16:21] elopio, help here would be nice http://162.213.35.179:8080/job/github-snapcraft-autopkgtest-cloud/243/console [16:21] jdstrand: do you know? [16:22] jdstrand: related to asac's question, do you think we need to support "syscalls" as thing in old-security [16:22] (I know the custom snippet think is sufficient for that) [16:22] sergiusens: I think I already solved that. We had a lot of slow scalingstack instances hanging around. [16:22] hmm. i think it actually worked [16:23] i get now a complain about missing cap setgid [16:23] security-override: [16:23] syscalls: [setgroups] [16:23] caps: [setgid] [16:23] that doesnt feel right :) [16:23] let me add that to the other caps [16:24] where i have network-listener [16:24] ok that was clearly wrong :) [16:24] * ogra_ takes a break [16:27] jdstrand: 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 complains [16:27] zyga: ^ [16:27] no idea :-( [16:28] I haven't tried using old-security much and I don't really follow the magic behind it [16:28] http://paste.ubuntu.com/15480738/ [16:28] asac: but I can promise you to support this next week [16:28] thats the complains i got before [16:28] now i only get the sys_admin one [16:28] asac: when I know what happens inside [16:28] elopio, hm [16:30] jdstrand: nevermind i got rid of all complains.... was just confused by scanlog [16:30] morphis, btw https://github.com/ubuntu-core/snapcraft/pull/397 [16:30] still have troubles [16:30] and lool ^ [16:30] sergiusens: yeah! [16:32] asac is most of the Snappy team in Paris now? [16:33] mvip: no most are distributed [16:34] * asac does the ogra now :) [16:35] copies hacked binaries into snapcraft sourc etree [16:35] and i must admit once you have done it once it doesnt feel that bad anymore :) [16:36] haha [16:36] asac yeah i know, but i thought Didier, Rircardo and Maarten were there so i just thought you had an event or something. [16:36] *Ricardo [16:36] thats the tie and suit guys :) [16:37] ogra_ ;) [16:37] While i have seen Maarten in suit, i haven't seen Ricardo or Didier in one ;) [16:37] 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:38] ogra_ hahaha [16:38] ricardo and didier did an important one day thing there :) [16:38] ah ok [16:38] mectors wanst there afaik, but you newver know :_) [16:38] asac i've been chasing Ricardo by email but he appears to be MIA [16:38] he is vac [16:39] back next week [16:39] back mon [16:39] ah ok. [16:39] if you need urgent help let me know :) [16:39] asac nah we talked at MWC about doing a pre-16.04 Hangout for my devs to avoid common pitfalls [16:39] but now we're halfway there already [16:40] but thanks for the offer [16:40] mvip: half way where? [16:41] asac: yeah we've ported most of the code from 15.04, but there were a few changes that they're still working on [16:41] ic [16:41] ok sounds good. just remember there are still changes happening on trunk [16:41] yeah i know [16:41] team will probably improve stuff till very shortly before release [16:41] goodie [16:42] yeah 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.04 [16:42] zyga: where is the old-secureity code? [16:42] i cannot find it [16:42] need to know if the field is called capabilities [16:42] asac: snappy/* [16:42] asac: mostly security.go [16:42] asac: but it's not easy to follow IMHO [16:42] (e.g. compare to interfaces/builtin/$iface_name.go [16:42] asac: :-( [16:43] indeed [16:44] jdstrand: really would love to know where i can put stuff like sys_chroot [16:44] i tried putting it in old-security -> caps [16:44] doesnt work [16:44] then in override -> capabilities, but the code doesnt seem to suggest such field exists [16:44] even if it did you'd most likely have to change it again next week :P [16:45] its odd [16:45] * ogra_ waits til someone actually calls the stuff stable ... i gave up forward porting my snaps every week [16:45] i get complain that syscall chroot is missing [16:45] then i add that and then it complains about missing cap sys_chroot [16:45] wonder why we always have both [16:45] i doubt you will be able to implement that sanely at all [16:45] ogra_: how can i make it unconfined? [16:46] turn off chrooting in your daemon [16:46] my machien crashed s i have to get this working today [16:46] no matter what [16:46] asac: unconfined is going away, developer mode is replacing that [16:46] zyga, on a pre-snap basis ? [16:46] yes, but i need it working today [16:46] yep [16:46] *per-snap [16:46] doesnt matter what goes away [16:46] asac: sure, just FYI [16:46] jdstrand: hey, any chance you can look at that lxd upload? [16:46] soo how to do unconfined these days? [16:46] :) [16:47] asac, http://bazaar.launchpad.net/~ogra/+junk/htop-unconfined/files that worked two weeks ago [16:47] (obsolete again though) [16:47] yep great [16:47] * asac tries the equiv === kickinz1 is now known as kickinz1|eod [16:56] mvo, hey, how is meta/gui defined? [16:56] mvo, or what lives in it? [17:01] sergiusens: I'm off for dinner now, lets talk later or tomorrow. its just icon in there and desktop files for now [17:11] stgraber: done [17:11] jdstrand: thanks === olli_ is now known as olli [17:43] ogra_: the package on the ppa build successfully today. If you can trigger a snap build, that would be nice. [17:53] Hey 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/ [18:05] installed snappy on VirtualBox-4.3.36-105129, have tried ubuntu/ubuntu for username/password [18:05] get "login incorrect" [18:06] have typed them carefully but still the same error [18:11] zyga: 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 workeed [18:12] ther'es no way to do that [18:12] jdstrand: just add a test in all_test.go [18:12] today or ever? [18:12] today, we haven't designed anything that needs it yet [18:12] jdstrand: one thing I'd envison was the developer mode debug checker [18:12] jdstrand: but it's not implemented in any way [18:13] zyga: ok, so, the debugging tool I need to write will need some of this [18:13] but let's not worry about that now [18:13] jdstrand: it should be trivial to expose this on CLI [18:13] jdstrand: one day [18:18] downloaded the ova image from http://cloud-images.ubuntu.com/ubuntu-core/15.04/core/stable/current/core-stable-amd64-cloud.ova [18:33] elopio, building [18:40] thank you! [18:46] zyga: sorry to keep bothering you: ./run-tests [18:46] can'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] /usr/lib/go/src/_/home/jamie/bzr-pulls/snappy.jdstrand/arch (from $GOROOT) [18:47] /home/jamie/src/gopath/src/_/home/jamie/bzr-pulls/snappy.jdstrand/arch (from $GOPATH) [18:47] jdstrand: don't be sorry [18:47] jdstrand: first of all, forget about run tests for a sec [18:47] I did ./get-deps.sh [18:47] jdstrand: go to interfaces/builtin [18:47] jdstrand: and run "go test" [18:47] jdstrand: that's 99% of what matters [18:47] ./bool_file_test.go:126: undefined: builtin.MockEvalSymlinks [18:47] hmmm [18:47] ok [18:47] quick sanity check [18:48] your code should be in $GOPATH/src/ubuntu-core/snappy [18:48] that is [18:48] after get-deps [18:48] your snappy fork should be exactly there [18:48] otherwise nothing works [18:49] zyga: that worked [18:49] zyga: I use a symlink from $GOPATH/src/ubuntu-core/snappy to somewhere else [18:50] 13:49 < jdstrand> zyga: that worked [18:50] 13:49 < jdstrand> zyga: I use a symlink from $GOPATH/src/ubuntu-core/snappy to somewhere else [18:50] zyga: I was 'somewhere else' [18:50] mmm [18:50] doi [18:50] I'm doing too much at once :) [18:50] I'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 well [18:51] jdstrand: thanks for asking :) [18:53] jdstrand: quick tip from my back of commands: [18:53] go 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.html [18:53] xdg-open $GOPATH/src/github.com/ubuntu-core/snappy/coverage.html === chihchun_afk is now known as chihchun === ubott2 is now known as ubottu [19:14] mvo, kyrofa https://github.com/ubuntu-core/snapcraft/pull/399 [19:19] sjx, I recommend using kvm, aka virtual machine manager [19:19] works great === daker_ is now known as daker === tedg_ is now known as tedg === inaddy_ is now known as inaddy [19:20] Can anyone take a look at my snapcraft.yaml [19:23] Is anyone running snappy core 16.04 [19:24] code1o6: I'd suggest just asking the question [19:24] code1o6: aka, don't ask to ask, just ask [19:25] code1o6: "I have a problem $DESCRIPTION_OF_PROBLEM with my snapcraft.yaml -- $PASTEBIN_OF_SNAPCRAFT_YAML" [19:25] Zyga, I have several time on multiple days [19:25] ey 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:26] So, it builds but my bash script doesn't create test.out file. When I try running nmap binary it fails /apps/unisys-test/blah/nmap [19:27] http://paste.ubuntu.com/15480269/ [19:27] that's the bash scripts the should run using glue from snapcraft.yaml [19:28] The webserver gets started but I believe that the permission in the directory are not correct since the test.out file does not get created [19:30] I 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.04 [19:30] So there is something I must be missing or that I have extra [19:31] zyga, ^^ [19:32] code1o6: 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 list [19:34] I'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 sense [19:35] filesets, and extending metadata [19:36] at 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 different [19:36] code1o6: developer docs are somewhat out of date between what's in 15.04 and 16.04 [19:36] code1o6: I haven't used filesets at all so I cannot say if that's affected [19:37] I 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:39] I'd suggest looking for dholbah, he should be able to help with the docs and perhaps point you at the right person [19:40] zyga, code1o6 there have been no changes for filesets though [19:40] where does this project live? and I hope you are on xenial [19:50] sergiusens, its 15.04 [19:51] The project where I build the snap package its 15.10 [19:51] code1o6, why are you doing stuff on 15.04? [19:52] all the great stuff is in 16.04 [19:55] I wish I could upgrade but its part of Dell IOT device and it's shipping with 15.04 [19:55] sergiusens, ^^ [19:56] code1o6, ah, valid reason :-) [19:56] code1o6, is you project anywhere to look at? [19:57] code1o6, I'm almost sure you call to ip -4 addr show eth0 fails [19:57] code1o6, can you install snappy-debug [19:58] and run sudo snappy-debug scanlogs [20:00] sergiusens, 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] I can post it in github if you'd like [20:00] Why are you sure sergiusens ? [20:00] It works in ubuntu and I thought ip should be built into snappy [20:00] let me try it right now [20:01] code1o6, because if the `ip` comes from the system you are probably missing some security allowances [20:01] snappy-debug will confirm [20:02] snappy-debug is not found [20:03] Is it a snap? [20:04] sergiusens, do you run that in snappy or my project folder? [20:05] network-management is the cap you would use on 16.04, network-admin on 15.04 [20:05] zyga: sorry, another question: https://travis-ci.org/ubuntu-core/snappy/jobs/118065075 [20:06] zyga: you said go test was enough, but travis says otherwise [20:08] guys how do you run snappy-debug [20:08] sudo snappy install snappy-debug [20:08] sudo snappy-debug.security scanlog [20:09] nvm [20:09] thanks [20:14] serguisens, was right http://i.imgur.com/q9W5hKT.png [20:14] can someone take a look at it? [20:15] it says to add 'capability net_admin' [20:15] did you see what I said above? [20:15] network-management is the cap you would use on 16.04, network-admin on 15.04 [20:15] oic [20:15] so just change that [20:16] what is cap? capability? [20:16] or add it, yes [20:16] jdstrand, thank you so much. [20:18] plugs: [20:18] listener: [20:18] interface: old-security [20:18] caps: [network-listener] [20:18] [network-admin] [20:18] like this? [20:18] caps: [network-listener, network-management] [20:18] I thought you said network-admin [20:18] since you specified network-listener, this is 16.04, so use network-management, plus, I'm assuming you still want network-listener [20:19] it is currently network-management on 16.04, changed from network-admin [20:20] jdstrand, [network-admin, network-listener] [20:20] no [20:21] [network-listener, network-management] [20:21] network-management is the cap you would use on 16.04, network-admin on 15.04???? [20:21] yes [20:21] you are on 16.04, use network-management [20:21] no i'm in 15.04 [20:21] not if you are using 'plus' [20:22] plugs* [20:22] Well I have to use 15.04. How would I make it compatible then [20:22] if you are on 15.04, drop all the 'plugs' stuff and simply use: caps: [network-client, network-admin] [20:23] code1o6: eg: [20:23] services: [20:23] foo: [20:23] caps: [network-client, network-admin] [20:24] code1o6: fyi, you need to make sure you are using the right snapcraft for 15.04 [20:27] jdstrand, does it look okay? http://paste.ubuntu.com/15482558/ [20:28] code1o6: the services bit does, yes. I am not a snapcraft expert though [20:28] so I can't comment on the other parts [20:28] I mean, it looks ok otoh [20:33] * ogra_ is still curious if you will in the end be able to make nmap work within the confinement boundaries [20:33] i mean ... it needs quite some system access to collect the info (switching the NIC into promiscous mode for example) [20:34] it will cause apparmor doesn't have fine-grained network mediation yet [20:34] it doesn't need to be in promscous mode [20:34] CAP_NET_ADMIN is essentially all that is needed [20:42] jdstrand, I guess it progress http://paste.ubuntu.com/15482674/ [20:43] jdstrand: looking [20:44] zyga: ./run-tests passed here locally [20:44] jdstrand: hmm, travis merges AFAIR [20:44] code1o6: yes, notice the timestamp, your network-admin worked [20:44] jdstrand: can you rebase / merge master [20:44] jdstrand: and see if that fixes it [20:44] jdstrand: looks like pre native plug/slot info branch [20:45] code1o6: File: /apps/unisys-test.sideload/IPUTNKTTWKUK/test.out. use $SNAP_DATA_PATH/test.out instead [20:45] zyga: erf, I forked from https://github.com/ubuntu-core/snappy.git and am up to date [20:46] jdstrand: ok, let me have another look [20:47] jdstrand: you are not [20:47] jdstrand: https://github.com/ubuntu-core/snappy/pull/720/files#diff-aa51e80575985c01c3fa42dabdd454ddR40 [20:47] jdstrand: this is before 702 landed [20:47] it said I had 718 though [20:47] jdstrand: 702 changed Plug/Slot API [20:47] code1o6, ah, you would only do higher level stuff ? [20:47] * jdstrand shakes fist at git [20:47] jdstrand: (landing order != proposal order) [20:47] yeah, i guess that works [20:47] jdstrand: fetch / rebase [20:47] jdstrand: and see what happens [20:48] meh, I just did several of these [20:48] jdstrand: 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 that [20:48] jdstrand: the change is totally automatic [20:48] jdstrand: git fetch upstream [20:48] jdstrand: git rebase upstream/master [20:48] I don't see how git clone gave me the wrong thing [20:48] jdstrand: assuming upstream remote is github.com/ubuntu-core/snappy [20:49] jdstrand: what is wrong? [20:49] jdstrand, 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 branch [20:49] ogra_, what are you talking about? [20:49] nmap [20:49] code1o6: seems fine [20:49] doesnt that usually also do arp scans and such ? [20:50] well I wanted to do -sS but that requires sudo [20:50] zyga: git fetch upstream is up to date [20:50] k [20:50] for now I'll try getting it working first [20:50] code1o6, right, thats what i mean ... [20:50] jdstrand: do you see ea2f84a3362ba4b7757f178a6da82f5938181f1b [20:50] jdstrand: you have to have it in your branch [20:51] commit ea2f84a3362ba4b7757f178a6da82f5938181f1b [20:51] Merge: c887a47 813c112 [20:51] Author: Zygmunt Krynicki [20:51] Date: Wed Mar 23 18:00:44 2016 +0100 [20:51] Merge pull request #702 from zyga/use-std-plugs-and-slots [20:51] [20:51] interfaces, daemon, overlord: use snap.{Plug,Slot}Info natively [20:51] jdstrand: is that in the branch you are on? [20:51] yes [20:51] jdstrand: can you check that your firewall test looks the same to network test (for example) [20:52] jdstrand: and that it looks like this: [20:52] https://github.com/ubuntu-core/snappy/blob/master/interfaces/builtin/network_test.go#L38 [20:52] jdstrand: ^^ [20:52] jdstrand: git status [20:52] jdstrand: git branch [20:52] jdstrand: maybe your are in some weird place [20:53] jdstrand: or you are pushing to some weird location so tests locally pass but you pushed something else earlier [20:53] zyga: it is in everything except my firewall-controll branch [20:53] jdstrand: there you go [20:53] jdstrand: git rebase upstream/master [20:53] zyga: apparently I forked and started working before that was merged [20:53] :-) [20:53] * jdstrand wonders why zyga said to work on these with that change not landed :) [20:54] jdstrand: AFAIR at that time it *has* landed :D [20:54] jdstrand: you just didn't fetch [20:54] jdstrand: look at the timestamps [20:54] so, https://github.com/ubuntu-core/snappy/pull/721 passed travis [20:54] and the other two I started will have had that [20:54] I'll update firewall-control [20:57] jdstrand, I'm still getting adjust program to not write to SNAP_APP_PATH [20:57] it isn't SNAP_APP_PATH [20:58] it is SNAP_DATA_PATH [20:58] http://i.imgur.com/GxJrEA6.png [20:58] code1o6: I suggest: sudo snappy install hello-world ; hello-world.env | grep SNAP [20:58] code1o6: whoops [20:59] code1o6: SNAP_DATA, not SNAP_DATA_PATH [20:59] jdstrand, yes that what I did SNAP_DATA_PATH [20:59] I know, I said it wrong [20:59] SNAP_DAT [20:59] erf [20:59] SNAP_DATA [20:59] jdstrand, testing [21:03] jdstrand, Same error message [21:03] I though SNAP_DATA was for 16.04 [21:04] oh sigh [21:05] SNAP_APP_DATA_PATH [21:05] sorry, that should work [21:05] https://github.com/ubuntu-core/snapcraft/commit/04b1a13bc03305bc3180e71ede2f39b3183482d9 [21:05] note, hello-world.env is awfully handy [21:11] jdstrand, I get the same result [21:12] jdstrand, wait [21:19] jdstrand, it works so where is $SNAP_DATA_PATH ? [21:19] code1o6: look at launcher (in $PATH) to see [21:19] ls /snaps/bin [21:20] you mean /apps/bin? [21:21] yes, sorry :) [21:21] (I didn't know it changed already, I know it was supposed to change) [21:22] I found the bash script but it not in the same directory [21:24] zyga, I'm having now luck [21:25] code1o6: cool :) [21:25] zyga, oops *no [21:27] code1o6: well, all I wanted to say is that you can look at the scripts [21:27] Found it but it's empty [21:27] code1o6: and see what variables are set [21:27] code1o6: then something is wrong, it should not be empty [21:27] SNAP_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] it was /var/lib/apps/ [21:28] erf [21:28] 15.04 is /var/lib/apps/... [21:28] ETOOMANYCHANGES :) [21:28] yes [21:28] jdstrand, I know :( [21:29] jdstrand, can I try to run nmap from /apps/blah/bin/nmap [21:30] code1o6: not easily. I suggest adding something to 'binaries' like so: [21:30] binaries: [21:30] - name: sh [21:30] caps: [network-client, network-admin] [21:31] let's change that [21:31] binaries: [21:31] - name: bin/myshell [21:31] caps: [network-client, network-admin] [21:31] then create bin/myshell to be: [21:31] #!/bin/sh [21:32] sh [21:32] then you can do: appname.myshell [21:32] and get a shell where you can play around with equivalent confinement, run nmap, etc [21:33] code1o6: I'm going to have to step away. good luck! [21:33] okay, just add binaries section to snapcraft.yaml [21:33] jdstrand, thanks for all help :D [21:34] yeah [23:45] jdstrand: https://github.com/ubuntu-core/snappy/pull/733/ [23:45] jdstrand: just FYI, you don't have to review it yet [23:45] jdstrand: this *makes it happen* :-) [23:45] ogra_: ^^ :-)