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

=== zenlot_away is now known as zenlot
Chipacakgunn, kyrofa, snap is the new client, that just talks to the rest api; we're moving commands over to it02:07
Chipacaas they get feature-complete(ish) the old one is removed from snappy02:08
wiglewormCan anyone help with a question about snapcraft and "build packages"04:27
wiglewormI want to create a snap with lsusb and lspci. I think I would use "build packages" with snapcraft but I keet getting a "parts" error04:28
wiglewormbtw I have not defined a "parts" section because I have no clue how to do that when all I want are packages04:29
wiglewormrather deb packages04:29
wiglewormI also read about using "stage-packages" but that makes even less sense to me given that I still have to have a "parts" section.04:33
wiglewormmore clarification - I want to add the functionality of lsusb and lspci to snappy as its not installed. With that in mind, I am trying to build a snap that will install the two deb packages (and dependences) into the system so that I can run them from the command line04:54
dholbachgood morning07:45
didrockshey dholbach07:48
dholbachsalut didrocks08:10
=== willcooke_ is now known as willcooke
noizermorning09:12
sergiusensjdstrand, hey, if you have  a chance to look at, it would be great https://github.com/ubuntu-core/snapcraft/pull/360/files09:41
sergiusensit is in nagging mode so most commands run (except 2) will nag09:42
sergiusensthis is where my creativity ends09:42
zygappisati: hey10:39
zygappisati: do you have a moment to talk about the raspberry pi kernel10:39
ppisatizyga: what's that10:41
zygappisati: I was trying to use video core specific modules and I found that we don't have them in our kernel10:42
zygappisati: specifically I was trying to use bits required to use the camera interface10:42
ogra_zyga, which ones specifically ?10:42
ogra_the camera ones should be there with the latest image10:42
zygaogra_: oh? yesterday they were not10:43
ogra_hmm10:43
zygaogra_: vcsm10:43
ogra_except ....10:43
zygaogra_: and the lot10:43
zygaogra_: I can make a proper list in a moment, just got my network back10:43
ogra_zyga, the modules are in the kernel, but there was a bump of the bootloader required to make them used ...10:43
ogra_i'm just wondering, i think i only updated it for 15.0410:43
zygaogra_: ohhh, can you do it for 16.04 as well10:43
ogra_i'll try to find some time, no promises for today though10:44
ppisatizyga: how do you use the camera?10:44
ppisatizyga: because10:44
zygaogra_: everything that is needed for this: https://github.com/raspberrypi/firmware/tree/master/hardfp/opt/vc10:44
ppisatizyga: https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/153221710:44
ubottuLaunchpad bug 1532217 in linux-raspi2 (Ubuntu) "Can't modprobe bcm2835-v4l2 to use RPi2 camera module" [Undecided,New]10:44
zygappisati: not v4l210:44
ogra_bug 150075510:44
ubottubug 1500755 in Snappy "bootloader firmware needs update to get vchiq working with 4.2" [High,Fix committed] https://launchpad.net/bugs/150075510:44
zygappisati: through the videocore apis10:44
zygappisati: the same way that raspian has this10:44
ppisatizyga: someone alreaby opened a bug for it, and it was just a matter of modifying config.txt etc10:45
ogra_ppisati, no, there was more10:45
zygappisati: using official rpi foundation libs (python wrappers for libbcm_host.so)10:45
ogra_my fault, i only updated the 15.04 oem snap10:45
zygaogra_,ppisati: I'd argue that for a complete system we should also ship all those binary libs in our kernel snap10:45
ogra_on 16.04 the firmware is outdated10:45
zygaor each snap will need them as well10:45
zygaI haven't checked, maybe that part is actually open source so we can also build it10:46
ogra_zyga, i'm about to trigger a discussion on the ML foir that today10:46
zygaogra_: fantastic, I'll chime in10:46
ppisatii'm not familiar with the videocore api10:46
ogra_(more about graphics drivers, but that should include these libs too)10:46
zygaogra_: I'm trying to get all the pi2 specific hardware to work with interfaces10:46
ppisatizyga: what's the userland bin that you use to take picture?10:46
ppisatizyga: raspistill?10:46
zygappisati, ogra_: it's actually very closely related, lots of OpenMAX libs10:47
zygappisati: no, I was using the library directly, but it's all the same, raspistill is a good test for this10:47
ppisatizyga: ok then, can you take a look at this bug?10:47
ogra_ppisati, we will need the videocore bits (the opensource graphics driver) to actually have graphical output on the pi10:47
zygappisati: (through https://picamera.readthedocs.org/en/release-1.10/)10:47
ppisatizyga: https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/153221710:47
ubottuLaunchpad bug 1532217 in linux-raspi2 (Ubuntu) "Can't modprobe bcm2835-v4l2 to use RPi2 camera module" [Undecided,New]10:47
ogra_it is for display as much as for video decoding and camera10:47
ppisatiogra_: uh ok, is that part of the rpi kernel or it is a separate repo?10:48
zygaogra_: the display is my next item, as soon as the camera is working10:48
ogra_ppisati, i think the open one entered in 4.410:48
ppisatiogra_: cool10:48
zygappisati, ogra_: is there anything actionable for me now?10:49
ogra_id libraspberrypi-bin (from your bug above) in the archive ?10:49
ogra_*is10:49
zygaogra_: not in xenial10:50
zygaogra_: looks like a raspbian package10:50
ppisatiogra_: we should make this guy push all his packages into the archive10:51
ogra_+110:51
ppisatihttps://launchpad.net/~fo0bar/+archive/ubuntu/rpi2/10:51
ppisatiogra_: ^10:51
ogra_yeah, thats what a serch got me10:51
ogra_*search10:51
ppisatihe's not here :(10:52
ogra_in #ubuntu-devel perhaps ?10:52
ppisatioh, ok, US, he's still sleeping... :)10:52
ogra_i know that nickname, so he is here occasionally i'm sure10:52
ppisatiok10:52
ogra_FSVO "here" .... perhaps not actually in #snappy10:53
ogra_not sure how easy/hard it is to push to the archive licensing wise though10:53
zygaogra_: can we use the same bits that raspbian has?10:53
ppisatiogra_: good point, the license...10:54
zygaogra_: broadcom licensing seems to say that it is okay to resistribute for broadcom hardware10:54
ogra_right, but it might have to go to restricted10:54
zyga(which is a bit weird but if they (raspbian) can then perhaps we can too)10:54
ogra_or multiverse10:54
ogra_not sure if there are binary bits in it10:54
ogra_zyga, we should ... but they need to work with our kernel and bootloader10:55
ogra_i.e. that needs QA10:55
zygaogra_: can we ship the same kernel as the raspberry pi foundation?10:56
zygaogra_: after all, isn't that what's snappy is all about?10:56
zyga(modulo ubuntu extra modules)10:56
ysionneauhow can I get the core dump for a segfault on ubuntu snappy?10:58
ogra_make /proc/sys/kernel/core_pattern point to a file10:59
ogra_ubuntu@localhost:~$ cat /proc/sys/kernel/core_pattern10:59
ogra_|/bin/false10:59
ogra_you want to pipe to /tmp/core or some such ...11:00
ogra_instead of /bin/false11:00
ogra_(just make sure there is enough space for a whole RAM dump ;) )11:00
ysionneauhehe11:00
ysionneauok I don't know what I messed up, but now it does not say "core dumped" any more11:00
ogra_damn, you fixed it :P11:01
ysionneauahah no11:01
ysionneauit says "segmentation fault", but without the "(core dumped)"11:02
ysionneauafk lunch!11:03
zygappisati, ogra_: is there anything actionable for me now?11:06
kyrofaGood morning11:58
zygakyrofa: hey12:09
kyrofazyga, hey :)12:09
* ogra_ grumbles about slow SD cards12:58
mvodpm: hi, you will need to do a small tweak to your snaps: https://lists.ubuntu.com/archives/snappy-devel/2016-March/001516.html13:16
ciastek"hello-world failed to install: snappy package not found" while taking a tour. Known problem?13:16
mvodpm: will probably land today13:16
mvociastek: the store has a problem right now13:16
mvociastek: should be fixed soon, people are working on it13:17
ciastekmvo: thank you! will try later.13:17
dpmmvo, thanks for the heads up, I had seen the e-mail, but wasn't sure the changes had landed. So I should basically change the snaps and re-upload them now?13:17
mvociastek: yeah, sorry, but we will try to fix it ASAP, its affecting our integration tests as well13:18
mvodpm: not just yet, I'm waiting for our integration tests to work again (store issue) but I expect that I will land this today13:18
ciastekmvo: thank again :)13:18
dpmthanks mvo13:18
mvodpm: I can ping you once it is uploaded13:19
dpmmvo, that'd be awesome, thanks!13:19
zygamvo: I guess a pet project to build a functional version of apt repository tools where each change yields a new URL but all the old URLs contain the old state13:46
zygamvo: do you know of anyone doing something like that?13:46
kyrofadduffey, ping13:51
noizerHi guys do someone know how to install the webdm on the rolling versions?13:52
mvozyga: sounds like snapshots.debian.net13:53
zyganoizer: snap install webdm/edge perhaps13:53
* zyga cannot remember the right syntax for channels)13:53
mvozyga: ups, http://snapshot.debian.org/13:53
ogra_just webdm.canonical shoudl work13:53
mvonoizer: alias in the store is broken right now13:54
mvopeople are investigating13:54
zygamvo: looks kind of like what we want, do you know how that is implemented?13:54
zygamvo: is that a cron job doing snapshots13:55
zygamvo: or just a very smart archive that does this internally13:55
zygamvo: and is never inconsistent13:55
ysionneauhmm13:55
mvozyga: I don't know the detials, sorry13:56
zygamvo: thanks13:56
mvozyga: I suspect more than a cron job though13:56
ysionneauas soon as I change /proc/sys/kernel/core_pattern from |/bin/false to something else , I don't get the "core dumped" message anymore13:56
ysionneaufor instance now I've set it to /tmp/dumps/core.%e.%p.%h.%t13:56
kyrofaHey mvo, zyga: I'd like to talk about Snappy data. Both unversioned data and how we should solve the problem of storing data on a separate HD13:57
zygakyrofa: hmm13:57
kyrofa(for 16.04)13:57
zygakyrofa: (in a meeting now)13:58
zygamvo: for new os snap please land pull 565 (go-flags sync)13:58
kyrofazyga, ah no problem13:59
kyrofamvo, zyga I just want to make sure we solve those issues before 16.04 comes out14:00
zygakyrofa: I'm not very familiar with snap data and update changes14:06
zygakyrofa: I'm interested in the 2nd hdd problem14:07
zygakyrofa: can you tell me more14:07
kyrofazyga, I saw some ML posts a while back about that, and there were some good ideas. I figured you'd be interest in that second one ;)14:07
kyrofazyga, ownCloud has a specific use-case. They want to ship a device that is essentially a rpi2 with a western-digital HD for ownCloud data14:08
noizermvo zyga So it is normal that the webdm not works now on 16.0414:08
ogra_noizer, "not works" ?14:08
ogra_can you be a bit more specific ?14:09
zygakyrofa: I think the "easy" approach is to have an interface for a given /mnt/foo data and let owncloud just use that14:09
kyrofazyga, but with a default partition layout it's not possible to even use that HD. You'd need to put the entire writable partition there14:09
zygakyrofa: I suspect it's something post 16.04 though14:09
noizerwhen im surfing to it. it keeps loading14:09
ogra_kyrofa, we would first need support for that on the system level anyway14:09
kyrofaogra_, what do you mean?14:09
ogra_kyrofa, some fstab entry to have a fixed mountpoint for example14:10
ogra_(one that you can use the "interfaces" system on)14:10
kyrofaogra_, ah, okay14:11
ppisatiogra_: you said they moved the dtb in memory (latest rpi2 firmware), so what's the new location?14:11
ogra_you dont really want someone to be able to just re-plug a usb key on some mission critical device to steal data etc14:11
ogra_ppisati, no, that was dragonboard stuff :)14:11
ogra_rpi is fine and stayed where it was14:11
ogra_0x100 should still work14:12
ppisatiogra_: uhm14:12
kyrofaogra_, well... no way around that if you're using an external device-- at least owncloud supports encryption14:12
ogra_(i think ... my rpi is still in a suitcase, i'll have to check)14:12
ppisatiogra_: http://pastebin.ubuntu.com/15266835/14:12
ogra_kyrofa, well, i would like my device to actually alert me and to not accept another device witgh a different UUID for example14:13
kyrofaogra_, can't UUIDs be set, though?14:13
ogra_as a low level security measure14:13
ogra_not atm14:13
ogra_mounting all happens by labels, the fstab is generated from the initrd14:14
ogra_thats fine for the internal filesystems ... but for externals i'd like some snappy config option where you can set a UUID to have it added to fstab with a specific mountpoint14:14
ogra_if you then replace the USB stick the app wont just start writing critical data to it14:15
zygaogra_: you can just use the same uuid (clone it) and then booting is somewhat unreliable as far as being sure where you boot from14:15
zygaogra_: but I totally agree about doing this with some more insinght as to how external media should be exposed14:15
ogra_zyga, sure, its just another stop gap14:15
ogra_indeed you can clone it ... and indeed it shoudl be encrypted :)14:16
ogra_but encryption isnt supported yet either14:16
zygaogra_: and here I'd say that we should treat external media as something gadget snap can influence (down the line)14:16
ogra_so i dont think this is a topic for 16.04 release ...14:16
zygaogra_: agreed14:16
ogra_it is a topic for 16.04 SRUs for sure though :)14:17
ogra_and we shoudl start planning for it after release day14:17
kyrofaogra_, okay. So our recommended way of doing that is placing the writable label on the external?14:19
ogra_for now, yeah14:19
ogra_which essentially means you fully run from external in eth all-snaps world14:19
ysionneauhmm weird, if I sleep 20 & then kill -s SIGSEGV %1 , it creates a core dump, but not when I run my hello world which segfaults14:19
ogra_(the readonly snaps live on 7writable nowadays)14:19
ogra_*on /writable14:20
ogra_ysionneau, are you still running under qemu ?14:20
ysionneauyes14:20
kyrofaogra_, would that be possible to automate in any way?14:20
ogra_might be a vm issue14:20
ysionneauthe thing is, I trigger a kernel issue with my hello world14:20
ogra_kyrofa, not easily ... you could have a script that calls kpartx to pull the content from /writable and push it to a USB disk indeed14:21
kyrofaogra_, zyga mvo if the external HD is a post-16.04 support issue, I guess we're just left with the unversioned data. That sounds a bit easier to solve, perhaps?14:21
ysionneauogra_: http://pastebin.com/QNu0G3w414:21
kyrofaogra_, yeah I'll need to figure something out-- tough to have a shippable device when every device requires manual work14:22
kyrofaogra_, I may be pinging you on that later, if that's okay14:23
ogra_sure14:23
noizerogra_ got this error: "Error: cannot list snaps: cannot communicate with server: Get http://localhost/2.0/snaps?sources=local: dial unix /run/snapd.socket: connect: no such file or directory"  when he did this call: http://192.168.0.105:4200/api/v2/packages/?installed_only=true14:29
ogra_noizer, is that 16.04 ?14:30
ogra_(works here )14:30
noizerogra_ yes14:30
noizerso on your 16.4 it works ogra_14:33
kyrofaChipaca, you seemed to have some thoughts on the unversioned data stuff on the ML. Do you still think we can get that for 16.04?14:33
ogra_noizer, only tried on arm64, but yes, there it works14:33
ogra_(or at least did a few days ago, but there was no new webdm since)14:33
noizerhmm ok14:33
ogra_ppisati, hmm... there seems to be an issue on the dragonboard with /dev/urandom14:34
ogra_ubuntu@localhost:~/xenial-chroot$ lsb_release -cs14:34
ogra_Fatal Python error: Failed to read bytes from /dev/urandom14:34
ogra_Segmentation fault (core dumped)14:34
ogra_i can read from it a few times but then it doesnt work anymore and i have to reboot14:35
ppisatiogra_: /dev/urandom?14:35
ogra_ppisati, yeah, see the error14:36
ppisatiogra_: ah, i didn't see that14:36
ogra_ lsb_release -cs works for a while after fresh boot14:36
ogra_but at some point i start getting python errors like the above14:36
ogra_feels like there are only a few random bytes and once i used them up it starts failing ;)14:37
ppisatiogra_: what if you do a 'dd if=/dev/urandom of=/dev/null'?14:37
ogra_ubuntu@localhost:~$ dd if=/dev/urandom of=/dev/null14:38
ogra_0+0 records in14:38
ogra_0+0 records out14:38
ogra_0 bytes (0 B) copied, 0.000768486 s, 0.0 kB/s14:38
ogra_nothing14:38
jdstranddpm: hey-- I'd like to try your calculator snap on a unity7 desktop. are there instructions for what needs to be installed?14:39
jdstrandmaybe that is a question for mvo ^14:39
jdstrandI feel like there was an email but I can't seem to find it14:41
dpmjdstrand, at the end of the the doc. Once snappy is enabled, then just 'sudo snappy install ubuntu-calculator-app'14:41
jdstrandah, maybe that was it14:41
jdstrandok, thanks14:41
dpmI can also paste the instructions when I'm off the phone14:41
jdstrandI'm there14:41
dpmcool14:41
jdstranddpm: thanks!14:41
jdstrandah, I grabbed ubuntu-snappy-cli but not ubuntu-snappy14:42
jdstrandyow14:42
jdstrandhttp://paste.ubuntu.com/15267034/14:42
jdstrandI'm glad I'm in a vm, I don't want my laptop's grub migrated :)14:43
jdstrandmvo: fyi, ^14:43
jdstrand(apt-get install ubuntu-snappy)14:43
dpmjdstrand, added some notes to the doc to install the calc and clock apps14:43
jdstrandheh14:46
jdstrandman, a 144M clock14:46
jdstrandI thought we were going to have a thick os snap...14:47
jdstrandanyhoo14:47
jdstrandthanks!14:47
ogra_thats just a prototype :)14:48
ogra_i'm actually surprised it is *only* 144M14:48
ogra_given it pulls in the whole of sdk-libs14:49
jdstrandwell, with the calculator, there is another 141 ;)14:49
ogra_diskspace is cheap :P14:49
jdstrandapparently that is what people say :P14:49
jdstrandheheh14:49
ogra_(we should add that underneath the "linux for human beings" to the logo now ;) )14:49
jdstrand:)14:49
jdstrandpfft14:50
jdstrandI was wondering how it launched with no denials14:50
jdstrandunconfined template14:50
ogra_shiny eh ?14:50
ogra_:P14:50
jdstrandwell, I was wondering who did the work for me :)14:50
jdstrandand now I know14:51
* zyga solitcits reviews of https://github.com/ubuntu-core/snappy/pull/559 14:53
jdstrandzyga, niemeyer: we need to have a chat so we can nail down what needs to be done wrt old-security, moving to native interfaces and existing security interface names. can we scedule a hangout sometime this week?14:55
* jdstrand adds several more items to trello card wrt snappy on classic14:55
zygajdstrand: yep, let's do it14:56
zygajdstrand: I started to implement old-security natively but gustavo asked me to postpone that till the full interface core is working14:56
zygajdstrand: as for the hangout, just propose one14:56
niemeyerjdstrand: Yes, please!14:57
niemeyerzyga: Yes, there's little meaning in "porting" logic to a non-working mechanism :)14:58
jdstrandoh, and snaps on unity7 interfaces14:58
jdstrandok, let me see if I can find something14:58
niemeyerjdstrand: We also need to decide whether we need a sprint in a few weeks or not14:58
niemeyerImminently14:59
dpmjdstrand, and it's ~600MB when installed (clock or calc), but probably some trimming down can be done already15:00
mvojdstrand: thanks, its a known bug15:01
mvojdstrand: it won't actually do anything, grub-migrate is dead15:02
ogra_mvo, so the initrd build error is actually an issue with mkinitramfs ... seems it tries to copy the linker to a non-existing /lib64 dir15:11
ogra_i wonder where that comes from15:12
ogra_(no code that would do that in any of the initrd build scripts)15:12
* davmor2 instantly blames that ogra_ bloke bound to be him ;)15:12
davmor2ogra_: see that driveby blaming there ;)15:13
ogra_mvo, so if i add set -x to the last initramfs hook that gets called i get this output ... http://paste.ubuntu.com/15267323/ ... note how it expands to searching for /lib64/ld-linux-aarch64.so.1 at the end before it exists non-zero15:22
ogra_i'm not sure where that lib64 comes from :(15:23
mvoogra_: in a meeting15:23
ogra_ok15:23
mvoogra_: will look after that15:23
ogra_i think we need infinity but he is out today15:23
davmor2ogra_: no you don't need infinity it'll just keep searching if you do that15:25
ogra_davmor2, canadian infinity is different15:25
ogra_hmm15:34
ogra_ubuntu@localhost:~/xenial-chroot$ ls /usr/share/initramfs-tools/hooks/|grep klibc15:34
ogra_klibc-utils15:34
ogra_klibc^i-t15:34
ogra_apw, ^^ any idea whats up with that klibc hook ?15:34
ogra_(update-initramfs complains about it)15:34
ogra_/usr/share/initramfs-tools/hooks/klibc^i-t ignored: not alphanumeric or '_' file15:35
ogra_looks like someone typoed somewhere15:35
kyrofajdstrand, does either security-override read-paths or write-paths encompass execution, by any chance?15:36
apwyeah that it looks like there is a junk file in hooks15:36
apwis there a file with a tab in the name in there ?15:36
ogra_ubuntu@localhost:~/xenial-chroot$ ls /usr/share/initramfs-tools/hooks/15:36
ogra_busybox    fixrtc       fsck         klibc^i-t  resize  thermal             udev15:36
ogra_compcache  framebuffer  klibc-utils  kmod       resume  ubuntu-core-rootfs  zz-busybox-initramfs15:36
ogra_dosnt look like it15:37
ogra_all other files look normal15:37
jdstrandkyrofa: no15:37
kyrofajdstrand, didn't think so. I have some software that wants to shell out to /sbin/ip15:38
jdstrandiirc, you need the network-admin cap15:38
kyrofajdstrand, oh! That's covered by that eh? Nice15:38
ogra_hmm, funny ... in the source of initramfs-tools the klibc hook looks correct15:38
ogra_the arm64 binary definitely has it though15:39
ogra_apw, aha, klibc-utils adds a diversion ... i guess the typo is in there15:40
ogra_there we go15:42
ogra_https://launchpadlibrarian.net/237842216/klibc_2.0.4-7_2.0.4-8.diff.gz15:42
ogra_apw, seems like a debian bug we actually inherit15:44
ogra_(introduced by bwh)15:45
apwnice15:45
ogra_to bad that wont help with my issue though ... i just stumbled over it trying to get arm64 to behave when building initrds :/15:46
ogra_dholbach, anything to discuss today ?15:51
dholbachogra_, sorry, in a separate meeting right now15:52
dholbachand no :-/15:52
ogra_lets skip then15:53
kyrofakgunn, the beard! It's gone!15:58
ogra_O M G !15:58
kgunn:)16:02
kgunnwife didn't like it16:03
jdstrandmvo: do you have a moment now?16:03
kyrofakgunn, aww, too bad16:03
mvojdstrand: yes, HO? just send me the link via /msg16:04
=== FourDollars_ is now known as FourDollars
ogra_grmbl16:17
davmor2kgunn: wise man say when wife happy home is happy too :)16:21
mvojdstrand: you asked about unshare() in ubuntu-core-launcher, we do use unshare(CLONE_NEWNS) when setting up the slave mount namespace (main.c:301). will this potentially cause issues with apparmor?16:25
noizerHow can i use the snappy ubuntu core REST API on the rolling version?16:27
zyganoizer: look at docs/rest.md16:35
zyganoizer: you just make http requests to an unix socket (not tcp/ip socket16:35
zyganoizer: for starters, cmd/snap is doing exactly that16:35
zygamvo: can you please land https://github.com/ubuntu-core/snappy/pull/559 if you have a moment16:36
mvozyga: *if*16:37
zygamvo: yeah, I know what kind of day it is for you today16:45
kyrofaHey ogra_ I know you disabled the resize for dragon, but I just flashed an rpi and it didn't resize on boot either16:56
ogra_kyrofa, oh ?17:04
ogra_anything in /dev/.initramfs ?17:05
ogra_there shoudl be logs17:05
kyrofaogra_, no, that doesn't exist17:05
wigglewormis there a history server somewhere - I asked a Q last night but then I closed the chat app and cannot see if there was a responce17:05
kyrofawiggleworm, http://irclogs.ubuntu.com/2016/17:07
dduffeykyrofa, last night I copied over the build ... and I could see better what was happening17:08
wigglewormthanks kyrofa17:09
jdstrandmvo: mount namespaces are not a problem. it is a file namespace that is the issue17:09
dduffeythe old yaml was including dependencies like libglog the new yaml didn't17:09
mvojdstrand: great, we are good then17:09
kyrofadduffey, I think it all working now, but it seems the system is down?17:10
jdstrandmvo: we should be, yes. I'll be poking at this and I'll come to you if I notice anything issues17:10
dduffeylet me check17:10
wigglewormCan anyone help with a question about snapcraft and "build packages"? I want to create a snap with lsusb and lspci. I want to add the functionality of lsusb and lspci to snappy as its not installed. With that in mind, I am trying to build a snap that will install the two deb packages (and dependences) into the system so that I can run them from the command line. I think I would use "build packages" with17:12
wigglewormsnapcraft but I keet getting a "parts" error. I have not defined a "parts" section because I have no clue how to do that when all I want are the deb packages. I also read about using "stage-packages" but that makes even less sense to me given that I still have to have a "parts" section.17:12
dduffeykyrofa, you first have to ssh into 192.168.122.188 from the jumphost17:12
dduffeyand then ssh into 192.168.10.3517:13
mvojdstrand: thanks17:13
kyrofaAhh, I misunderstood17:13
* mvo -> dinner17:13
ogra_kyrofa, oh, sorry ... that should be /run/initramfs/resize-writable.log17:14
ogra_the /dev/.initramfs is what we used in the past17:14
kyrofadduffey, all good here! I'll be testing for a bit now. Sorry about that, I just though "MAAS? Why do I care about MAAS? Okay, SSHing into snappy..." :P17:15
dduffeykyrofa, no problem ... I will be stepping in/out over the next hour and then I'll be out the rest of the day17:17
kyrofadduffey, good deal, I just wanted in there, I'm set now17:17
kyrofaogra_, the only thing in there is fsck-writable, and it contains http://pastebin.ubuntu.com/15268551/17:28
kyrofasergiusens, you're killing the examples tests man. 6?17:59
sergiusenskyrofa, I didn't change anything that would trigger this failure though18:01
kyrofasergiusens, haha, "Everything passed[...]marked build as failure"18:04
mwbgood afternoon.  Anyone got a moment for a frustrated newbie?18:06
mwbI'm trying to get snappy-core running in VMware workstation using the OVA.  It boots fine and I've created the basic cloud-init iso - that works.  However, as soon as I try and modify user-data to add a user, or just add ssh-keys, it breaks and I can't log in on boot.18:08
kyrofamwb, I'm sorry, I'm not sure there's much experience around here with OVA18:24
kyrofamwb, kvm, virtualbox, we gotcha18:24
ogra_sergiusens, https://launchpad.net/ubuntu/+source/initramfs-tools-ubuntu-core/0.7.23 ... cross your fingers :)18:27
ogra_YIPIIIIEEE !!! it built18:32
* ogra_ waits for armhf now 18:33
kyrofaogra_, is it just me or is xenial dramatically faster than trusty on the rpi2?18:35
ogra_kyrofa, well, i guess the squashfs really helps for devices with slow SD cards18:43
kyrofaogra_, no that's not it. Just compiling speed seems to be faster. Though it may have been the image I was using previously18:44
ogra_ah18:44
ogra_heh, so the generic initrd is 2.3MB big ...18:50
ogra_vs18:51
ogra_ubuntu@localhost:~$ ls -lh /boot/uboot/canonical-dragon-linux.canonical_4.2.0-2014-generic-dragon410c.snap/|grep initrd18:51
ogra_-rwxr-xr-x 1 root root 8.7M Feb 19 17:40 initrd.img18:51
* ogra_ calls it a day ... 18:54
sergiusensogra_, nice! Now I need to get my hands dirty :-P19:06
kyrofajdstrand, trying to debug somewhat of a hacked snappy system, and u-c-l is giving me a "No such file or directory," with aa_change_onexec returning -1. Would that imply it can't find the profile, you think?19:25
jdstrandit would19:27
jdstranddo 'sudo aa-status' and see if the profile you expect is loaded19:27
kyrofajdstrand, ah, kernel mod isn't loaded :P19:28
jdstrandkyrofa: oh, that is perhaps more than a 'somewhat hacked system' :P19:31
kyrofajdstrand, *cough*19:31
jdstrandhehe19:31
kyrofaSo let's say I make a kernel snap, with some extra modules in it. I then make a snap that relies on those modules being present/loaded. I then upload that snap to the store. Is there anything that prevents someone running a kernel on which that snap won't run from installing it?19:43
kyrofaDo we care about that?19:43
wigglewormhas anyone here created a snapcraft.yaml file to build usbutils or pciutils? If so can you point me to your file?19:49
rajenHi there. Did anyone try a ruby application inside a snap app?20:02
kyrofarajen, not yet-- what are you looking to do?20:09
rajenOur application has few scripts using ruby1.9.120:10
rajenWe are able to include ruby inside the snap app. However, by default 2.2 ruby is downloaded from the repos. Our swig modules are not yet ported to ruby2.2. I am looking for ways to include ruby1.9.1 inside my snap environment20:11
kyrofarajen, build from source I say20:13
kyrofarajen, ruby is great to build from source20:14
rajenLet me see how that goes.20:14
rajenthanks for the tip20:14
kyrofarajen, sure thing. Make sure you include the packages you need though (openssl, etc.) or the build system will just skip it20:16
kyrofa(ruby's, I mean)20:16
rajenkyrofa, okay20:16
zygarajen: just depend on ruby1.920:17
zygarajen: get it from the archive as any other package20:17
kyrofazyga, ha! That might be easier20:18
rajenzyga, I tried that but I am using snapcraft and it doesn't seem to like when I give it as ruby1.9.1 as depends20:18
kyrofaDidn't realize that was still in xenial20:18
zygaah20:18
zygait's not20:18
zygaboo hoo20:18
zygarajen: get a ppa with ruby 1.920:18
zygarajen: and use it as a support ppa for your package20:18
zygarajen: you can probably backport one into xenial or just find a ppa where someone did that for you20:19
rajenzyga, few more info. I am not really familiar with ppa.20:19
* kyrofa always builds ruby from source, even on production servers20:19
rajenMeanwhile I am trying to see if I can compile our swig modules with ruby2.2.020:20
rajenThat will be my first try.20:20
sergiusenskyrofa, so http://162.213.35.179:8080/job/github-snapcraft-examples-tests-cloud/179/testReport/junit/test_libpipeline/LibPipelineTestCase/test_libpipeline/ is erroring due to the same thing I fixed in pkg-config about the bad decode20:43
kyrofasergiusens, grr20:43
sergiusenskyrofa, https://github.com/ubuntu-core/snapcraft/pull/36220:46
sergiusensthere20:46
sergiusenskyrofa, for some reason the examples can't find build-packages21:14
sergiusenshmm, and I'm not seeing the adt tests anymore21:15
=== utlemmin` is now known as utlemming
robert_ancellDoes anyone know how to distinguish between a snap in the "removed" state that was installed from a store and one that was sideloaded?22:03
robert_ancelli.e. the "removed" state hides if the state would otherwise be "not installed" or (does not exist)22:03
robert_ancellIt seems download_size is a possible check to see if it is available in the store, but not sure if that's reliable22:04
robert_ancellChipaca, ^?22:05
robert_ancellThere also seems to be the issue in what the version field means - if I have a snap in the "removed" state how do I know what version is available in the store? The version field will show the last installed version, which may have been sideloaded22:07
rajenHi. Can someone point me to documentation where /tmp behavior in snappy is explained.22:15
rajenI need info on 16.04 implementation.22:16
sergiusensrobert_ancell, I think it is just missing the assertions story22:37
sergiusensrajen, it is mounted under a new namespace for a running snap by the snap-launcher22:37
sergiusensjdstrand, does this make any sense to you https://github.com/ubuntu-core/snapcraft/pull/360 ?22:38
rajensergiusens, In our application Snap, we have multiple commands. One central app will create bunch of files in /tmp/. Now the commands are trying to access the same /tmp folder that central app created. However, they all don't see the same tmp directory22:41
beunorajen, right, /tmp is per snap22:42
beunoas they are confined22:42
rajenno I see that every time I run a user exposed command, a tmp file is created.22:43
sergiusensbeuno, it is more per snap and app22:45
rajenyeah..that is what I observed.. per snap and app22:45
sergiusensjdstrand, is that the desired behavior? ^22:45
rajenBut we want all our apps to use same tmp dir to share information22:45
rajenIs it possible?22:45
sergiusensrajen, I will wait for our security guy to say some words ^22:46
sergiusensmy first response would be that that should be the case as beuno mentioned22:46
sergiusensbut from how I think it is implemented now it is as I mentioned22:47
jdstrandthe /tmp should be per snap. I believe it is a bug that it is per command22:55
rajenWhat about TMPDIR. Is it still valid to use it or will it be deprecated soon?23:00
ogra_wont be deprecated, no :)23:04
ogra_and as a workaround you could use a wrapper script to set it to your writable snap dir23:04
ogra_(or a subdir in there)23:04
ogra_sergiusens, ubuntu-core-generic-initrd seeded ... will be in tomorrows tarballs23:05
ogra_(i havent boot-tested it yet though, thats for tomorrow :P )23:05
rajenogra_, Problem is that in our application C code we refer hard-coded  /tmp in a lot of places. I am trying to see if Snappy provides an automatic /tmp handling.23:06
ogra_well, as jdstrand said, it is supposed to be per snap so all your apps in the same snap package should theoretically see the same /tmp ... but there seems to be a bug23:06
ogra_if your apps dont support TMPDIR using it is indeed not a workaround :)23:07
rajenYup there is a bug..23:09
rajenI can see random directories getting created in /tmp for each command access23:09
rajenIt never stops..23:09
rajenroot@localhost:~# ls /tmp/ | grep hello snap.0_hello-ruby.sideload_BezZyD snap.0_hello-ruby.sideload_OXHsLL snap.0_hello-ruby.sideload_mM7VIZ snap.0_hello-ruby.sideload_vSAWkF root@localhost:~# hello-ruby.hello hello root@localhost:~# ls /tmp/ | grep hello snap.0_hello-ruby.sideload_BezZyD snap.0_hello-ruby.sideload_FoOB3j snap.0_hello-ruby.sideload_OXHsLL snap.0_hello-ruby.sideload_mM7VIZ snap.0_hello-ruby.sideload_vSAWkF root@localho23:11
loolhi there23:13
rajenhttp://pastebin.com/vPryWH9V23:13
loolrajen: yes, each run will create a tmp dir23:13
loolI'm not sure who's supposed to clean them up23:13
jdstrandrajen: can you file a bug here: https://bugs.launchpad.net/snappy/+filebug23:14
loolrajen: basically running a command creates a throw away temp dir, and writes to /tmp are remapped to it23:14
looljdstrand: ah I didn't know the design was supposed to be per-snap23:15
rajenAll: Okay..so which version is correct?23:15
jdstrandI think it defeats the purpose of a tmp dir if it is per command/daemon23:15
jdstrandif the original design was per command, I think there should be a bug to revisit it23:16
jdstrandperhaps people didn't think through rajen's use case23:16
jdstrandbut how I remember it is that we were setting TMPDIR to a directory that was per snap23:17
jdstrandbecvause people hard-code /tmp, that was problematic23:17
jdstrandso the per-snap /tmp mount was devised23:17
rajenI seem to like jdstrand's philosophy. That is what I as a developer of heavy duty application would expect.23:18
jdstrandthe proper implementation is create/mount it if it doesn't exist, then let it persist so other commands/daemons can mount the same dir23:18
jdstrandthen clean up on reboot23:18
jdstrandwell, it doesn't totally defeat the purpose of the /tmp dir if it is per command, but it does if you have a complex app and can't easily use SNAP_APP_DATA23:19
zyga_cd23:20
zyga_hmm, right23:20
looljdstrand: yup23:21
loolthis all makes sense23:21
jdstrandrajen: filing a bug will get the right people involved to decide on the path forward23:21
loolI agree it's a nicer design for traditional apps23:21
rajenokay let me file one23:24
=== zenlot_away is now known as zenlot
rajenhttps://bugs.launchpad.net/snappy/+bug/155245823:31
ubottuLaunchpad bug 1552458 in Snappy "Sharing tmp directory across multiple commands in a snap app" [Undecided,New]23:31
rajenhere it is23:32
sergiusenskyrofa, is examples testing broken for you too?23:32

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