/srv/irclogs.ubuntu.com/2017/11/21/#snappy.txt

gsilvaptI don't know what I did but it worked. Ok, lets get this done00:00
gsilvaptkyrofa, I don't want to do this by hardcoding the string before returning the version number. Besides, it is not testable because the click method will return "run, version xxx \n" and it is not comparable. Any alternative I'm not thinking of?00:07
gsilvaptreturn in the tests00:08
mupPR snapd#4261 opened: test: ignore /snap/README <Created by mvo5> <https://github.com/snapcore/snapd/pull/4261>04:12
mborzeckimorning everyone06:05
mborzeckimvo: https://addons.mozilla.org/en-US/firefox/addon/noscript/versions/06:26
mvohey mborzecki ! yeah, I have it installed already :-D I'm (mostly) a happy puppy again06:29
mborzeckihahaha ;)06:29
mupPR snapd#4261 closed: test: ignore /snap/README <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/4261>06:30
mborzeckiuhh travis killed a job because the log is > 4MB06:36
mborzeckihttps://s3.amazonaws.com/archive.travis-ci.org/jobs/305083520/log.txt?X-Amz-Expires=30&X-Amz-Date=20171121T063527Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJRYRXRSVGNKPKO5A/20171121/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=baac296620d373b75ce53d3ec299699b38b4620d3b9af63ba054c9a679db6d2706:36
zyga-ubuntumvo: thank you for the README branch07:09
zyga-ubuntumvo: how did you run into that issue?07:09
mvozyga-ubuntu: I saw it in travis07:26
zyga-ubuntumvo: do you think it was a random failure? I never saw something like that07:26
zyga-ubuntumvo: shall I merge 4239?07:27
mvozyga-ubuntu: 4239> yeah, please do07:27
mvozyga-ubuntu: I think it was order dependent, yes, i.e. in what order things got run07:27
mupPR snapd#4239 closed: tests: more debug info for classic-ubuntu-core-transition <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/snapd/pull/4239>07:29
mvozyga-ubuntu: ta07:29
mborzeckican you take a look at https://travis-ci.org/snapcore/snapd/builds/304678796 ? doesn't make much sense to me07:29
zyga-ubuntulooking07:30
mborzeckirm -rf /var/lib/snapd fails with : cannot remove /var/lib/snapd: Directory not empty07:30
zyga-ubuntuhmm07:30
zyga-ubunturight07:30
zyga-ubuntuno idea, I wish we had debug07:31
mvomborzecki: definitely strange, I suspect something is writing to the dir, so the rm(all_files_in_$dir), rmdir($dir) step fails because something sneaked files in but that is just a guess. indicates something was not stopped properly07:31
mborzeckiand it's rm -rf, that really stops for nothing07:32
zyga-ubuntumborzecki: yeah07:32
mborzeckii'll restart the build07:32
mvopedronis: slightly crazy question - do you think we should have a "overlord/refreshstate", i.e. move all the refresh related bits out of snapstate into their own manager?07:32
mvopedronis: I'm slightly unhappy about the mixing we have in snapstate currently and wonder about the best way to untangle07:33
mvomborzecki: thanks07:33
mvomborzecki: http://paste.ubuntu.com/26010609/ will (sometimes) produce the same error: write(2, ": Directory not empty", 21: Directory not empty)   = 2107:38
mvomborzecki: so maybe/probably racy but the interessting question is of course what is left running and writes to that dir :/07:38
mborzeckiyeah, something must have been created between opendir() & listing and before rmdir()07:41
zyga-ubuntuvery curious07:42
zyga-ubuntumvo: actually07:42
zyga-ubuntumvo: the & is sufficient07:43
zyga-ubuntumvo: no wonder this fails07:43
* zyga-ubuntu didn't see it on initial read07:43
mvozyga-ubuntu: you mean http://paste.ubuntu.com/26010628/ is the easier to read version? yes, I think you are right07:44
mvozyga-ubuntu: also fails more reliable :)07:44
zyga-ubuntuyes, it's the same deal07:44
zyga-ubuntumvo: rm -rf is userspace, so we open and unlink elements recursively07:45
mvozyga-ubuntu: *nod*07:45
mvozyga-ubuntu: indeed07:45
zyga-ubuntumvo: but there is a concurrent writer that adds new entries07:45
mvozyga-ubuntu: yes, I really wonder what we kept running07:45
zyga-ubuntuprobably snapd07:46
mvozyga-ubuntu: hm, if we don't stop that that would be bad indeed, I have not looked yet but that sounds like something to dig into07:47
mborzeckithe test that failed was linode:ubuntu-14.04-64:tests/main/refresh:strict_fake and i think it failed in prepare step07:48
zyga-ubuntumborzecki: the problem is often the order of execution07:49
zyga-ubuntumborzecki: one test that ran 100 steps earlier may have failed to clean up07:49
* mvo is depressed about this07:49
zyga-ubuntumvo: I once patched spread to collect system info after each test07:50
mborzeckihow does spread 'soread' the tests? is it node per test or a bunch of tests per node?07:50
zyga-ubuntumvo: and before first test07:50
mvowonder if we should look into doing crazy stuff like runing things inside a systemd-run context that we can fully clean again07:50
zyga-ubuntumborzecki: it's N/constant where constant is number of machines of given type07:50
mvozyga-ubuntu: aha, yeah, that would be useful07:50
zyga-ubuntumvo: I think we cannot afford do that07:50
zyga-ubuntumvo: but I also think we cannot afford do not do something07:50
mvozyga-ubuntu: heh07:50
zyga-ubuntumvo: tests are just failing 90% of the time07:50
mvomborzecki: spread uses a work-steal model, not sure if that was the question though07:51
mvozyga-ubuntu: yeah, currently tests are really in a bad shape, its very annoying07:51
mborzeckimvo: ta07:52
mborzeckias for the state of the tests,  travis failing the job because the log > 4MB is also quite hilarious :)07:54
zyga-ubuntuhmm07:55
zyga-ubuntumvo: do you remember my qemu snapshot code07:55
zyga-ubuntumborzecki: yes07:55
zyga-ubuntumborzecki: and the silly and very very slow javascript code that displays it07:55
zyga-ubuntumborzecki: the "full log" link should be at the top, not at the endless bottom07:55
mborzeckihahah, yeah, all the parallelism work on ff and travis ui is still quite a challenge07:56
zyga-ubuntumvo: the LXD approach didn't work (yet), after discussing with jdstrand he suggested a hybrid of an earlier approach with some code in snap-confine (current approach was effectively unconfining s-c)07:56
mborzeckizyga-ubuntu: there's raw log button on the right07:56
zyga-ubuntumborzecki: oh, I didn't see one07:56
mvozyga-ubuntu: hm, interessting (and also slightly sad). but at least there is a way forward07:58
pedronismvo: if you think  that it helps clarity it's worth a try08:12
mvopedronis: thank you, I think I give it a shoot and see what it looks like (as an experiment)08:15
pedronis#4158 needs a 2nd review btw08:30
mupPR #4158: snapctl: don't error out on start/stop/restart from configure hook during install or refresh <Created by stolowski> <https://github.com/snapcore/snapd/pull/4158>08:30
kalikianahrmpf, what a great start in the day, ecrypts bug corrupted my filesystem, now hopefully back to normal09:09
ikeyow09:10
mupPR snapd#4262 opened: store: do not log the http body for catalog updates <Created by mvo5> <https://github.com/snapcore/snapd/pull/4262>09:15
=== __chip__ is now known as Chipaca
zyga-ubuntumvo: I'm looking into test failures, I'm patching spread and working with our test suites09:55
mborzeckireally wish the check package had subtests like `testing.T.Run()`09:55
zyga-ubuntumborzecki: yeah, agreed09:57
zyga-ubuntumborzecki: gustavo maintains check so ... probably we can patch it09:58
mborzeckii suppose09:58
mvomborzecki: pardon my ignorance but could you expand on the subtests a bit, a link or something?10:00
mborzeckimvo: https://godoc.org/testing#T.Run10:00
* mvo looks10:00
mborzeckilet me find a snippet10:00
mvomborzecki: aha, interessting. I think I get the idea10:01
mborzeckithe nice thing is that go test -run  will match agains subtest names10:01
mborzeckimvo: https://github.com/mendersoftware/deviceauth/blob/master/api/http/api_devauth_test.go#L868 for instance this function will appear as TestApiDevAuthGetLimit/0, TestApiDevAuthGetLimit/1, TestApiDevAuthGetLimit/2..10:03
mvomborzecki: you can run a subset of the tests with check via "go test -check.f names"10:03
mvomborzecki: but of course not as powerful as I think what subtests are doing10:03
mvomborzecki: aha, nice10:04
mborzecki-check.f is not helpful if there's a list of test cases and you loop over them10:04
mvomborzecki: yes :/10:04
mborzeckiFYI, I patched the check package to display diffs when values fail Equals, DeepEquals checks, the output looks like this: https://paste.ubuntu.com/26011308/10:23
zyga-ubuntuooh, shin10:25
zyga-ubuntushiny :)10:25
zyga-ubuntuI wasted hours diffing manually over the years10:25
mborzeckiit's obviously nicer if there's a couple of fields: https://paste.ubuntu.com/26011319/10:26
mborzeckii'm using github.com/davecgh/go-spew/spew and github.com/pmezard/go-difflib/difflib10:27
mvomborzecki: very nice10:31
Chipacamborzecki: while you're in there, can you make the output of pointers to structs show the structs and not just the pointers?10:43
zyga-ubuntuoh, yes, that one is bugging me too10:45
Chipacamborzecki: "hahahaha lol no" is a valid answer fwiw10:45
mupIssue snapcraft#1443 closed: new ament plugin (ros2) <designed> <Created by sergiusens> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/issue/1443>10:47
mupPR snapcraft#1583 closed: ament plugin: new plugin <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1583>10:47
mborzeckiChipaca: https://paste.ubuntu.com/26011426/ like this?10:48
Chipacamborzecki: :-D10:50
Chipacamborzecki: that'll do10:50
mborzeckipushed the changes to: https://github.com/bboozzoo/check/commits/bboozzoo/pretty-equals-not-equals10:52
mborzeckinote that it pulls in some extra dependencies, and the check package has none at this moment, I'd guess niemeyer would prefer it this way10:53
mborzeckiFWIW i think we could override Equals and DeepEquals checkers with our own, just assign them in some init() code in the tests10:54
* Chipaca <- drowning in a cascade of changes due to golang#2273911:05
mupPR snapd#4263 opened: overlord/devicestate:  best effort to go to early full retries for registration on the like of DNS no host <Created by pedronis> <https://github.com/snapcore/snapd/pull/4263>11:12
Chipacazyga-ubuntu: remind me, where was it that you called … was it mkdirat? in a loop, you had to open directories in a loop and keep a stack of file descriptors around11:20
pedronisChipaca:   cmd/snap-update-ns/utils.go  ?11:22
zyga-ubuntuChipaca: yes11:22
zyga-ubuntuChipaca: what are you thinking about?11:22
Chipacasiiiigh11:23
Chipacazyga-ubuntu: yes11:23
Chipacazyga-ubuntu: so, i have good news, and bad news for yoou11:23
zyga-ubuntuyes?11:23
zyga-ubuntuI want bad news11:23
Chipacazyga-ubuntu: everywhere you see "uid int" or "gid int", it's wrong11:23
zyga-ubuntuChipaca: pff, ;-)11:23
zyga-ubuntuChipaca: we only use 011:23
zyga-ubuntu;D11:23
zyga-ubuntuChipaca: what should I have used?11:23
Chipacafunc secureMkDir(fd int, segments []string, i int, perm os.FileMode, uid, gid int) (int, error) {11:23
Chipaca^ that signature is wrong in particular11:24
Chipacauint3211:24
zyga-ubuntubut,...11:24
zyga-ubuntu-1 is valid value11:24
zyga-ubuntuso?11:24
* zyga-ubuntu is confused11:24
Chipacazyga-ubuntu: it's only valid because C doesn't give a fuck11:24
Chipacait's actually 0xf...f11:24
zyga-ubuntuChipaca: world is brutal11:24
Chipacabut, in go on 32 bits, it breaks11:24
Chipacazyga-ubuntu: the good news is you probably don't need to change it in a hurry :-)11:25
Chipacai'm doing the cascade of changes in snapd and snap, i'll get to the ones in other places later11:25
Chipacazyga-ubuntu: am i right in thinking snap-update-ns shouldn't use osutil?11:25
Chipacaoh you do already11:26
Chipacazyga-ubuntu: excellent :-)11:26
zyga-ubuntuChipaca: well11:26
zyga-ubuntuChipaca: apply restraint ;)11:27
Chipacazyga-ubuntu: there'll be drop-in replacements with the right signature in osutil/user11:27
Chipacareplacements for chown, fchown, and chownat11:27
zyga-ubuntuChipaca: thank you!11:28
Chipaca*fchownat11:28
brunosferHi guys, does anyone knows a beginner tutorial on how to develop interfaces (slot - plug) between snaps?11:33
zyga-ubuntubrunosfer: hey11:33
zyga-ubuntubrunosfer: it's both easy and complicated, it's easy because it's not very hard but complicated but the way to do it changes over time as code evolves11:34
zyga-ubuntubrunosfer: the best way to do it would be to post a topic on the fourm and look at how interfaces are implemented (look at the source tree in interfaces/builtin/)11:34
zyga-ubuntubrunosfer: and try to implement a new one while talking to us11:34
zyga-ubuntumvo: I have a working and useful tool to measure damage to the test system11:37
brunosferzyga-ubuntu: Hey Ziga, I saw your tutorial and also you video with Kyle and Sergio, but it was a bit too much advanced since I'm not comfortable with golang.11:37
brunosferI'll follow your advice. Thanks11:38
zyga-ubuntubrunosfer: then I don't think you are in a position to implement one, I'd suggest asking on the forum, we routinely implement new interfaces on request11:38
mupIssue snapcraft#1713 closed: catkin plugin: support for building all packages in a given workspace <Created by sergiusens> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/issue/1713>11:38
mupPR snapcraft#1743 closed: catkin plugin: support building entire workspace <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1743>11:38
cachiomvo, hey, running beta validation for 29.411:38
brunosferzyga-ubuntu: Ok, thanks.11:38
cachioso far no issues11:38
zyga-ubuntumvo: what's the best way to list apt packages?  dpkg --get-selections?11:39
niemeyerHellos11:41
zyga-ubuntuniemeyer: o/11:42
zyga-ubuntumvo: I'm now running main to detect problems in the test suite11:48
zyga-ubuntumvo: I also pushed two branches for spread11:48
zyga-ubuntumvo: one is trivial fix, the other is this feature11:49
zyga-ubuntuniemeyer: https://github.com/snapcore/spread/pull/4611:49
mupPR spread#46: Don't crash if suite is empty <Created by zyga> <https://github.com/snapcore/spread/pull/46>11:49
=== gsilvapt_ is now known as gsilva
zyga-ubuntu(the bugfix)11:49
zyga-ubuntuI'll propose the measurement after I get some more data about how it feels to use11:49
zyga-ubuntuthe actual diff is here if you want to see https://github.com/snapcore/spread/compare/master...zyga:measure-each?expand=111:50
gsilvakyrofa: you around?11:51
niemeyerzyga-ubuntu: That's in12:12
kalikianagsilva: he's probably sleeping ;-) maybe I can help you?12:13
zyga-ubuntuniemeyer: thank you12:15
mborzeckiniemeyer: i think there's something wrong with proposed day-in-week timer syntax and it's making the parser unnecessarily complicated, eg. mon1-wed3 - is that monday in first week until wednesday in 3rd week?12:25
mborzeckiniemeyer: then wed3-mon1 is that wed, 3rd week until monday 1st week, wrap around a month?12:25
niemeyermborzecki: We can forbid this syntax for now, so we can decide later how we want to interpret it, if at all12:27
niemeyerIn other words, N must be >= M on <weekday>N-<weekday>M12:28
niemeyerErm, the opposite12:28
niemeyerIn other words, N must be <= M on <weekday>N-<weekday>M12:28
mvocachio: thanks, keep me updated on the validate results12:46
mvozyga-ubuntu: `apt list --installed` maybe? depends what exactly you need12:47
mvozyga-ubuntu: spread> nice!12:47
zyga-ubuntumvo: yeah, I have something useful now12:47
Chipacazomg, http://git.savannah.nongnu.org/cgit/man-db.git/commit/src/man.c?id=002a6339b1fe8f83f4808022a17e1aa379756d9912:58
Chipaca:-)12:58
niemeyercachio: Coming?13:02
mupPR snapcraft#1747 opened: static tests: enable type checking by use of mypy <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1747>13:11
mupPR snapcraft#1748 opened: kernel plugin: don't assume /lib/firmware is present if !kernel-with-firmware <Created by piso77> <https://github.com/snapcore/snapcraft/pull/1748>13:17
zyga-ubuntusergiusens: woot, thank you for using mypy!13:18
zyga-ubuntusergiusens: I wonder if it found any issues in the code so far13:18
cpaelzerin recent bionic proposed I see13:18
cpaelzerERROR: Syntax Error: Unknown line found in file /etc/apparmor.d/usr.lib.snapd.snap-confine.real line 15:13:19
cpaelzer    include "/var/lib/snapd/apparmor/snap-confine.d"   /etc/ld.so.cache r13:19
zyga-ubuntucpaelzer: interesting, is there a bug?13:19
cpaelzerI think the include has to start with a # right?13:19
zyga-ubuntucpaelzer: AFAIK no, it's just wonk13:19
cpaelzerzyga-ubuntu: well I just happened to see it - no bug yet that I filed at least13:19
zyga-ubuntuwonky13:19
cpaelzerwhen I add a # to include I get things to work13:20
zyga-ubuntucpaelzer: can you pastebin that file?13:20
cpaelzersure13:20
zyga-ubuntucpaelzer: maybe something changed, odd13:20
cpaelzerhttp://paste.ubuntu.com/26012174/13:20
zyga-ubuntucpaelzer: I'm in a call, I'll check it out in a moment (~20 minutes)13:20
cpaelzerI actually wanted to set something else with aa-complain, but that reloads all profiles and the issue shows up13:20
cpaelzeryeah let me know if I can help further, but I think a bionic container with proposed enabled and setting anything via aa-complain should trigger13:21
jdstrandzyga-ubuntu: there needs to be a '#' in front of 'include'13:27
jdstrandzyga-ubuntu: oh nm, I think the paste is probably wrong13:28
jdstrandzyga-ubuntu: there is a missing trailing comma13:28
jdstrand'/etc/ld.so.cache r' should be '/etc/ld.so.cache r,'13:28
jdstrandmeh13:28
jdstrandit was the '#'13:28
jdstrandirc hard13:29
jdstrandyes, this: 'include "/var/lib/snapd/apparmor/snap-confine.d"' needs to be '#include "/var/lib/snapd/apparmor/snap-confine.d"'13:30
* jdstrand wonders how that made it through review let alone spread testing13:30
* jdstrand guesses the cache file was used13:30
zyga-ubuntujdstrand: does it? I read the spec somewhere and # was optional13:31
zyga-ubuntujdstrand: and it passes plenty of tests13:31
zyga-ubuntujdstrand: including one where that file (the included one) is not empty13:31
jdstrandzyga-ubuntu: maybe it is optional in newer parsers? I didn't know it was optional13:31
zyga-ubuntujdstrand: anyway, something is broken, I'm just unsure what13:31
zyga-ubuntujdstrand: aha, that's very likely13:31
jdstrandnow that you mention it, I recall a discussion with upstream where they didn't care for the preprocessor-like syntax. I guess it was fixed13:32
jdstrandcurious that this is on bionic...13:33
jdstrandanyway, add the '#' and it will all work. might be worth an apparmor bug for the inconsistency13:33
ppisatisergiusens: how do i prepare a branch for an hotfix?13:33
zyga-ubuntujdstrand: agreed13:33
ppisatielopio: kalikiana ^13:33
zyga-ubuntujdstrand: hey :)13:33
jdstrandzyga-ubuntu: hello :)13:33
zyga-ubuntujdstrand: I'm not working on features today, I was so fed up with tests not passing I've patched spread and I'm chasing the test suite to find the leaking tests13:34
zyga-ubuntujdstrand: hopefully more green in the end13:34
jdstrandthat sounds wonderful13:34
zyga-ubuntujdstrand: in comparison to constant retries, yes13:35
jdstrandzyga-ubuntu: and in case you feel that is a thankless job. thank *you* :)13:35
ppisatioh, and btw, unit tests appear to be broken:13:35
ppisatihttp://pastebin.ubuntu.com/26012262/13:36
ppisati...13:36
ppisatiImportError: Start directory is not importable: 'unit'13:36
ppisatithat is unrelated from the above hot fix request, it's just that i can't unit test my patch on master due to this failure13:36
kalikianappisati: what do you mean by "for a hot fix"? other than just creating a PR as usual...13:45
kalikianappisati: regarding the tests, it should be `./runtests.sh snapcraft/tests/unit` now13:47
* kalikiana lunch13:51
pedronisniemeyer: I'm taking a walk break, should be back in ~1.5h , likely a bit before14:04
niemeyerpedronis: Sounds great14:05
mvois it just me or is "fedora-25" quite unhappy right now in our spread tests? I get "Error Failed to synchronize cache for repo 'update'"14:05
zyga-ubuntumvo: which is odd since the repo sync should be a NOP for almost EOLed distro14:07
zyga-ubuntumvo: this is something we should raise with linode on that other IRC network14:08
mvozyga-ubuntu: it is pretty consitently failing in my 4256 pr at least, I'm inclined to set to manual but we probably should look into updating to fedora-26 instead14:15
sergiusensppisati I don't understand the question14:17
zyga-ubuntumvo: +1 to set to manual, I will look at it as a part of the reliability focus14:18
sergiusenszyga-ubuntu some mypy issues are just because the graph it creates cannot handle code in __init__.py so there are some workarounds; but it didn't really find anything major (which means us the snapcraft team can pat ourselves in the back)14:18
zyga-ubuntusergiusens: it's also incremental, I cannot wait to see how it plays in the long term on a large codebase14:19
zyga-ubuntusergiusens: and by incremental I mean that as you add annotations the results get more precise14:20
sergiusenszyga-ubuntu yes, right now I am running it as the python plugin for vscode runs it but for the package `mypy --ignore-missing-imports --follow-imports=silent -p snapcraft`14:21
sergiusensgetting rid of missing imports is a bit of a pain to setup as MYPY needs its own PYTHONPATH equivalent, and following imports triggers a bunch of errors on code we do not control :-)14:22
jdstrandniemeyer: hey, when you have a moment could you take a look at https://forum.snapcraft.io/t/mir-kiosk-mir-libs-auto-connection/2452/814:39
jdstrandniemeyer: hey, here is one that needs an architect: https://forum.snapcraft.io/t/manual-review-of-base-snaps/2839/315:02
jdstrandelopio: fyi, https://dashboard.snapcraft.io/dev/snaps/8294/ (ipfs-cluster) has a ton of passing revisions that aren't released15:07
niemeyerjdstrand: Thanks for the pings15:07
jdstrandelopio: oh, nm. that snap was revoked15:08
* jdstrand looks at the other one15:08
jdstrandniemeyer: np15:08
elopiojdstrand: yes, it's now upstream :))15:11
mvoChipaca: hm, I poked a bit at the idea using context but go 1.6 does not have http.Request.Context so this is all a bit cumbersome. or do we know how to workaround this already?15:12
Chipacamvo: we're using x/net/context aren't we?15:12
jdstrandelopio: it was confusing because the alias request didn't include the url to the store, the request came from you, but your snap was revoked15:13
jdstrandI got there eventually15:13
jdstrand(though always including the store url is preferred ;)15:13
pedronisChipaca: but that cheats and doesn't redefine Request to have Contxt15:13
pedronisme is confused15:14
=== cachio is now known as cachio_lunch
pedronisChipaca: ah, no, I'm right, on pre 1.7 it cannot do anything with Request itself15:15
* pedronis was looking at the wrong source file15:16
mvoChipaca: we do, seems just a bit cumbersome compared to go1.7 which has http.Request.{,With}Context()15:16
mvoChipaca: it seems for the approach that mborzecki suggested (check for the context log body flags) in the RoundTrip we need access to a context associcated with the http.request15:17
Chipacamvo: how so? aren't we creating the context ourselves by hand?15:18
Chipacaand passing it by hand15:18
mborzeckiiirc there's httpctx package15:18
pedronisChipaca: it doesn't reach where we need to consult it15:18
mvoChipaca: yeah, what pedronis said15:19
Chipacatime to bump to 1.7! \o/15:19
mvoheh, yeah15:19
pedronisyes15:19
Chipacamborzecki: httpctx is about responses, not requests :-/15:19
ppisatisergiusens: at same point, while working on another patch, someone mentioned that the patch could be eligible as an 'hot fix', something like 2.35.1 instead of waiting for 2.36 entirely15:21
Chipacamvo: in any case, it's a rather large refactor, even if we had 1.715:21
mvoChipaca: yeah, was mostly curious what it would look like15:22
Chipacaah15:22
mvoChipaca: I stop doing that now15:22
Chipacamvo: then try it with 1.7 :-)15:22
kalikianaelopio: are you going to update the beta PR? I was going to check the results but it's behind master now15:22
Chipacaor 1.10 even15:22
mvoChipaca: I did but when I wanted to spread test it things got a bit unhappy15:23
mvoChipaca: anyways, I think I poked at it enough, time to get back to $stuff15:23
sergiusensppisati who said that?15:24
ppisatisergiusens: it was in a comment, during the review of a patch15:24
elopiokalikiana: no, I'm going to propose an alternative.15:25
kyrofagsilva, I am now15:26
pedronisniemeyer: I'm back btw15:26
niemeyerpedronis: Cool.. give me 5 and I'll be with you15:27
mupPR snapcraft#1748 closed: kernel plugin: don't assume /lib/firmware is present if !kernel-with-firmware <Created by piso77> <Closed by piso77> <https://github.com/snapcore/snapcraft/pull/1748>15:30
kalikianaelopio: did I miss a discussion there? I recall you kind of hate that beta exists but the only alternative iirc was PRs with no commits pushed by hand15:34
elopiokalikiana: https://github.com/snapcore/snapcraft/pull/1749/commits/a9c189064a3368c8712408d9bbaf48fe8915e19515:35
mupPR snapcraft#1749:  tests: add a script to run autopkgtests in the ppa  <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1749>15:35
mupPR snapcraft#1749 opened:  tests: add a script to run autopkgtests in the ppa  <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1749>15:36
mupPR snapcraft#1750 opened: kernel plugin: don't assume /lib/firmware is present if !kernel-with-firmware <Created by piso77> <https://github.com/snapcore/snapcraft/pull/1750>15:39
pedronisniemeyer: I'm in snappy-devel15:45
gsilvakyrofa: I replied in the PR my question but I am around if you want to discuss the issue here15:53
kalikianaelopio: aaaaahhhh memory is returning, we did talk about the ppa15:55
=== cachio_lunch is now known as cachio
ppisatikyrofa: i replied to your comment16:07
jamesbensonchipaca: ping....16:07
Chipacajamesbenson: hi16:07
jamesbensonhey!16:07
jamesbensondid you want to try to debug the snap issue?16:07
Chipacajamesbenson: sure16:07
Chipacajamesbenson: does it happen every time?16:07
jamesbensonI'm not the best with network capturing stuff...16:08
jamesbensonyes16:08
jamesbensonhence the real time desire16:08
Chipacajamesbenson: you get an error which includes the url, yes?16:08
jamesbensonthe error was what was detailed in the forum.16:09
jamesbensonit seems I can do everything but snap stuff.16:09
Chipacajamesbenson: and can wget fetch that url?16:10
Chipacaor curl, if you don't have wget16:11
jamesbensonhttps://paste.ubuntu.com/26013102/16:14
mvopedronis: re refactor of the autorefresh to make it easier to follow, how do you feel about something like https://github.com/snapcore/snapd/pull/4161/commits/36b10fc142a9558a1e0db8b543d7d591e6c9feb4 ?if that looks sensible I can do a followup that uses this pattern for catalogRefresh and autoRefresh, that will also make testing this in isolation a bit easier16:15
mupPR #4161: snapstate: add support for refresh.schedule=managed <Blocked> <Created by mvo5> <https://github.com/snapcore/snapd/pull/4161>16:15
cachioniemeyer, tell me when you are ready to work on the images16:16
niemeyercachio: Just trying to spike something quick and will be with you next16:16
cachioniemeyer, sure16:16
jamesbensonchipaca: ^^16:18
Chipacajamesbenson: does it download?16:22
Chipacajamesbenson: i can't tell from that pastebin16:22
Chipacaoh16:22
Chipacajamesbenson: quote the url16:22
Chipacajamesbenson: it has &s in it, that are confusing the shell16:22
pedronismvo: looks reasonable, I think the Ensure call though should go in the main SnapManager ensure, no?16:27
pedronismvo: also it's always passing true to managed which doesn't seem right16:27
pedronisI mean: &store.RefreshOptions{RefreshManaged: true} doesn't look right16:28
mvopedronis: great, thank you. I will work on fixing this and adding proper tests then. should I include it in this PR or do a followup (for easier review)?16:30
pedronismvo: I don't know16:31
pedronismvo: my preference would be as prereqs, not as follow ups  (though that might get tricky merge wise)16:31
mvopedronis: sure, that sounds reasonable, let me do this16:32
mvopedronis: I will deal with the fallout, no worries, whatever is easiest for you to review16:32
pedronismvo: I think  doing this without worrying about managed and doing autorefresh and then reworking current branch would be best for me16:33
mvopedronis: ok16:33
pedronismvo: basically small new feature and refactor first,  new intersting feature on top16:33
mvopedronis: +116:33
jamesbensonChipaca: connects, but just sitting there.  I think it'll time out.16:36
Chipacaah16:36
Chipacajamesbenson: i thought i'd lost you so i wrote it up in the forum16:36
Chipacajamesbenson: so if that hangs, you've got some sort of network issue16:37
Chipacajamesbenson: are you going through a proxy of some sort? (should you?)16:37
jamesbensonso the snap url wget doesn't work...16:38
jamesbensonthe link you mentioned gowget, I can wget16:38
Chipacajamesbenson: right, so on the one hand, this isn't the weird RST issue we saw before16:38
Chipacajamesbenson: it looks more like a routing problem of some sort16:39
jamesbensonchipaca: okay16:39
Chipacanoise][: are you around?16:39
Chipacajamesbenson: given this, i'd hand it off to noise][ (or whoever he recommends) to figure out this aspect of it16:39
jamesbensonokay, thanks a bunch chipaca.  Have a good night, I know it's getting close to closing time ;-)16:40
Chipacajamesbenson: it's either your routing is wrong, or internap's16:40
Chipacanah, still got an hour, but i'm taking a break and then going to be mobile (=> iffy network)16:40
jamesbensonI think everything is good on this side.  ALl of the networking seems to work besides snap stuff...16:41
Chipaca:-(16:41
jamesbensonnoise][: ping16:41
noise][hi16:41
jamesbensonchipaca: yeah, I agree...16:41
jamesbensonhi noise][ , wondering if you could follow me down the rabbit hole and help try to get this fixed ^_^16:42
jamesbensonnoise][: here's the main link: https://forum.snapcraft.io/t/snap-install-fails-in-a-lxd-container-on-an-openstack-vm/2870/816:44
noise][so if that wget is failing, i'd guess it's something with the NAT setup for lxd16:45
jamesbensonessentially, I can install snap conjure-up, and try to deploy kubernetes, but it hangs on a supposed TLS issue... from what it seems, all networking is fine with everything else, except for snap16:45
Shibehey guys I heard that vulkan support was going to be added to snappy is there any status on that?16:45
Shibeor is the pr still not merged?16:46
Chipacanoise][: he was able to wget from people.c.c just fine though16:46
jamesbensonyeah, I can wget everything except for snap stuff.16:46
* Chipaca afk16:47
jamesbensonnoise][:  just did this: http://paste.ubuntu.com/26013236/16:47
mupIssue snapcraft#1751 opened: the go plugin doesn't use go build-snaps <Created by sergiusens> <https://github.com/snapcore/snapcraft/issue/1751>16:48
mupIssue snapcraft#1752 opened: export the arch triplet variable during build time <Created by sergiusens> <https://github.com/snapcore/snapcraft/issue/1752>16:48
jamesbensonnoise][: this is what the status has been for a while wget'ing that new url: http://paste.ubuntu.com/26013260/16:50
mupIssue snapcraft#1753 opened: catkin plugin: support needed for both python2 and python3 <Created by sergiusens> <https://github.com/snapcore/snapcraft/issue/1753>16:51
noise][jamesbenson: for kicks, try: wget 'https://api.snapcraft.io/api/v1/snaps/download/op76VXJUbTyfe4hHtC3apVYfnvN1FdIA_2.snap?cdn=local'16:55
jamesbensonnoise][:  just canceled the other wget (still sitting the same as the paste) issued the one above, works.16:55
noise][ok, so something about the lxc NAT not playing nicely with internap16:56
jamesbensonand this is all within my etcd/0 lxd container.16:56
noise][i assume from outside the container the internap URL works ok?16:58
jamesbensonyes, snap works fine outside16:58
jamesbensonsnap/internap url16:59
jamesbensonnoise][ : ^^17:03
noise][jamesbenson: i'm unable to repro - if you could get a tcpdump of a failing attempt that might help us debug it17:05
jamesbensonokay, can you tell me the commands... I don't do dumps/networking stuff like this much at all.17:05
jamesbensonnoise][: tcpdump -A -vvv host url17:08
noise][1s, let me crack up a sample - I don't do this terribly frequently17:11
niemeyerArgh.. can of worms17:15
noise][niemeyer: ?17:15
noise][jamesbenson: something like:  sudo tcpdump -X -w /tmp/cdn_hang.pcap host 068ed04f23.site.internapcdn.net17:16
niemeyerSorry.. ECONTEXT.. I'm trying something out, and it's turning out to be a can of worms17:16
noise][never fun.. time for a walk maybe :)17:16
jamesbensonnoise][: pastebin it?17:18
noise][jamesbenson: it's a binary, so that's not too workable - can you file a bug at https://bugs.launchpad.net/snapstore and attach the pcap?17:20
jamesbensonnoise][: sure, when should I stop the dump?17:21
noise][a few seconds even after hanging should be enough17:21
jamesbensonnoise][: it's only 24 bytes...17:21
jamesbenson262144 bytes17:22
Shibewhere is repository for snappy located?17:25
Shibeis it on github?17:25
noise][Shibe: https://github.com/snapcore/snapd17:25
kyrofasergiusens, can you take another pass on snapcraft#1725? We'd like to get that in, but you seemed uncertain about it17:28
mupPR snapcraft#1725: tests: share the cache in ros tests <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1725>17:28
mupPR snapd#4264 opened: tests: force delete when tests are restore to avoid suite failure <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/4264>17:35
jamesbensonnoise][: https://bugs.launchpad.net/snapstore/+bug/173366017:36
mupBug #1733660: Snap install fails in a lxd container on an openstack VM <Snap Store:New> <https://launchpad.net/bugs/1733660>17:36
noise][uh, that's weird - 24 bytes17:38
noise][jamesbenson: did you do the tcpdump from within the container also?17:40
jamesbensonyeah, that was inside the container17:40
jamesbensonAgreed, no real data...17:40
jamesbensonyou wanted this url though: 068ed04f23.site.internapcdn.net17:41
jamesbenson?17:41
noise][maybe capturing on the wrong interface - what do you have for networks in that container?17:42
cachiomvo, https://travis-ci.org/snapcore/snapd/builds/304678796#L399617:43
cachiothe job canceled problem again17:43
noise][jamesbenson: i'm away for a bit, if you can manage to get a non-empty capture i'll take a look a bit later17:44
jamesbensonokay17:45
* kalikiana time for a break - will be around for a bit longer tonight, investigating the bugs I was fighting with this week, and available for pings if needed17:47
niemeyercachio: Alright, do you have some time for us to finish these images now?18:00
cachioniemeyer, yes18:00
niemeyercachio: Okay, looking into sid first18:01
jamesbensonnoise][ Chipaca: are you sure, 068ed04f23.site.internapcdn.net is a valid url for the tcp dump?   no packets are captured in anything I do....18:03
niemeyercachio: It's still 200MB over the original image.. I'm going ahead with that, but it'd be nice to figure out why these images are growing so much18:06
cachioniemeyer, I am not sure all the packages that zyga install in that image to upgrade that, I am adding this reasearch in my todo list18:07
niemeyercachio: In theory the update should preserve the image vaguely around the same size18:07
cachioniemeyer, yes, I already cleaned up apt to delete unused packages18:08
niemeyercachio: Okay, debian-sid-64 is up and testable18:09
sergiusenskyrofa get the mypy one in first18:09
cachioniemeyer, running the suite now, in case it works I can change the name in the snapd/spread.yaml18:10
sergiusenskyrofa then rebase ... that has too many things in __init__.py18:10
cachioniemeyer, I'm creating a PR for that18:10
niemeyercachio: Thanks! Looking into debian-9 now18:10
gsilvakyrofa: I'll talk to you soon about how we can use this method to get the same output. I'm not 100% sure yet and I'll bother you again pretty soon :-P18:13
niemeyercachio: debian-9-64 is up as well18:15
niemeyercachio: Please double check that latter one.. the disk name in Linode said "unstable".. perhaps it was just mislabeled, but worth confirming at least18:16
cachioniemeyer, we used unstable as base to create it18:16
cachioniemeyer, that could be the reason18:16
niemeyercachio: Yeah, that name reflects the label name used indeed18:17
cachioniemeyer, should I add debian-9 to the regular snapd execution?18:18
cachioniemeyer, or just sid18:18
niemeyercachio: Sounds worth having the stable revision too18:18
cachiook18:19
cachioniemeyer, perhaps we will need to add extra linode machines to the exec18:19
cachiootherwise we will out of machines18:20
niemeyercachio: Maybe.. but those usually run for a smaller amount of time18:20
niemeyercachio: In the sense that we don't run every single test there18:21
cachioniemeyer, I'll push the change and see how those new images work18:21
niemeyercachio: Either way, it's a good point.. let's keep an eye on it18:21
niemeyerThen let's please look again into Fedora18:22
cachioniemeyer, #426518:28
mupPR #4265: New debian-sid-64 and debian-9-64 images for testing <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/4265>18:28
cachiolet's see how it goes18:28
mupPR snapd#4265 opened: New debian-sid-64 and debian-9-64 images for testing <Created by sergiocazzolato> <https://github.com/snapcore/snapd/pull/4265>18:29
niemeyercachio: Looking into Spread-46 for fedora-26-6418:45
niemeyercachio: That image has *4GB*18:46
niemeyercachio: Our current fedora-25-64 has 1.4GB.. that can't be right18:47
zyga-ubuntuhmmm18:47
cachioniemeyer, is there any way to access to it?18:47
zyga-ubuntuhttps://alt.fedoraproject.org/cloud/18:47
zyga-ubuntubase image is 134MB18:47
niemeyercachio: Yeah, I'm booting it back up18:47
niemeyercachio: Do you still have the reuse data?18:48
niemeyerzyga-ubuntu: That's probably too little (no gcc, etc), but still..18:48
cachioniemeyer, no, but I have the credentials18:49
cachioniemeyer, let me check which are them18:49
zyga-ubuntuniemeyer: they are xz compressed18:49
zyga-ubuntuniemeyer: but around the right size for a cloud image I think18:49
cachioniemeyer, do you have the ip?18:50
niemeyerzyga-ubuntu: Yeah.. it can be more than that.. just 4GB sounds over the top.. we need to aim at around 1GB tops for a complete test image18:50
niemeyer(with gcc, etc)18:50
zyga-ubuntusure, I just wanted to counteweight the 4GB one, that's like a desktop install18:50
niemeyerzyga-ubuntu: That's like a desktop install with pirated movies18:51
zyga-ubuntuniemeyer: haha18:51
zyga-ubuntu:D18:51
cachio:)18:52
zyga-ubuntuniemeyer: wget http::/fedora.org/spins/xmen-2017-xvid.iso ;)18:52
zyga-ubuntu(or whatever the xmas blockbuster is now)18:52
brunosferzyga-ubuntu: Is it possible to create an interface (slot) in a snap and a (plug) on another snap so they can communicate between each other without the need to access the interfaces on snapd?18:58
cachioniemeyer, did you restore that backup image?18:58
brunosferzyga-ubuntu: Is it possible to create an interface (slot) in a snap and a (plug) on another snap so they can communicate between each other without the need to access the interfaces on snapd?18:58
pedronisbrunosfer: no, plug and slot are of an interface and those are all defined in snapd, so they need to be one of the preexisting interfaces or a new one added to snapd19:08
niemeyercachio: Hmm?19:09
niemeyercachio: The system is back up (Spread-46)19:10
niemeyercachio: Not sure if that's what you were asking?19:10
cachioniemeyer, I need the ip to ssh it19:10
niemeyercachio: Still the same: 45.33.35.3019:11
cachioniemeyer, tx19:11
cachioniemeyer, it is weird because the vm is using 2.5GB of disk19:17
cachioso I don't see how the image is of 4GB19:18
niemeyerFragmentation, maybe19:18
niemeyerThe image size is block-level.. it doesn't matter what the actual file sizes are19:19
niemeyerStill, it's a surprising amount of fragmentation togo from 2.5 to 419:20
cachioniemeyer, it is weird19:21
cachiobecause the kernel 4.12 s installed but that image is using the 4.919:21
cachioso, not sure if the changes were applied properly19:22
niemeyercachio: Yeah, that sounds bogus19:22
niemeyercachio: That image was just booted19:22
cachioniemeyer, Neal made that change, I'll ping him once he is online19:22
zyga-ubuntuniemeyer: maybe dd if=/dev/zero of=/zero; rm -f /zero19:22
niemeyercachio: So if there is more than one kernel, one of them can go19:23
zyga-ubuntuniemeyer: should clean unused space19:23
cachioniemeyer, but which shoul be the kernel to use?19:23
niemeyerzyga-ubuntu: Huh?19:23
cachio4.9 or 4.1219:23
niemeyercachio: I would guess the latest19:24
zyga-ubuntuniemeyer: that's what I do before snapshotting a VM image19:24
niemeyerzyga-ubuntu: Okay, but why? :)19:24
zyga-ubuntuniemeyer: it frees lots of blocks that are unused but not full of zeros19:24
zyga-ubuntuniemeyer: makes the image sparse properly again19:24
zyga-ubuntuniemeyer: shrinking it to the actually used space19:24
niemeyerzyga-ubuntu: Hmm... I'd be slightly surprised if a tool meant to create an image wouldn't be doing that in a less crazy way :)19:25
zyga-ubuntuniemeyer: it's like trim or thin provisioning the "cheap" way19:25
zyga-ubuntuniemeyer: oh, you'd be surprised ^_^19:25
niemeyerzyga-ubuntu: But, sure.. we should try it19:25
* zyga-ubuntu keeps fingers crossed :)19:25
cachiozyga-ubuntu, I can clean the old kernel and try that19:26
niemeyercachio: +119:26
cachiozyga-ubuntu,19:29
cachio-bash-4.4# rpm -q kernel19:29
cachiokernel-4.9.3-200.fc25.x86_6419:29
cachiokernel-4.12.14-300.fc26.x86_6419:29
cachiothose are the kernels19:29
cachioinstalled19:29
cachiothe 4.12 seems to be for fedora 2619:29
cachioniemeyer, I am gonna delete the 4.12 in this case19:30
niemeyerHmm19:31
niemeyercachio: I'm a bit confused.. isn't this supposed to be fedora 26?19:31
cachioniemeyer, yes19:32
cachiosorry19:32
zyga-ubuntucat /usr/lib/os-release19:32
niemeyercachio: Ok, so you want 4.12.. 4.9 is from 25 which is the older image we had.. it's all as expected, except for the fact we still have the old kernel around19:33
cachioniemeyer, yess, we have the old kernel running19:33
gsilvaptHow does one write a custom message to use with Click? Using click.command(message='%s test' %s var) returns invalid format19:34
niemeyercachio: Running?19:34
cachio-bash-4.4# uname -a19:34
cachioLinux li985-30 4.9.50-x86_64-linode86 #1 SMP Thu Sep 14 19:28:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux19:34
gsilvaptI'm trying to simplify the example here but I think I have the print statement properly done19:34
niemeyercachio: That's awkward.. it means the right  kernel wasn't properly installed yet19:34
niemeyercachio: Oh, wait19:34
niemeyercachio: SO that's the bug19:35
cachioniemeyer, yes19:35
niemeyercachio: That's *neither* of those versions19:35
cachioseems to be missing the change in grub19:35
niemeyercachio: 4.9.50 != 4.9.319:35
niemeyercachio: No19:36
niemeyercachio: That's a kernel from *Linode*19:36
niemeyercachio: The system in Spread wasn't set up to boot from grub19:36
cachioniemeyer, ok19:36
niemeyercachio: Let me reboot to see if that image works at all19:37
cachionisure19:37
cachioniemeyer, sure19:37
niemeyercachio: I will change on the server end, but we need to tweak in spread.yaml too19:37
niemeyerRebooting19:37
niemeyergsilvapt: Click?  Wow.. :)19:38
gsilvaptniemeyer, the framework used in snapcraft19:38
gsilvaptactually my command is click.echo not click.command19:39
niemeyergsilvapt: Ah, sorry, I didn't know that was a thing19:39
niemeyergsilvapt: Clearly I'm not the right person to answer this question :)19:39
niemeyersergiusens: ^19:39
gsilvapthaha, no worries. Thanks anyway, niemeyer :)19:40
niemeyercachio: Should have booted by now19:40
niemeyergsilvapt: np, Sergio should be able to help you19:40
cachioniemeyer, which is the name of the image?19:40
niemeyerelopio too19:40
niemeyercachio: Which image?19:41
cachiofedora-26-6419:41
niemeyercachio: Are you responding to yourself?  :)19:41
cachioniemeyer, did you create an image to test fedora-26?19:42
niemeyercachio: I meant the machine should have rebooted..19:42
niemeyercachio: The machine you were using19:42
niemeyercachio: Which had the wrong kernel19:42
niemeyercachio: I've rebooted it using grub19:42
cachioah, ok19:42
niemeyercachio: Besides making sure it boots, we still need to clear the old kernel, and to try zyga's suggestion19:43
gsilvaptThank you for pointing it out. kyrofa will help me because he knows what I'm trying to fix here :-)19:43
cachioniemeyer, yes19:44
kyrofagsilvapt, haha, great question, I was actually wondering that myself19:44
gsilvaptkyrofa, my main issue is this: version_options does two things: Get version number and package name.19:45
gsilvaptThat's why when running the tests it prints run, version xxxx19:45
kyrofaRight, give me a sec, let me see19:45
gsilvaptI have the duplicate the method either way, otherwise it will return different things and there is no way we can ensure both methods return the same thing19:45
kyrofagsilvapt, it's a format string19:46
kyrofagsilvapt, try just passing this: %(prog)s, version %(version)s19:46
kyrofaWhich is exactly the default19:47
gsilvaptkyrofa, click.echo() with that just turns the exact string19:47
kyrofa(it's a python2-compatible format string)19:47
kyrofagsilvapt, oh I thought you were talking about the message param to click19:47
gsilvaptWait, when I tested it returned another issue. Lets quickly try that19:47
gsilvaptkyrofa, no, I want to wrap up the 'version' command19:47
kyrofagsilvapt, for click.echo, just do `click.echo('snapcraft, version {}'.format(snapcraft.__version__))19:48
gsilvaptkyrofa, but then that's hard-coding the string and if they change the default in Click, the commands will return different things, no?19:49
kyrofagsilvapt, which is why I suggest you also hard-code the string for Click19:49
gsilvaptAH, ok19:49
gsilvaptI understood it the other way around19:49
gsilvaptlol19:49
kyrofagsilvapt, you're not going to be able to get away without hardcoding something19:50
gsilvaptkyrofa, That's why I got stuck :-)19:50
kyrofagsilvapt, so yeah, hardcode the --version message='%(prog)s, version %(version)' then you can rest assured it won't change19:51
kyrofaErr, message='%(prog)s, version %(version)s' rather19:52
gsilvaptkyrofa, the --version command then should be message= that and version = the command it was already there, right?19:53
kyrofagsilvapt, I'm afraid I'm not sure what you're saying, can you rephrase?19:54
cachioniemeyer, ready20:03
cachiocould you try again20:03
cachiolet's see if the zyga's magic works20:03
zyga-ubuntuniemeyer: any luck with the size?20:08
niemeyerChecking20:09
kyrofasergiusens, elopio snapcraft#1750 needs one more +120:09
mupPR snapcraft#1750: kernel plugin: don't assume /lib/firmware is present if !kernel-with-firmware <Created by piso77> <https://github.com/snapcore/snapcraft/pull/1750>20:09
zyga-ubuntudarn gnome-shell20:10
niemeyercachio, zyga-ubuntu: 1.8GB20:11
zyga-ubuntuniemeyer: before or after?20:11
niemeyerAfter20:12
zyga-ubuntuand before?20:12
cachiozyga-ubuntu, I aplied your magic20:12
niemeyercachio: That's still 400MB more than the last image20:12
niemeyerzyga-ubuntu: 4GB20:12
zyga-ubuntuhoho :D20:12
niemeyerzyga-ubuntu: So yeah, it works20:12
zyga-ubuntucachio: it would be good to compare du from inside the image in the old/new system20:12
niemeyercachio: Can you check where the extra space went into?20:12
zyga-ubuntuniemeyer: you can then use e4defrag to maybe save some minor amount of space20:13
zyga-ubuntuand zero-free again20:13
zyga-ubuntubut I'm happy the old trick still works :)20:13
zyga-ubuntuyou can also use qemu-img if you have access to the raw image20:13
niemeyercachio: We don't have any other image with more than 1.4GB.. I'm a bit concerned with the trend of larger and larger images every time20:14
cachiozyga-ubuntu, I also deleted the old kernel20:14
zyga-ubuntucachio: posting the list of packages could help20:14
zyga-ubuntucachio: and then cross-checking with du (or ncdu if interactively)20:14
zyga-ubuntuso, I'm working from virtual terminals now, I have oodles of ram and it doesn't grow as I type more20:15
niemeyerYeah, should be easy to compare the two images20:15
niemeyercachio: I've booted it back up20:15
cachioniemeyer, zyga-ubuntu also instead of update we could install based on a clean image20:15
zyga-ubuntugnome-shell used ~700 rss for one gnome-terminal buffer + background20:15
zyga-ubuntuand I'm a bit fed up with that now20:15
niemeyercachio: Sure, but we can also just remove the unnecessary packages20:15
zyga-ubuntucachio: yes, start with that cloud image I posted20:15
zyga-ubuntuor compare them20:15
niemeyercachio: In our Ubuntu images, I listed packages by size, and killed things which were obviously unnecessary20:15
zyga-ubuntuncdu is useful for finding hot spots20:16
niemeyercachio: That's why our Ubuntu images are pretty small20:16
sergiusenskyrofa I've answered your question on the mypy one20:16
cachioniemeyer, ok, just give me the new ip20:16
niemeyercachio: It's still the same20:17
niemeyerStepping out to pick up son at school.. biab20:17
zyga-ubuntucachio: I wonder how much space we can save on the debian images20:18
cachioniemeyer, I got the packages installed in the new fedora 2620:22
cachiowith the new kernel20:22
cachiowhich is in 45.33.35.3020:23
cachioi'll check now the old image20:23
cachiodo you know the size of the fedora 25?20:23
jamesbensonwgrant: anything I can do to help with 1733660?20:24
noise][fyi, he's in AU, won't be online for a couple more hrs20:24
noise][but getting a good pcap would be the best help20:25
cachiozyga-ubuntu, niemeyer this is the diff https://paste.ubuntu.com/26014698/20:29
cachiozyga-ubuntu, niemeyer not sure if that diff explains the change in the iamge size20:31
niemeyercachio: Was there no development files at all before?20:34
niemeyergcc, glibc-devel, kernel-headers..20:35
cachioyes, this is just the diff20:35
niemeyercachio: Either way, a quick way to get some space back would be to list packages and order by size20:35
niemeyerSame about disk content20:36
cachioniemeyer, both images have similar space used in the disk20:36
niemeyerThere's usually some very expensive things, and then a long tail20:36
zyga-ubuntucachio: sorry, not sure how to open that in text mode,20:36
niemeyerKilling a few expensive things may be done quickly20:36
cachioniemeyer, what I said is not true}}20:36
niemeyerAnd much more easily than figuring the long tail out20:36
cachioin fedora 25 we are using 1GB and in 26 1.5GB20:37
niemeyerOk, yeah, so suggestions above hold20:37
cachiozyga-ubuntu, https://paste.ubuntu.com/26014698/plain/20:38
cachiodoes it work for you?20:38
zyga-ubuntucachio: I mean, I cannot click on anything, I'm running irssi in plain text console20:38
zyga-ubuntucachio: no wayland20:38
zyga-ubuntuno X20:38
zyga-ubuntuno mir20:38
cachiojust download this url20:39
cachiothat is plain text20:39
jamesbensonnoise][, unable to get a good tcpdump20:39
zyga-ubuntucachio: no copy-paste either )20:39
cachiozyga-ubuntu, :(20:39
zyga-ubuntucachio: and our pastebin is notoriously 2fa annoying20:39
noise][jamesbenson - what does `ifconfig` show for interfaces in your container? and what interface does tcpdump say it is capturing from?20:39
noise][seems really odd to get _nothIng_ otherwise20:40
jamesbensonnoise][ I tried lxdbr0 and also all interfaces, nothing changes...20:41
jamesbensonalso tried tcpdump --list-interfaces20:41
jamesbensonnoise][ that's why I was wondering about the link20:42
noise][hmm. how about `host 068ed04f23.site.internapcdn.net` and then try to `telnet <whatever IP> 443`20:42
noise][seems like you are not even establishing a conn20:42
jamesbensonyeah20:44
jamesbensonI'll try.20:44
roadmrjdstrand: tools r945 are now in prod!20:58
jamesbensonnoise][, even outside of my lxd container, tcpdump isn't gathering any packets.20:59
ikeyuse hastebin.com + haste-it CLI tool21:00
ikeysave farting around with 2FA and browsers21:00
jamesbensonnoise][, I get a _whole_ 7 packets received by the filter, 0 packets captured though.21:01
jdstrandroadmr: \o/21:02
jdstrandroadmr: thanks :)21:02
jamesbensonnoise][ tcpdump: listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes21:03
cachioniemeyer, debian-9 did not work21:05
cachioand 4 tests failed for debian-sid21:05
wgrantjamesbenson: Hey21:20
jamesbensonhey wgrant21:20
wgrantjamesbenson: Just getting up to speed on your issue. Can you confirm that it happens only inside the container, not on the host system?21:21
jamesbensonwgrant: correct, all tests that fail in the lxd, work on the host VM21:21
jamesbensonwgrant, do you have a tcpdump that is ::guaranteed:: to work should everything else work?21:21
wgrantjamesbenson: Cool. Can you grab the output of "ip l" both from the host and from a container?21:21
jamesbensonhost: http://paste.ubuntu.com/26015018/21:22
jamesbensonlxd: http://paste.ubuntu.com/26015019/21:22
jamesbensonwgrant ^^21:23
wgrantAlright, that's probably the problem.21:23
jamesbenson??21:23
wgrantjamesbenson: Your OpenStack instances have a smaller MTU than the standard Ethernet 1500 (see ens3's "mtu 1450"). This is pretty common when the cloud is running on a network substrate that doesn't support jumbo frames. But LXD's default lxdbr0 uses the default Ethernet MTU of 1500, so the container is sending a 1500-byte packet that then can't be sent out ens3. The packet gets dropped, and the connection21:25
wgrantstalls.21:25
wgrantjamesbenson: Try "ip set lxdbr0 mtu 1450" and see if that fixes it21:26
wgranter21:26
wgrant"ip l set lxdbr0 mtu 1450"21:26
jamesbensonwgrant: but my ens3 is internal, my lxdbr0 is my public IP21:26
jamesbensontry that on my lxd?21:27
wgrantOn the host.21:27
wgrantAre you sure lxdbr0 has your public IP? ens3 isn't part of the bridge.21:27
jamesbensonwgrant: fyi: http://paste.ubuntu.com/26015062/. you can see a ton of traffic going through lxdbr021:28
wgrantjamesbenson: Yep, the traffic will go through lxdbr0, but then be dropped when the kernel tries to forward it to the outside world on ens3.21:29
jamesbensonwgrant: 192.168.111.x is openstack internal IP.  10.245.x is floating IP.21:29
jamesbensonhmm... okay21:29
wgrantjamesbenson: The instance never sees the floating IP.21:29
wgrantthe cloud does all the NAT for you21:29
wgrantThe lxdbr0 10.211.50.1 is a subnet that LXD chose for your local containers.21:29
jamesbensonyeah21:29
jamesbenson10.211 is lxd network..21:29
jamesbensonDo I need to kill the lxd containers and redeploy or anything afterwards?21:30
wgrantjamesbenson: You'll likely need to restart the containers, or also change the MTU on all the veths21:31
roadmrjdstrand: hey! that snap you uploaded that triggered a runtime error - could you please do another upload? I want to see if it's what caused an error report I'm seeing21:33
jdstrandroadmr: I just filed a bug21:34
roadmrjdstrand: thanks!21:34
jdstrandhttps://bugs.launchpad.net/snapstore/+bug/173369921:34
mupBug #1733699: invalid snaps that trigger 'runtime-errors' json output are not correctly processed by the store <Snap Store:New> <https://launchpad.net/bugs/1733699>21:34
jdstrandroadmr: note that the urgency is not critical at least from my pov21:34
jdstrandroadmr: because it correctly doesn't auto-approve it.21:35
roadmrjdstrand: aha... yes, that matches the error I'm seeing21:35
jdstrandroadmr: I'm happy to upload another one21:35
roadmrjdstrand: no need, I think this is clear21:35
roadmrjdstrand: you did 3 uploads, right?21:35
jdstrandroadmr: yes. two for test-bad-plugs and one for test-bad-desktop-file21:36
niemeyercachio: What happened there?21:36
niemeyerIn Debian 9, that is21:36
roadmrjdstrand: ok! I was just afraid something was broken... let me see what the store expects and how we can make both parts happy :)21:36
jamesbensonhttp://paste.ubuntu.com/26015114/21:37
cachioniemeyer, not sure, It could not connect to it21:37
jamesbensonwgrant ^^ done21:37
cachioI am gonna debug it21:37
jamesbensonI changed the MTU on all veths.. didn't restart them though21:37
jamesbensonwgrant:  ^_^ export VETH=`ifconfig -s | grep veth | awk '{print $1}'`; for i in $VETH; do sudo ip l set $i mtu 1450;done;21:38
wgrantjamesbenson: AFAIK that should change the other end of the veth too, so it should hopefully work now!21:38
jdstrandroadmr: sounds good. note I'm almost eow til next monday. I could tweak json output if needed, but ping me on privmsg if you need that before monday21:40
roadmrjdstrand: will do21:40
mupPR snapcraft#1747 closed: static tests: enable type checking by use of mypy <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1747>21:40
jamesbensonwgrant: in the lxd lxdbr0 is still set to 150021:41
wgrantjamesbenson: That's the lxdbr0 for the LXD inside the LXD; you can ignore it21:42
jamesbensonwgrant: updated it to 1450 and still times out on `sudo snap install core`21:42
wgrantUnless you are deliberately using nested containers :)21:42
wgrantInteresting.21:43
wgrant"ip l" both inside the container and out again?21:43
jamesbensonjust changed it back to 1500 to check, but seems like it's timingout still....21:43
jamesbensonhost: http://paste.ubuntu.com/26015146/21:43
jamesbensonlxd: http://paste.ubuntu.com/26015151/21:44
wgrantOh21:44
sergiusenselopio kyrofa now that snapcraft#1747 is in you can update the branch locally and run the static tests for the ros cache thing (or do it from github if feeling lazy ;-) )21:44
mupPR snapcraft#1747: static tests: enable type checking by use of mypy <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1747>21:44
wgrantMaybe changing one end of an existing veth doesn't change the other21:44
wgrantjamesbenson: Inside the container, set the eth0@if13 MTU21:44
wgrantAh yeah, confirmed, you need to do both ends (or restart the container)21:45
jamesbensonCannot find device "eth0@if13"21:46
niemeyercachio: Strange. Might be the kernel vs. grub21:46
jamesbensonwhats the command to restart them?21:46
niemeyerThat is, Linode kernel vs. GRUB 2 setup that boots the native kernel21:46
niemeyercachio: In theory the image is exactly the same we snalshotted and that was working21:47
wgrantjamesbenson: Er yeah, the real name is just "eth0" inside the container, sorry21:47
cachioniemeyer, well, I removed the var GRUB and it started, so that's the problem21:47
wgrantjamesbenson: "lxc restart $CONTAINER" from the host, or just sudo reboot from each container21:48
jamesbensonwgrant: hey! it works!21:48
niemeyercachio: Ok, so it probably doesn't have a real Debian kernel in the image itself21:48
noise][\o/21:48
noise][if it's not DNS it's MTU… should have known :/21:48
jamesbensonwgrant: next big q....21:48
wgrantjamesbenson: Great! So the underlying issue here is that LXD should probably try to MTU-match the bridge it creates. You'd have noticed this on any TLS traffic, not just snappy-related stuff.21:49
jamesbensonwgrant: If I want to repeat this (not the bug, but the fix) automatically.  i.e. deploying vm and setting all of this up.  How do I tell conjure-up k8s to use the correct MTU by default21:50
jamesbenson?21:50
stokachujamesbenson: conjure-up doesn't create your bridges21:51
stokachujamesbenson: you'd have to do that via lxc network create21:51
jamesbensonah yeah, and from there it should all work, correct?21:52
wgrantjamesbenson: All you need to do on a fresh instance is set the MTU on lxdbr0 before any containers are started21:52
wgrantEverything will inherit from that.21:52
cachioniemeyer, this is the kernel "Linux debian 4.9.50-x86_64-linode86 #1 SMP Thu Sep 14 19:28:20 UTC 2017 x86_64 GNU/Linux"21:53
niemeyercachio: It needs the full grub setup21:53
niemeyercachio: Wait.. that's not a Debian kernel21:54
niemeyercachio: It needs the full grub setup *and* a kernel :)21:54
cachioniemeyer, hehe21:54
cachiook21:54
niemeyercachio: Otherwise we're not really testing Debian proper21:54
cachioniemeyer, do you know which kernel should we use?21:55
niemeyercachio: The latest one available for the particular distro version21:55
niemeyercachio: Always21:55
cachioniemeyer, ok21:55
niemeyercachio: That means CI is close to where users ought to be21:55
cachioniemeyer, makes sense21:55
cachiook, and about grub, do you need to do anything?21:56
cachioor it is just to configure it in the vm21:57
niemeyercachio: It's just normal setup in the VM21:58
cachioniemeyer, ok21:58
niemeyercachio: The GRUB 2 "kernel" in Linode is really just handing off into the grub that is in the image's MBR21:58
niemeyercachio: So it will be a typical boot otherwise21:59
cachioniemeyer, ah, ok21:59
cachioI am configuring this right now21:59
jamesbensonwgrant: is this command possible then?:   lxc network create lxdbr0 ipv4.address=auto ipv4.nat=true ipv6.address=none ipv6.nat=false mtu=145022:00
wgrantjamesbenson: I think it's bridge.mtu=145022:03
wgrantBut let me test22:03
wgrantjamesbenson: Yeah, "lxc network set lxdbr0 bridge.mtu 1450" works22:04
jamesbensoncool22:04
roadmrjdstrand: still around or did you EOD?22:34
roadmrjdstrand: anyway - I updated the bug with info on how to fix, we just need an extra dict level :)22:37
elopiocjwatson: ping. I think this bug is important because it's breaking the heroku builds: https://bugs.launchpad.net/launchpad-buildd/+bug/173371823:52
mupBug #1733718: truffle fails to build: ENOTFOUND registry.yarnpkg.com registry.yarnpkg.com:443 <launchpad-buildd:New> <https://launchpad.net/bugs/1733718>23:52
cjwatsonelopio: it's also eight minutes to midnight.  will look tomorrow23:52
elopiocjwatson: oh, sorry. Have a good night.23:53

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