/srv/irclogs.ubuntu.com/2016/10/03/#snappy.txt

mupPR snapd#2054 closed: client,daemon,cmd/snap: improve create-user APIs <Created by niemeyer> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2054>00:29
=== j is now known as Guest16612
mwhudsonis it possible to get snapd to forget about an assertion?03:42
=== King_InuYasha is now known as Son_Goku
zygahey06:54
zygamwhudson: I think only with a new assertion06:54
zygamwhudson: (or with rm -f)06:54
mupPR snapd#2056 opened: interfaces: add Plug/Slot/Connection reference helpers <Created by zyga> <https://github.com/snapcore/snapd/pull/2056>07:25
mwhudsonmorning07:40
mupPR snapd#2056 closed: interfaces: add Plug/Slot/Connection reference helpers <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2056>08:03
mupPR snapd#2057 opened: docs: remove references to removed buying features <Created by pete-woods> <https://github.com/snapcore/snapd/pull/2057>08:16
mupPR snapd#2058 opened: interfaces: add ofono interface <Created by alfonsosanchezbeato> <https://github.com/snapcore/snapd/pull/2058>08:17
hikikohello :)08:21
hikikoI need some help with an error message during dist-upgrade on X08:21
hikikohttp://pastebin.com/HUcC3wWg08:21
hikikothe initial problem I was trying to solve was this:08:22
hikikoI have 2 graphics cards intel and nvidia, but I work on the intel, the nvidia is there for testing features and during the last dist-upgrades the nvidia drivers and several other packages were automatically installed and messed up my xorg configuration so I couldn't use any of the cards. everytime I remove the nvidia drivers and the other packages they are reinstalled as a dependency of libcuda1-361 and every time I try to remove08:25
hikikoit I receive that error message...08:25
hikikoany ideas? :)08:25
mupPR snapd#2059 opened: interfaces: add repo.ResolveConnect that handles name resolution <Created by zyga> <https://github.com/snapcore/snapd/pull/2059>08:32
didrockshikiko: no package I can see contain this file, I guess it's snapd creating it dynamically for system mount point. It's a question for mvo or zyga ^08:34
hikikothanks didrocks :)08:39
mupPR snapd#2060 opened: many: change Connect to take ConnRef instead of strings <Created by zyga> <https://github.com/snapcore/snapd/pull/2060>09:28
mupPR snapd#2061 opened: interfaces: add dummy implementation of ResolveConnect <Created by zyga> <https://github.com/snapcore/snapd/pull/2061>09:52
didrockszyga: hey! It seems that if a service fails to start at installation time, the snap is removed09:55
didrockszyga: that makes it hard for debugging, any tip about it?09:55
didrocksdavidcalle: FYI (on the doc)09:55
zygadidrocks: hey10:30
zygahikiko: looking10:30
zygahikiko: that's something that was only available in -proposed10:31
zygahikiko: this is something that has to be fixed in the nvidia packaging but I believe it was removed already10:32
zygahikiko: can you check if you can downgrade to the non-proposed package and see if the problem goes away10:32
zygadidrocks: I wasn't aware of it10:32
zygadidrocks: I don't know what is the plan about this, sorry10:32
hikikozyga, how can I downgrade it?10:33
zygahikiko: I think you can try to install it with "apt install package=version"10:39
zygahikiko: alternatively edit the dpkg maintainer script on your disk not to touch that mount unit10:40
zygahikiko: but really, I don't fully know what is required; you probably want to ask alberto milone or mvo (try alberto first please)10:40
hikikozyga, and where can I find the version to which I have to downgrade?10:40
zygahikiko: try apt-cache policy package10:40
zygathis will show you available versions10:41
hikikothanks zyga :) I'll try10:41
zyga(the package in question is the one that fails because of the maintianer script)10:41
zyga*maintainer10:41
mupPR snapd#2062 opened: interfaces/policy: introduce InstallCandidate and its checks <Created by pedronis> <https://github.com/snapcore/snapd/pull/2062>10:51
=== hikiko is now known as hikiko|ln
mupPR snapd#2063 opened: interfaces,docs: allow sharing SNAP{,_DATA,_COMMON} via content iface <Created by zyga> <https://github.com/snapcore/snapd/pull/2063>11:46
zygajdstrand: hey, you may want to review this one ^611:47
didrockszyga: hikiko|ln: btw, easier for downgrading, you can do apt install package/<distropocket> (like package/yakkety for instance)12:04
hikiko|lndidrocks, if I try to do that the proposed are selected12:05
didrocksno12:06
didrocksif you don't set yakkety-proposed, and only yakkety, it will select yakkety12:06
didrocks(with -f to force a downgrade ofc)12:06
hikiko|ln# apt install libcuda1-361/xenial -f12:07
hikiko|lnGet:1 http://archive.ubuntu.com/ubuntu xenial-proposed/restricted amd64 nvidia-367 amd64 367.44-0ubuntu0.16.04.2 [69,6 MB]12:07
didrocksthis is the nvidia package12:08
didrocksnot libcuda1-36112:08
hikiko|lnyup it's a dependency12:08
didrocksso ofc, the other packages follow the general scheme12:08
hikiko|lnoh ok :)12:08
didrocksso, you need to list it12:08
didrocks# apt install libcuda1-361/xenial nvidia-367/xenial -f12:08
didrocksand so on… :)12:08
hikiko|lnI need to remove the dependencies and libcuda didrocks12:09
hikiko|lnshould I first downgrade then remove?12:09
didrocksI would say yeah, first downgrade everything to remove -proposed components12:09
didrocksand then remove12:09
didrocks(get in a consistent state first)12:09
hikiko|ln~# apt install libcuda1-361/xenial  nvidia-367/xenial nvidia-opencl-icd-367/xenial nvidia-prime/xenial nvidia-settings/xenial -f12:10
hikiko|lnGet:1 http://archive.ubuntu.com/ubuntu xenial-proposed/restricted amd64 nvidia-367 amd64 367.44-0ubuntu0.16.04.2 [69,6 MB]12:10
hikiko|lnit seems to ignore my setting12:11
didrockshum… that's weird12:11
didrockswhat if you only do apt install nvidia-367/xenial -f only?12:11
hikiko|lnhttps://paste.ubuntu.com/23269943/ didrocks12:12
didrockshikiko|ln: I think you have another package that forces you to get that version12:16
hikiko|lnI've purged nvidia* didrocks12:17
hikiko|lncan I see which package it is somehow?12:17
didrocksand here we go12:17
didrockshttps://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-36712:17
didrocks-367 is only available in -proposed12:17
didrocksthat's why he didn't follow your guidance to prefer the /xenial one :p12:17
hikiko|lnand I didn't have it installed12:17
hikiko|lnso what should I do?12:18
didrocksI'm pretty sur eyou have something like libcuda1-367 or anything depending on it12:18
didrockswell, you did purge it, right?12:18
hikiko|lnthe initial problem is to remove libcuda1-36112:18
hikiko|lnyup12:18
didrocksapt-cache rdepends nvidia-36712:18
didrocksanything there? ^12:18
hikiko|lnReverse Depends:12:18
hikiko|ln  libcuda1-36712:18
hikiko|ln  nvidia-opencl-icd-36712:18
hikiko|ln  nvidia-367-dev12:18
hikiko|ln  nvidia-36112:18
didrocksyeah, so you need to remove any of those installed12:18
didrocksjust purge them12:19
hikiko|ln0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.12:21
hikiko|lnthey seem purged12:21
didrocksgood :)12:21
hikiko|lnmaybe rdepends libcuda1-361?12:21
didrocksyou was able to delete it as well?12:21
didrocksnow, try to remove it12:21
didrocksas it's what you wanted IIRC12:21
hikiko|lnsame12:22
hikiko|lnE: Sub-process /usr/bin/dpkg returned an error code (1)12:22
didrocksmaybe zyga telling to downgrade nvidia on the proposed didn't indicate the right package12:23
didrocks(I didn't follow closely)12:23
didrocksensure you don't have snapd from proposed from what I understand12:23
hikiko|lnmmm how?12:24
didrocksapt-cache policy snapd12:24
didrocksdo you have the proposed version installed?12:24
hikiko|lnyes12:24
didrocksso, same12:24
didrocksrevert to the one on xenial12:24
hikiko|lnsame :/12:25
hikiko|lnif I purge snapd12:25
hikiko|lnremove the package and reinstall it?12:26
=== hikiko|ln is now known as hikiko
hikikostill :p just tried that12:27
loologra_: Hey, around?12:31
loologra_: were you the one implementing the dragonboard boot support?  :-)12:31
arazyga, ping12:33
mupPR snapd#2064 opened: Adding new AutopilotIntrospectionInterface <Created by heber013> <https://github.com/snapcore/snapd/pull/2064>12:40
zygaara: hey13:02
zygaara: how can I help you13:02
arazyga, hey! I was wondering how the snap-confine SRU to xenial was going13:02
arazyga, any news?13:02
arazyga, (what's the bug report to track it?)13:03
zygaara: the status is that we landed one SRU last week but we need to go through all the bugs and verify those13:18
zygaara: I won't have time for this today as we're freezing now and I need to finish features first13:18
arazyga, where is the bug that tracks the SRU?13:19
zygaara: if you can help by asking anyone to go through all the SRU bugs on launchpad for snap-confine, we can do this faster13:19
zygaara: there's no one bug, each bug has SRU data now13:19
arazyga, perfect, I will check on the report page13:19
zygaara: look at milestones .40, .41 an.4213:19
zygaara: .42 has two bugs that don't have SRU data but I can add that quickly; this was a tiny release13:19
zygaara: if you can get me someone to work on validation I will save a lot of time13:20
arazyga, are you sure that the SRU landed in -proposed? I don't see it in the http://people.canonical.com/~ubuntu-archive/pending-sru.html13:20
zygaara: no, ah, sorry, too many facts lately, .41 was in -proposed but we removed it and someone should upload .42 now13:20
zygaara: (there's .42.1 but it doens't have to be released now)13:21
arazyga, can you organize uploading it, please? I can help verifying it13:21
zygaara: yes, I can13:22
zygaara: thank you :)13:22
arazyga, thanks you!13:22
arazyga, *thank13:22
zygajoc: ok, branch comig up, just a simple unit test to tie it together13:33
zygajoc: I will need you to add this udev rule manually to your device and see if it does the right thing13:33
zygajoc: (no need to build/alter snapd)13:34
ogra_lool, http://bazaar.launchpad.net/~ogra/+junk/dragonboard/files ... there is a README ... gadget code is at http://bazaar.launchpad.net/~snappy-dev/snappy-hub/snappy-systems/files/head:/dragonboard/13:40
* ogra_ goes back to uniting :)13:41
joczyga: ack13:41
zygajoc: ok, pull request is up, mup will share the link in a sec13:45
mupPR snapd#2065 opened: interfaces/builtin: use udev to export GPIOs to userspace <Created by zyga> <https://github.com/snapcore/snapd/pull/2065>13:45
zygajoc: look at tests, get the rule there and stick it into /lib/udev/rules.d/foo.rules13:46
zygajoc: look at journal and run:13:47
zygajoc: udevadm control --reload-rules13:47
zygajoc: udevadm trigger13:47
zygajoc: the first one should not be required but it's safe to run anyway13:47
zygajoc: if I got this right it will export one GPIO to userspace13:47
zygajoc: if not, well, iterate :)13:47
joczyga: got it, i'll just tidy up some testing i've been doing of netplan then get right on it13:48
oparozHello, is there a solution in the works to upgrade from one Snap to another?13:50
zygajoc: thanks, ping me when you got something13:50
zygaoparoz: ?13:50
zygaoparoz: can you explain what you mean by this13:50
oparozzyga myappv1 to myappv213:50
zygaoparoz: and what are myappv1 and myappv2?13:51
zygaoparoz: snap names, snap versions, something else?13:51
oparozzyga, we can't force people to upgrade to v2, so we need a new snap, but then how do people migrate for v1 to v2?13:51
zygaoparoz: why do you need a new snap?13:51
zygaoparoz: and what do you mean by "we cannot force people to upgrade"13:51
oparozzyga, let's say I offer 3 years support for v1 and every time I release a new version13:52
zygaoparoz: ah I see what you mean now13:52
oparozI mean every year, I release a new version13:52
zygaoparoz: right now you'd have to indeed offer a second snap if you want to have a different snap that can be concurrently updated (or not)13:53
oparozzyga, so some users will want to stay on v1 for a long time and we can't just push v2 to the current dsnap13:53
zygaoparoz: using the content interface you could offer data migration13:53
zygaoparoz: I actually added support for this just now: https://github.com/snapcore/snapd/pull/206313:53
mupPR snapd#2063: interfaces,docs: allow sharing SNAP{,_DATA,_COMMON} via content iface <Created by zyga> <https://github.com/snapcore/snapd/pull/2063>13:53
oparozzyga, ah interesting, I'll look into that13:53
oparozThanks13:54
Mirvstupid questions again, if I extend make plugin, with eg. command.extend("INCLUDEPATH ..., why do I get "make I N C L U D E P A T H + = " / h " type of output? ...13:54
cjwatsonBecause you probably meant command.append13:54
cjwatsoncommand.extend takes a sequence13:54
zygayep13:55
cjwatsonSo either command.append("...") or command.extend(["...", "...", ...])13:55
Mirvah, thank you, I'm happy someone endures me :)13:55
niemeyerjdstrand: ping14:16
jdstrandniemeyer: hey14:16
niemeyerjdstrand: Heya14:17
niemeyerjdstrand: Today it's a bit of a critical day for us.. we want to get all the PRs to the freeze in place by the EOD14:17
niemeyerjdstrand: How're things looking on your end?14:17
niemeyerjdstrand: Would you be able to prioritize work that is freeze-related today?14:18
jdstrandniemeyer: those PRs pedronis mentioned already are prioritized. is there anything beyond that?14:18
pedronisjdstrand: I should get a couple more14:19
pedronisbut nothing atm14:19
niemeyerjdstrand: These are the top ones14:19
niemeyere.g. #2053 might be a good starting point14:20
niemeyersnapd#205314:20
mupPR snapd#2053: interfaces/policy: implement snap-id/publisher-id checks <Critical> <Created by pedronis> <https://github.com/snapcore/snapd/pull/2053>14:20
jdstrandniemeyer: that is next on the list14:21
niemeyerjdstrand: Thanks!14:21
mupPR snapd#2061 closed: interfaces: add dummy implementation of ResolveConnect <Created by zyga> <Closed by niemeyer> <https://github.com/snapcore/snapd/pull/2061>14:22
zygajoc: any updates14:31
joczyga: done with netplan switching over now14:35
mupPR snapcraft#846 closed: Release changelog for 2.19 <Created by sergiusens> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/846>14:35
zygajoc: thanks!14:35
elopiokyrofa: can you help me understand when to use SNAP_USER_DATA and when to use SNAP_USER_COMMON?15:04
kyrofaHey elopio! I'd be happy to15:04
kyrofaWhat kind of app are we talking, here?15:05
kyrofaOr just generic?15:05
elopiokyrofa: I have two. syncthing, which is peer to peer file synchronization. And the mysql database of nylas sync-engine, which is an imap thing.15:06
kyrofaelopio, so obviously since snaps are often made up of many components, you often find yourself with a few different datasets that need to be saved15:08
kyrofaelopio, for each one, think about what should happen to it when an upgrade occurs15:08
kyrofaYou want to make sure the stuff you save won't get in the way of upgrades or rollbacks15:08
kyrofaFor example: does my dataset need to be mutated in some way for a few version?15:09
kyrofaOr is it just raw data that isn't really modified?15:09
kyrofaIf new versions need to modify it, it's possible that the modifications aren't backward-compatible. Such datasets should probably go into SNAP_USER_DATA instead of COMMON, since each version has its own copy of that data15:10
kyrofaAnd rollbacks will work, even if you mutate the data in newer versions15:10
elopioit's hard, because I think the distinction is not designed in the tools. For example, syncthing has a home folder, where it stores the files to sync, and metadata.15:11
kyrofaelopio, another aspect to consider is how much space is taken by the dataset. Is it massive? Does it make sense to copy it for every upgrade?15:11
elopioI think the files to sync should be in common, the metadata in user_data, but I can't split them.15:11
=== om26er is now known as om26er1
=== om26er1 is now known as om26er
kyrofaelopio, indeed15:12
kyrofaelopio, is it like the owncloud client? Where you add directories to a gui client?15:12
elopiokyrofa: yes.15:13
kyrofaelopio, or does it have only one directory?15:13
elopioyou have one default directory, which probably should be in SNAP_USER_COMMON/Sync, and then you can add additional15:13
kyrofaAnd it saves metadata specific to that folder within each folder being synced?15:14
kyrofaIt doesn't have any sort of central database?15:14
elopiokyrofa: it has a central config xml, and some certificates.15:15
kyrofaelopio, where does that central config go?15:16
elopiokyrofa: you start the server with synchting --home=$DIR.15:16
elopiothe config ends in that dir.15:16
kyrofaelopio, could that not be SNAP_USER_DATA, then?15:17
elopioyes, but then the default SYNC dir would also end up in ~/snap/syncthing/rev/.15:19
elopiokyrofa: maybe you can comment here: https://github.com/syncthing/syncthing/pull/3636#discussion_r8148837415:19
mupPR syncthing/syncthing#3636: Add the packaging metadata to build the syncthing snap <Created by elopio> <https://github.com/syncthing/syncthing/pull/3636>15:19
elopioI'm sure you can explain it better than me.15:19
kyrofaelopio, hmm... yeah, you probably don't want files accumulating there15:21
kyrofaelopio, it's too bad they're so tightly coupled!15:21
elopiokyrofa: the guy is really nice, I thing. So if we explain the thing, probably he can add a separate flag for default sync dir.15:22
kyrofaelopio, this looks like an old diff. What is SNAP_USER_DIR?15:23
elopiobut as I understand, the answer to his question is: the config should be in SNAP_USER_DATA, just like it's currently doing.15:23
elopiokyrofa: a mistake. I just removed it.15:23
kyrofaAh, now there's no flags15:23
elopioif you don't pass -home, it will use $HOME.15:23
kyrofaOkay, I'll make a comment here15:24
elopiothank you.15:24
kyrofaArgh, firefox! I had a comment all written out...15:26
kyrofaOh it saved it. Nice15:27
sergiusenselopio hint, snapcraft/xenial-proposed ;-)15:30
elopiosergiusens: \o/15:31
elopioah, I don't have the tests prepared this time.15:31
mupPR snapd#2063 closed: interfaces,docs: allow sharing SNAP{,_DATA,_COMMON} via content iface <Created by zyga> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2063>15:34
Croephahi, in core 16, can you disable nplan and use the older /etc/network/interfaces.d/... files?15:47
kyrofaCroepha, probably a question for ogra_15:51
mupPR snapd#2057 closed: docs: remove references to removed buying features <Created by pete-woods> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2057>15:55
Croephaon core is /etc/passwd supposed to be writeable ?15:55
Croephakyrofa, thanks, but I think i figured out the nplan thing, it seems that if you just delete the nplan config, it will use the old config15:58
Croephanow im having a dfferent issue, on reboot, I cant login or change passwd, debug console works though, so I got a root terminal of sorts15:59
mupPR snapd#2041 closed: daemon: add `snap create-user --force-managed` support <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2041>16:06
joczyga: it doesnt look like the command is being run16:18
joczyga: it may be because there isnt an "add" event16:19
joci don't see one if i use udevadm monitor16:19
mupPR snapd#2047 closed: snap: auto mount block devices and import assertions <Created by mvo5> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2047>16:25
Croephaok, so after digging, it looks like core now uses pam_extrausers, so setting root passwd isn't going to be possible under this plan, and adding a user is adduser --extrausers ...16:25
mupPR snapd#2060 closed: many: change Connect to take ConnRef instead of strings <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2060>16:34
modprobe__What plug should I use to get access to /dev/{,u}random?16:51
mupPR snapcraft#824 closed: Add `snapcraft create-key` <Created by cjwatson> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/824>17:08
elopioogra_: are you around? There's a new snapcraft release in proposed.17:18
sergiusensmarcoceppi or here if rocket is not possible :-)17:23
zygapitti: hey17:24
zygapitti: I'm trying to write an udev rule that will export a gpio by writing to /sys/class/gpio/export17:25
zygapitti: the constraint is that after that I call "udevadm trigger"17:25
zygapitti: is there anything sensible I can put into my rule to tie it into an event?17:25
zygapitti: it should work both immediatly after "udevadm trigger" returns and on boot17:26
zygajoc: ^^17:26
kyrofajdstrand, it doesn't look lik /dev/random (and similar) are contained in the default profiles. Are they not safe for access?17:26
zygakyrofa: you can easily consume all entropy17:26
kyrofajdstrand, though getrandom is available17:26
zygakyrofa: and DOS other programs17:26
kyrofazyga, ah, sure. Do we have an interface for such things, then?17:27
jdstrandkyrofa: they are safe and available in all profiles via the base abstraction17:27
kyrofajdstrand, ah ha, okay17:27
zygakyrofa: ah, jdstrand knows better :)17:27
jdstrandkyrofa: you may want to look at 'apparmor_parser -p /path/to/profile' to see all the policy with the abstractions17:27
* kyrofa needs to read the base abstraction17:27
zygajdstrand: so I _can_ write a heatdeathoftheuniverse snap?17:27
kyrofaOr that! Thanks jdstrand :)17:27
mupPR snapd#2053 closed: interfaces/policy: implement snap-id/publisher-id checks <Critical> <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2053>17:33
mupPR snapd#2051 closed: many: setup snapd macaroon for local users <Created by matiasb> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2051>17:34
joczyga: yep that is the question i was trying to ask, bad English on my part!17:39
joczyga: i just tried by removeing the ACTION= altogether17:39
joc(can't spell now either)17:40
joczyga: it made sure the gpio was always exported, but you couldnt unexport as the rule was always matched17:40
zygajdstrand: hey, can you please upload .42 from yakkety to xenial, ara's team will do the valiation and work on SRU17:43
zygajdstrand: the lack of "undo" is fine for now17:44
jdstrandok17:44
zygajdstrand: thanks17:45
mupPR snapd#2066 opened: many: abbreviated forms of disconnect <Created by zyga> <Conflict> <https://github.com/snapcore/snapd/pull/2066>17:47
mupPR snapd#2067 opened: cmd/snap: trivial auto-import and download tweaks <Created by niemeyer> <https://github.com/snapcore/snapd/pull/2067>17:54
elopiokyrofa: sorry, you told me to test. I have this for you:18:07
elopiohttps://bugs.launchpad.net/snapcraft/+bug/162995518:07
elopiohttps://bugs.launchpad.net/snapcraft/+bug/162995718:07
mupBug #1629955: rosdistro is not documented in the catkin plugin help <Snapcraft:Triaged> <https://launchpad.net/bugs/1629955>18:07
mupBug #1629957: When I try to build a snap with the wrong catkin rosdistro, there is no good error <Snapcraft:Triaged> <https://launchpad.net/bugs/1629957>18:07
kyrofaelopio, ah, very good!18:08
kyrofaelopio, this is why I ask you to test ;)18:08
kyrofaMan, rosdistro has been around forever, I didn't even check the docs assuming they were good :P18:08
kyrofaelopio, blocking, you think? Or no?18:08
elopiosometimes I get depressed. No piece of software ever works for me on the first try. /o\18:09
kyrofa(I don't think these are new bugs)18:09
elopiokyrofa: no, medium and low. To fix when you have some time.18:09
kyrofaelopio, well good find, thank you!18:09
kyrofaelopio, you're QA. Finding bugs should make your day!18:10
elopiothat's ok when I try to break it on purpose. Not so nice when I'm just trying to use things.18:10
mupPR snapd#1970 closed: interface/builtin: add ptrace support to system-trace <Created by niedbalski> <Closed by niemeyer> <https://github.com/snapcore/snapd/pull/1970>18:12
mupPR snapd#1945 closed: debian, tests: add trusty tests <Reviewed> <Created by vosst> <Closed by niemeyer> <https://github.com/snapcore/snapd/pull/1945>18:14
modprobe__jdstrand, kyrofa: Does that mean /dev/urandom is available by default? It appears not to be working, though I don't know of an easy way to pop a shell in the sandbox to find out for sure.18:29
modprobe__As to consuming all available entropy, random has that issue, but not urandom, and I understand that urandom is regarded as every bit as good of a CSPRNG as random (better, since it should always work)18:31
mupPR snapd#2055 closed: interfaces/policy,overlord: check connection requests against the declarations in ifacestate <Critical> <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2055>18:35
mupPR snapd#2062 closed: interfaces/policy: introduce InstallCandidate and its checks <Critical> <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2062>18:35
kyrofamodprobe__, indeed, it should work18:39
mupPR snapd#2044 closed: snap: auto-import assertions from block devices <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/2044>18:42
modprobe__kyrofa: Hmm... Well my program indicates pretty clearly that it doesn't. Botan throws an exception saying "System_RNG failed to open RNG device" and looking at its source, the only way that exception gets thrown is if opening /dev/urandom fails.18:45
kyrofamodprobe__, I'm not claiming you aren't running into issues, I'm just saying confinement shouldn't be causing it :) . Do you see apparmor denials in syslog (or from snappy-debug)?18:47
modprobe__kyrofa: Ahh yes, I see this in dmesg: audit: type=1400 audit(1475513126.687:37): apparmor="DENIED" operation="open" profile="snap.stakeweightedvoting.app" name="/dev/urandom" pid=6341 comm="VotingApp" requested_mask="w" denied_mask="w" fsuid=1000 ouid=018:54
kyrofamodprobe__, it's trying to _write_ to it?18:54
kyrofaIndeed, the profile is only r18:54
modprobe__https://botan.randombit.net/doxygen/system__rng_8cpp_source.html (line 77) apparently, it is...18:55
kyrofamodprobe__, I can't imagine why... ?18:55
modprobe__Looks like a bug in botan.18:56
kyrofaAgreed18:56
modprobe__I'm reporting it to them. In the meantime, can you think of any workaround I can use until they release a fix?19:05
kyrofamodprobe__, would it be an easy patch?19:06
modprobe__Yeah, I could just use a custom build of botan...19:06
kyrofamodprobe__, yeah, that's what I'd recommend19:06
modprobe__Should literally just be changing that one line.19:06
kyrofamodprobe__, as a plus, you can propose it back upstream ;)19:06
modprobe__Yeah, I just made an issue on their github repo and I'll follow it up with a pull request soon, assuming it passes the smoke test. :)19:09
elopiocprov: I don't quite understand the sign-build --local. It always replies that "A signed build assertion for this snap already exists."19:12
elopioah, I think that a previous command left the -build file. But it was empty.19:14
elopioI'll try to reproduce that.19:14
sergiusenselopio you only sign once per build19:16
elopiosergiusens: cprov: https://bugs.launchpad.net/snapcraft/+bug/162998419:19
mupBug #1629984: trying to sign-build without keys leaves a -build file, empty <Snapcraft:Triaged> <https://launchpad.net/bugs/1629984>19:19
modprobe__kyrofa: Apparently writing to random or urandom is a way to add entropy to the kernel pool. Maybe the AppArmor profile should be updated?19:21
kyrofamodprobe__, hmm interesting, jdstrand is the guy to consider that. Not sure what the ramifications would be19:21
jdstrandwe'd need a new interface for that19:22
jdstrandI think. please file a bug19:23
kyrofamodprobe__, regardless, the fact that the thing dies if it can't add entropy still seems like a bug19:24
mupPR snapd#2059 closed: interfaces: add repo.ResolveConnect that handles name resolution <Created by zyga> <Merged by zyga> <https://github.com/snapcore/snapd/pull/2059>19:25
modprobe__kyrofa: Very true.19:25
elopiocprov: now without a body, I get: "no assertion found in request body". Tried on staging and production with a test user.19:25
elopiois that because my user is not allowed, or something?19:26
modprobe__jdstrand: Is that a bug on snapd?19:28
kyrofamodprobe__, indeed19:31
modprobe__Alright, I'll file that soon19:33
cprovelopio: thanks for filing the bug, the stray/empty -build should not be there.19:48
elopionp19:49
elopioralsina: I'm getting this:19:49
elopio$ snapcraft validate u1test20161003 ubuntu-core=119:49
elopioGetting details for u1test2016100319:49
elopioSnap 'u1test20161003' was not found in the 'stable' channel.19:49
elopioBut I've just released the snap to stable on staging. Am I doing something wrong herE?19:49
elopiosergiusens: https://bugs.launchpad.net/ubuntu/+source/snapcraft/+bug/1629472/comments/319:51
mupBug #1629472: [SRU] New stable micro release 2.19 <verification-needed> <snapcraft (Ubuntu):Fix Released> <snapcraft (Ubuntu Xenial):Fix Committed> <snapcraft (Ubuntu Yakkety):Fix Released> <https://launchpad.net/bugs/1629472>19:51
elopioI'm going for lunch. I'm just missing the happy paths of gated and validate.19:51
marcoceppisergiusens: o/19:52
marcoceppisergiusens: I'm technically not working today, so I haven't been around my computer as much19:53
cprovelopio: ralsina is off today, can you run `snapcraft gated u1test20161003` ?19:53
elopiocprov: $ snapcraft gated u1test2016100319:54
elopioName    Approved19:54
elopioprints nothing. I reported a bug about that, too.19:54
elopiohttps://bugs.launchpad.net/snapcraft/+bug/162999119:54
mupBug #1629991: snapcraft gated prints no message when there are no gated snaps <Snapcraft:New> <https://launchpad.net/bugs/1629991>19:54
cprovelopio: I can see your rev. 1 in stable, curl -s -H 'X-Ubuntu-Series: 16' https://search.apps.staging.ubuntu.com/api/v1/snaps/details/u1test20161003?channel=stable | jq-cprov.jq '.revision'19:59
elopiocprov: yes. But the message says it's not found.20:00
cprovelopio: can you try `snapcraft validate u1test20161003 ubuntu-core=1` again, so we can confirm it was hitting bad-caching in staging CPI20:00
elopiocprov: done. Same error.20:00
cprovelopio: okay, it will need some code changes as well, I've mentioned multiple time in the review that gating snap-id would be better resolved via the SCA account-info, somehow it slip and the code in trunk is using CPI. I will get into this asap20:02
cprovelopio: is it blocking snapcraft release ?20:02
elopiocprov: thanks. And I don't know if it should block it. It's ugly to release a command that doesn't work, but sergiusens can just not mention it in the release notes.20:03
elopiosergiusens: your call.20:03
mupPR snapd#2046 closed: cmd, disconnect: abbreviated forms of disconnect <Created by stolowski> <Closed by niemeyer> <https://github.com/snapcore/snapd/pull/2046>20:04
modprobe__kyrofa, jdstrand: Bug report filed at https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/162999620:06
mupBug #1629996: Cannot open /dev/random and /dev/urandom for write <snapd (Ubuntu):New> <https://launchpad.net/bugs/1629996>20:06
sergiusenscprov yeah, big branches can cause that ;-)20:06
mupPR snapd#1874 closed: snap: support assertion references in `snap prepare-image` <Reviewed> <Created by mvo5> <Closed by niemeyer> <https://github.com/snapcore/snapd/pull/1874>20:06
cprovsergiusens: good point20:06
mupPR snapd#1767 closed: overlord, daemon: add collect attribute hooks <Reviewed> <Created by stolowski> <Closed by niemeyer> <https://github.com/snapcore/snapd/pull/1767>20:07
mupPR snapd#1613 closed: interfaces/builtin: add dbus-app interface <Blocked> <Reviewed> <Created by jdstrand> <Closed by niemeyer> <https://github.com/snapcore/snapd/pull/1613>20:09
mupPR snapd#2067 closed: cmd/snap: trivial auto-import and download tweaks <Created by niemeyer> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2067>20:10
loologra_: thanks, description of the boot files is pretty slick20:11
jgdxwhat's the status on Ubuntu Core on RP3? Google returns a AskUbuntu link which is not super up to date20:11
jgdxogra_, you know? ^20:11
loologra_: I was actually pinging because of the upcoming dragonboard 600 that you might have seen announced recently20:12
looljgdx: pi ?20:12
looljgdx: there's a beta image for rpi3 like for the other supported platforms: http://cdimage.ubuntu.com/ubuntu-snappy/16.04/current/20:12
jgdxlool, cool, thank you20:14
mupPR snapd#2068 opened: many: preparations for switching most of autoconnect to use the declarations <Created by pedronis> <Conflict> <https://github.com/snapcore/snapd/pull/2068>20:16
loologra_: the 600 doesn't have an u-boot port, so we can't follow the same path20:17
loologra_: and there's worth, there might be boards requiring UFS too; at which point we will need a much more complete u-boot20:17
lool*worse20:17
elopiocprov: sergiusens: also branches without staging integration tests ;)20:20
cprovelopio: yeah, it will definitely serve a lesson.20:22
mupPR snapd#2069 opened: overlord/auth: update CheckMacaroon to verify local snapd macaroons <Created by matiasb> <https://github.com/snapcore/snapd/pull/2069>20:53
sergiusenselopio cprov from the point of view of the project, it is already released, so not much we can do as soon as it lands on master20:56
sergiusenselopio I propose to you to do this testing now for history and status ;-)20:57
jgdxpi3 using that beta image gives me four berries, but nothing more20:58
cprovelopio: you have to set a new env var for staging UBUNTU_STORE_SEARCH_ROOT_URL='https://search.apps.staging.ubuntu.com/' to make validation work :-/21:18
cprovelopio: that's why you gating snap was not found.21:19
mupPR snapd#2069 closed: overlord/auth: update CheckMacaroon to verify local snapd macaroons <Created by matiasb> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2069>21:27
mwhudsonniemeyer: hey, am i right to think that console-conf should not run if the device is managed?21:36
mwhudsonniemeyer: there is a potential hole where if you use a autoload.assert file to add a user that only has ssh keys and no password and the default network config doesn't work for whatever reason you'll be stuck21:37
mwhudsonthe alternative is that console-conf still runs but only presents the network config screen, not the "please enter email" screen21:38
mupPR snapd#2070 opened: all: move from ubuntu-core to core by default, but still support ubuntu-core as core <Created by chipaca> <https://github.com/snapcore/snapd/pull/2070>21:47
mupPR snapcraft#847 opened: Implementing channel-closing <Created by cprov> <https://github.com/snapcore/snapcraft/pull/847>21:50
kgunnkyrofa: you about?21:56
kyrofakgunn, I am, what's up?21:56
kgunnkyrofa: curious, what is the philosophy behind something becoming an official snapcraft part ?21:56
kgunnhttps://wiki.ubuntu.com/snapcraft/parts21:57
kgunni had someone ask about qtmir and mirclient libs becoming "snapcraft parts"21:57
kgunnbut unsure it makes sense21:57
kgunnas these are something that are currently in the archive and can easily be listed as a part21:57
kgunnin the yaml21:58
kgunnunder a nil plugin21:58
kyrofakgunn, anything that seems generally useful. If building qtmir for snappy takes a lot of weird config flags, for example, you could make it a part so other people could just say "build qtmir" instead of "ack, how do I build qtmir"21:58
kgunnkyrofa: hmm, yeah i don't think there's anything special there...21:58
kgunndefinitely not weird21:59
kyrofaYeah, if they can just use the archive packages then it's less useful. Still potentially useful from the point of view that it's less typing, but it's of limited usefulness, certainly21:59
kyrofakgunn, nothing wrong with adding it, but don't feel obligated21:59
kyrofakgunn, now, if you find yourself constantly asking "how do I get mir in a snap," then you could save yourself some time22:00
kyrofaNot asking, answering22:00
sergiusenscprov elopio fwiw, it is in the instructions and I was succesful gating and validating a bunch of snaps (even private ones iirc)22:01
Pharaoh_Atemzyga: this could be quite interesting for fedora's snappy stuff: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/FUWLJQYQJAGNGSSFTCA3ZEHAX43LJ7UU/22:01
kgunnkyrofa: so it can be used as a template aswell ?22:02
kgunni mean the mir-client snap is a template of sorts...but the qtmir and libmirclient are just pkg listings under parts22:02
kgunnthe only thing of interest is the helper file22:03
kgunnthat sets environ flags22:03
kgunnlike  http://bazaar.launchpad.net/~mir-team/+junk/snapcraft-mir-client/view/head:/client-start22:04
mwhudsonwheee funtimes https://github.com/snapcore/snapd/pull/2044#issuecomment-25124196422:09
mupPR snapd#2044: snap: auto-import assertions from block devices <Created by mvo5> <Closed by mvo5> <https://github.com/snapcore/snapd/pull/2044>22:09
mupBug #1630036 opened: auto import of assertions fails for devices present at boot <Snappy:New> <https://launchpad.net/bugs/1630036>22:43
jdstrandzyga: fyi, filed bug #163004023:11
mupBug #1630040: [SRU] update to 1.0.42 <snap-confine (Ubuntu):Fix Released> <snap-confine (Ubuntu Xenial):In Progress by zyga> <snap-confine (Ubuntu Yakkety):Fix Released> <https://launchpad.net/bugs/1630040>23:11
jdstrandzyga: will upload in a bit23:12

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