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

mupPR snapcraft#1052 closed: Make git pulls less error prone due to history changes <Created by josepht> <Merged by kyrofa> <https://github.com/snapcore/snapcraft/pull/1052>00:01
mupBug #1645445 changed: Turtlebot needs /dev/kobuki <snapd-interface> <snapd:Confirmed> <https://launchpad.net/bugs/1645445>00:19
mupPR snapd#2806 opened: interfaces/io-ports-control: use /dev/port, not /dev/ports <Created by jdstrand> <https://github.com/snapcore/snapd/pull/2806>00:21
mupBug #1646559 changed: should periodically refresh ssh keys that were obtained from SSO/store for local users <snapd:Confirmed> <https://launchpad.net/bugs/1646559>00:22
mupBug #1662723 opened: Removing a snap with `snap remove <app>` doesn't remove everything <Snappy:New> <https://launchpad.net/bugs/1662723>00:40
mupBug #1662723 changed: Removing a snap with `snap remove <app>` doesn't remove everything <Snappy:Invalid> <https://launchpad.net/bugs/1662723>01:22
=== markusfluer1 is now known as markusfluer
=== chihchun_afk is now known as chihchun
mupPR snapcraft#1116 opened: Changed "snappy try" to "snap try" <Created by liu-xiao-guo> <https://github.com/snapcore/snapcraft/pull/1116>03:49
mupBug #1634890 changed: File system not resized in some devices <Snappy:Expired> <https://launchpad.net/bugs/1634890>04:17
mupPR snapcraft#1117 opened: [wip] build and push the API docs to github pages <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1117>06:04
mupBug #1662772 opened: systemd[1]: Failed to start Set the hostname to the value stored on the writable partition <snappy-set-hostname.service> <Snappy:New> <https://launchpad.net/bugs/1662772>06:27
mupPR snapcraft#1075 closed: travis: allow to pass --channels parameter to generate proper config <Created by 3v1n0> <Closed by sergiusens> <https://github.com/snapcore/snapcraft/pull/1075>06:31
mupPR snapcraft#1118 opened: Trigger beta tests on travis every day <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1118>06:31
mupPR snapcraft#1109 closed: meta: allow `post-stop-command` for an app entry in `apps` <Created by elespike> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1109>06:40
stubSnaps don't install in lxd containers unless the squashfuse package is installed, but I can't find the relevant bug report to link.08:10
stubFound it: Bug #1628289 (although it claims to be FIX COMMITTED in xenial, comments indicate otherwise)08:14
mupBug #1628289: snapd should depend on squashfuse (for use in containers) <lxd> <verification-done> <Snappy:Triaged> <squashfuse (Ubuntu):Confirmed for doko> <squashfuse (Ubuntu Xenial):Fix Released> <https://launchpad.net/bugs/1628289>08:14
kalikianaHrm. Issues like bug 1652643 make a snappy life tedious at times. Bonus points for letting a non-tech-aficionado use LibreOffice on one of my machines.08:33
mupBug #1652643: LibreOffice Snap: unable to access documents in some nested direcotries <libreoffice> <snap> <Snappy:Confirmed> <https://launchpad.net/bugs/1652643>08:33
mupBug #1612453 changed: `snap connect` requires me to type ubuntu-core <lxd> <Snappy:Fix Released> <https://launchpad.net/bugs/1612453>08:37
jamespagemorning all08:56
jamespageI have a question re auto-aliases and conflicts with other snaps08:56
jamespagejdstand kindly setup auto-aliases for the openstackclients snap yesterday08:57
jamespagehowever that had a slightly un-intended side effect that now the glance, nova etc snaps are not co-installable with the openstackclients snap, as it ships aliases for commands with the same name as those sanps08:58
jamespagefor example08:58
jamespageerror: cannot install "glance": snap "glance" command namespace conflicts with enabled alias "glance" for "openstackclients"08:58
jamespagehowever the glance snap does not provide a 'glance' command :-)09:00
pedronisjamespage: well it could at some point09:05
pedronisbecause is its snap name09:05
jamespagepedronis, I guess my question is what is the conflict resolution strategy for this type of thing?09:05
jamespageif this is always enforced in this way, we should have policy that means one snap can't auto-aliase a command with the name of another snap right?09:06
pedronisjamespage: yes, that was the idea09:06
pedronisjamespage: IĀ understand this is annoying,   the issue here is that in theory any snap has the right to a command called like it09:09
jamespagepedronis, I'm ok with that, I guess my challenge is how that and auto-aliases should be managed09:10
jamespageideas - when you install the glance snap on a system that already has openstackclients, we might un-alias a conflicting glance command/aliase, and let glance own it.09:11
pedronisjamespage:  but is annoying if server/client snap   have pairs  where we call server foo  and client has  a  command foo09:11
jamespagepedronis, yup that's this use-case09:11
jamespagepedronis, I'll raise a bug so we can track this better09:12
zioprotohello there09:12
zioprotojamespage, unalias sounds bad09:13
zioprotousually people on the openstack controller have both the glance-api that comes with the glance snap and the glance client utility09:14
zioprotothey need to work both at the same time09:14
jamespagezioproto, oh I agree09:15
jamespagezioproto, its common todo that09:15
jamespageletme raise this bug09:15
pedronisjamespage: the problem is that well known aliases are also for scripts so random unaliasing them is bad09:15
zioprotopaste here the bug link so I can subscribe to it09:15
pedronismmh, what IĀ mean is more that we need predictable behavior09:16
jamespagehttps://bugs.launchpad.net/snapd/+bug/166281509:16
mupBug #1662815: conflicts between auto-aliases and real snap names <snapd:New> <https://launchpad.net/bugs/1662815>09:16
jamespagepedronis, agreed09:16
jamespagezioproto, ^^09:16
kwzyga: I got the point of "version"  What if, for example, everyone upload their "version" of vim and actually they are almost the same just uploaded by different person and have different namespace09:19
zygakw: nothing09:20
zygakw: as long as they have different snap name this is all right09:20
kwzyga: I see. interesting :)09:21
zygakw: there were some ideas about how to let pepole get an official vim or a fork of vim from a given user (vim being just an example) but there was no agrement on what the semantics would be09:23
zygakw: but it is possible we will re-visit this09:23
kwzyga: I suppose that people would prefer a copy from author or official one which makes them comfortable09:27
mupBug #1662817 opened: some snaps stop working after revert the core snap <Snappy:New> <https://launchpad.net/bugs/1662817>09:29
=== kw is now known as anta
=== anta is now known as kw
mupPR snapd#2806 closed: interfaces/io-ports-control: use /dev/port, not /dev/ports <Created by jdstrand> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2806>09:39
=== ackkk is now known as ackk`
=== leftyfb_ is now known as leftyfb
=== DavidDuffey is now known as dduffey
=== chihchun_ is now known as chihchun
=== StoneTable is now known as aisrael
=== iahmad_ is now known as iahmad
=== ackk` is now known as ackk
mupPR snapd#2766 closed: tests: improve snap-env test <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2766>10:02
cos-is there a plugin or other way to build and install a debian package from source? running debuild and dpkg -i would be enough..10:18
ogra_cos-, a rather ugly way is https://github.com/ogra1/packageproxy/blob/master/Makefile10:20
ogra_from https://github.com/ogra1/packageproxy10:20
ogra_(it works though)10:20
ogra_https://github.com/ogra1/laidout is another one10:21
ogra_(the latter only uses a binary, the former builds a deb from the upstream source)10:22
cos-ok, no clean way to do that :-(10:25
ogra_dont judge by my hacks :)10:26
ogra_this is all very old stuff, perhaps there is a cleaner way nowadays10:27
ogra_i just tend to abuse makefiles as scripts for quick results10:28
popeycos-: why do you need to rebuild the deb? can't you just suck it in?10:28
ogra_yeah, then you would just put it in stage-packages10:28
cos-popey: if it exists only in a private git repo10:29
kwwhy is some snap namespace reserved? e.g. i7z10:41
stubWill we get to the point of being able to guarantee that a Xenial or later machine has the snapd package installed when it is provisioned?10:54
stubI've got a problem with /snap/bin not being in the $PATH of processes spawned before the snapd package got installed (lxd containers in this case)10:54
stubI don't know if I should file an lxd bug (because it provisioned a machine without snapd and handed it to Juju),or a Juju bug because it asked for the wrong thing, or an Ubuntu bug because /snap/bin should be on the $PATH in /etc/profile no matter what10:57
stubOr if I should be handling it myself, and rebooting the machine after installing the snapd package to get the /etc/profile.d changes in effect everywhere11:00
popeykw: so the upstream developer can 'claim' it.11:00
popeyor someone working with the upstream developer11:00
mupPR snapd#2805 closed: snap: improve message after `snap refresh pkg1 pkg2` <Created by mvo5> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2805>11:17
mupPR snapd#2807 opened: snap: add new `snap switch` command <Created by mvo5> <https://github.com/snapcore/snapd/pull/2807>11:18
vigoogra_, ping11:26
=== cmars` is now known as cmars
ogra_vigo, yo11:57
vigoogra_, what does this mean?12:09
vigo2017-02-08T12:08:04Z INFO snap "core" has bad plugs or slots: core-support (unknown interface)12:09
ogra_when do you get this ?12:09
vigoI get this refreshing core from candidate12:09
vigowell stable-> candidate12:10
ogra_well, it is an info message telling oyu that the running core does not have the interface (the new core after the install finished will have it)12:11
ogra_the question is here if snapd is clever enough to re-run any potential config settings that use this interface once the new core is running12:11
ogra_if not, that would be a bug12:12
=== hikiko is now known as hikiko|ln
vigoogra_, great, thanks12:24
om26erHello! where can I download model assertion for rpi2 ? need to build an image with default user12:34
om26erI have the one for pc right now but want to build for rpi2/db12:35
Chipacajdstrand, any reason you can think to not let strict snaps read /usr/share?12:37
Chipacajdstrand, if yes, what about just /usr/share/bash-completion/bash_completion :-)12:37
=== hikiko|ln is now known as hikiko
mupPR snapd#2804 closed: interfaces/core-support: allow modifying systemd-timesyncd and sysctl configuration <Created by jdstrand> <Merged by jdstrand> <https://github.com/snapcore/snapd/pull/2804>13:17
mupPR snapd#2774 closed: interfaces/mount: add dedicated mount entry type <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2774>13:30
mupPR snapd#2808 opened: interfaces: use mount.Entry instead of string snippets <Created by zyga> <https://github.com/snapcore/snapd/pull/2808>13:30
jdstrandChipaca: this is going to be a can of worms. in general, we should only allow what is required. ok, so for bash completion that is /etc/bash_completion* and /usr/share/bash_completion/*. however, on classic, /etc is mounted in the snap but /usr/share is from core, and core doesn't ship /usr/share/bash-completion/bash_completion, so there is a potentional mismatch, especially when using different cores13:37
ogra_jdstrand, core ships it now13:38
jdstrandChipaca: assuming you fix that (or defer caring), then all the commands in /usr/share/bash-copmpletion/completions/* are probably going to access the filesystem in new and exciting ways13:38
ogra_ogra@localhost:~$ ls /usr/share/bash-completion/bash_completion13:39
ogra_/usr/share/bash-completion/bash_completion13:39
ogra_added last week :)13:39
jdstrandthat's find, but the /etc vs /usr bit on classic may cause problems and I'm positive will cause problems with say, a fedora core13:39
* jdstrand wonders why he doesn't have an updated core13:40
mvojdstrand: what do you see in snap changes?13:40
mvojdstrand: anything that indicates why core is not updating?13:40
jdstrandmaybe it didn't go to stable?13:40
ogra_yeah, far from that13:40
mvojdstrand: oh, you are using stable :) consider switching13:41
jdstrandI have r88813:41
ogra_edge and (not sure) perhaps candidate13:41
jdstrandwell, my laptop I won't, but I can do that somewhere else13:41
* jdstrand notes that adding bash_completion was the least of his concerns-- that's easy :)13:42
jdstrand(the file, not the functionality)13:43
Chipacajdstrand, core does ship bash completion as of now (on edge)13:50
Chipacajdstrand, all I really need is /usr/sahre/bash-completion/bash_completion, not the completion scripts13:50
ogra_Chipaca, well, on classic you might want them13:51
Chipacaogra_, not from inside confinement13:53
Chipaca                      ^ strict13:54
ogra_ah,. k13:55
jdstrandmvo: have you given this bug more thought: hsearch_r failed: No such process?13:55
mvojdstrand: yes13:55
jdstrandmvo: I updated core and now nothing starts (cause of old snap-confine)13:56
mvojdstrand: in the standup right now,  I have something but we need to talk more because reverts of core are probably broken right now too13:56
mvojdstrand: I have a branch that is still a bit messy13:56
jdstrandmvo: I would be interested in seeing that branch when you're ready for me to look at it13:56
zioprotohey when you have a syntax like git+https://github.com/zioproto/kolla-ansible how do I select a specific branch ?13:57
zioprotoI mean in python-packages: in the snapcraft.yaml13:58
mvojdstrand: preview (slightly messy) https://github.com/snapcore/snapd/compare/master...mvo5:feature/snap-confine-from-core?expand=113:58
mvojdstrand: but its essentially what we discussed via mail, i.e. snapd wil create correct apparmor profiles for the snap-confine on core13:58
=== stokachu_ is now known as stokachu
zioprotomanaged ! #branch=name14:00
br4nd0mHi guys, I am using /snap/bin/snappy-debug.security scanlog my_first_app14:08
sergiusenszioproto: yeah, same semantics as with pip14:08
br4nd0mto see why AppArmor is blocking it14:09
popeybr4nd0m: awesome, how's it working out?14:09
br4nd0mand I get:* adjust snap to ship 'ip' * adjust program to use relative paths if the snap already ships 'ip'14:09
br4nd0mhi popey, it's going OK, just got stuck there14:09
rvrogra_: Serial console on the Pi is the best invention since the sandwich :)14:11
ogra_haha14:11
rvrogra_: Do you know why the wifi is not working on the Pi3 yet?14:11
=== tsdgeos_ is now known as tsdgeos
ogra_rvr, driver bug, not sure if ppisati ever got around reserching it more (i didnt)14:15
ogra_rvr, it works if you first configure wired, then reboot and call sudo console-conf via ssh ... you can then turn off wired, configure wlan and reboot14:16
rvrogra_: I see14:16
rvrogra_: I just re-checked during the first boot, and of course failed14:16
ogra_righ, second boot is the key :)14:17
* Mirv notes that tsdgeos_ should get a shell account or fix internets14:18
tsdgeos_Mirv: oh no14:19
tsdgeos_it's that snap is hardlocking my system14:19
tsdgeos_that's what shoudl be fixed :D14:19
Mirvit cannot be, ogra_ says snappy fixes stuff, not breaks14:19
jdstrandmvo: http://paste.ubuntu.com/23954598/14:21
jdstrandmvo: would be nice if I could comment on your branch before the PR...14:21
mvojdstrand: oh, nice14:21
mvojdstrand: thank you!14:21
mvojdstrand: I can make it into a PR, then you can comment14:22
jdstrandmvo: there is one other fun wrinkle that I thought of. /etc/apparmor.d/abstractions vs /var/snap/core/current/etc/apparmor.d/abstractions14:22
jdstrandmvo: this is something that has always been there but I don't think we ever considered14:22
jdstrandmvo: today I think we are lucky cause the core snap is pulling from the archive and so is the classic host and we haven't made changes to the abstractions, so they are in sync14:23
mvojdstrand: yeah, good point14:24
jdstrandmvo: but it is easy to imagine scenarios when they may be out of sync14:24
jdstrandmvo: I don't think that has to be fixed here14:24
zygajdstrand: https://github.com/snapcore/snapd/pull/2809/files14:25
mupPR snapd#2809: cmd/snap-confine-tests: reformat test to pass shellcheck <Created by zyga> <https://github.com/snapcore/snapd/pull/2809>14:25
mupPR snapd#2809 opened: cmd/snap-confine-tests: reformat test to pass shellcheck <Created by zyga> <https://github.com/snapcore/snapd/pull/2809>14:25
mvojdstrand: https://github.com/snapcore/snapd/pull/2810 <- so that you can comment more easily14:25
mupPR snapd#2810: snap: use snap-confine from the core snap <Created by mvo5> <https://github.com/snapcore/snapd/pull/2810>14:25
mvojdstrand: I work on that now14:25
jdstrandzyga: speaking of shellcheck. I noticed that my build environment was complaining (non-fatally) that shellcheck wasn't there. I then installed it, and it still complained14:26
mupPR snapd#2810 opened: snap: use snap-confine from the core snap <Created by mvo5> <https://github.com/snapcore/snapd/pull/2810>14:26
tsdgeos_not restarting into "/snap/core/current/usr/bin/snap" ([VERSION=2.21 2.21]): older than "/usr/bin/snap" (2.22.2+17.04)14:26
tsdgeos_what does this mean?14:26
tsdgeos_is it bad?14:26
mvotsdgeos_: totally harmless - where do you see that?14:30
tsdgeos_mvo: /var/log/syslog14:30
mvotsdgeos_: ok, that is expected. it just means your deb version of snapd is newer than the version in the stable core snap. on zesty that is pretty much always the case because zesty is very ahead :)14:31
tsdgeos_ok, tx14:31
pedronismvo: we are missing  in ver[1] in the printing that message :)14:33
pedroniss/in//14:33
stokachuhow do i see what applications are available in the core snap14:33
ogra_stokachu, we onyl guarantee /bin/sh (and recently python)14:34
stokachuogra_, ok cool, makes it easy14:34
mvopedronis: indeed, the message is not as nice as it should be14:34
ogra_stokachu, while theer are indeed a lot more binaries included they can always drop out14:34
stokachuogra_, ack14:35
ogra_Mirv, since you are here ...14:36
ogra_ogra@localhost:~$ snap install ubuntu-app-platform14:36
ogra_error: cannot install "ubuntu-app-platform": snap not found14:36
ogra_do we not build it for armhf ?14:36
jdstrandmvo: commented14:36
=== rumble is now known as grumble
ogra_(i can actually install the terminal app butz not the needed platform for it)14:36
zygajdstrand: re-run autogen, that should fix shellcheck14:37
zygajdstrand: it's a configure-time decision14:37
mvojdstrand: thank you!14:37
zygaogra_: we guarantee a bit more14:38
ogra_zyga, well, libc14:38
zygaogra_: look at what the apparmor profile allows for various interfaces14:38
zygaogra_: if we say that interface "foo" can run /usr/bin/fooctl then that is what we allow14:38
ogra_zyga, well, thats definitely wrong then14:38
zygaogra_: we really do that14:38
zygajdstrand: I added a review to mvo's branch14:38
ogra_unless we dropped all our policies14:38
zygajdstrand: please read it as well as it is very tricky business14:39
ogra_any binary in the core can drop out at any time14:39
zygaguys, I need to run to buy some food14:39
zygaI'll be back in one hour14:39
ogra_we always said we dont give any guarantee for them to be there14:39
jdstrandzyga: any reason why we don't build-depends on shellcheck?14:39
jdstrandogra_: is ubuntu-app-platform only in --edge?14:41
ogra_jdstrand, i tried all channels and with/without --devmode14:42
zygajdstrand: 14.0414:42
ogra_zyga, huh ?14:43
zygajdstrand: and immense pain on gentoo :)14:43
ogra_shellcheck is in ubuntu since ages ...14:43
zygaogra_: it wasn't available last time I looked14:43
ogra_it definitely is14:43
ogra_https://launchpad.net/ubuntu/+source/shellcheck14:43
ogra_hmm14:43
ogra_backports ... thats weird ... i knwo i used it in code in 10.0414:44
jdstrandzyga: I'm talking about Ubuntu's debian/ directory14:44
jdstrandzyga: there is no reason Ubuntu's snapd couldn't BuildDepends on shellcheck. am I missing something?14:44
ogra_jdstrand, well, it isnt in 14.0414:45
zygajdstrand: yeah, now it can; it was hard before14:45
zygajdstrand: I'll make that so14:45
ogra_as zyga just proved to me ...14:45
* ogra_ is still baffled14:45
jdstrandogra_: oh, I took your 'ages' comment to include 14.04 :)14:45
ogra_jdstrand, well, as i said above, i'm sure i used shellcheck in 10.04 projects14:45
jdstrandwell, whatever, I have a note now for it14:46
ogra_so thats super confusing14:46
ogra_but LP doesnt lie14:46
ogra_(i assume)14:46
zygajdstrand: can you please approve https://github.com/snapcore/snapd/pull/281114:48
mupPR snapd#2811: cmd: add sc_is_debug_enabled <Created by zyga> <https://github.com/snapcore/snapd/pull/2811>14:48
mupPR snapd#2811 opened: cmd: add sc_is_debug_enabled <Created by zyga> <https://github.com/snapcore/snapd/pull/2811>14:48
zygajdstrand: trivial and I plan to use it to avoid debugging-only code in new stuff14:48
zygajdstrand: feel free to request name changes, I will follow up if you want that14:48
* zyga -> shopping14:49
mupPR snapcraft#1119 opened: tests: skip the tests that can't be run in arm64 <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1119>14:50
Son_Gokusergiusens, hey did you manage to take a crack at refactoring the build/stage-packages backend?15:04
mterrydidrocks: thanks for quick merge on the desktop helper  :)15:30
didrocksmterry: yw! :-)15:31
FlintHi guys15:32
=== Flint is now known as Guest45206
Guest45206Quick question, is there a snap packages offering maas-region controller and maas-rack controller or even a maas meta snap package?15:32
=== Guest45206 is now known as Fl1nt
Fl1ntcls15:35
Fl1ntlol15:35
Fl1ntok, so: Here I'm back: Quick question, is there a snap packages offering maas-region controller and maas-rack controller or even a maas meta snap package?15:36
=== chihchun is now known as chihchun_afk
victorbjelkholmIs there any way I can provide a mirror for snaps? Basically, a rsync endpoint I could download all the snaps for, then configure snap to fetch the packages from my endpoint instead?15:39
zygare15:55
tsdgeos_snap is all unhappy if you try to remove the same thing twice :D16:01
tsdgeos_http://paste.ubuntu.com/23955037/16:02
tsdgeos_and the spinner stays there foreeeeeeeeeeeever16:02
mupPR snapd#2811 closed: cmd: add sc_is_debug_enabled <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2811>16:03
tsdgeos_ah. not forever16:05
tsdgeos_finished eventaully16:05
mupPR snapd#2809 closed: cmd/snap-confine-tests: reformat test to pass shellcheck <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2809>16:07
mupPR snapd#2680 closed: interfaces: shutdown: also allow shutdown/reboot/suspend via logind <Created by morphis> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2680>16:08
ppisatiogra_: even with the modules and firmware directory in /, a freshly created image stops at "Running /scripts/local-premount ..."16:11
ogra_ppisati, squashfs compiled in or as module in the initrd ?16:12
ppisatiogra_: module, but part of initrd (at least if i trust snapcraft haven't manually checked though)16:13
ogra_hmm16:13
ppisati...16:13
ppisati      - CONFIG_SQUASHFS=m16:13
ppisati    kernel-initrd-modules:16:13
ppisati      - squashfs16:13
ogra_and you have a proper label on the writable partition ?16:13
jdstrandChipaca: http://paste.ubuntu.com/23955092/16:13
ogra_thats the only two things i could imagine making it stop there16:13
ppisatiogra_: i dd the image, let me check16:13
ogra_oh, also dont forget we have two console= args nowadays16:14
ogra_might be the output switches to tty (in case you are watching serial)16:14
jdstrandChipaca: note, with that I can get command tab completion to work and then argument completion to try to work. but things aren't going to be great. eg,16:14
jdstrand$ . /etc/bash_completion16:14
jdstrandbash-4.3$ fdisk bash: /bin/lsblk: Permission denied16:14
ppisatiogra_: i was watching serial and the lcd screen16:14
ogra_ah, k16:14
ppisatiogra_: indeed the "Running local-premount" only shows on lcd16:15
jdstrandChipaca: (where after 'fdisk ' I pressed <tab>16:15
ppisati...16:15
ppisati/dev/sdc8: LABEL="system-boot" UUID="2638-BE3F" TYPE="vfat" PARTLABEL="system-boot" PARTUUID="67822573-51a0-4e57-af2a-7f675ff35f0e"16:15
ppisati/dev/sdc9: LABEL="writable" UUID="e0364375-0ae8-4459-8462-2745dfe933a0" TYPE="ext4" PARTLABEL="writable" PARTUUID="fdaaa4cd-7a8e-4f1f-a0f1-4bbb0ea622a8"16:15
ppisatiand it appears the correct partition label is there16:15
ogra_looks fine16:15
ogra_well, thats the only thing i could imagie apart from missing kernel config16:15
ogra_though i wouldnt know what could be missing16:16
jdstrandChipaca: but it works fine for things that are allowed in teh policy. eg:16:16
jdstrandbash-4.3$ dmesg --16:16
jdstrand--buffer-size    --ctime          --human          --read-clear16:16
jdstrand...16:16
ppisatiogra_: let me do some more debugging16:16
ogra_if you boot with break=premount, does /proc/filesystems have squashfs ?16:16
ogra_perhaps there is more broken in the kernel plugin16:16
Chipacajdstrand, this is for tab completing of snap apps16:16
* ppisati tries16:16
Chipacajdstrand, so the completion script itself would be shipped in the snap (hypothetically; i'm still at the proof-of-concept step)16:17
Chipacajdstrand, that's why it was only bash-completion (which granted does ship a lot of completers itself; maybe i need to cut that down and ship our own version of it for this?)16:18
ppisatiogra_: ah, i can't stop it at boot prompt16:18
ppisatilovely16:18
ogra_oh16:18
zygappisati: did you enable the correct compression options for squashfs?16:18
jdstrandChipaca: I know tyhicks represented the concerns regarding this since something the snap ships is running outside of confinement (unless we do something to confine it, which I gather is what you are working on)16:18
ogra_ppisati, even with break=top ?16:18
ogra_(that should kick in before *anything runs)16:19
Chipacajdstrand, exactly, what i'm working on is having the completion itself running confined16:19
ppisatizyga: http://pastebin.ubuntu.com/23955117/16:19
cholcombeanyone willing to take a look at my amd64 build log for rust: https://launchpadlibrarian.net/305573480/buildlog_snap_ubuntu_xenial_arm64_ceph-safe-disk_BUILDING.txt.gz ?  It's failing but I'm not entirely sure why16:19
jdstrandChipaca: so, there is a choice. I just demonstrated tab completion can work for commands on the system. I think there will be issues with different cores and on classic with host /etc mounted in the snap, but it works in principle16:20
zygappisati: yes, looks good; though you may want to check how this compares to ubuntu kernel on amd64, we changed some things after realizing the settings we used consume gobs of ram16:20
ppisatiogra_: i can't break to the uboot prompt (counter is 0), so i need to regenerate uboot.env with tha option appended16:20
zygappisati: there was a bug about that on the kernel package16:20
ppisatizyga: yeah, that was the parallel decompressor16:20
ogra_zyga, ppisati http://paste.ubuntu.com/23955121/ ... from the current pi216:20
ppisatiyeah, i'll do some debugging16:21
ogra_ppisati, you dont need to break at the uboot prompt16:21
ogra_just edit cmdline.txt16:21
* zyga -> some quick food and back to PRs16:21
ppisatiogra_: dragonboard unfortunately16:21
ogra_and ?16:21
ogra_SD is SD16:21
ogra_just plug it over to your lpatop/PC16:21
ppisatiogra_: there's no cmdline.txt there, does it load automagically?16:22
jdstrandChipaca: I think to make this work for /snap/bin commands to only the user on the system (not in snaps), you could probably extend what is there16:22
ogra_oh16:22
ogra_crap, yeah16:22
ogra_sorry16:22
Chipacajdstrand, I'm possibly missing something, you mind if we PM for a bit?16:22
ogra_commandline is indeed in uboot.env only there16:22
ppisatiyep16:22
jdstrandChipaca: to makes shells in snaps use it (eg, make it work with what I pasted), might have to think about that a bit more16:22
ppisatiand there's no text versiobn of that uboot.env16:22
ppisatiogra_: do you know where i can find the text version of it?16:23
ogra_ppisati, https://github.com/snapcore/dragonboard-gadget/tree/master/prebuilt16:23
ppisatiogra_: nice, ta16:23
ogra_elopio, so lool has to sign the CLA to use non-canonical addresses for signing on github ? could we fix that so that people in core-dev on LP are automatically included ?16:25
ogra_that seems a bit strange to demand from people that have full commit rights to all of ubuntu already16:26
loologra_: it's copyright assignment to Canonical, so perhaps people in some ~canonical team should be exempt16:31
ogra_lool, yeah, that then ...16:31
ogra_i just find it silly that people already being covered have to sign it again16:32
ogra_and i'm personally reluctant to use my @canonical address for anything else than business mail (i.e. on something like github)16:32
mupPR snapd#2812 opened: tests: fix "snap managed" output check and supress output from expect in the authenticated login tests <Created by fgimenez> <https://github.com/snapcore/snapd/pull/2812>16:32
ogra_mvo, uuuh ... i'm hitting the "hsearch_r failed" on my laptop ! i thought that happened only during upgrades16:37
ogra_ogra@styx:~/Devel/branches/snapd/interfaces/builtin$ telegram-sergiusens.telegram16:37
ogra_hsearch_r failed: No such process16:37
* ogra_ blames sergiusens 16:37
ogra_(running the edge core here though)16:38
elopioogra_: from travis, there is no way to check who is in the canonical team in launchpad.16:44
ogra_elopio, well, then this check should be postponed until there is16:45
elopioogra_: the script is only an aid. If it fails, we have to check manually16:45
elopioit's not a blocker for merging the pr.16:45
ogra_or it should not make commits fail16:45
ogra_ah, the conversation looked like it was16:45
elopioogra_: that's because sergiusens says that all contributions from canonical employees should be made with the canonical address. I think he read it in some guidelines, but not sure.16:46
elopiokgunn: did you get my email?16:46
ogra_well16:47
ogra_agaik we are free to use our ubuntu.com address ... unless we commit to external projects16:47
ogra_*afaik16:47
ogra_where it is indeed important that you use cnonical.com when doing commits in your work time16:47
ogra_canonical.com16:47
ogra_for our own projects thats moot16:48
elopioI don't know, I had my personal address as the main one configured everywhere.16:48
ogra_also being an employee means you have signed the CLA with your contract :)16:48
mupPR snapd#2813 opened: tests: filter ubuntu-core systems for authenticated find-private test <Created by fgimenez> <https://github.com/snapcore/snapd/pull/2813>16:48
elopioogra_: I started a thread in canonical-snapcraft about how to check the CLA in a nicer way. Feel free to vent all your frustration there, maybe we get something done.16:51
ogra_heh, no frustration here ...16:51
ogra_just slight disconcert16:52
elopioogra_: :) we need an agry mob16:56
mvoogra_: sorry, its a general problem with edge, #2810 has a fix16:56
mvoogra_: but still some work required before that can land :/16:57
ogra_elopio, http://i.imgur.com/GX5tSki.jpg16:57
ogra_mvo, i noticed i was not on the latest ... a snap refresh fixed it ...16:57
* ogra_ unblames sergiusens 16:57
mvoogra_: interessting16:57
ogra_well, in fact a snap refresh core --beta ... which failed complaining about teh configure bits  ... then a snap refresh core ... which just got me updated fine16:58
ogra_so i tried to roll back first16:58
ogra_perhaps that was the bit making it behave16:59
mupBug #1662962 opened: 'snap find' does not allow channel specification <Snappy:New> <https://launchpad.net/bugs/1662962>17:05
mupPR snapcraft#1120 opened: Update rustup link.  Bug: 1662960 <Created by cholcombe973> <https://github.com/snapcore/snapcraft/pull/1120>17:05
loolwoudl someone have an example of a gadget.yaml with interface autoconnection handy?17:08
ogra_lool, morphis perhaps (but he just said goodbye for the day in another channel)17:08
=== DanChapman_ is now known as DanChapman
=== linuxhiker2 is now known as linuxhiker
mupPR snapcraft#1112 closed: core: setup core to support classic confinement <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1112>17:32
mupBug #1662899 opened: Snap packages install but can't be run <isv> <Linux Mint:New> <Snappy:New> <https://launchpad.net/bugs/1662899>17:35
zygajdstrand: https://github.com/snapcore/snapd/pull/281417:35
mupPR snapd#2814: cmd: add helpers for working with mount/umount commands <Created by zyga> <https://github.com/snapcore/snapd/pull/2814>17:35
zygajdstrand: the mount/umount command helpers, with better buffer handling and with past issues fixed17:35
mupPR snapd#2814 opened: cmd: add helpers for working with mount/umount commands <Created by zyga> <https://github.com/snapcore/snapd/pull/2814>17:36
zygajdstrand: if you can review that today I'll propose the actual useful cleanup of snap-confine that uses sc_mount/sc_umount and doesn't log manually17:36
zygajdstrand: I was also wondering how to progress on the big update-ns branch, I think that the mount entry helpers PR is the first one to land there17:36
zygajdstrand: namely this branch: https://github.com/snapcore/snapd/pull/277517:37
mupPR snapd#2775: cmd: add functions to load/save fstab-like files <Created by zyga> <https://github.com/snapcore/snapd/pull/2775>17:37
okyhow would something like an /etc/ file be handled with snappy packaged programs? i want a config file that can be edited by someone outside the snap17:37
zygaoky: store it in $SNAP_DATA or $SNAP_USER_DATA17:37
zygaoky: or use snappy configuration system (using the configure hook)17:37
zygaoky: and snap get/set commands17:37
zygaoky: normal /etc is off-limits17:38
zygaoky: and is mostly read only17:38
okyzyga: alright, i understand. i was hoping there'd be another option available (like readwrite mounts into the snap)17:39
okyzyga: or like a particular dir in the snap that is exposed as RW (where i can place configs)17:40
zygaoky: you just described $SNAP_DATA17:40
zygaoky: as for mounts, that may come but not in the next few releases17:40
zygaoky: and it would still be a poor UX for users17:40
zygaoky: that mount would be visible only to the snap, at runtime17:40
zygaoky: (to that particular snap)17:40
zygaoky: and users would still have to edit $SNAP_DATA/$SNAP_USER_DATA17:40
okyzyga: sure. i'll need to look to see how i can pre-populate the SNAP_DATA dir with my configs17:41
zygaoky: you should use a wrapper around your real app17:42
zygaoky: I think this is the only reliable way today17:43
zygaoky: configure hook runs after services start17:43
zygaoky: (or doens't always run before)17:43
okyi've already made several (maybe 5 or more) changes to my program to work with snap (specifically around using SNAP_DATA and SNAP_USER_DATA), now realizing that i need a configurable /etc/ system, it seems like i need to make some more17:43
okythanks for the guidance, zyga - i'll be exploring the options you outlined17:44
zygaoky: good luck17:46
Fl1ntguys, is there someone working on maas snaps?17:49
zygaFl1nt: I bet but I think you should ask on the maas mailing list or ping the maas developers directly17:51
Fl1ntok, thanks a lot zyga17:52
* ogra_ bets someone like stokachu would know 17:52
ogra_(or at leats be able to point in the right direction)17:52
Fl1ntzyga: got my answer \o/ They made my day :D18:02
Fl1ntsee ya guys, thanks a lot for your support.18:04
jkridnercall for participation in #beagle-gsoc: http://bbb.io/gsoc18:06
jdstrandzyga: I'll try18:16
rogpeppe1just checking: if I want my snap to have some configuration options, is this the mechanism I should use? https://developer.ubuntu.com/en/snappy/guides/config/18:24
rogpeppe1also, how is that related to https://github.com/snapcore/snapd/wiki/Configuration ?18:27
rogpeppe1niemeyer: ^18:28
=== rogpeppe1 is now known as rogpeppe
rogpeppeniemeyer: (hiya BTW!)18:28
niemeyerrogpeppe: Heya18:29
niemeyerrogpeppe: The former is completely out of date.. the "snappy" command doesn't even exist anymore18:29
rogpeppeniemeyer: ok - that's the first result that google gives me when googling for "ubuntu snap configuration"18:30
niemeyerrogpeppe: The latter is the current mechanism18:30
niemeyerrogpeppe: We should kill it18:30
rogpeppeniemeyer: ok, great18:30
rogpeppeniemeyer: i'm glad i asked :)18:30
rogpeppeniemeyer: BTW my snappy-based domestic power control system has been coming along a lot in the last week.18:31
rogpeppeniemeyer: lots of "things" on the net here18:31
niemeyer@rogpeppe Sweet, that's great to hear!18:31
nothalniemeyer: No such command!18:31
niemeyer@nothal sshh!18:31
nothalniemeyer: No such command!18:31
rogpeppelol18:32
rogpeppeniemeyer: one stumbling block has been lack of rtc integration18:32
rogpeppeniemeyer: but i managed to work around it by making a systemd unit to set the time before the snap unit starts18:32
=== Skuggen_ is now known as Skuggen
ogra_rogpeppe, well, did you try to follow the raspbian howto and try to hack the things they use to get it working into a core image ?18:35
ogra_rtc integration is fine ... just third-party rtc isnt :)18:35
rogpeppeogra_: i added the usual dtoverlay to the boot config, if that's what you mean18:35
rogpeppeogra_: it even worked once18:35
ogra_well, there is more to it than the dtoverlay i guess18:36
rogpeppeogra_: but not ever again18:36
rogpeppeogra_: i don't really understand the kernel internals of how /dev/rtc is provided tbh18:36
rogpeppeogra_: s/really understand/understand a thing about/ :)18:36
ogra_https://www.abelectronics.co.uk/kb/article/22/rtc-pi-on-a-raspberry-pi18:37
ogra_i fear we still have a bug with i2c not being enabled in config.txt ...18:37
ogra_that would be your first step18:37
ogra_we dont blacklist the i2c modules so you can skip that bit18:38
ogra_but i guess you will definitely need step 4 from the tutorial18:39
rogpeppeogra_: almost none of those instructions work as is in snappy18:39
rogpeppeogra_: no i2cdetect18:40
ogra_yeah skip that18:40
ogra_but make sure to have i2c enabled in config.txt18:40
rogpeppeogra_: the device works ok18:40
rogpeppeogra_: i have a program that talks to it fine18:40
ogra_on snappy ?18:41
rogpeppeogra_: yeah18:41
rogpeppeogra_: https://github.com/rogpeppe/misc/blob/master/cmd/pirtc/rtc.go18:41
ogra_hmm, so whats the exact issue now18:41
rogpeppeogra_: /dev/rtc doesn't exist18:41
rogpeppeogra_: so timedatectl can't use it18:42
ogra_well, the device should be created when the module is loaded18:42
rogpeppeogra_: the rtc module?18:42
ogra_does lsmod show rtc-ds1307 ?18:42
rogpeppeogra_: no18:42
ogra_aha18:43
ogra_well, so modprobe it ;)18:43
ogra_then check dmesg18:43
rogpeppeogra_: ok. i've not used modprobe before.18:44
ogra_sudo modprobe rtc-ds130718:44
ogra_;)18:44
ogra_then check the end of dmesg and see if it created some device18:45
rogpeppeogra_: lsmod now shows the module18:45
ogra_good18:45
zygarogpeppe: see, I told you to talk to ogran :)18:45
zygawell, ogra even18:45
ogra_ogra[n]18:45
ogra_:)18:45
rogpeppeogra_: no device though18:45
ogra_one of my many personalities18:45
rogpeppeogra_: and nothing in /var/log/dmesg18:45
ogra_rogpeppe, ok ...18:46
rogpeppeogra_: is modprobe persistent?18:46
ogra_not over reboots ...18:46
ogra_rogpeppe, so now ... sudo -s18:46
ogra_echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device18:46
ogra_then check dmesg again18:46
kalikianaHmmmm no package snapcraft on trusty?18:47
rogpeppeogra_: still nothing in dmesg18:47
ogra_any /dev/rtc now ?18:47
rogpeppeogra_: yup!18:47
=== JanC is now known as Guest64203
=== JanC_ is now known as JanC
ogra_aha18:47
rogpeppeogra_: my pirtc command now no longer works (2017/02/08 18:48:36 cannot open: error opening the address (104) on the bus (/dev/i2c-1): device or resource busy) - that's probably healthy though.18:49
ogra_rogpeppe, so as a quick hack: create a file /etc/modules-load.d/modules-rtc.conf ... and add rtc-ds1307 to it18:49
mupPR snapcraft#1059 closed: pluginhandler: support more complex stage-packages <Created by kyrofa> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1059>18:50
rogpeppeogra_: just "rtc-ds1307" as a single word on its own line?18:50
ogra_long term this requires the new snappy config setup for core which does not knwo about modules yet though18:50
ogra_yeah18:50
ogra_only that18:50
ogra_i'm not sure how we can add the "echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device" though ...18:51
ogra_normally you woould do that through a line in /etc/rc.local but we do not make that writable on purpose18:51
rogpeppeogra_: ok, done18:51
rogpeppeogra_: so should that have fixed my issue?18:51
ogra_well, you need that echo line before it works apparently18:52
rogpeppeogra_: if so, i'll reboot and check18:52
ogra_the module is only half the solution,  the other half is the "echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device"18:52
ogra_after that hwclock -s and -r should just work18:54
ogra_err18:54
ogra_hwclock -r and -w18:54
rogpeppeogra_: ok, so to get things straight, on a new device, to get rtc working, i add "dtoverlay=i2c-rtc,ds1307" to /boot/uboot/config.txt; i run "modprobe rtc-ds1307; echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device"18:54
rogpeppeogra_: sound about right?18:54
rogpeppeogra_: i'm thinking that timedatectl should just use it when it's there, right?18:54
ogra_yeah, that is how i read the vendor page :)18:54
ogra_right18:55
* rogpeppe reboots18:55
ogra_but it wont work on boot since you will have to manually do the echo bit still18:55
ogra_and without rc.local being writable that will be a bit tricky to get going18:56
rogpeppeogra_: oh18:56
rogpeppeogra_: right, so it actually doesn't solve my issue, unfortunately, 'cos it must be done on boot18:57
ogra_(and i also suspect rc.local might be a bit late, the hwclock start job runs before that i fear)18:57
rogpeppeogra_: i guess at least now i can dispense with my pirtc command)18:57
ogra_rogpeppe, we need to find a solution for that though :) please file a bug18:57
* ogra_ wonders how we can solve that ... thats really a bit tricky18:58
rogpeppeogra_: where's the right place to file this kind of bug?18:58
ogra_see the channel topic18:58
ogra_image realted bugs are fine on the snappy project18:58
rogpeppeogra_: in fact, i think you might be better to file the bug because i don't actually know what the underlying issue is here but you do18:59
mupPR snapd#2815 opened: release: don't force devmode on LinuxMint "serena" <Created by zyga> <https://github.com/snapcore/snapd/pull/2815>18:59
rogpeppeogra_: i.e. is the problem because the device isn't being created or because the module's not being detected or...19:00
ogra_rogpeppe, because the addon board needs the echo line for initialization19:00
rogpeppeogra_: or i could just file a bug that says "h/w RTC doesn't work on raspberry Pi"19:00
ogra_the module loads obviously and we also have the devicetree file but you can do the last step19:00
ogra_no, rtc works ... generically ... thats specific to the addon board initialization19:01
ogra_i'm filing one19:01
rogpeppeogra_: thanks19:01
rogpeppeogra_: that's why it's better you file it :)19:01
mupBug #1662899 changed: Snap packages install but can't be run <isv> <Linux Mint:Invalid> <snapd:In Progress by zyga> <https://launchpad.net/bugs/1662899>19:02
mupBug #1663001 opened: rc.local not writable, but i2c addon board needs special treatment <Snappy:New> <https://launchpad.net/bugs/1663001>19:06
ogra_rogpeppe, ^^19:06
ogra_would be nice if you could "me too" that one :)19:06
ogra_i might have further questions and since you are the only one owning that HW ....19:06
rogpeppeogra_: done19:07
ogra_thx19:07
ogra_and sorry for not getting back to you on the ML yet19:07
ogra_(and thanks for hunting me down here now)19:07
rogpeppeogra_: FWIW that seems like the most obvious h/w for anyone that might use an RTC on a pi19:07
rogpeppeogra_: np, thanks for helping out now19:08
rogpeppeogra_: one difficulty i have with using snappy is that it's not clear how much in the system is snappy-specific and how much is generic linux stuff.19:09
ogra_just forget about generic linux stuff and assume its all new :)19:10
ogra_i.e. all the above we just did are hacks in the light of snappy ...19:10
cholcombethis is a silly question but how do i unit test just the rust plugin and not the entire world?  I've tried a bunch of different patterns and I can't seem to hit the right one19:21
kyrofacholcombe, python3 -m unittest snapcraft.tests.plugins.test_rust19:23
cholcombekyrofa, thanks :)19:23
cholcombeso it's the python path not the directory19:23
kyrofacholcombe, nothing magical there. The ./runtests.sh essentially just does that plus the discover module19:23
kyrofacholcombe, right19:24
cholcombekyrofa, does sources.Script default to setting the name of the file it downloads to the same name as the link?19:27
kyrofacholcombe, I'm not sure off the top of my head19:27
cholcombeok19:28
kyrofacholcombe, but you can look, it's in snapcraft/internal/sources/19:28
pmcgowankyrofa, is there a way to reinitialize my state.json on a device19:29
kyrofapmcgowan, I've never tried. Did you try stopping snapd and renaming that file?19:30
pmcgowankyrofa, not yet19:31
kyrofapmcgowan, that's really my only idea :P19:31
pmcgowanI saw an old post that said to restart the firstboot service, but thats not there any mre19:31
kyrofapmcgowan, zyga would probably know better19:31
kyrofapmcgowan, or ogra_ perhaps?19:31
zygapmcgowan: hmm, on a device19:31
zygapmcgowan: why do you want to do that?19:32
pmcgowanzyga, yeah, still playing around with my stuck dragonboard19:32
zygapmcgowan: the store was just fixed19:32
zygapmcgowan: can you try to refresh now?19:32
pmcgowanzyga, oh?19:32
pmcgowanone sec19:32
pmcgowanzyga, its working on the first snap I tried19:33
zygapmcgowan: sounds promising, try to refresh core19:34
pmcgowanzyga, it started to refresh automagically19:34
pmcgowanits working woot19:35
zygawoot :)19:35
pmcgowanzyga, what was the issue?19:35
zygapmcgowan: store-side bug, according to pedronis the store was asking to refresh the wrong macaroon so the client refreshed but was back to square one19:36
pmcgowangreat glad its fixed19:37
ogra_pmcgowan, whee ! here too !19:39
* zyga EODs19:41
zygattyl19:41
pedronispmcgowan: ogra_: great19:41
pmcgowanpedronis, why only certain devices?19:42
ogra_matter of them having been off for a while19:42
pedronispmcgowan: first it needed to be core (it doesn't affect classic), 2nd it depends when the last time the macarron was created/refreshed19:42
ogra_zyga saw it on a pi today ...so it wasnt actually drafgonboard specific19:42
pmcgowanok19:42
pedronispmcgowan: the bug was introduced unoticed in the store a little bit ago19:42
pedronispmcgowan: but it triggered only once the macaroon were starting to expire and need refreshing19:43
pmcgowangotcha19:43
pmcgowanpedronis, is there a bug # for that? I can close the snapd one19:44
pedroniswe are also looking how to tests these paths a bit more (it's a bit complicated because of the expiry side of this, normally it's relatively long)19:44
pedronispmcgowan: not yet, we'll do some bug gardening tomorrow19:45
pmcgowanok19:45
ogra_woah19:49
ogra_2017-02-08T19:46:49Z ERROR cannot remove snap file "core", will retry in 3 mins: [--root / disable snap-core-533.mount] failed with exit status 1: Failed to execute operation: Structure needs cleaning19:49
pmcgowanwhered ya see that19:49
ogra_after the snap refresh core19:49
ogra_smells a bit like my SD is borked19:50
ogra_ogra@dragon:~$ sudo reboot19:50
ogra_sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy'19:50
ogra_sudo: unable to load /usr/lib/sudo/sudoers.so: /usr/lib/sudo/sudoers.so: cannot read file data: Input/output error19:50
ogra_sudo: fatal error, unable to load plugins19:50
pmcgowanoops19:50
pedronispmcgowan: I moved this one to store19:50
pmcgowanpedronis, perfect19:50
pedronisnow there's  snapstore project for those19:50
pedronispmcgowan: the other strange message about needing to buy core, is that after removing creds the stuck download got a 401 and there's a bit of lack of details there atm, so snapd assumed is a non-free snap19:52
pedronisthat one needs  a bit of work both in store and snapd19:52
pmcgowanpedronis, right I saw that commentary19:52
ogra_yay19:53
ogra_ogra@dragon:~$ snap refresh19:53
ogra_All snaps up to date.19:53
ogra_so after reboot it is back in order19:53
pmcgowannice19:53
pedronisit's a cosmetic/UX issue though, nothing fundametally broken, but bad error reporting19:53
pmcgowanright19:53
ogra_ogra@dragon:~$ snap info core|grep installed19:53
ogra_installed:   16.04.1 (1133) 67MB -19:53
pmcgowannow to remember what I was doing19:55
mupPR snapcraft#1121 opened: cleanbuild: allow talking to a remote <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/1121>20:05
mupPR snapd#2802 closed: snap-confine: make sc_map_search/read_number take const const char * arguments <Created by mvo5> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2802>20:10
mupPR snapd#2816 opened: interfaces/builtin/core-support: Allow modifying logind configuration from the core snap <Created by ssweeny> <https://github.com/snapcore/snapd/pull/2816>20:13
mupPR snapcraft#1108 closed: store: add support for tracks in channels <Created by josepht> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1108>20:20
zygajdstrand: re, regarding strncmp I thin we ought to compare strlen()+1 characters20:34
zygajdstrand: otherwise this happens:20:34
zygaprintf("%d\n", strncmp("noneofyourbusiness", "none", 5));20:35
zygajdstrand: comparing 4 characters means they are equal20:35
zygajdstrand: we should compare 5,20:35
zygajdstrand: do you agree?20:35
jdstrandzyga: using 5 is fine. note my comments mentioned that20:35
zygajdstrand: right (start with)20:35
jdstrandnot 5 specificially, but that nothing should be noneofyourbusiness20:35
zygajdstrand: I just wanted to be on the safe side20:35
jdstrandthat's fine20:36
zygajdstrand: thanks20:36
=== victorbjelkholm_ is now known as victorbjelkholm
zygajdstrand: hmm, thinking about it some more, I think that strncmp and strcmp with one constant string is identical20:39
zygajdstrand: I already made the change but we will compare at most 5 characters in both cases20:40
jdstrandzyga: that would be implementation-specific. strcmp may use a strlen() on a non-terminated string20:44
victorbjelkholmIs there any way I can provide a mirror for snaps? Basically, a rsync endpoint I could download all the snaps for, then configure snap to fetch the packages from my endpoint instead?20:44
zygajdstrand: hmm, indeed, thanks for the insight!20:49
zygavictorbjelkholm: not at present20:49
victorbjelkholmzyga: thanks. "not at present" referring to a rsync endpoint? There is some other way I could have my own mirror?20:50
zygavictorbjelkholm: no20:54
zygavictorbjelkholm: you may try to write a proxy for the snap store20:54
zygavictorbjelkholm: that should be doable today20:54
victorbjelkholmooh... I see... So where are the snaps hosted today?20:54
zygavictorbjelkholm: you can then point snapd at your proxy and have it mirror or cache stuff20:54
zygavictorbjelkholm: in a CDN, I don't know the details20:54
victorbjelkholmyeah, that makes sense20:54
victorbjelkholmah, so I guess it's a CDN hosted by/owned by Canonical?20:55
zygajdstrand: can you re-review the sc_u?mount_cmd branch please20:55
victorbjelkholmhm, maybe the snaps will never be mirrorable if so...20:55
zygajdstrand: minimal changes as instructed20:55
zygavictorbjelkholm: I believe someone will come up with a proxy20:55
zygavictorbjelkholm: as for mirroring it is not clear as snaps don't have to be FOSS20:56
zygavictorbjelkholm: and may require license20:56
zygavictorbjelkholm: the free snaps should be possible to mirror but I don't know if anyone works on this20:56
victorbjelkholmah, yeah, wouldn't be too hard, I'm just afraid of installing things from a central repository I have no idea where it comes from or where it's hosted20:56
zygavictorbjelkholm: as the API stands today snapd asks the store for the URL20:56
zygavictorbjelkholm: why?20:56
victorbjelkholmso in the end snaps would be the same as .deb packages today, multiple repositories with different requirements and uses20:57
victorbjelkholmI'm not sure I can trust it, might be a CDN running on some randoms computer, I have no information at this point and I'm having troubles finding it as well20:57
zygavictorbjelkholm: because each snap is signed and there is a root of trust there's a different approach to repositories20:57
zygavictorbjelkholm: one store can aggregate other stores20:57
victorbjelkholmah, where can I see this chain of trust?20:57
zygavictorbjelkholm: but you cannot use multiple stores20:57
zygavictorbjelkholm: in github.com/snapcore/snapd look at the asserts package20:58
zygavictorbjelkholm: and the overlord/assertstate package20:58
zygavictorbjelkholm: one store design solves many issues in a natural way (name authority for instance)20:59
* zyga gets back to his family20:59
zygajdstrand: if you +1 it I'll get a 2nd +1 from the rest of the team tomorrow20:59
victorbjelkholmhm, not sure I understand. But yeah, have dinner here as well so maybe we'll speak later20:59
zygajdstrand: thank you for the detailed review, I need to stamp strNfoo on my screen20:59
zyga:-)21:00
jdstrandheh21:00
jdstrandwell, strNfoo aren't always the answer, but they can be helpful in certain situations21:00
zygayeah but I rarely think about them21:00
mupPR snapd#2817 opened: many: switch channels on refresh if needed <Created by mvo5> <https://github.com/snapcore/snapd/pull/2817>21:03
=== verterok` is now known as verterok
jdstrandzyga: I think I am being dense: http://paste.ubuntu.com/23956602/21:14
jdstrandzyga: I couldn't reconcile your comment to what I was thinking. can you enlighten me?21:15
mupPR snapcraft#1122 opened:  repo: cache stage packages for faster future use <Created by kyrofa> <https://github.com/snapcore/snapcraft/pull/1122>21:20
mupPR snapcraft#1119 closed: tests: skip the tests that can't be run in arm64 <Created by elopio> <Closed by elopio> <https://github.com/snapcore/snapcraft/pull/1119>21:47
mupPR snapd#2812 closed: tests: fix "snap managed" output check and supress output from expect in the authenticated login tests <Created by fgimenez> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2812>21:48
cholcombeelopio, that PR i put in should fix my build problems on arm64 and ppc64 i hope :)21:50
mupPR snapcraft#1123 opened: Adding Fish she'll source and IDEA IDE to gitignore <Created by joedborg> <https://github.com/snapcore/snapcraft/pull/1123>21:53
zygajdstrand: hey21:53
zygajdstrand: you are currect, it is just the case that MS_REC has no meaning alone21:53
zygajdstrand: so your code is closer to ideal but the difference does not matter here21:54
jdstrandzyga: right. in the 'what I expected' code, it never would be21:54
zygajdstrand: the goal of that variable is to collect flags we've used so that we don't repeat them21:54
zygajdstrand: since they use special syntax21:54
jdstrandzyga: well, but isn't it with the current code at least possible for MS_REC to be set when it should not?21:54
zygajdstrand: yes but that is harmless, we use that as a mask to filter out stuff not to show again21:55
zygajdstrand: yes, you can call mount (..., MS_REC)21:55
zygajdstrand: and that will show21:55
zygajdstrand: if you couple that with MS_PRIVATE it won't show again but you will see --make-rprivate21:55
zygajdstrand: it's subtle21:55
zygajdstrand: because we don't filter invalid arguments21:55
zygajdstrand: if you want I can be precise there21:55
zygajdstrand: but I don't think it matters (in this specific case)21:56
cholcombesergiusens, i don't get why it's still looking for rustup.sh.  I changed the unit tests.  Maybe there's some test i missed?21:56
jdstrandzyga: I think either being precise or adding a comment as to why you don't need to be precise would be good, cause the way it reads (at least a quick reading) is that MS_BIND alone will set MS_REC and you'll get --rbind21:57
zygajdstrand: wait, that shoud not be the case21:57
zygajdstrand: you will get --bind21:57
zygahttps://github.com/snapcore/snapd/pull/2814/files#diff-380b7bd2738396bc92ee5a2bd7f81d11R191 (I'm sure you know this now but just to be clear, we unset the bits seen in used_special_flags)21:58
mupPR snapd#2814: cmd: add helpers for working with mount/umount commands <Created by zyga> <https://github.com/snapcore/snapd/pull/2814>21:58
zygajdstrand: and this is tested: https://github.com/snapcore/snapd/pull/2814/files#diff-70758630224dcb7ba3963d1fa05bb69aR10221:59
mupPR snapd#2814: cmd: add helpers for working with mount/umount commands <Created by zyga> <https://github.com/snapcore/snapd/pull/2814>21:59
jdstrandactually, I missed the one's complement22:00
jdstrandzyga: ok, I responded. couple of small things but feel free to pass along22:14
cholcombeanyone want to take a quick peek at my pr and see where i goofed: https://github.com/snapcore/snapcraft/pull/1120 ? I looked at the download function and it uses os.path.basename for the link you give it.  My change should work but the units are still failing22:16
mupPR snapcraft#1120: Update rustup link.  Bug: 1662960 <Created by cholcombe973> <https://github.com/snapcore/snapcraft/pull/1120>22:16
cholcombei deleted the pyc files just to see if that was it but it's not22:16
cholcombei see it.  thank you grep :D22:17
mupPR snapcraft#1121 closed: cleanbuild: allow talking to a remote <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1121>22:23
mupPR snapcraft#1113 closed: repo: cache stage packages for faster future use <Created by kyrofa> <Closed by kyrofa> <https://github.com/snapcore/snapcraft/pull/1113>22:35
=== foli_ is now known as foli
=== plars is now known as plars-away
mupPR snapcraft#1124 opened: beta <Created by snappy-m-o> <https://github.com/snapcore/snapcraft/pull/1124>23:29
mupPR snapcraft#1124 closed: beta <Created by snappy-m-o> <Closed by elopio> <https://github.com/snapcore/snapcraft/pull/1124>23:53

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