/srv/irclogs.ubuntu.com/2017/07/04/#snappy.txt

=== 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
zygao/07:04
* zyga looks outside at the rainy day07:08
* zyga spends the morning on email and PRs07:29
mvozyga: I updated 3512 - iirc you asked about this last week07:49
zygamvo: looking07:53
zygamvo: I read that, thanks for updating it, I'm worried that tests failed07:55
zygamvo: (not related to branch, linode/travis timeouts)07:55
mvozyga: yes, all tests are currently broken due to linode issues08:07
mvozyga: have you seen the last few posts in https://forum.snapcraft.io/t/test-failures-with-cannot-create-lock-directory-run-snapd-lock/390/28 ? it looks like for thomi the apparmor profile was not correctly loaded for snap-confine. I wonder if this is related to the issues we saw during the sprint when there also was a profile that was supposedly loaded except it was not during one of the spread tests. do you remember the issue?08:08
zygamvo: yes, I do, looking at the forum08:13
zygalooks like apparmor regression to me08:15
zygamvo: but let me look at the data that fgimenez collected to be sure08:15
mvozyga: yeah, I was thinking the same08:15
zygamvo: we collected data before and after a profile load08:15
mvozyga: do you remember what test it was that failed?08:16
zygamvo: home writer one08:16
fgimenezzyga: mvo hey, all the info from the issue last week is in bug #170149408:16
mupBug #1701494: apparmor profiles are eventually not properly generated <snapd:New> <https://launchpad.net/bugs/1701494>08:16
zygahttps://bugs.launchpad.net/snapd/+bug/170149408:16
zygaah :D08:16
* zyga just found the reference08:17
mvofgimenez: nice, thank you08:17
zygamvo: ha08:18
zygavery interesting!!!08:18
mvofgimenez: I changed the title, it was correctly generated iirc, it was valid on disk but not the right one was loaded(?)08:18
zygamvo: the profiles have identical hashes08:18
mvozyga: tell me more08:18
zygaand everything else08:18
mvozyga: wuut?08:18
zyga*except* for raw_data08:18
mvoohh08:18
zygaso it's not the same but only in one of the files08:18
zygaso very buggy on 1st look08:18
zygahashes the same08:18
zygabut not the same raw_data08:18
mvozyga: yeah, I understood, was just puzzled :)08:19
zygaoh no :(08:19
zygasorry, premature happiness08:19
zygatar didn't copy data out of those files08:19
zygathey are size 008:19
zygabummer08:19
zygawe only have raw data because that one was (for whatever reason) copied08:19
zygafgimenez: can you run that loop on pi again please08:20
zygabut this time collect the data with cp and then tar it08:20
zygasysfs can be wonky for tar08:20
fgimenezzyga: sure on it08:20
zygamvo: but one interesting observation08:22
zygamvo: this happened on pi2 with a unchanging kernel08:22
zygamvo: so the only (likely) reason is userspace changes08:22
mvozyga: oh, good point.08:22
zygathe files have largely different content08:22
mvozyga: the last apparmor update is ages old though08:22
zygathere are some blobs here and there that are the same (out of 50KB maybe)08:23
zygabut it's just something else08:23
zygamvo: another possibility is caching issue or cache corrpution08:23
mvozyga: yeah, I was wondering about this, but thomi got this on a classic system08:24
mvozyga: but then, maybe its unreleated08:24
zygamvo: maybe it's an old, existing bug that just (for whatever random reason) happened now more often08:30
zygamvo: I could add a patch to snapd that looks at that data and perhaps records the compiled binary somehow08:34
zygamvo: we could even load it >1 and ensure it is stable08:34
zygamvo: not sure if you think this is worth pursuing08:34
mvozyga: not sure either, maybe we talk first with jj if he has a theory08:35
zygamvo: yeah, good idea08:35
zygamvo: I'll also check the kernel sources and docs to understand why there are two hash files and what they represent08:35
* zyga wonders why apparmor has its own /dev/null file09:09
* zyga reboots and will be back shortly09:10
mupPR snapd#3555 opened: assserts,overlord/assertstate: test we don't accept chains of assertions founded on a self-signed key coming externally <Created by pedronis> <https://github.com/snapcore/snapd/pull/3555>09:14
zygare09:24
ogra_mvo, urgh ... i fired up my pi3 after the sprint yesterday and it got a core update ... now i just installed a new snap and get this:09:26
ogra_ogra@pi3:~$ sudo psplash.psplash-write hello09:26
ogra_/var/lib/snapd not root-owned 1000:100009:26
ogra_ogra@pi3:~$ snap list core09:26
ogra_Name  Version    Rev   Developer  Notes09:26
ogra_core  16-2.26.7  2321  canonical  -09:26
ogra_ogra@pi3:~$09:26
ogra_mvo, i'm relatively sure this image used to work before without issues09:27
ogra_oh,. wait, the code had changed ... but shouldnt i have the fixed core ?09:27
ogra_ah, wait, could be that i messed around with it09:28
ogra_ignore that09:28
mvoogra_: this is edge, thats "ok"09:31
mvoogra_: ish09:31
mvoogra_: please refresh to beta09:31
mvoogra_: actually, wait a sec09:31
mvoogra_: please try "sudo snap refresh --beta core" and reboot, then things should be ok again09:32
mvoogra_: edge is broken right now, fix is scheduled for tomorrow morning09:33
Chipacaspread and travis and linode all hate me09:36
Chipacai think i'm going to go shopping09:36
mvoChipaca: !!!09:37
mvoChipaca: yeah, its in deep hate mode, looks like today is the day for mail and forum (and code reviews :)09:37
mvoChipaca: I think its actually linode that is deep in unhappy land, the rest appears to be fine09:39
mvo(not that this helps in any way)09:39
ChipacaI'm an equal-hate complainer09:39
pstolowskidamn you json09:49
* pstolowski grumbles about json decoding gotchas09:49
zygapstolowski: hmm?09:52
zygaChipaca: don't worry, could be worse09:52
pstolowskizyga, by default json.Unmarshall treats numbers as float64, which gives this https://forum.snapcraft.io/t/snap-set-digits-as-string/1099/309:54
pstolowskizyga, to workaround this, you create a Decoder and do UseNumber() on it09:54
pstolowskizyga, it works nicely for number then. except it breaks on ip addresses :/09:55
Chipacazyga: ¬p ⇏ ¬q, or something09:55
zygapstolowski: aha, indeed09:55
* zyga hugs Chipaca and looks at the pouring rain outside09:55
pstolowskizyga, it wants to treat "1.2.3.4" as a float, and fails09:56
zygapstolowski: but json *is* typed, so just set this as string09:56
zygapstolowski: I think that lacking a schema we should treat everything as a string09:56
pstolowskizyga, well, yeah, problem is we have very little control over that in snapctl arg parsing, you can basically pass arbitrary json to it via commandline and if it parses, it's opaque to us09:59
pedronispstolowski: well,  I don't think it's a JSON problem,   either we just tell people snapctl/snap set take json or we do something more DWIM but then we need to explain the details10:01
pedronisJSON is not yaml, it doesn't have logic to guess if something is a string or not10:01
pstolowskipedronis, thank you!!!10:03
pstolowskipedronis, you made me realize where the problem leis10:03
pstolowski*lies10:03
pstolowskipedronis, ip address needs to be quoted, that's it10:03
pstolowskipedronis, all tests passing now10:03
pstolowskiincluding the new ones I added for integers10:05
pstolowskiall good it seems10:05
=== chihchun is now known as chihchun_afk
zygafgimenez: hey, any luck reproducing that issue?11:28
fgimenezzyga: nothing after 22 executions, i'll keep trying, last week it appeared after 17 and 15 runs, let's see11:29
zygafgimenez: thank you!11:30
zygaI'm working on a tool that would help us understand what is going on if we have the data11:30
* ogra_ hugs sergiusens for updating telegram ... finally no more update notifications :)11:38
sergiusensogra_: you are welcome11:58
sergiusensniemeyer or mvo can you take a quick look at https://github.com/snapcore/snapcraft/pull/1373 which uses an undocumented attr on https://forum.snapcraft.io/t/the-snap-format/698/2?u=sergiusens or https://snapcraft.io/docs/snaps/metadata12:03
mupPR snapcraft#1373: snapcraft.yaml: add support for reload-command and completer directives <Created by bloodearnest> <https://github.com/snapcore/snapcraft/pull/1373>12:03
Son_Gokuzyga, is this the pull with all the stuff? http://lkml.iu.edu/hypermail/linux/kernel/1707.0/01380.html12:08
Son_Gokuit doesn't sound like it...12:09
ogra_Son_Goku, what are you doing here, shouldnt you celebrate your brexit today ?12:10
Son_Gokuhaha12:10
ogra_:)12:11
zygaSon_Goku: it's not everything but this is most of it12:13
zygaogra_: brexit in US?12:13
ogra_zyga, *of* the US ;)12:13
* zyga still doesn't get it12:14
Son_GokuJuly 4 is Independence Day12:14
zygaSon_Goku: I'm in the kernel land all day today, I saw some things are not around yet12:14
zygaSon_Goku: like signal mediation12:14
zygaSon_Goku: ah, I get the brexit now :)12:14
Son_Gokuit was when the Declaration of Independence was signed in 177612:14
* zyga does high-five on Son_Goku 12:14
zygaSon_Goku: imagine the horrors if US was about to exit the EU if it were still a part of the british empire ;D12:15
Son_Gokuheh12:15
Son_Gokuwell, the US has the benefit of potentially being somewhat self sufficient12:15
zygaSon_Goku: and texas would be all pro-independence to stay in EU ;-)12:16
Son_Gokunot many countries can do that anymore12:16
Son_Gokuthe UK is a federation of countries12:16
Son_Gokuso it's already weird12:16
ogra_zyga, nah, texs would form their own coalition with bavaria12:16
zygaSon_Goku: except north korea :-)12:16
ogra_*texas12:16
* zyga thinks this is the perfect time for a cup of coffee and another dive into DFA land of apparmor12:16
ogra_lederhosen with gun pockets and stetson ...12:17
* zyga goes for lunch13:37
pedronismvo: what's the state of snapd#3512  , do we need it for the release? or it's 2.27 related?13:39
mupPR snapd#3512: cmd: avoid using current symlink in InternalToolPath <Created by mvo5> <https://github.com/snapcore/snapd/pull/3512>13:39
mvopedronis: its fine for 2.2713:40
mvopedronis: the snap-seccomp code has its own version of this, this is a generalization13:40
ogra_niemeyer, whee ! our frist spam on the forum (do we have a badge for that ? :P )13:45
ogra_(laste entry in https://forum.snapcraft.io/t/snapd-in-docker/177/14 )13:45
pedronismvo: I marked it for 2.27 for clarity13:48
zygapedronis: I think we want it ASAP13:53
zygamvo: without that we use wrong tools13:53
pedronisheh13:53
pedronisme is confused13:53
pedronisbut will let you sort if out13:53
zygamvo: I'd add it to 2.2613:53
mvozyga: hm, will it cleanly apply to 2.26? if not we need to backport it15:10
mvozyga: hm, hm, what will be the consequence if 3512 is missing from 2.26? slightly worried that it may not make it until tomorrow given how unhappy linode is15:36
niemeyerogra_: Thanks, it's actually not the first one15:41
ogra_well, the first one i see :)15:42
niemeyerogra_: You can flag such posts, so they quickly get sorted15:42
niemeyerIf enough people flag it, it gets away by itself15:42
ogra_ah, k ... i wasnt sure if the flagging does anything apart from notifying me about changes15:42
ogra_the tooltop isnt so clear15:42
ogra_*tooltip15:42
ogra_( "privately ... private" -> should perhaps instead talk about "notifying ... admin" or some such to be more clear)15:44
zygamvo: I think it will cause wrong tools to be used during core migration15:44
zygamvo: if you want I can do that (backport)15:44
=== pbek_ is now known as pbek
mvozyga: if you can, that would be lovely15:44
Chipacaniemeyer: you around?16:05
Chipacaniemeyer: the MBR issue, as far as I can tell, is always on ubuntu-core-16-64. I thought it was spread amongst different ones but at least right now (and since yesterday) it doesn't seem to be16:06
Chipacaniemeyer: this does point to a corrupt image; can you regenerate it?16:06
* Chipaca ~> cuppa tea16:14
niemeyerChipaca: I think it's always on it, actually16:30
niemeyerChipaca: It happens on the "Direct Disk" Linodes, and we only use that to handle core since we need to reboot into the disk without using grub16:30
Chipacaniemeyer: ah. I guess http://pastebin.ubuntu.com/25019305/ isn't that interesting then :-)16:36
niemeyerChipaca: Probably not :)16:38
niemeyerLet me ping Linode again to see what those guys are up to16:38
Chipacaniemeyer: https://giphy.com/embed/11BbGyhVmk4iLS16:48
niemeyerYeah, pretty much16:50
Chipacabrb, reboot16:53
zygamvo: I have that backport, running spread locally now17:43
zygamvo: not sure if it will pass yet17:43
zygamvo: I'll push when it is green locally17:48
mvozyga: thank you very much17:59
zygamvo: so far so good18:10
mvozyga: keep me posted (tomorrow :)18:13
jjohansenzyga: did you ever file a bug for the issue around entering and exiting namespaces?19:12
Son_Gokujjohansen: hey19:23
Son_GokuI saw the news about the apparmor stuff making its way into 4.1319:23
Son_Gokuwhat's left in re snappy apparmor?19:24
jjohansenSon_Goku: I split out any mediation that did exist up stream already. The update was already huge, and I decided if it wasn't all going to make it in it was best to get the base in, and update the existing upstream mediation19:26
Son_Gokucould we see the remaining bits make it in for 4.14?19:26
jjohansenupstream is missing mount controls, network controls19:26
jjohansenSon_Goku: that is the goal19:26
Son_Gokuthat's the kernel that we're targeting for Mageia19:26
Son_Gokuerr, Mageia 719:26
jjohansenyeah, I think everyone is targeting 4.14 as its going to be the next stable kernel19:27
zyga-susejjohansen: hey20:48
zyga-susejjohansen: not yet, I was researching another bug today20:49
zyga-susejjohansen: I have a question about raw_data in sysfs, is there a tool to load and display that?20:49
sergiusensniemeyer: reping about https://github.com/snapcore/snapcraft/pull/137321:19
mupPR snapcraft#1373: snapcraft.yaml: add support for reload-command and completer directives <Created by bloodearnest> <https://github.com/snapcore/snapcraft/pull/1373>21:19
jjohansenzyga-suse: what do you mean by load and display? Do you mean to reverse the policy compile and show it as text?21:46
jjohansenthere is the start of a tool, and I can do some of it, but the really interesting bits will just come out as a dfa state machine, still better than nothing21:47
jjohansenI'll fiddle with it and see if I can't get it pushed some where21:48
zyga-susejjohansen: show the internal format22:05
zyga-susejjohansen: not really decompile, just dump it in readable form22:05
zyga-susejjohansen: can you point me to that?22:05
jjohansenzyga-suse: it isn't any where visible yet. I'll need to do a little cleanup (make sure it even builds atm I haven't touched it for at least a year), and push it up to an apparmor branch, I'll point you at it when I get that done22:11
mupPR snapcraft#1391 opened: tests: reduce the amount of test code in test_meta <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1391>22:58

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