/srv/irclogs.ubuntu.com/2017/02/20/#snappy.txt

=== chihchun is now known as chihchun_afk
=== markusfluer1 is now known as markusfluer
=== chihchun_afk is now known as chihchun
thos37I’m just discovering that Intel Joule I2C and UART ports that work in Core beta 4 don’t work in Desktop (which makes sense).  Is the source for the kernel and kernel modules in Snappy available somewhere publically?  We’d like to be able to use the latest Intel Joule support in Desktop.  Is it possible to run a Snap-based kernel in Desktop?07:20
santoshmahtoalecu: hi08:46
hangunzyga:  hi , does your 3.10 patch be merged  into  release-2.22.3?08:59
mupPR snapd#2889 opened: errtracker: add support for error reporting via daisy.ubuntu.com <Created by mvo5> <https://github.com/snapcore/snapd/pull/2889>09:01
zygahangun: hey09:19
zygahangun: yes it has09:19
hangunzyga: that'w awewome09:20
zygahangun: did it fix your issue?09:21
hangunzyga: I have upgrade the snap/snapd to 2.22.3 in my ubuntu 16.04, try it soon09:30
mupPR snapd#2890 opened: apparmor: added spec <Created by stolowski> <https://github.com/snapcore/snapd/pull/2890>09:43
=== chihchun is now known as chihchun_afk
Mirvheads up that QA is about to approve promoting UAP #34 (amd64) to stable channel. for this particular version it has already been in beta/candidate too so this is about the beta -> stable in practice.12:24
mupPR snapd#2786 closed: interfaces: initial unity8 interface <Created by mikix> <Merged by chipaca> <https://github.com/snapcore/snapd/pull/2786>12:51
mupPR snapd#2790 closed: Add a check for an empty argv in snap-confine.c <Created by eriksjolund> <Closed by chipaca> <https://github.com/snapcore/snapd/pull/2790>12:55
mupPR snapd#2891 opened: interfaces/udev: added spec <Created by stolowski> <https://github.com/snapcore/snapd/pull/2891>12:55
mupPR snapd#2807 closed: snap: add new `snap switch` command <Created by mvo5> <Closed by chipaca> <https://github.com/snapcore/snapd/pull/2807>12:57
hangunzyga: hi13:01
Son_Gokumvo: hey13:02
Son_Gokumvo: is there anything you'd like me to do to my PR to merge the selinux policy module in? https://github.com/snapcore/snapd/pull/287813:02
mupPR snapd#2878: Merge SELinux policy module <Created by Conan-Kudo> <https://github.com/snapcore/snapd/pull/2878>13:02
hangunzyga:  the namespace issue is still in my board after upgrading snap to 2.22.3 veriosn13:03
hangunzyga: snap --version :   snap    2.22.3  / snapd   2.22.3 series  16 / ubuntu  16.0413:04
hangunzyga:  on my board:  I ran "snap version" command, it outputs " snap 2.22.3"13:06
hangunzyga:  on my board:  I ran "snap version" command, it outputs " snap 2.22.2"13:06
hangunzyga:  host computer: snap version is 2.22.3 .   target board: snap version is 2.22.213:08
mvoSon_Goku: nothing to do for you on your side, just looking into some high profile bugs, then this PR will get attention13:28
zygahangun: hi13:35
zygahangun: in that case can you tell me what error are you seeing now?13:35
hangunzyga:  thanks.   I do this commands: $ snap install hello-world. $ hello-world .   Then it output error like this:13:46
hangunzyga:  error: can not perform the following tasks:  cannot bind-mount the mount namespace file /proc/4598/ns/mnt - hello-world.mnt : permission denied13:47
hangunzyga: host computer: snap version is 2.22.3 .   target board: snap version is 2.22.213:48
hangunzyga:  core_1082.snap13:50
zygahangun: can you please run "dmesg | grep DENIED"14:02
hangunzyga:  http://pastebin.com/2xJZv3YF14:10
om26erzyga: hey! is there a way to login to snapd without a prompt for password ? aka a way to pass password through stdin or something ?14:15
ogra_om26er, use sudo and a sudoers.d file snippet ?14:16
om26erogra_: I meant past sudo i.e. providing the password for snapd user14:17
ogra_if you use sudo you dont get asked for a password14:17
ogra_at least i dont14:17
=== hikiko is now known as hikiko|bbl
om26eron desktop:14:18
om26ersnap login om26er@gmail.com14:18
om26erPassword of "om26er@gmail.com":14:18
ogra_yeah, dont use login at all14:18
ogra_then sudo just works14:18
om26erogra_: need to login for very specific testing :)14:18
ogra_on my desktop workstation i never logged in with snapd and can use all my scripts with sudo14:19
ogra_ah, tricky then14:19
om26erogra_: you can't download a private snap ;)14:19
ogra_yeah, nothing i touch :)14:19
zygahangun: looking14:25
zygaom26er: not that I know of14:26
zygahangun: thanks14:33
zygahangun: the 3.10 work I did dind't include apparmor so you got one bug less but still one bug to worry about14:33
zygahangun: let me check one thing, I think it is applicable14:33
zygahangun: and you can do a simple experiment locally to confirm14:33
zygaom26er: but you can login over the rest API I think14:34
zygaom26er: or more precisely -- login locally in any way and save the login data14:34
hangunzyga: how I do the experiment?14:36
zygahangun: edit the apparmor profile for snap-confine14:36
zygahangun: can you tell me if you have applied all of the apparmor patches to your kernel?14:36
zygahangun: can you paste `find /sys/kernel/security/apparmor` please14:36
santoshmahtoalecu : hi14:38
alecusantoshmahto: hi!14:38
hangunzyga: http://pastebin.com/7RfHaw0v14:39
zygahangun: hmm,14:40
zygahangun: can you come again tomorrow at this time, this is something that jdstrand knows best but he's off today (US holidays)14:40
hangunzyga:  OK, thanks!   it's a bit late in my timezone14:41
zygahangun: I remember you reported the bug14:41
zygahangun: oh, perhaps send an email out with all the details (the bug report is fine, let's just add more data to it)14:41
zygahangun: jdstrand is very busy but I'm sure he can get back to you in a few days14:42
zygahangun: I see two ideas to experiment:14:42
zygahangun: check if you can get a more recent kernel14:42
zygahangun: or check if your apparmor support in that kernel is what is in the ubuntu kernel now14:42
zygahangun: I heard that apparmor is pretty self-contained and it is easy to port latest fixes14:42
zygahangun: the issue feels kernel related but without a way to experiment locally it's hard for me to say exactly what is wrong14:43
zygahangun: I bet that across the versions apparmor evolved14:43
zygahangun: and that the profile we have for snap-confine (that's what the error is about) is tuned for the latest version we use14:43
zygahangun: so maybe there's something simple we can do to make it work there14:43
zygahangun: or maybe not and you need to port the more recent apparmor patches14:43
zygahangun: but again, hard to say remotely14:43
hangunzyga:  the apparmor patches may be out of date, I ported these patches more than half year ago.14:46
zygahangun: I see14:48
zygahangun: check out master and see what's there, maybe the delta is small14:48
zygahangun: I'm not sure actuall, not a kernel developer14:48
zygahangun: the 2nd idea is to disable apparmor in your build14:48
zygahangun: no security but it'd start to do stuff14:48
hangunzyga: thanks14:49
zygahangun: for that the easiest way actually is to change /etc/os-release so that it doesn't say ID=ubuntu14:49
cappeI'm having issues with snap and snapd. trying to use it, it states it cannot communicate with server localhost, snapd-snap.socket cannot be found14:49
zygahangun: and re-build snap-conifne (it's not dynamic enough yet)14:49
zygacappe: hey, can you tell us more about the environment you are in? which OS, version, snap --version, etc14:50
cappeLinux silver 4.4.0-63-generic #84-Ubuntu SMP Wed Feb 1 17:20:32 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux14:50
cappesnapversion 2.22.314:50
cappesnapd: unavailable :S14:51
cachioniemeyer, if you have any time, here there is a change to review in spread https://github.com/snapcore/spread/pull/2514:51
mupPR spread#25: Adding capability to write xunit report with the task suites and results <Created by sergiocazzolato> <https://github.com/snapcore/spread/pull/25>14:51
hangunzyga:  target board's  snap veriosn is 2.22.2, it it OK?14:52
zygahangun: yes, though we released .3 lately14:52
zygacappe: can you look at what is the status of the service with "systemctl status snapd.service"14:53
cappeI have reinstalled snapd, does it take a reboot?14:53
zygacappe: no, no reboot required14:53
cappeFailed to get properties: No such interface ''14:53
zygacappe: oh, interesting14:53
zygamvo: ^14:53
zygacappe: can you do: journalctl -u snapd.service | pastebnit14:54
zyga(install pastebin if you need to)14:54
mvozyga: thank you14:54
cappepastebnit? is that right spelled?14:55
zygacappe: pastebinit is the package14:55
zygacappe: sorry, I made a typo above14:55
zygapaste-bin-it without the dashes :)14:55
cappehttp://paste.ubuntu.com/24034163/14:56
zygahmmm14:56
zygaempty14:56
zygahmm14:57
zygacappe: how about 'sudo systemctl start snapd.service'14:57
cappesame fail14:57
cappeUnknown unit: snapd.service14:58
mupPR snapcraft#1151 closed: channel maps: remove 'Series' from output <Created by josepht> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1151>15:16
cappemvo: I think you have encoutered this before, the solving of this issue, I'm reading about it at launchpad.net15:17
cappedid you guys solve it?15:17
cappesnap doesnt work: error: cannot communicate with server15:18
cappethat's the same error I have15:18
cappe(status: incomplete) guess not15:19
mvocappe: unfortunately not, what is the bugnumber?15:20
zygacappe: hmm, apt-cache policy snapd15:21
mvo(or apt list -a snapd)15:21
cappeBug #1631514 reported by eduardo on 2016-10-0715:22
mupBug #1631514: snap doesnt work. error: cannot communicate with server <snapd (Ubuntu):Incomplete> <https://launchpad.net/bugs/1631514>15:22
mupPR snapcraft#1147 closed: snapcraft.yaml: 96boards: minimal changes to get a working kernel snap <Created by piso77> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1147>15:22
cappesnapd/xenial-updates,now 2.22.3 amd64 [installerat]15:23
cappesnapd/xenial 2.0.2 amd6415:23
cappeso I need to wait for a fix then?15:34
zygacjwatson: hey, what can I do to sync one github repo to launchpad in a real-time manner16:00
zygacjwatson: can I use some hook magic to trigger that?16:00
zygacjwatson: a webook on the GH side to pull from LP16:00
cjwatsonzyga: are you just trying to build a snap from a github repo?16:04
ogra_cjwatson, https://code.launchpad.net/~snappy-dev/+snap/core moved to GH16:04
zygacjwatson: we have a GH->LP mirror16:05
zygacjwatson: and existing build pipeline in LP16:05
zygacjwatson: I'd like to make the changes move faster for this repo16:05
ogra_the prob is that we would now always have to click the import button on the branch to make sure everything is in sync16:05
cjwatsonLP doesn't accept webhooks yet I'm afraid16:05
ogra_cjwatson, any way to special-case this one branch to run on a shorter schedule at least ?16:05
cjwatsonyou can write something that accepts a webhook and calls the necessary API calls16:05
cjwatsonno sorry16:05
zygacjwatson: could I write a small service that gets poked by GH and then uses LP API to sync?16:05
cjwatsonyes16:05
zygacjwatson: thanks, I think that will do then16:06
cjwatsonsounds like you should be able to use build.snapcraft.io once it's ready16:06
zygacjwatson: can you point me to the API method for updating a git import?16:06
zygacjwatson: yes, I think we want to16:06
cjwatsonhttps://launchpad.net/+apidoc/devel.html#code_import-requestImport16:06
zygacjwatson: does it just set up the (same) process?16:06
zygacjwatson: or does it do something different at some level16:06
cjwatsonthat is part of it16:06
zygacjwatson: or -- can we use it now? (build.snapcraft.io)16:07
cjwatsonit doesn't use code imports, it has LP build directly from the GH repo instead16:07
cjwatsonit's not quite ready16:07
zygahmmmm16:07
cjwatsonLP building directly from the GH repo *requires* webhooks, since LP has no way to detect pushes otherwise16:07
ogra_will it still have a build button ? so you dont have to bump the tree every time you want to trigger a build ?16:08
zygacjwatson: could we change the recipe for the snap so that it only builds from GH and webhooks?16:08
zygacjwatson: or woud something break today/16:08
cjwatsonogra_: not in the current design16:08
ogra_hrm16:08
zygaI think it's fine to keep the rest of the workflow as is16:08
cjwatsonzyga: you might need to create a new snap, I forget16:08
zygawe just need the helper webhook-poke-lp service16:09
cjwatsonzyga: please see the API docs though, I'm swamped with building BSI this week16:09
zygaOK16:09
zygathanks for your help!16:09
cjwatson(we have a short deadline)16:09
ogra_zyga, well,we still want scheduled builds and the ability to build on demand ... we need to make sure thats still existing if we move over16:09
zygaogra_: it will say as is16:09
zygaogra_: I'll just make the GH->LP push happen faster16:09
ogra_zyga, well, regarding the snapcraft.io integration16:09
zygaand we can use that for gadgets as they have the same workflow16:09
cjwatsonwebhook -> code_import.requestImport is the smallest change for you, I think16:10
zygaogra_: nah, we won't need that now16:10
ogra_ok16:10
zygaas cjwatson said :)16:10
mupPR snapd#2892 opened: httputils: ensure User-Agent works accross redirects <Created by mvo5> <https://github.com/snapcore/snapd/pull/2892>16:13
Son_Gokumvo, I'd appreciate if the selinux PR could be merged as soon as reasonably possible, since I'm working on a dependent PR to add centos/fedora packaging to snapd repo16:17
mvoSon_Goku: sure, on it16:25
zygaSon_Goku: hey o/16:26
Son_Gokuthank you16:26
zygaSon_Goku: we had a busy week-end16:26
Son_Gokudid you now?16:26
zygaSon_Goku: I'm falling on my face but I'll tell you once the dust settles16:26
zygaSon_Goku: we'll do a post mortem16:26
Son_Gokusomething terrible happened?16:28
Son_Gokupost mortem implies horribleness16:28
zygaSon_Goku: hehe, kind of, we did do a silly thing that quickly showed up on our radar16:28
zygaSon_Goku: don't do releases on friday they say :)16:28
zygathat's wise :D16:28
Son_Gokuyes, we have a thing at work called "read only Fridays"16:29
Son_Gokudon't do releases on Fridays, as no one likes the hell that it brings16:29
Son_Gokuzyga: for now, be my merge monkey! https://github.com/snapcore/snapd/pull/287816:32
mupPR snapd#2878: Merge SELinux policy module <Created by Conan-Kudo> <https://github.com/snapcore/snapd/pull/2878>16:32
zygaSon_Goku: yeah, I justs asked gustavo to review it16:32
zygaSon_Goku: I need to finish a small branch that needs to go into 2.22.4 quickly16:32
zyga.4 because 2.22 had less luck16:33
Son_Gokumrrrrgh16:33
niemeyerSon_Goku: Heya16:33
niemeyerSon_Goku: Trying to understand the delta in licensing there16:33
niemeyerSon_Goku: What's the rationale for the v2 vs. v3?16:33
Son_Gokuniemeyer: I want it to remain compatible with fedora-selinux16:34
Son_GokuI originally derived the structure from a selinux module from upstream selinux-policy16:34
Son_Gokuthere's literally no reason for me to break license compatibility16:34
niemeyerSon_Goku: If you derived code, shouldn't that be explicit in the (c) notice?16:35
Son_Gokuit also allows for distributions deriving from fedora selinux policies to merge the module into their selinux policy package if they want16:35
Son_Gokuhmm, probably16:35
Son_GokuI can add a line in the notice for Red Hat copyright16:35
Son_Gokuthough I didn't really use much in the way of "code"16:36
Son_Gokujust the skeleton16:36
niemeyerSon_Goku: Yeah, that's the right thing to do.. we still have the option to relicense as v3 per the license terms itself, but then it'd actually be a more clear departure16:36
niemeyerSon_Goku: As it is now it's awkward, because it looks like you're creating code yourself and contributing into snapd with your own license16:37
niemeyerWhich means _that's_ the license "break"16:37
Son_Gokumakefile is mine though16:38
Fohlen-heya there. I am using the python plugin and having some strange issues. The following is happening to me: http://pastebin.com/RZnQP3GY16:38
niemeyerSon_Goku: Sure.. for content you are creating for snapd, the normal thing to do is to license per the project license16:39
Son_Gokuniemeyer: would this work "Skeleton derived from fedora selinux-policy, Copyright (C) 2016 Red Hat, Inc."?16:39
niemeyerSon_Goku: Sounds good16:39
Son_Gokuadding it now16:39
Son_Gokuone sec16:39
Son_Gokuniemeyer: done, rewrote the commit for adding the header to include the extra comment16:42
Son_Gokuhttps://github.com/snapcore/snapd/pull/2878/commits/f04da024b6221f539e50466ac7c6a0a21dcda83716:42
mupPR snapd#2878: Merge SELinux policy module <Created by Conan-Kudo> <https://github.com/snapcore/snapd/pull/2878>16:42
niemeyerLooking again16:42
EEightHi guys, I have a problem with snap and the interface camera:16:43
EEightsudo snap connect myapp:camera ubuntu-core:camera I have this error: snap "ubuntu-core" has no slot named "camera"16:43
zygaEEight: try sudo snap connect myapp:camera16:43
zygaEEight: that does the right thing and it finds the core snap (no longer called ubuntu-core) and the matching interface16:44
EEightwill do but still when snapping it's not working automagically16:44
EEighthttps://bugs.launchpad.net/snapcraft/+bug/160957716:44
mupBug #1609577: Docs: Your First Snap webcam-webui does not work once installed <Snapcraft:New> <https://launchpad.net/bugs/1609577>16:44
niemeyerSon_Goku, zyga: Okay, we should eventually ask jdstrand to have a pass over this, but let's get it in now16:44
Son_Gokuniemeyer: it has no effect for you guys anyway16:46
Son_GokuI didn't wire up the debian packaging to build the module16:46
Son_Gokumainly because I don't know how16:46
niemeyerSon_Goku: Well, of course it does.. that's why we're getting it in! :)16:46
Son_Gokuwell, you guys being ubuntu people :)16:46
niemeyerSon_Goku: We care about distros that depend on selinux too..16:46
Son_Gokubut yes, thanks16:46
Son_Gokuwell, the debian hardened guys will appreciate it once there is a snapd-selinux module for debian, too16:47
Son_Gokuerr, snapd-selinux package16:47
niemeyer+116:47
Son_GokuI did make it debian-safe :)16:47
Son_GokuI'm not mean, after all :P16:47
EEightzyga: yes it's working when sudo snap connect myapp:camera - but of course I cannot ask my user to run this command. Is there a way to make it works out-of-the-box?16:48
zygaSon_Goku: woot, thanks for working on this for so long :)16:48
* Son_Goku sighs16:48
zygaEEight: yes, your snap can contain a declaration that will make this happen by default16:48
Son_GokuI learned a lot about selinux verbiage16:48
zygaEEight: it is something the store can give you, I'm not sure what is the process for this16:48
zygaEEight: I think that jdstrand is the best person to ask; he should be around tomorrow16:49
Son_Gokuniemeyer: I'd be super pleased if snapd's official dsc packaging also shipped the selinux module16:50
zygaSon_Goku: I think we can look at that for debian 1016:50
Son_Gokuzyga: it can also be available as stretch backports16:50
niemeyerSon_Goku: I don't know all the details involved, but on principle it certainly sounds fine16:50
zygaSon_Goku: yeah, I think we will polish it release by release16:54
zygaSon_Goku: it would be good to find someone that cares about debian and selinux there16:54
=== hikiko|bbl is now known as hikiko
Son_Gokuoh come on!17:09
Son_GokuI didn't even change anything and travis broke17:09
Son_Gokuzyga, niemeyer: I hate travis :/17:09
zygaSon_Goku: no that's us17:09
zygaSon_Goku: we did some shuffling with the core snap17:09
zygaSon_Goku: busy weekend17:09
Son_Gokuah17:09
zygaSon_Goku: we'll try to revert things to as they were over the next 18 hours17:09
zygaSon_Goku: that's why 2.22.4 goes out soon17:09
zygaSon_Goku: the store was hit with a bug where snapd would download stuff over and over17:09
Son_Gokuthose are the best bugs17:09
zygaSon_Goku: and we looked at preventing that, figuring out why it happens and fixing the issue17:09
niemeyerzyga: That's a massive failure.. what happened there?17:10
zyganiemeyer: in the spread test suite?17:10
niemeyerzyga: I mean, why is the test exploding in that way specifically?17:10
niemeyerYeah17:11
zyganiemeyer: the core snap that is published now has no configure hook17:11
zyganiemeyer: and tests check for that17:11
zygaunless something new broke that was what was failing all day today17:11
zyganiemeyer: mvo wanted not to change the tests for that (federico suggested this)17:11
niemeyerzyga: Ugh :(17:11
niemeyerYeah, well.. it does sounds sane.. we want this working17:11
niemeyerLet's get 2.22.4 out then17:12
zyganiemeyer: the idea is that now we send and update that gives us visibility into errors and should apply anywhere17:12
zyganiemeyer: and next we enable the configure hook17:12
zyganiemeyer: and see the actual errors17:12
niemeyer+117:12
zyganiemeyer: so after 2.22.4 is out we'll do .5 that just enables the hook17:12
=== JanC is now known as Guest41946
=== JanC_ is now known as JanC
fgimenezzyga, niemeyer if you need to do a quick local spread run just commenting out the "snap set core refresh.disabled=true" lines in tests/lib/prepare.sh is enough for getting the current master working17:17
fgimenezif the test you run doesn't involve "snap set core", of course17:19
mupPR snapd#2893 opened: tests: bail out if core snap is not installed <Created by zyga> <https://github.com/snapcore/snapd/pull/2893>18:45
mupPR snapd#2892 closed: httputils: ensure User-Agent works accross redirects <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2892>19:34
linggaoHi where  can I find a list of Ubuntu core relases and their dates?  I am trying to trouble shooting something. thanks19:37
King_InuYashazyga_: why did everything fail? https://github.com/snapcore/snapd/pull/287819:54
mupPR snapd#2878: Merge SELinux policy module <Created by Conan-Kudo> <https://github.com/snapcore/snapd/pull/2878>19:54
King_InuYashaoh19:54
King_InuYashathis is related to core snap funkiness19:54
King_InuYashamrrr19:54
linggaoHi all, we are using current snap core (revision version 16.04.1  revision 1226), we got kernal panic when intalling our own snap.19:59
linggaoWe'd like to use an old snap core, how do we find out the old core rease dates so that we can pick the core that was working for us?20:00
linggaobtw, this is for PI2 and PI3.20:03
kalikiana_linggao: snap list core will tell you the revision20:03
kalikiana_If that's what you're asking20:03
linggaokalikiana_,  I know the current version. I would like to get a history of the old revisions.20:04
kalikiana_linggao: To check the previous revisions you can ls /snap/core/20:09
kalikiana_That's the best way I know of to see recent updates20:09
kalikiana_'snap changes' would be what I'd like to say, but it doesn't tell you that20:10
linggaokalikiana_, my node only has 1226.  is there a web site that list all the revisions and their dates?20:12
zyga_King_InuYasha: hey21:11
King_InuYashahey21:11
zyga_King_InuYasha: yeah, we're in an emergency a little and this is expected; it should be back to normal in a day21:11
zyga_linggao: hey, what was the kernel panic?21:12
zyga_linggao: you cannot download releases other than the one that is current I'm afraid21:14
linggaozyga_,  kernel panic happend when mounting our snap. (on pi2 and pi3).  [336032.404195] Unable to handle kernel NULL pointer dereference at virtual address 0000000821:15
linggao[336032.417227] pgd = b66fc00021:15
linggao[336032.422448] [00000008] *pgd=21359831, *pte=00000000, *ppte=0000000021:15
linggao[336032.432174] Internal error: Oops: 17 [#1] SMP ARM21:15
zyga_linggao: can you report this please21:15
linggaozyga_, can we do `snap install --revision xxx core`?21:16
zyga_linggao: no, you can only do that to the snap you own21:16
zyga_linggao: also old core had the same kernel (kernel is a separate snap)21:16
zyga_linggao: so I'm not sure that would help you21:16
=== Mani is now known as Guest46494
linggaozyga_, we know that upgrading to the latest kernel resoves this problem21:18
zyga_linggao: as in latest mainline kernel?21:18
zyga_linggao: do you use the official pi2/3 kernel snap or do you roll your own?21:18
linggaoBut we are trying to go back to see where the problem was. It used to work. We are trying to figure out if it was because of our own snap.21:19
linggaoWe build pi2 images based on your offical pi2/pi3 images.21:20
linggaoIMAGE="ubuntu-16.04-preinstalled-server-armhf+raspi2.img"21:20
linggao    URL="http://cdimage.ubuntu.com/ubuntu/releases/16.04/release/$IMAGE.xz"21:20
linggaoNow we have to run 'apt upgrade' to upgrade to the latest kernl to resolve that problem21:21
linggaoIt uesed to work.21:21
zyga_linggao: ah, I thought you were using core images, those are classic images with snapd21:21
linggaoThat's why we susppect that core could be a problem.21:22
zyga_linggao: in any case, please report the problem21:23
zyga_linggao: attach the kernel log21:23
zyga_linggao: attach the snap if you can21:23
linggaoI have reported a similar problem with snap refresh. https://bugs.launchpad.net/snapd/+bug/166436821:24
mupBug #1664368: snap refresh hangs on arm architecture <snapd:Fix Released> <linux-raspi2 (Ubuntu):Fix Released by p-pisati> <https://launchpad.net/bugs/1664368>21:24
zyga_linggao: that seems to have been fixed21:25
linggaozyga_, when I do 'snap list' I see 'core'.  Was core got installed when I install my own snap?21:27
linggaozyga_, my boss told me to figure out why the old kernel worked before. :(21:28
mupPR snapd#2894 opened: snapstate: allow for 10 retries for the core transition <Created by mvo5> <https://github.com/snapcore/snapd/pull/2894>21:30
zyga_linggao: yes21:31
zyga_linggao: on a deb based system you can install the old kernel deb but those are not kept aroud either21:32
zyga_linggao: if you have it just install it21:33
zyga_linggao: or rebuild it from sure21:33
linggaozyga_, our theory is that since we still use the old kernel, and things get broken, it must be core whcih might be new that caused the kernel panic.  That's why I was looking for old cores to test our theory.21:34
zyga_linggao: well, that's a little odd, the kernel contains nothing that ia a part of the equation21:34
zyga_linggao: you can just mount your squashfs without the core at all21:34
zyga_linggao: if that oopses, it oopses, the kernel is broken21:34
zyga_linggao: there's no core that you need to experiment with this21:35
linggaoThe reason we cannot support the new kernel yet is because it does not work with the onboard widi for pi3.21:35
linggaoI meant wifi21:35
zyga_linggao: did you report a bug about that too?21:35
linggaonot yet.21:35
linggaozyga_, here is the whole story, maybe you can help us figure out why.  We built our pi image on 01/14/2017 beased on http://cdimage.ubuntu.com/ubuntu/releases/16.04/release. It had kernel version 4.4.0-1009-raspi2. We have been testing our snap with this image successfuly until Feb 12th when we start seeing kernel panic during snap mounting. On our side, we have new rleases of for our snaps. We are trying to figure out what ar21:46
linggaoe the variables that cause the kernel panic.21:46
linggaoSo base image is the same, the variables could be the new version of core or our snap.21:48
zyga_linggao: do you update your images?21:49
zyga_linggao: do you rebuild your snap or was it fixed and never ever ever touched since?21:49
zyga_linggao: building squashfs is not very deterministic last time I looked21:50
linggaoWe did not upgrade the bease image (the upgrade was done when we build the pi image on 01-14-2017)21:50
zyga_linggao: if you build a squashfs from same stuff you will not get the same output21:51
linggaoWe keep releasing new revisions for our snap.21:51
zyga_linggao: maybe you found an interesting bug in the squashfs support21:51
zyga_linggao: quick idea, copy your snap to a amd64 kernel21:51
zyga_linggao: and see if that can be mounted21:51
linggaozyga_, no problem on amd64.21:52
zyga_linggao: if that oopes on other architectures then preserve that snap21:52
zyga_linggao: and please report the full backtrace21:52
zyga_linggao: I don't know what realyl oopeses21:52
zyga_linggao: do you have the stack trace?21:52
zyga_linggao: does it reliably oopse on a pi3?21:52
linggaobte, after reboot the pi, the snap got intalled and can work.21:52
linggaoyes, it always gets kernel panic on pi3 now.21:53
zyga_linggao: perfect, keep that pi for analysis, report the issue, have some kernel people looking at it21:54
zyga_linggao: make sure you can oops the kernel just by using mount21:54
zyga_linggao: it's a pure kernel issue21:54
zyga_linggao: and don't change the snap file, it really needs to be that one that oopes21:54
zyga_linggao: if you show me the bug report with the kernel trace I can offer ideas but I'm not a kernel engineer21:56
zyga_linggao: and if you can ooops just with mounting then the core snap is irrelevant21:56
linggaozyga_, the kernel trace is in that bug I have reported. https://bugs.launchpad.net/snapd/+bug/1664368.  They told me to upgrade to the new kernel to see.21:57
mupBug #1664368: snap refresh hangs on arm architecture <snapd:Fix Released> <linux-raspi2 (Ubuntu):Fix Released by p-pisati> <https://launchpad.net/bugs/1664368>21:57
linggaoIt is exactly the same.21:57
zyga_linggao: looks like a bug in the mount system, there were plenty of those fixed21:58
linggaoThe new kernel works. But my boss asked me to find out why old one stopped working.21:58
zyga_linggao: old one was buggy, that snap caused the bug to surface21:58
zyga_linggao: not sure what you want to find out, check which changes landed to namespaces and mount propagatinon21:59
zyga_linggao: but note that you must be able to cause this with mount alone22:00
linggaozyga_, because the new kernel does not work with the onboard wifi for pi3. :-)22:00
zyga_linggao: if you do other things then maybe just new core version mounts more things than before22:00
zyga_linggao: well, have some kernel peopel look at that22:00
zyga_linggao: I don't know about this, we have people use wifi on the current kernel on pi3 all the time22:00
zyga_linggao: even today I think ogra_ was doing this22:01
linggaozyga_, that's good to know.22:01
zyga_linggao: if you want to see what may have changed in the core look at the changes to snap-confine22:02
zyga_linggao: it's in github.com/snapcore/snapd22:02
zyga_linggao: look at cmd/snap-confine there22:02
zyga_linggao: pick your time window, the history contains all the code since day one22:02
zyga_linggao: I don't remember when you said the first image was from22:03
zyga_linggao: I wonder what version of snap-confine was used ont it22:03
zyga_linggao: can you run /usr/lib/snapd/snap-confine --version?22:03
linggaosnap-confine 2.20.1ubuntu122:04
linggaothis is on pi2 which also had kernal panic.22:04
zyga_linggao: and when it worked?22:04
linggaobefore Feb 8.22:05
linggaoJan 14 to Feb 8, it worked.22:05
zyga_you'd have to map those to versions of snap-confine on the system22:05
linggaoI think it broke sometime between Feb 8 to Feb 12.22:05
zyga_linggao: note that core is irrelevant again22:06
zyga_linggao: because snap-confine is a separate package22:06
zyga_linggao: and snapd doesn't use the version from the core22:06
zyga_linggao: let me know what you find otu22:06
linggaoIs it part of the core (snap) ?22:06
zyga_linggao: what?22:07
zyga_linggao: snap-confine, yes, but it is not used22:07
zyga_linggao: it is only used there if you are running an all-snap system22:07
zyga_linggao: (aka a non-classic distro)22:07
linggaosorry, I just want to figure out when snap-confine got installed.22:07
zyga_linggao: snap-confine is a dependency of snapd22:07
zyga_linggao: and nowadays it is a single package22:07
linggaoWas it built in my bease image or is it downloaded when my snap was installed.22:08
zyga_linggao: so core (snap) is not interesting but snapd (debian package) is22:08
zyga_linggao: it's a part of snapd22:08
linggaoThe date of /usr/lib/snapd/snapd is Jan 3.22:09
linggaoThat means it has not been changed.22:10
zyga_linggao: can you mount your snap on the old kernel, without using snapd, to cause the oops?22:10
zyga_linggao: just mount -o ro /path/to/some/snap /mnt22:10
mupPR snapcraft#1154 opened: Expose parallel_build_count to scriptlets (LP: #1666271) <Created by oSoMoN> <https://github.com/snapcore/snapcraft/pull/1154>22:11
=== King_InuYasha is now known as Conan_Kudo
=== Conan_Kudo is now known as King_InuYasha
zyga_Conan_Kudo: what's with the new identity?22:12
linggaozyga_, yes, I can.22:14
zyga_linggao: then this is not core related IMHO, do you agree?22:14
linggaozyga_, I do not know enough to make a decision. :-)22:15
zyga_linggao: remove all of snapd22:15
zyga_linggao: and mount the snap22:15
zyga_linggao: do you see that it is not core related now?22:16
linggaohow to remove all of snapd?22:16
zyga_linggao: just purge the package22:16
zyga_linggao: apt remove --purge snapd22:16
zyga_warning: this will remove all snaps22:16
zyga_and all of their state22:16
=== King_InuYasha is now known as Conan_Kudo
=== Conan_Kudo is now known as King_InuYasha
linggaozyga_, I removed the snapd and did mount again, it worked.22:22
zyga_linggao: ah, that's interesting then22:41
zyga_linggao: so it is not this that is causing the issue22:41
mupPR snapd#2894 closed: snapstate: allow for 6 retries for the core transition <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2894>22:57
mupPR snapd#2895 opened: first pass at client messaging around modes <Created by chipaca> <https://github.com/snapcore/snapd/pull/2895>23:12
mupPR snapd#2896 opened: Headers over redirects <Created by chipaca> <https://github.com/snapcore/snapd/pull/2896>23:48

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