/srv/irclogs.ubuntu.com/2018/10/24/#snappy.txt

=== luk3yx is now known as [air]
=== [air] is now known as luk3yx
mupPR snapd#6033 opened: tests: update parallel-install-store test <Created by mvo5> <https://github.com/snapcore/snapd/pull/6033>02:24
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
mupPR snapd#6034 opened: many: save media info when installing, show it when listing <Created by chipaca> <https://github.com/snapcore/snapd/pull/6034>03:12
mborzeckimorning05:13
mupPR snapd#6035 opened: tests/main/parallel-install-store: the store has caught up, do not expect failures <Parallel installs β›“> <Simple πŸ˜ƒ> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6035>06:08
mborzeckisuper simple ^^06:08
mborzeckiand it unblock spread runs on master06:12
zygaRe06:38
zygamborzecki: we might need a backport06:40
mborzeckizyga: don't know if we can push a single cherry-pick, i'm opening a PR to 2.3606:49
mupPR snapd#6036 opened: tests/main/parallel-install-store: the store has caught up (2.36) <Parallel installs β›“> <Simple πŸ˜ƒ> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6036>06:49
dot-tobias*waves good morning*06:51
zygahey dot-tobias06:52
=== pstolowski|afk is now known as pstolowski
pstolowskimornings07:02
zygao/07:02
mupPR snapd#6035 closed: tests/main/parallel-install-store: the store has caught up, do not expect failures <Parallel installs β›“> <Simple πŸ˜ƒ> <Created by bboozzoo> <Merged by zyga> <https://github.com/snapcore/snapd/pull/6035>07:04
mborzeckipstolowski: hey07:04
mupPR snapd#6033 closed: tests: update parallel-install-store test <Created by mvo5> <Closed by zyga> <https://github.com/snapcore/snapd/pull/6033>07:05
zygacan I get formal reviews on 5987 please07:05
zygaas well as on 6010 if you can07:06
mborzeckihm down to 34 PRs, nice07:14
zygacould be 32 if someone merges my PRs ;-)07:14
zyga(*shameless*)07:14
mborzeckithought i left +1 on 5987 already07:15
pstolowskizyga: looking07:17
zygathank you for reviews in any case :)07:18
pstolowskizyga: not sure about snap-confine-debug change in makefile.am (i'm not clear about background of this); it looks like noinst_PROGRAMS += snap-confine/snap-confine-debug is left intact there, intended?07:22
zygayes, that's so that 'make all' builds it07:22
pstolowskiok07:22
zygamake hack just now installs that debug copy with extra stuff for local work07:22
zygawe still have the non-debug version as before07:22
pstolowski+107:26
* pstolowski runs an errand07:37
zygamore rain today07:41
mupPR snapd#5987 closed: cmd: refactor IPC and lifecycle of the helper process <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/5987>07:47
mborzeckimultipass is a classic snap?07:55
zygaI think it needs kvm08:02
zygaSo ... likely?08:02
mborzeckiaand power outage :/08:03
zygaUh, does that happen often?08:06
mborzeckizyga: quite often during thunderstorms and super windy weather, i was actually surprised that it happened only now given that's been very windy for 3 days now08:08
mborzeckielectricity company will happily take your money but they're not equally keen to replce airlines with underground power cables or fix their distribution transformers08:11
ackkmborzecki, yes it's --classic08:20
mborzeckimultipassd not starting https://paste.ubuntu.com/p/3Zd3zcTrgK/08:24
mborzeckiackk: should i use beta rather than edge?08:25
ackkmborzecki, I've been using edge and it used to work (at least, it did yesterday)08:25
ograzyga, qemu-virgil is using kvm too and doesnt need to be classic ... i think that not caused by kvm08:26
ogra*that's08:26
mborzeckiackk: just for the record, is should work on non-ubuntu systems too, right?08:26
ackkmborzecki, AFAIK classic only works on ubuntu08:27
ackkogra, ^ ?08:27
mborzeckiackk: i mean multipass (whcih is a classic snap)08:27
Chipacazyga: morning08:27
ackkmborzecki, right, I mean I don't think it will because classic snaps only work on ubuntu (AFAIK)08:27
ograackk, afaik you only need to create the /var/lib/snapd/snap to /snap link to make them work on non-ubuntu08:29
ackkogra, but don't classic snaps assume the ubuntu distro layout underneath?08:31
ackkI mean, they probably work on some non-ubuntu distros but ISTR they don't on some08:31
ogradepends how they are built :)08:31
ackkmborzecki, which distro are you using?08:32
ograthis is totally up to the creator ... you can point all library paths to inside the snap08:32
mborzeckiackk: afaiu they should not, oherwise it defats the purpose of having them as snaps08:32
ograthen a classic snap isnt different to i.e. an upstream binary tarball you extract to /opt08:32
Chipaca(morning all)08:33
ackkogra, sure, I mean they might rely on certain binaries to be available on the system. for instance I had a snap published as classic because the app calls "sudo" and that doesn't work in non-classic08:33
ograwell, you could also just fix the app to not do that ;) or design your snap differently (a daemon process managing the elevated bits that a frontend wrapper talks to)08:34
ograthat would even allow you strict confinement ;)08:35
ackkogra, yeah I'm talking about snapping existing apps08:35
ograright, internal sudo calls are a special case where classic is valid08:35
ackkogra, I wonder if there would be a way for core to provide a fake sudo that just forwards the command, so if your app has the right slots it can still do stuff, without using classic08:39
ograthere could perhaps be an interface, yes ... but i bet thats pretty non-trivial to get right in a safe manner, you need to access the passwd db, suoders etc08:40
Chipacawhere were the environment variables that snapcraft exposes during a build documented?08:40
ChipacaI remember somebody asking about this and having to go to github to find it08:41
Chipaca(a docs github)08:41
Chipacadegville: you maybe? ^08:41
zygao/08:41
zygaTook small break for making breakfast for my daughter08:42
ackkChipaca, btw, it seems many links in the table on https://docs.snapcraft.io/snapcraft-yaml-reference are broken (they don't do anything)08:42
Chipacaackk: yep, reported that one08:43
ackkcool, thanks08:43
ChipacaI mean, somebody did08:43
Chipacanot me08:43
degvilleChipaca: is this the one: https://github.com/canonical-docs/snappy-docs/blob/master/reference/env.md08:45
Chipacadegville: similar but the SNAPCRAFT_ ones08:46
degvilleah, ok. I'll look.08:46
degvilleChipaca: https://forum.snapcraft.io/t/environment-variables-that-snapcraft-exposes/7569 ?08:48
chestyhi, on my laptop my default route goes over a vpn and I have a net namespace if I want an application to not use the vpn, ie `sudo ip netns exec novpn gosu me firefox ` or whatever. this doesn't work for snap, how do I make a snap use an alternate routing table?09:07
zygachesty: when you say it doesn't work, what are the symptoms?09:10
chestysudo ip netns exec novpn sudo -u michaelc skypeexecv failed: Permission denied09:11
zygado you see any apparmor denials? dmesg | grep DENIED09:11
chestyyes, [336140.107862] audit: type=1400 audit(1540372346.301:4293): apparmor="DENIED" operation="exec" profile="/snap/core/5789/usr/lib/snapd/snap-confine" name="/snap/core/5789/usr/lib/snapd/snap-exec" pid=27632 comm="snap-confine" requested_mask="x" denied_mask="x" fsuid=1098200003 ouid=009:12
chestyoh, I might need the classic flag?09:13
chestynope, the classic flag didn't help, I did need it to install skype09:13
zygano, this is against snap-confine, not a particular snap09:13
zygahmmm09:13
zygathis is unexpected09:14
zygacan you please pastebin /etc/apparmor.d/snap.core.5789.usr.lib.snapd.snap-confine09:14
chestythe only snap related file in /etc/apparmor.d is /etc/apparmor.d/usr.lib.snapd.snap-confine.real09:16
zygachesty: what does snap version say?09:18
chesty2.36~pre2+git971.73ec9b5~ubuntu16.04.109:19
zygacan you please go to /var/lib/snapd/apparmor/ and look for snap-confine.core.NNN09:19
chestyI believe I install an edge a few weeks ago to fix a bug09:19
zygaand pastebin the profile for the revision 5789 please09:19
ackkogra, I meant, sudo could just let the app make the call and let normal confinement enforce permissions, can't it?09:20
ograno, if you exec inside the snap environment also sudo is confined and wont see the host system unless there is an interface09:21
ackkogra, yeah but I meant replace sudo with a fake sudo09:22
ackkogra, so that "sudo foo" would just run "foo"09:22
ograwell, you still want to elevate your privs somehow09:22
ograor the app wants rather09:23
chestyhttps://pastebin.com/VJRpkgd609:27
mborzeckiyay, building a snap via snapcraft in a vm launched by multipass, all on arch09:35
mborzeckidocs.snapcraft.io doesn't really mention snapcraft + multipass09:48
pstolowskinice!09:51
mborzeckiand it built successfuly!09:58
pstolowskieven nicer!09:59
Chipacadegville: that was it, thanks!10:05
degvillenp. We should make it easier to find.10:06
Chipacayar10:06
dot-tobiasshould I be able to scp something to an ubuntu-core-vm (qemu), or is this not possible? SCP works fine with β€œreal” Core installations, but somehow neither SSH key nor the manually set password for my account on the core vm is accepted. Auth.log in the vm just shows connection attempts. Am I completely off here, or missing something?10:07
Chipacadot-tobias: how do you run the vm?10:07
zygait works but perhaps the way you run the VM is tricky and your network is not properly set up\10:08
Chipacadot-tobias: I use: kvm -m 4G -redir :8022::22 -snapshot -serial stdio ~/Downloads/core18-amd64-18-beta20180823.img10:08
Chipacadot-tobias: I have a "kvm.sanppy" entry in my ~/.ssh/config10:08
Chipacadot-tobias: and i just "ssh kvm.snappy" and it works10:08
Chipacadot-tobias: (that particular invocation is an example only, happened to be the first  one in my history :) )10:09
dot-tobiasChipaca: Using the ubuntu-core-vm as described here: https://developer.ubuntu.com/core/examples/snaps-on-mir10:09
Chipacadot-tobias: ah, never tried that, let me give it a whirl10:10
dot-tobias(my previous message was missing a β€œsnap” after β€œubuntu-core-vm 😊 )10:11
dot-tobiasChipaca: Thanks10:11
=== chihchun_afk is now known as chihchun
ChipacaI need to complain at gerboland (assuming these docs are from them) about using --devmode like this :-(10:12
ogradot-tobias, alternatively you can use qemu-virgil ... (launch instructions are in snap info) ...10:12
popeyogra: why does core not have curl or wget?10:12
ograpopey, dunno ... just snap install mget ?10:13
popeyugh10:13
ackkChipaca, that's also how maas uses it I guess :)10:13
popeyI dont wanna install stuff on a clean system10:13
popeyjust wanna use curl to find out the public IP10:13
tomwardillI've bounced off that before too10:13
mupPR snapd#6037 opened: tests/unit/gccgo: drop gccgo unit tests (2.36) <Simple πŸ˜ƒ> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6037>10:14
ograwell, i dont remember anymore why we didnt ship wget ... security reasons most likely10:14
mborzeckisuper simple ^^10:14
popeyhah, we ship netcat10:15
Chipacapopey: python3 -c 'from requests import get;print(get("https://api.ipify.org").text)'10:15
popeythat'll do, thanks :)10:15
zygamborzecki: is there a way to install python3 on amazon linux?10:18
Chipacadot-tobias: so, using ubuntu-core-vm, you get the initial configure screen, yes?10:18
mborzeckizyga: maybe epel10:19
Chipacazyga: snap install pypy10:19
mborzeckizyga: although iirc epel-7 should be already added to the repos10:19
Chipacazyga: i mean pypy310:19
zygaChipaca: it would need to be classic10:19
Chipacazyga: pypy3 is classic10:19
zygaI may find a way out of this10:19
mborzeckizyga: same problem will be on centos10:20
dot-tobiasChipaca: qemu just shows a black screen, but knowing the setup by heart i just pressed enter until it was configured 😊 Installing mir-kiosk works.10:20
Chipacagrr10:20
Chipacadot-tobias: do you have an nvidia card?10:20
dot-tobiasChipaca: Yes10:20
ChipacagrrΒ³10:20
mborzeckinvidia..10:20
Chipacai have an nvidia card too, today10:20
Chipacaand also get a black screen10:20
zygatoday"10:20
zygaheisencard10:21
zygasometimes nvidia10:21
zygasometimes amd10:21
zyga;-)10:21
zygaI need to bring the heater in here, I' m freezing10:21
mborzeckinvidia on even days, today's 24th :)10:21
ChipacaI edited the script to change sdl,gl=on to sdl,gl=off, and now it works (but is slow, because sdl seems slow)10:21
dot-tobiasGotta head off for a while, colleagues complaining that we're missing lunch πŸ˜„ β†’ re later10:21
Chipacamborzecki: zyga: it's a 'prime' laptop, so today it's in have-nvidia-i'm-plugged-in mode10:21
mborzeckiChipaca: heh, i understand what you're going through :)10:22
Chipacamborzecki: it's not a mid-life crisis until _I_ say it is!10:23
chestyhey zyga, did you see my pastebin above by chance?10:23
Chipacamborzecki: wait what were we talking about10:23
ograChipaca, qemu-virgil ... justsayin ;)10:31
ogra(tested regular with nvidia)10:31
Chipacaogra: i was trying to help dot-tobias, which took me to https://developer.ubuntu.com/core/examples/snaps-on-mir which tells people to do things in a way I tell people telling people to do things not to do10:32
ograheh10:32
zygachesty: yes, I saw it, I was investigating and then got interrupted, sorry10:33
* Chipaca hopes ogra's parser can un-nest that, but has hopes because German10:33
ogratotally !10:33
chestyzyga, no no, i appreciate your help. I just didn't ping you so thought you might not have seen it10:33
zygachesty: so... there are no permissions to run snap-exec directly in that profile but that's exactly as the profile was all the time10:33
zygachesty: I don't understand why that detail happens yet10:34
zygacan you report a bug about it so that it doesn't get lost please10:34
Chipacaogra: dunno about this virgil thing, I don't want to end up with qemu tied to a boat with wax up its … ears10:34
Chipacaogra: also that developer is super sketchy10:34
ograyeah, only does hacks all the time10:35
ogra(i heard)10:35
chestyzyga, absolutely, is that on github?10:36
zygachesty: on launchpad.net/snapd please10:36
Chipacachesty: https://bugs.launchpad.net/snapd/+filebug10:37
Chipacazyga: ^ :-)10:38
zygathanks Chipaca :)10:38
Chipacazyga: https://bugs.launchpad.net/snapd/+filebug?field.title=all+ur+base10:38
ograwe used to have that in the channel topic :)10:38
zygarbelongtostore10:38
Chipacaxceptfedorabase10:39
zygano no, it's in the store too10:40
zygamkosi will soon support building base snaps10:40
Chipacadatbelongtosongoku10:40
chestyzyga https://bugs.launchpad.net/snapd/+bug/179967710:41
zygathank you chesty10:41
mupBug #1799677: apparmor issue when running snap with ip netns exec <snapd:New> <https://launchpad.net/bugs/1799677>10:41
zygachesty: I'll return to the bug after some feature work I need to finish soon10:42
mborzeckiheh, travis jobs on release/2.36 branch are not so much fun10:42
chestyzyga and thank you for you help. there's no rush. cheers10:42
mborzeckiiirc someone was complaining about https://bugs.launchpad.net/snapd/+bug/1799677 in the comments under one of the reddit topics about flatpak10:43
mupBug #1799677: apparmor issue when running snap with ip netns exec <snapd:Triaged by zyga> <https://launchpad.net/bugs/1799677>10:43
mupPR snapd#6037 closed: tests/unit/gccgo: drop gccgo unit tests (2.36) <Simple πŸ˜ƒ> <Created by bboozzoo> <Closed by bboozzoo> <https://github.com/snapcore/snapd/pull/6037>10:45
=== chihchun is now known as chihchun_afk
mborzeckiany ideas about https://github.com/snapcore/snapd/pull/6025 ?10:47
mupPR #6025: Add go.mod files <Created by ryanjyoder> <https://github.com/snapcore/snapd/pull/6025>10:47
Chipacaogra: qemu-virgil has the same gl issues10:54
Chipacaogra: mind you i might need to restart to get gl working (or it might be broken) (quantum gl)10:54
zygamborzecki: can you have a look at https://github.com/snapcore/snapd/pull/6010 again please11:02
mupPR #6010: cmd/snap-discard-ns: add support for per-user mount namespaces <Created by zyga> <https://github.com/snapcore/snapd/pull/6010>11:02
zygamborzecki: there are two topics in that go.mod pr: just the go.mod feature (which I'm not familiar with) and the bigger topic of what is our public API11:02
* pstolowski lunch11:19
Chipacamborzecki: zyga: https://github.com/snapcore/snapd/pull/6025#issuecomment-43261639811:20
mupPR #6025: Add go.mod files <Created by ryanjyoder> <https://github.com/snapcore/snapd/pull/6025>11:20
mborzeckiChipaca: thanks for leaving a note there11:21
Chipacai don't want op to think we're ignoring them :)11:22
mborzeckiChipaca: otoh, the code is on github, nothing stopping them from using it as a public lib no matter what we say11:24
Chipacamborzecki: oh, i don't mind that :-)11:24
mborzeckias long as we don't promise anything :)11:25
Chipacamborzecki: it's the complaining when we break it, or more precisely the having to run around like a headless chicken three hours after eod because we released something that broke them and it's suddenly our problem somehow11:25
mborzeckizyga: left a comment, i think you missed some python[23] in mount.sh11:26
zygaohh11:27
zygadrat11:27
zygaI tested manually11:27
zygathanks!11:27
zygapushed11:28
mborzecki2018-10-24 10:54:23 Cannot allocate google:ubuntu-18.10-64: cannot find any Google image matching "ubuntu-os-cloud-devel/daily-ubuntu-1810-cosmic-v20181002" on project "ubuntu-os-cloud-devel"11:32
mborzeckieh, need one more patch for 2.3611:32
dot-tobiasChipaca: (re Ubuntu Core in KVM) FWIW, using the latest 18 Core image from today and your kvm invocation, console-conf shows just fine on the same nvidia card as before. I suspect the ubuntu-core-vm snap --beta does not have the latest 😊11:37
Chipacadot-tobias: does any gl snap work for you right now?11:38
dot-tobiasChipaca: Sec, testing mir-kiosk …11:38
Chipacadot-tobias: is mir-kiosk a gl-using snap?11:38
ograyes11:41
ograist a hard requirement11:41
ogra*it's11:41
dot-tobiasChipaca: That question is beyond my knowledge, but I assume it does … (but ogra confirms)11:41
dot-tobiasAs for the test, mir-kiosk does not work. journalctl entry: Exception while creating graphics platform // st::exceptioin::what: Failed to find platform for current system11:42
Chipacayep, and i confirmed by downloading the snap and looking :-)11:42
Chipacadot-tobias: ohmygiraffe is the canonical opengl test, i hear11:43
Chipaca… and that one works, here11:43
Chipacaogra: so boo, your snap is broken :-D11:43
* Chipaca really has no idea about this side of the stack11:44
Chipacaalso i suck at ohmygiraffe11:44
Chipacai'm lion fodder11:44
ograChipaca, which snap ?11:44
Chipacaogra: qemu-illiad11:45
Chipacaor was it qemu-virgil11:45
ograworks fine here11:45
ograon nvidia and intel11:45
ogra(as long as you follow the steps in snap info)11:45
ograand it was -virgil :)11:45
Chipacaactually, now it's started working11:46
ChipacaWAT11:46
Chipacaah no, -vga std11:46
Chipacaheh11:46
ograyeah, you dont want std11:46
Chipacaoh it works with virtglwotsit as well11:46
Chipacaohmygiraffe fixed my gl, or … dunno11:46
Chipacamaybe i just needd lunch11:46
Chipacaneeded*11:46
ChipacaΒ―\_(ツ)_/Β―11:46
ograto just test if GL works and if it starts you can simply start it without any options11:47
ograshould get you the accelerated gtk UI ... with a menu bar at the top11:47
Chipacatoo late, now i'm running budgie on it11:48
ograheh11:48
* dot-tobias *tries to follow this conversation and installs qemu-virgil snap*11:53
ogradot-tobias, afterwards do a "snap info qemu-virgil"11:56
ograit has the quickstart instructions11:56
Chipacaogra: you should look into getting that autoconnected11:58
dot-tobiasogra: Done that, getting permission denied with β€œcould not access KVM kernel module”. Did connect the interface with sudo (if that makes any difference)11:59
Chipacadot-tobias: are you in the kvm group?12:00
ograChipaca, yeah never got to doing the paperwork for autoconnect yet12:01
ogradot-tobias, if you arent in the kvm group but know the kvm module is loaded you can also just use qemu-virgil with sudo12:02
dot-tobiasChipaca: No I was not (did I mention that my knowledge of all this is virtually non-existent?), but after adding it with usermod it still does not work.12:04
Chipacadot-tobias: for the usermod to take you need to re-login (or use sg)12:04
Chipacaa blood sacrifice is also needed12:05
Chipacabut it doesn't need to be yours12:05
ograwell ... or sudo12:05
dot-tobiasChipaca: Learning new things every day … thought usermod is instant, that did the trick. Thanks!12:05
dot-tobiasusing sudo for qemu-virgil gave me a perm denied on the image file in my user's home directory Β―\_(ツ)_/Β―12:06
Chipacayep :-)12:06
ogralol12:06
ograok12:06
Chipacaogra: you should be able to detect some of this and warn12:06
Chipacaogra: otherwise maybe including it in descr12:06
dot-tobiasqemu-virgil starting now, but the qemu window states "no bootable device" when using the exact command from qemu-virgil snap info12:07
ogracan you paste the line here ?12:07
ogra(the one you used in your terminal)12:07
ogranote there is a line wrap in the info output12:07
ograChipaca, good point12:08
Chipacadot-tobias: 'exact command' including the 'some.img' at the end?12:08
dot-tobiasogra: nevermind, I had renamed the image file in the meantime … :facepalm:12:08
Chipacaheheh12:08
Chipaca:-)12:08
ograheh12:09
dot-tobiasChipaca: nope, I was smart enough to supplement some.img with the actual name, but forgot that I changed it between the first and last attempt to start qemu-virgil (because I downloaded another daily build)12:09
ograwow, this is gross ...12:10
mupPR snapd#5954 closed: [wayland] explicitly permit file locking for wayland lock <Created by gerboland> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/5954>12:11
ograi'm creating a hardcoded link in $SNAPCRAFT_PART_INSTALL to point to /var/snap/<snapname>/current/foo in ony of my snaps ...12:11
ograif i have that snap installed, snapcraft actually reads the content from that dir on disk instead of respecint that it is a symlink inside my build12:12
ogras/ony/one12:12
ograso it doesnt just put the link into the snap but copies the dir from /var12:13
ograremoving the snap before building gets me a properly dangling symlink12:14
ogra(as intended)12:14
Chipacaogra: sounds buggeh12:15
dot-tobiasogra, Chipaca: Welp, scp'ing to the qemu-virgil-hosted Core image (20181023) does not work either (which was the initial problem with just running ubuntu-core-vm from its snap) 😞 and the manual kvm invocation by Chipaca seems to have issues with gl apps, which prevents me from actually testing my kiosk app πŸ˜„12:15
* dot-tobias stuck between a rock and a hard place12:15
ograhow do you scp ?12:15
Chipacadot-tobias: which was the image you were getting?12:15
Chipacadot-tobias: link plz, so i can try to repro12:15
dot-tobiashttp://cdimage.ubuntu.com/ubuntu-core/18/20181023/ubuntu-core-18-amd64.img.xz12:16
dot-tobiasChipaca ^12:16
Chipacagetting12:16
Chipacaah, the core-18 snap, ok12:16
Chipacagetting12:16
ograscp -P 10022 file-to-copy user@localhost:~/12:16
ograthats how you should do it12:16
dot-tobiasogra: Yes, the connection itself is fine, and I can SSH in without problems – but using scp it does not accept my SSH key, then asks for the password instead. I even tried to set the password inside the vm with passwd <user> but giving the super-slowly-typed password to scp still aborts after 3 tries.12:18
Chipacaor β€œscp file-to-copy kvm.snappy:” if you have the right .ssh/config entry =)12:18
Chipacacore got, booting12:18
zygaerror: failed to commit transaction (conflicting files)12:19
dot-tobiasogra, Chipaca: scp -p 10022 my.snap $SSO_USER@localhost:~/ β†’ prompts for $SSO_USER's password, debugging with -vvv shows that my SSH key just gets ignored. Forcing it with -i ~/.ssh/my_key has no effect12:20
Chipacadot-tobias: -p, or -P?12:20
dot-tobiasChipaca: -p12:20
ogralarge p please12:20
ograsmall p preserves modification times of the file you copy12:20
Chipacayou're trying to ssh into yourself =)12:20
ogralarge P means port12:21
dot-tobiasI'm gonna go sit in the dumb corner for a while now … Assumed that -p would be the same as for ssh.12:21
ograyeah, it is super confusing and annoying that they differ12:21
Chipacadot-tobias: https://pastebin.ubuntu.com/p/SfwM3ngYx7/12:21
Chipacadot-tobias: adjust as necessary, and append to ~/.ssh/config, and then forget all the sillyness of -p/-P etc12:22
dot-tobiasChipaca: Thanks 😊12:22
ChipacaI suspect I could prune the "phablet" entry from my .ssh/config12:23
Chipacaalso bazaar.ubunet12:23
dot-tobiasWell, I guess I should not try again with the ubuntu-core-vm route because I might very well discover that I wasted > 15min on this when I could have just re-read the scp manpages. Huge thank you to ogra and Chipaca12:23
mborzeckiChipaca: can I get a second +1 on https://github.com/snapcore/snapd/pull/6036 ?12:31
mupPR #6036: tests: the store has caught up, drop gccgo test, update cosmic image (2.36) <Parallel installs β›“> <Simple πŸ˜ƒ> <Created by bboozzoo> <https://github.com/snapcore/snapd/pull/6036>12:31
ograChipaca, btw, i dont get why ubuntu-core-vm actually needs devmode at all ... it is essentially similar to qemu-virgl (just uses an older qemu and has a lot of wrapper scripts around the qemu call)12:33
Chipacaogra: I'm in communication with the author about this12:33
Chipacamborzecki: you can try12:34
* mborzecki tries12:34
Chipacamborzecki: go go go12:34
mborzeckiChipaca: thx12:35
mupPR snapd#6036 closed: tests: the store has caught up, drop gccgo test, update cosmic image (2.36) <Parallel installs β›“> <Simple πŸ˜ƒ> <Created by bboozzoo> <Merged by bboozzoo> <https://github.com/snapcore/snapd/pull/6036>12:35
zygaI need a 2nd review on https://github.com/snapcore/snapd/pull/6010 to move forward12:44
mupPR #6010: cmd/snap-discard-ns: add support for per-user mount namespaces <Created by zyga> <https://github.com/snapcore/snapd/pull/6010>12:44
pstolowskicachio__: for a 2nd serial port with nested vm test it's important that it also has a different serial number, i hope qemu does that13:21
zygaChipaca: reviewed https://github.com/snapcore/snapd/pull/5955/reviews13:31
mupPR #5955: cmd/snap, tests: snapshots for all <Snapshots πŸ“Έσ Ÿ> <Created by chipaca> <https://github.com/snapcore/snapd/pull/5955>13:31
zygaI would love a review of https://github.com/snapcore/snapd/pull/6010 in return13:32
mupPR #6010: cmd/snap-discard-ns: add support for per-user mount namespaces <Created by zyga> <https://github.com/snapcore/snapd/pull/6010>13:32
zygak, I need to go to the vet again13:38
Chipacazyga: thank you for the review!13:38
Chipacai'll get on those suggestions in a bit13:38
mborzeckiChipaca: don't remember, if you do `snap restore` without --users then data for all users is restore or none?13:41
Chipacamborzecki: all13:41
Chipacathat's one of the rough edges imo13:42
mborzeckiChipaca: and if i want no users?13:42
Chipacamborzecki: er... shoot 'em?13:42
mborzeckiChipaca: that's what i meant in https://github.com/snapcore/snapd/pull/5955/files#r224709843 i think it'd be nice to add something to long help of restore (and maybe save too)13:42
Chipacamborzecki: there's also no way to toggle restoring config13:42
mupPR #5955: cmd/snap, tests: snapshots for all <Snapshots πŸ“Έσ Ÿ> <Created by chipaca> <https://github.com/snapcore/snapd/pull/5955>13:43
Chipacamborzecki: I'd rather not document it, and instead find a way of doing it :-)13:43
mborzeckiChipaca: soemthing like 'When no users are provided, restoring a snapshot restores data for all users (whose data is in snapshot?)'13:43
Chipacawe could have --no-system, --no-users, and --no-config13:45
Chipaca--no-nothing13:45
mborzeckihm many switches13:45
mborzecki--users '' ?13:45
wgrantmborzecki: Morning. Not sure if you saw on the forum, but we have parallel installs available on the prod store now.13:47
mborzeckiwgrant: yup, saw that, thanks for the notice, from the little testing I did it seems to be working fine13:47
wgrantmborzecki: Excellent. Do let me know if you see anything odd.13:47
mborzeckiwgrant: ok13:47
mborzeckiChipaca: silly thought, does `snap saved` show whose user data is in the snapshot?13:49
Chipacamborzecki: I'll update the help with that fwiw13:49
Chipacamborzecki: it does not. I'd wondered about including that (maybe in a --verbose or --long).13:50
Chipacabut didn't acquire consensus, and it's been hard enough getting reviews for the bits that _did_ have consensus...13:51
mborzeckiChipaca: i think we have --verbose elsewhere too (snap info?), but that's soemthing for a follow up presumably13:51
Chipacamborzecki: all of these flaggy things are :-)13:51
Chipacamborzecki: there's --verbose but for something that's already vertical; showing users would force a switch to vertical here13:52
Chipacaso maybe --long is better13:52
Chipacadunno13:52
mborzeckianother PR anyway :)13:52
mborzeckiwe want this one to land after all13:52
zygare14:15
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
mupPR snapd#6032 closed: overlord/snapstate, snap, wrappers: start services in the right order during install <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/6032>14:45
* cachio lunch14:55
=== pstolowski is now known as pstolowski|afk
cjwatsonkoala_man: I don't suppose you have the skillset to track down https://github.com/haskell/HTTP/issues/68 ?16:32
cjwatsonkoala_man: That seems to be the root cause of this weird proxy bug with shellcheck16:32
koala_mancjwatson: I might, but it would probably require source changes to HTTP, cabal or both. How would those fixes make it back into the xenial build image?16:48
cjwatsonkoala_man: It's possible we'll have to work around it; I'm not sure yet16:56
cjwatsonkoala_man: But it appears to be violating RFC MUSTs, so ...16:57
koala_mancjwatson: xenial uses cabal-install version 1.22.6.0-2 while this bug appears to be a non-issue in >1.23.0.0 (after https://github.com/haskell/cabal/commit/b780cc77dd) due to not using the HTTP library anymore16:57
cjwatsonOh, interesting16:57
koala_manand that was over three years ago16:57
cjwatson(I'm less interested in workarounds now I've captured straces that show xenial's cabal-install version blatantly Doing HTTP Wrong)16:58
cjwatsonSame symptoms as in that bug, basically: gets 301 with Connection: close, tries to write the redirected request to the same FD, gets EPIPE, gets very sad16:59
Chipacabackport of the 1.24 from bionic in a ppa? or has the haskell stack changed too much?16:59
cjwatsonBackporting Haskell stacks tends to be LOL16:59
* Chipaca chooses to read that as a labour of love17:00
cjwatsonWhen I used to do this from time to time in Ubuntu it took literally days just to do all the rebuilds17:00
cjwatsonCan't imagine doing it as an SRU17:00
cjwatsoncabal-install *might* be standalone enough ...17:00
koala_manhaha, yes, the ecosystem certainly has its challenges17:00
Chipacacjwatson: I can't even get the build deps for the one in xenial17:03
Chipaca builddeps:haskell-cabal-install : Depends: libghc-zlib-dev (< 0.6) but 0.6.1.1-1 is to be installed17:04
cjwatsonYeah, that was bumped to < 0.7 in bionic; I guess haskell-cabal-install wasn't rebuilt in the last round because it's a standalone application so nobody noticed17:04
cjwatsonbionic's version needs libghc-hackage-security-dev and libghc-tar-dev (>= 0.5.0.3) though, neither of which are in xenial17:05
cjwatsonConceivably easier to backport that one commit17:05
Chipacamaybe there's a haskellers ppa out there17:05
cjwatsonWell, plus zlib dep fix17:05
cjwatsonWe really need the version in xenial to be able to actually do HTTP properly17:06
cjwatsonI don't really want to punt everyone to a PPA17:06
Chipaca.... maybe there's a snap of it17:07
Chipaca:-D17:07
* Chipaca runs away and hides17:07
koala_man:D17:07
koala_manshellcheck can also be built with haskell-stack. I can see if the xenial version is recent enough, and whether it does HTTP better17:12
cjwatsonI'm just grabbing github:haskell/cabal to see if I can work out what to backport and if it's possible without getting into too many complication17:14
cjwatsons17:14
cjwatsonI smell dinner though17:15
mupPR snapd#5972 closed: tests: initial setup for testing current branch on nested vm and hotplug management <Created by sergiocazzolato> <Merged by sergiocazzolato> <https://github.com/snapcore/snapd/pull/5972>17:20
ograhmm17:24
ograso i just uninstalled htop, reinstalled it with --classic ... noticed that it can see al processes without any interfaces connected ... then uninstalled it again, reinstalled it without --classic and it can *still* manage all processes despite no interfaces being shown connected17:25
ogradoes using --classic for a snap premanently trash confinement now ?17:26
ijohnsonogra: try using `/usr/lib/snapd/snap-discard-ns htop` and running htop again, it may be reusing the classic namespace setup for the snap, but I'm not sure as I don't know what exactly is setup for a classic snap (if anything)17:29
ograwell, i'd expect "unconfined"17:30
ograwell, nothing changed17:31
ograi have a confined htop that can see (and kill !!) all processes17:31
ijohnsonright but I don't know if there's a mount namespace setup for classic snaps, as if there is it could be re-used when you run it again. I've run into similar issues with namespaces not getting discarded after a snap was removed17:31
ograwell, i discarded it with the above commend17:31
ograno change17:31
ijohnsonyeah no other ideas from me then17:32
ograthis smells very very broken :/17:33
ijohnsonyeah I didn't actually realize that you could install a strict snap with classic confinement, I thought that was disallowed17:33
ograi even get multiple pages of DENIED messages in dmesg -w17:33
ograwhen starting htop17:34
ograyet it can see the whole processlist and kill all processes owned by me17:34
ograoperates completely unconfined17:34
ijohnsonshould probably report as a bug on LP (perhaps as a security bug?)17:35
ograChipaca, if i used --classic with a confined snap, do i have to do some magical secret handshake to get it back to being confined ?17:35
ogra(even uninstalling/reinstalling, discarding the namespace and whatnot doesnt seem to get me confinement back)17:36
Chipacaogra: remove and reinstall should do the trick17:36
ograwell, probably i'm dong something wrong17:36
Chipacaogra: if it doesn't, you've found a bug17:36
ograthen i did17:36
ograsigh17:36
Chipacaogra: stop breaking snapd :-p17:36
ogranow maxiberta can read my disk !!!17:36
Chipacaogra: I hear he's bribe-able17:37
ograyeah, but the next sprint we cross paths is far ... so beer bribe doesnt work17:37
Chipacaogra: you'd be shocked to know how cheap it would be to get it delivered17:37
ogradelivered, yeah ... but then ... customs ...17:39
Chipacaogra: i meant something like https://www.pedidosya.com.ar/restaurantes/buenos-aires/don-cervecero-menu17:39
Chipacaogra: (those are argentine pesos)17:39
Chipaca~10eur for 10 473cc cans delivered17:40
Chipacamaybe :-)17:40
Chipacaanyhoo, what was i doing17:40
Chipacaoh yeah swearing at spread17:40
ograhttps://bugs.launchpad.net/snapd/+bug/179976017:47
mupBug #1799760: using --classic for a confined snap doesnt get me confinement back even after reinstalling the snap <snapd:New> <https://launchpad.net/bugs/1799760>17:47
mupPR snapd#6038 opened: release: 2.36 <Created by mvo5> <https://github.com/snapcore/snapd/pull/6038>17:48
Chipacazyga: ^^ bug from ogra you might like17:52
ograi wont reboot that system ... so whatever else needs to be captured, the machine will stay in that state17:54
=== sarnold_ is now known as sarnold
* zyga looks18:52
* cachio afk19:03
mupPR snapcraft#2379 closed: meta: add assumes if using "full" app adapter <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2379>20:09
mupPR snapcraft#2385 opened: cli: consolidate re-execution <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2385>20:48
mupPR snapd#6039 opened: snapstate: do not allow classic mode for strict snaps <Created by mvo5> <https://github.com/snapcore/snapd/pull/6039>22:52
cjwatsonkoala_man: I managed to set up a simpler reproduction environment: for me, configuring squid with "client_persistent_connections off", and then running "http_proxy=... strace -f -o cabal.trace -s 4096 cabal fetch pandoc" in a clean sandbox with an empty cabal download cache provokes it often enough to be somewhat debuggable23:03
cjwatson(the strace is needed to slow it down slightly - I think this is a race between when it tries to write the redirected request to the connection and when it's closed by the other end23:03
cjwatson)23:03
cjwatsonkoala_man: with that I've found that while bionic's cabal-install breaks in the same way (without curl), Debian unstable's (also without curl) seems to work - and it's not just winning the race, because I can see it getting EPIPE/SIGPIPE from write() and then recovering where the earlier version didn't23:04
cjwatsonso that might be something I can bisect23:04
mupPR snapd#6040 opened: data/apt: close stderr when calling snap in the apt install hook <Simple πŸ˜ƒ> <Created by chipaca> <https://github.com/snapcore/snapd/pull/6040>23:09
koala_mancjwatson: this is to patch into HTTP and then rebuild cabal-install against it, thereby minimizing potential side effects?23:23
mupPR snapcraft#2384 closed: project: do not install base if already installed <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/2384>23:48

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