/srv/irclogs.ubuntu.com/2018/05/14/#snappy.txt

=== JanC_ is now known as JanC
mborzeckimorning05:04
zygagood morning05:05
mborzeckizyga: hey05:06
zygahow was your weekend?05:06
mborzeckizyga: good, spent no more than an hour in front of the computer throughout the whole weekend05:08
mborzeckioh and i bought a bike, finally replacing my old one :)05:08
zygamborzecki: I spent a few hours yesterday trying to put some life into and old netbook my mom gave me05:08
zygaooh, nice05:08
zygawe managed to clean the garage to make room for the bikes05:09
zygadid a "garage sale" and let go some stuff05:09
zygathe bigger things (old kiddy beds) will likely be picked up this week so we will have all the room available05:09
mborzeckinice05:10
mborzeckibtw. let me show you something05:10
mborzeckizyga: https://i.imgur.com/YM0lCsE.jpg05:13
zygais that the one with folded keyboard?05:14
zygaah05:14
zygano05:14
zyga:)05:14
mborzeckino, unfortunately not05:14
zygaI saw one recently05:14
zygawhat's inside?05:14
mborzeckiasking price was ~30eur05:14
zygapretty low, the cosmetics are nice05:14
zygadid you buy it?05:14
mborzeckinope, bought a road bike instead05:15
zyga:-)05:15
zygaI'm using sports tracker for my biking fun05:16
zygae.g. this https://www.sports-tracker.com/workout/zygmuntkrynicki/5af879cec3d63959d624fc5605:16
mborzeckigot a used bike for ~540eur, with my frugal spending habits, another 30 felt like too much05:16
mborzeckizyga: looks like direct competition to endomondo05:18
zygayeah, plenty of those apps05:18
zygaI've been using it for some time05:18
zygait was working on my blackberry first :D05:19
zygaand it integrates with apple health now so I like it (it tracks my biking in the apple health app)05:19
zygamy wife uses endomodo as well but this one seems like what you get if you pay for endomodo05:19
mborzeckizyga: wonder if you can see this https://www.endomondo.com/users/20483467/workouts/111998246805:23
zygayes05:24
zyganice route :-)05:24
mborzeckithat's the medium loop ;) got a couple of variants between 25-35km, the larger ones are 35-50, but those i can only do on weekends05:25
zygado you go alone or with family?05:30
zygafor us the main limiting factor is how far the kids are willing to go05:31
mborzeckialone mostly05:32
mborzeckiusually have like 1.5-2h of free time, so i can squeeze 25-35km loop05:33
zyganice :)05:35
zygawe usually go on 20km loops at most, also going around Warsaw is not as fluid as there are many street lights and other choke points05:36
zygaI started going south from where we live, where there's fewer people and buildings but I haven't found a good route yet05:36
zygamy plan is to do a longer route along the river and then go back through "lasek kabacki" (a bit off to the west) so that the full loop would be close to 40km but we haven't done that y et05:37
zygaoh btw, I'm going to be off on Thursday, Friday, (this week) Monday, Tuesday and Wednesday (next week)05:38
zygaI need to file that05:38
* zyga -> walk the dog06:23
mborzeckizyga: you entirely sure that the arrow does not go in the opposite direction? :)06:25
zygahaha06:25
zygathe truth has come out :)06:25
mupBug #1484898 opened: device tarball needs to allow setting sysctl defaults <Snappy:Triaged> <https://launchpad.net/bugs/1484898>06:31
mborzeckizyga: another look at https://github.com/snapcore/snapd/pull/4504 when you're back?06:49
mupPR #4504: snap, wrappers: systemd WatchdogSec support <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/4504>06:49
zygaAck06:49
zygaStill walking but close to home now06:49
zygaOr I can just try now06:49
=== pstolowski|afk is now known as pstolowski
pstolowskimornings07:07
mborzeckipstolowski: hey07:07
mborzeckizyga: https://paste.ubuntu.com/p/XTPx5xJFVY/07:11
zygamborzecki: nice :)07:11
zygais that the volume broken by your script?07:12
mborzeckiyes07:12
mborzeckineed to read more about the name checksums07:14
mborzeckigithub slow today?07:32
zygamborzecki: I haven't noticed07:37
zygamborzecki: I'm puzzled by something07:37
zygaI bet it is silly07:37
zyga    if !(strings.HasPrefix(notifySocket, "/") || strings.HasPrefix(notifySocket, "@")) || strings.ContainsAny(notifySocket, `?*[]{}^"`) {07:37
mborzeckihm?07:37
zygaso a string must start with either / or @07:37
zygaand must not have ? and other guys07:37
zygaright?07:37
mborzeckizyga: right07:38
zygaso07:38
zygaif s is the string07:38
zygaand s is "/?"07:38
zygathe first condition will be true, right?07:38
zygaso || will short-circuit and won't evaluate the rest07:39
zygawhich is wrong07:39
zygaam I missing something?07:39
zygaif you add the test for special chars separately07:39
mborzeckizyga: the first condition will be false07:39
zygawh?07:40
zygawhy?07:40
zygastrings.HasPrefix(s, "/")07:40
mborzecki!(..)07:40
zygathat's separate07:40
zygathe condition inside the ( ) will be true07:41
zygathen the ! will negate07:41
zygabut that's separately evaluated07:41
mborzeckizyga: not sure what you're aiming at, you have !(true) || true for /?07:43
zygaoh boy07:43
zygaI'm blind07:43
zygaI didn't notice the () around the first two07:43
mborzeckizyga: or in more detail !(true || false) || true07:43
zygaI though it was around all three07:43
zygaI tweaked the code slighttly07:44
mborzeckimaybe i should separate the cheks to make it more legible?07:44
zygahttp://paste.ubuntu.com/p/zYzt3mW46f/07:44
zygais this okk?07:44
zygaI can push it07:44
mborzeckizyga: maybe s/AARE/illegal characters/ ?07:46
mborzecki(in the error message)07:46
zygameta-characters?07:46
zygainvalid doesn't say much07:46
zygayeaah, wrong but why?07:47
mborzeckihm07:47
mborzeckizyga: "cannot use %q as notify socket path: contains meta-characters" vs "...: contains illegal characters"07:48
zygacontains apparmor meta-characters07:49
zygaor contains one of "..."07:49
zygathat would be explicic07:49
mborzeckioh, the last one07:49
mborzeckizyga: `cannot use %q as notify socket path: contains one of ?*[]{}^"`07:50
zygadoing that07:50
mborzeckizyga: thanks!07:50
Chipacamoin moin07:59
pstolowskio/08:04
zygahey Chipaca, pstolowski08:04
zygamborzecki: question about watchdog08:09
zygadoes systemd enfroce any minimum values08:09
zygamborzecki: what's the resolution there? seconds08:09
zygaah, I see yes08:09
zygais 1 second valid?08:09
mborzeckiyeah, i think so08:10
mborzeckii mean, why wouldn't it?08:10
zygaI'm wondering if putting unreasonable value would be harmful to the system08:10
mborzeckiif you feel like pinging every second and risking being restarted due to a missed ping, then so be it ;)08:10
zygaI just realized we should limit the number of apps in a snap08:11
zygaif we create a snap with 100M services08:11
zygait would harm the system eqaisly08:12
=== chihchun_afk is now known as chihchun
mborzeckizyga: i think it's self regulating, if you put a value too low and miss it and malfunction you'll have the need to regulate it08:12
mborzeckizyga: the same with apps, i'd guess you'd bring down systemd if a snap has ridiculously large number of apps08:12
mborzeckis/apps/services08:13
mupPR snapd#5154 closed: releases: merge 2.32.8 back into master <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5154>08:13
mwhudsonhmm08:22
mwhudsonwhen selecting server snaps to install in subiquity, should the snaps actually be installed?08:22
mwhudsonor should subiquity build a seed.yaml for the installed system?08:22
mwhudsonpedronis: hi, this seems like something you would know? :) ^08:24
Chipacamwhudson: pedronis might not be with us yet08:27
mwhudsonoh right08:27
mwhudsontimezones how do they even08:28
Chipacamwhudson: well, it's 10:30 in his tz08:28
mwhudsonoh08:28
mwhudsonheh08:28
Chipacamwhudson: but it's a national holiday in the helvetic confederacy08:28
mwhudsonah08:29
mwhudsoni guess i should email really08:29
mwhudsonChipaca: 'interdenominational-counterintelligences' lol08:38
popeyTrips off the tongue.08:38
Chipacamwhudson: popey: and that's just unrepresentative-herpetology.~1~, the next version is going to be even better, i hear08:39
ChipacaI'd tell you what channel to get it from, but it won't fit in this margin08:41
mwhudsoni wonder how badly this would break the snap list view i'm making for subiquity08:41
Chipacamwhudson: answering that question is why I made it :-)08:42
Chipacamwhudson: to be clear, package name, version, and summary are max length. Revision in particular is not, because I got lazy.08:43
mwhudsonheh08:43
mwhudsonwhat is the max revision length?08:43
Chipacamwhudson: undocumented08:44
mwhudsonlen(str(sys.maxint))?08:44
mwhudsoni don't know that the store team would be super happy with you uploading billions of reviions08:44
Chipacamwhudson: probably log2((1<<31)-2) or something silly like that08:44
Chipacamwhudson: exactly, too lazy to change country again because of being on the run from the store people08:45
mwhudsonhahaha08:45
mwhudsonok now to make this stuff actually talk to snapd08:48
Chipacamwhudson: what're you writing in?08:49
mwhudsonChipaca: python08:49
mborzeckianyone seen https://paste.ubuntu.com/p/wRXzv8vJQK/ ?08:50
Chipacamwhudson: if you have requests, the http snap uses that + requests-unixsocket08:50
mwhudsonChipaca: that was what i had found with google08:50
Chipacamwhudson: I'm sorry I'm only on par with, and not better than, a multi-billion corporation08:51
mwhudsonChipaca: i trust your recommendation a lot more!08:51
* Chipaca wonders at the wisdom of that08:52
pedronisChipaca: I'm around now, is not a holiday for me (next Monday is)08:54
ryan____hi!08:54
ryan____need help understanding prime and stage08:55
Chipacapedronis: ah! my bad :-)08:56
Chipacapedronis: mwhudson had a question for you about becoming a farmer or something about seeds08:56
Chipacaryan____: that's a bit vague :-) what do you need help with?08:57
pedronismwhudson: either is fine, depends what you can actually do, to install things the system needs to have been booted from the installed fs08:59
mwhudsonpedronis: i have managed to 'boot' the installed system in a container09:00
mwhudsonand then install snaps, even09:01
ryan____understanding whats the difference in purpose between prime and stage.09:01
Chipacaryan____: 'prime' is what the snap ends up as09:03
pedronismwhudson: so  that boot seeds the real system I suppose, the issue there is at also starts the holding period for refreshes which we might want or not09:03
Chipacaryan____: you can even install it using 'snap try'09:03
om26erWhat could cause snap build process to change the signature of a repackaged binary ?09:03
om26ercase: https://github.com/snapcrafters/sublime-text/issues/1609:03
Chipacaryan____: it gets populated from 'stage', which is where parts install to09:03
mwhudsonpedronis: hmm yes09:03
pedronismwhudson: I think both approaches are workable, it's a bit of a matter of what's the speed of one or the other and details like that one09:04
pedronisalso the speed of the first boot after install09:04
Chipacaom26er: differ from what?09:05
ryan____it sounds like a small step from build to prime09:05
om26erChipaca: from the tarball downloaded from the official release channel09:05
mborzeckizyga: any idea what's the status of https://github.com/snapcore/snapd/pull/4369 ? do you still plan to introduce the attribute? (i can look into that if needed)09:06
mupPR #4369: add write permission to optical-drive interface <Decaying> <Created by diddledan> <https://github.com/snapcore/snapd/pull/4369>09:06
om26erthe binary sublime_text under this tar https://download.sublimetext.com/sublime_text_3_build_3176_x64.tar.bz2 is different from what we have in the snap, even though the source is the same. The upstream is concerned chipaca09:06
Chipacaom26er: snapcraft is probably patching the binary using patchelf09:07
Chipacaom26er: is this a classic snap?09:07
om26erChipaca: yes, that's true09:07
Chipacaom26er: which is true09:07
om26erhmm, would need to add https://github.com/snapcrafters/android-studio/blob/master/snap/snapcraft.yaml#L31 ?09:07
om26erChipaca: we need some kind of articulated response to the upstream on that one.09:08
Chipacaom26er: who is creating the snap?09:08
om26erChipaca: we (snapcrafters)09:08
Chipacaom26er: so, you need to figure out what you're doing to the binary, and explain it to them09:09
=== chihchun is now known as chihchun_afk
om26erWimpress: ^09:09
popeyWassup?09:11
om26erI kind of was not expecting the signature to change, so someone with more knowledge of why and how that is happening could produce a better response :)09:11
om26erpopey: https://github.com/snapcrafters/sublime-text/issues/1609:11
Chipacaom26er: if it's running patchelf, it's changing the binary; if it's changing the binary, its signature will change09:11
Chipacaand if patchelf is causing crashes on linux, it's doing it wrong09:12
popeyyou can disable patchelf09:12
zygamborzecki: that is blocked on a decision by gustavo09:13
popeyom26er: use the build-attributes -no-patchelf09:13
zygasorry, I was afk for a moment, we're giving away baby gear and a friend came over for a summer kiddy bed09:13
popeyom26er: see android-studio09:13
om26erpopey: sure, we did that for Android Studio a bit ago, it was not starting at all.09:13
om26eryeah09:13
om26erI will do a PR but would be better if you could write on that issue popey09:14
=== chihchun_afk is now known as chihchun
mupPR snapd#5134 closed: Shrink image generated with snap prepare <Created by kubiko> <Closed by kubiko> <https://github.com/snapcore/snapd/pull/5134>09:20
popeyom26er: ok leave it with me09:26
Chipacapopey: resurrecting #1739097 if you could give it a read09:28
mupBug #1739097: "This leaves <snap> tracking edge." <snapd:In Progress> <https://launchpad.net/bugs/1739097>09:28
om26erI do have a PR though https://github.com/snapcrafters/sublime-text/pull/17 but I still am not able to build it because snapcraft eats 100 cpu during build and never gets further.09:28
mupPR snapcrafters/sublime-text#17: Dont use patchelf <Created by om26er> <https://github.com/snapcrafters/sublime-text/pull/17>09:28
Chipacaom26er: I'd suggest checksumming that before declaring it fixed09:30
Chipacaom26er: also, dude, if you don't explain _why_ you're doing a change, how do you remember why you did things a year from now?09:30
popeyom26er: hang fire for now. I'm building and testing locally09:33
popeyI'll respond to upstream09:33
om26erpopey: yep, that would make sense.09:34
om26erChipaca: I added some description now, thanks for the reminder.09:35
mupPR snapd#5134 opened: Shrink image generated with snap prepare <Created by kubiko> <https://github.com/snapcore/snapd/pull/5134>09:40
mborzeckipstolowski: is https://github.com/snapcore/snapd/pull/4968 still blocked?09:51
mupPR #4968: ifacemgr: remove stale connections on startup <Created by stolowski> <https://github.com/snapcore/snapd/pull/4968>09:51
pstolowskimborzecki: nope, let me merge master back09:52
mborzeckiok09:52
mborzeckilooks like google:ubuntu-16.04-32:project is failing, is the image broken? i'm suspecting the apt lock file was left behind09:53
mborzeckiheh, when starting manually project prepare on ubuntu-16.04-32 works just fine10:07
zygamborzecki: maybe unattended updates?10:53
* zyga needs more coffee 10:59
Son_Gokuzyga, did cachio finally get the f28 google images up?11:09
zygaI haven't touched that, I will ask cachio when he shows up11:09
Son_GokuI had to spin new packages yesterday due to failing scriptlet: https://copr.fedorainfracloud.org/coprs/ngompa/gce-oslogin/build/753629/11:09
zygathank you again for preparing that package11:09
zygamy main focus this week is to go through the reviews11:10
Son_Gokugce-oslogin was a crappy package11:11
Son_Gokubut I fixed it: https://copr-be.cloud.fedoraproject.org/results/ngompa/gce-oslogin/fedora-rawhide-x86_64/00753629-google-compute-engine-oslogin/google-compute-engine-oslogin.spec11:11
zygaSon_Goku: I'm not sure how google handles that, can you send your improvements back?11:12
Son_Gokuthey require a CLA11:12
Son_Gokuand I hate signing those11:12
Son_GokuI actually more or less rewrote the spec11:13
Son_Gokuso I should have dropped the ASL license header in the file11:13
Son_GokuI probably will drop it actually11:14
Son_Gokusince my spec file shares ~2-4 lines with the original11:14
Son_Gokuand that's it11:14
kjackalHi snappy people, I have a deb that I should plave in a snap. Normaly that would go into the staged-packages but that specific deb is from a non-bleshed repository, what can I do?11:23
kjackal*place11:24
popeykjackal: you could add it as a part, plugin type dump, source, url to the deb.11:29
kjackalthanks popey, do you happen to have an example yaml for that?11:30
kjackalpopey: something like this: https://github.com/snapcrafters/mattermost-desktop/blob/master/snap/snapcraft.yaml I guess11:33
popeynot off the top of my head, no.11:33
zygahmm11:48
* zyga is stuck with a test failure on code he is hacking 11:48
* cachio afk11:51
* Chipaca lunch11:55
pedronispstolowski: I asked a question about #4767 in your latest forum topic11:57
mupPR #4767: interfaces: disconnect hooks <Critical> <Squash-merge> <Created by stolowski> <https://github.com/snapcore/snapd/pull/4767>11:57
pstolowskipedronis: i saw it, thanks11:57
mborzeckizyga: https://paste.ubuntu.com/p/ydn2KZBTHV/12:33
zyganice12:34
zygaso that's exactly what we tarballed12:34
zygabut created programmatically, right?12:34
mborzecki-rwxr-xr-x 1 root root 8 2018-05-14  uboot.env12:35
mborzecki-rwxr-xr-x 1 root root 8 2018-05-14  uboot.env12:35
mborzeckiyes12:35
mborzeckizyga: i think that core fssck is to blame12:36
zygaI afgree12:37
zygait looks like a bug, clearly, there12:37
mborzeckiwhen i use fsck.vfat from host the entries are looking good12:37
zygahmm12:38
zygahold on, and which fsck are we using?12:38
mborzeckidang, hsot fsck does the same too12:39
mborzeckizyga: well, the one from core right?12:40
Chipacamborzecki: zyga: that's what mvo's patch to dosfstools fixes12:41
Chipacahttps://github.com/dosfstools/dosfstools/pull/8312:41
mupPR dosfstools/dosfstools#83: [RFS] check.c: do lfn_remove  on auto_rename() <Created by mvo5> <https://github.com/dosfstools/dosfstools/pull/83>12:41
mborzeckianyways, fsck 4.1 and 3.0.28 (from core snap) appear to do the same, i end up with 2 entries, one has only shortname (uboot.env) and the other shortname (fsck0000.000) and lfn (uboot.env)12:41
mborzeckiChipaca: right12:42
Chipacaif upstream had at least ACKed the issue we could distropatch it12:42
Chipacaif they don't, we'd have to be a lot more sure about it fixing the core issue12:42
mborzeckionce mounted this appears as 2 files with identical names ;)12:42
mborzecki(should kernel at least display it differently?)12:42
Chipacamborzecki: there are options to mount to control that12:43
Chipacamborzecki: i think the one mvo suggested was win9512:43
Chipaca(if you look for win95 in man mount you'll see the options)12:43
mborzeckiaah, it was in mvo's change, let me try that, i'm using check=s right now12:43
zygatry dosbox12:43
mborzecki-rwxr-xr-x 1 root root 8 2018-05-14  uboot.env12:44
mborzecki-rwxr-xr-x 1 root root 8 2018-05-14  UBOOT.ENV12:44
mborzeckiall ups is the one without lfn12:45
Chipacathis way at least we can point to one or t'other :-)12:45
mupPR snapd#5155 opened: interfaces/apparmor: use strict template on openSUSE tumbleweed <Created by zyga> <https://github.com/snapcore/snapd/pull/5155>12:51
zygamborzecki: so on dosbox things work better?12:51
mborzeckizyga: you can tell which file is which12:52
zygahmm12:52
zygacan we mount things like that in linux?12:52
zygamborzecki, Chipaca: can we land https://github.com/snapcore/snapd/pull/5142 ?12:52
mupPR #5142: many: add "snap debug sandbox-features" and needed bits <Squash-merge> <Created by zyga> <https://github.com/snapcore/snapd/pull/5142>12:52
Chipacazyga: why squash-merge?12:53
zygajunk in history12:53
Chipacazyga: that usually means you want to backport it12:53
Chipacaand that concerns me :-)12:53
Chipacas/backport/cherrypick/12:53
zygano, I don't need that :")12:53
zygamy main motivation is to use that branch12:54
zygato filter tests better once we do the opensuse experiment12:54
zygacachio: would it be hard to add opensuse tumbleweed to CI?12:54
zygacachio: even as a manually used image12:55
zygaI could definitely use it12:55
mborzeckiyup TW makes sense12:58
mborzeckisort of early upgrade of the image is there for arch already, tw could do the same12:59
mborzeckialthough iirc opensuse can do more than 1 kernel installed12:59
niemeyerChipaca, cachio: Coming?13:03
Chipacaniemeyer: trying to13:03
niemeyer:)13:03
Son_Gokumborzecki, Fedora and openSUSE support multiversioned kernel packages13:07
mborzeckiSon_Goku: thanks, fedora i know about, but i didn't remember how suse does it13:07
Son_Gokusame exact way13:07
mborzeckiwell, at least some drstros as sane ;)13:08
Son_Gokupretty much all RPM-based distributions use multiversion/slotted kernel packages13:08
zygapstolowski: feedback con 503213:31
pstolowskizyga: thanks, looking13:33
pstolowskizyga: ouch, thanks, mistake in conflict resolution13:34
zygaW: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-cloud-sdk.list:1 and /etc/apt/sources.list.d/google-cloud-sdk.list:213:34
zygaapart from apt lock being held13:34
* zyga -> lunch 13:35
zygahttps://www.youtube.com/watch?time_continue=1&v=F8nrpe0XWRg <- interesting, so far watched about 1/3rd though13:35
mborzeckioff to pick up the kids14:03
pedronispstolowski: I did a first pass on #4767 , have also some questions there14:08
mupPR #4767: interfaces: disconnect hooks <Critical> <Squash-merge> <Created by stolowski> <https://github.com/snapcore/snapd/pull/4767>14:08
pstolowskipedronis: ty, checking14:09
pedroniszyga: #4889 needs a j-dstrand review ?15:05
mupPR #4889: cmd/snap-update-ns: don't trespass on host filesystem <Created by zyga> <https://github.com/snapcore/snapd/pull/4889>15:05
=== cachio_ is now known as cachio
zygapedronis: not sure, I think it doesn't but we can add one15:46
zygapedronis: jamie is a bit busy lately so I think I will wait for a +1 from gustavo first15:46
cachiozyga, pedronis FYI issue on xenial 32bits fixed15:54
=== chihchun is now known as chihchun_afk
=== pstolowski is now known as pstolowski|afk
zygacachio: what was the issue?16:13
cachiozyga, sometimes when the execution was done from a fast machine16:17
cachiozyga, the system tried to do a release upgrade because it is a new lts16:17
cachiozyga, and it was locking16:18
cachioI updated the file /etc/update-manager/release-upgrades16:18
cachioand the problem is gone16:18
zygathanks!16:20
zyga that is great16:20
cachioI could reproduce it from canonistack16:21
cachiozyga, imposible from here16:21
kenvandineis there a way to unrelease a revision from a specific track using the command line?16:34
kenvandinewe can't use the web UI because the track in question doesn't appear in the web UI16:35
noise][kenvandine: you can either release a different revision to the channel or close it16:35
kenvandinenoise][, ah, then they can release a revision to that track again later?16:39
kenvandinethis is for the esr channel from mozilla, they want to test releasing the snap to esr60/stable then unpublish it until they are sure16:41
kenvandinenoise][, although i'm not sure why :)16:42
noise][kenvandine: yes, they can release to that track/risk and then close it again16:50
kenvandinenoise][, thx16:52
* cachio afk16:54
Chipacattfn peeps16:59
zygarain!17:08
ogra_butter!17:11
mupPR snapcraft#2119 closed: repo: automatically prune unneeded stage-packages <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2119>17:12
threshme dances17:16
threshor rather17:16
* thresh dances17:16
popey:)17:23
zygamborzecki: there?17:50
mborzeckimborzecki: yeah18:02
mborzeckipfff 5080 failed because master changed :(18:02
zygaah18:02
zygaI re-ran tests on nearly all failing branches18:02
zygaand we have very very green set of PRs18:02
mborzecki'merge material'18:03
zygamborzecki: but I wanted to ask about https://github.com/snapcore/snapd/pull/514218:04
mupPR #5142: many: add "snap debug sandbox-features" and needed bits <Squash-merge> <Created by zyga> <https://github.com/snapcore/snapd/pull/5142>18:04
zygait's got one +1 and is green18:05
mborzeckiah, forgot to +1 it18:05
mborzeckibtw. updated #508018:05
mupPR #5080: many: support 'system' nickname in interfaces <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/5080>18:05
zygathanks, looking18:06
zygathanks!18:08
mupPR snapd#5142 closed: many: add "snap debug sandbox-features" and needed bits <Squash-merge> <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5142>18:08
zygait's raining again18:37
zygano bike today18:37
zygait's raining again18:39
zygaah, I'm online now :)18:39
sveinseI'm having problems using docker under snap. When trying to run docker build, I get "unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /var/lib/snapd/void/Dockerfile: no such file or directory"18:41
zygasveinse: ha, that's pretty interesting18:42
zyganotice the path18:42
sveinseit is18:42
zygathe "void" directory is used when the path you were in cannot be represented in snap context18:42
zyga_sveinse: note the path of the Dockerfile, the "void" directory is used when your original path cannot be represented inside the snap18:43
zygaping pong18:43
zyga_(my network is flaky on my laptop)18:44
sveinseStill here :D18:44
zyga_what was your working directory when you ran the command?18:44
sveinsezyga_: My directory containing the Dockerfile. I ran "docker build -t ubuntu:myimage ."18:46
sveinseJust the way I'd use "normal" docker18:46
zyga_right... but was it?18:46
zyga_*what was it18:46
threshis there a prebuilt snapcraft package built from git?18:47
zyga_snapcraft in the edge channel?18:47
thresh...except from snapped version :)18:48
threshI meant ubuntu/debian .deb packages, sorry.18:48
zyga_ah, I see18:48
zyga_well, soon it would work18:48
zyga_(the new snapcraft with virtualization)18:48
zyga_but that's WIP18:48
threshthe reason is I build my snap in a docker container, and this one does not come with systemd as init, etc, which makes snapd unpossible to run18:49
zyga_ah, I see18:49
zyga_sergiusens: ^ is there a ppa with snapcraft deb?18:49
sergiusenszyga: no, we don't do PPAs18:50
sergiusensthresh: you could use snapcore/snapcraft:edge (or look at the docker file for it and adapt yours)18:51
threshrighto18:52
sveinsezyga_: this is the Dockerfile: https://bpaste.net/show/cd8aed8faf0318:52
threshthanks!18:53
zyga_sveinse rather than the contents of the docker file I was asking about its location18:53
zyga_sveinse the "void" directory shows up whenever you are in a directory that doesn't exists from the point of view of the snap's filesystem18:53
zyga_sveinse for example18:53
zyga_sveinse mkdir /foo18:53
zyga_sveinse cd /foo18:53
zyga_sveinse snap run --shell hello-world18:54
sveinsezyga_: /home/sveinse/sp/build/ubuntu/ubuntu-14.04-docker/tmp.docker/18:54
zyga_hmm18:54
zyga_that directory should exist just fine18:54
zyga_can you export SNAP_CONFINE_DEBUG=yes and run the command again?18:55
sveinseI even run "cd $(realpath "$PWD")" prior to calling docker to ensure I'm in a symlink-free path18:55
sveinsezyga_: https://bpaste.net/show/d6e3b95f627618:58
zyga_ha18:59
zyga_DEBUG: cannot remain in /srv/home/common/sp/build/ubuntu/ubuntu-14.04-docker/tmp.docker, moving to the void directory18:59
zyga_your home directory is not /home, it's really /srv/home/common18:59
zyga_is this a NFS mount?18:59
sveinseno, its another partition. I dualbooted between 18.04 pre-release and 17.10, so I had a common partition for all non-distro related home files19:00
zyga_please use a bind mount, this will resolve the issue19:00
zyga_that is, make your home directory really appear in /home, using a bind mount19:01
zyga_that's mount --bind /old /new19:01
zyga_or mount --rbind /old /new if you need recursive19:01
zyga_you can also put this into /etc/fstab19:01
sveinseis *is* a bindmount. I just don't want it at /home or /home/user19:01
zyga_brb19:01
zyga_sveinse it must be in your $HOME19:01
sveinseok, then, sorry, I won't change that now. So I'll revert to the apt based docker then.19:02
zyga_sveinse may I ask why you don't want that to appear as /home/$LOGNAME?19:04
zyga_it's not easy to support arbitrary locations for us19:05
zyga_so I want to know the motivation better19:05
sveinsezyga_: sure, here's my use-case: As said, I have multiple distros running. And my experience with sharing /home between these have failed miserably in the past, so each distro has its own individual /home. So all I have which is worked on from both distros is put in /home/common, which is a bind-mount to a third partition. Everything is then simply symlinked from my to the common dir, which takes 319:08
sveinseminutes to setup.19:08
zyga_sveinse so if you use /home/$LOGNAME as your home (separate home for each distribution) and use /home/common as a bind mount from /srv/whatever it would work again19:08
zyga_do you see what I mean?19:09
sveinseActually the real mount for the /home/common bind mount is actually /srv, so testing that wouldn't be too hard19:10
zyga_you can just bind mount now (without touching your fstab)19:10
sveinsezyga_: wait, I was wrong. I have it oposite. /home/ is bind mount to /srv/home-18.04 and then /home/common being a symlink to /srv/home/common19:13
* zyga_ has IRL interrupt19:14
sveinsezyga_: I gotta go, my time box for this is up, so I have to revert to the other docker. Thanks for your help.19:17
zyga_sveinse o/19:25
popeycoregnnnnnnn19:35
popeycoreinstalling a snap made my x session explode. *again*19:35
jhobbsHow do I set a proxy for snapd, and only snapd, to use? I don't want to set a system wide proxy19:36
jhobbsdo I use "snap set core proxy.https=http://my.proxy" ?19:36
Pharaoh_Atemjhobbs: you can't in Ubuntu19:47
Pharaoh_Atemsince it uses /etc/environment for environment variables19:47
jhobbsPharaoh_Atem: that doesn't preclude applications from having their own proxy settings19:50
mwhudsonjhobbs: i think the snap set thing yes, although i haven't tried to use it, only read the code :)21:51
jhobbsmwhudson: ok, it didn't seem to work for me, and i don't know enough to get any feedback from snapd about whether it's using it or not, so I found a way to do it via environment variables instead - thanks for looking into it21:55
jhobbsreading the code is the one thing i didn't do21:55
mwhudsonheh21:55
mwhudsoni hope to use it soon so well21:55
mwhudsonthere's always a systemd drop-in i guess21:56
jhobbsyes, that's what i used21:56
jhobbshttp://paste.ubuntu.com/p/K8VncJv4vp/21:56
mwhudsonuh by looking at this code calling snap set core proxy.http=... *writes* to /etc/environment21:57
mwhudsonbut i suspect it does not actually update the proxies used by snapd21:59
mwhudson?22:00
mwhudsonso you need to snap set ... and then restart it to get snapd to notice...22:00
mwhudsonjhobbs: oh heh the snap set core proxy.* is only supported on core systems it seems23:35

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