/srv/irclogs.ubuntu.com/2017/03/09/#snappy.txt

=== robertliu_ is now known as robertliu
mupPR snapcraft#1178 opened: tests: make the kernel unit tests architecture independent <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1178>03:03
=== gavinlin_ is now known as gavinlin
=== gavinlin is now known as Guest9388
=== gavinlin_ is now known as gavinlin
=== gavinlin is now known as gavinlin_
=== gavinlin_ is now known as gavinlin__
=== gavinlin__ is now known as gavinlin
=== gavinlin is now known as gavinlin__
=== gavinlin__ is now known as Guest15388
=== Guest15388 is now known as gavinlin
=== chihchun_afk is now known as chihchun
Mirvkyrofa: the bug's example links - both mine and Tim's, are modified qmake plugins. so yes, QTDIR, LIBS, QMAKE_LIBS, QMAKE_LIBDIR, INCLUDEPATH, QML_IMPORT_PATH, QML2_IMPORT_PATH would be the ones that would need to optionally allow custom path in addition to the defaults in the current qmake plugin07:16
mupPR snapd#3009 closed: interfaces/builtin: small refactor of dbus tests <Created by zyga> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3009>08:02
mupPR snapd#2947 closed: cmd/snap-confine,tests: bind-mount /etc/os-release <Created by zyga> <Closed by zyga> <https://github.com/snapcore/snapd/pull/2947>08:32
mupBug #1671386 opened: cannot run a snap shell <Snappy:New> <https://launchpad.net/bugs/1671386>08:47
mupPR snapd#3010 opened: snap: skip /dev/ram from auto-import assertions to make it less noisy <Created by mvo5> <https://github.com/snapcore/snapd/pull/3010>09:09
mupBug #1671386 changed: cannot run a snap shell <Snappy:Invalid> <https://launchpad.net/bugs/1671386>10:21
=== chihchun is now known as chihchun_afk
mupPR snapd#3007 closed: merge the 2.23.1 release back into master <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3007>10:40
mupPR snapd#2974 closed: many: add new (hidden) `snap debug ensure-state-soon` command and use in tests <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/2974>10:42
Son_Gokumeep11:12
gbissonhi all, I'm trying to make an ubuntu image for Boundary Devices platforms (NXP i.MX-based). I've started off the roseapple-pi and built an image ok but have several questions.11:47
gbisson1) when looking at 'snap changes' when booted up, I can see "Initialize device" in Doing state11:48
gbissonit gets stuck there and I don't where to look in order to change that11:48
gbisson2) do I need to upload the gadget/kernel snaps to my dev portal so that it is recognized properly?11:49
gbisson(asking cause the snap list show a rev of x1 with no developer name)11:49
gbisson3) when booting up I can see a bunch of "mkdir: can't create directory '/root/writable/system-data//etc/xxx', is that normal?11:51
gbissonhmm, regarding 1 I can now see the log: ERROR cannot deliver device serial request: unexpected status 40011:57
mupBug #1671446 opened: content interface behaves different if tried an operation before connecting the interface <Snappy:New> <https://launchpad.net/bugs/1671446>11:57
gbissonok, so according to https://www.mail-archive.com/snapcraft@lists.snapcraft.io/msg02253.html this error is normal12:01
gbissonsince my device hasn't been pushed to canonical yet12:02
mupBug #1569581 changed: snapd no longer detects apparmor changes on upgrade <Snappy:Fix Released by zyga> <apparmor (Ubuntu):Triaged by jdstrand> <snapd (Ubuntu):Triaged> <apparmor (Ubuntu Xenial):Triaged by jdstrand> <snapd (Ubuntu Xenial):Triaged> <https://launchpad.net/bugs/1569581>12:06
cachiotyhicks, any news about the dbus tests?13:45
=== chihchun_afk is now known as chihchun
RumpleCan a (non-core) interface be provided in a snap?13:55
kalikiana_Rumple: Snaps can implement interfaces, provided snapd declares it13:56
kalikiana_What sort of interface is it?13:57
Rumplekalikiana_: awesome, I wish to access /sys/class/hwmon & /sys/dev - it's a fancontroller (fancon)13:58
Rumplekalikiana_: can you point me to some documentation on including an interface, I haven't been able to find any13:59
Rumplekalikiana_: sorry misread you, there is no interface that provides the access14:03
kalikiana_Rumple: Have a look at interfaces/builtin/basedeclaration.go in snapd, pulseaudio for example can be provided by the system or a snap, lxd is only implemented by a snap14:04
kalikiana_You'll want to add a new interface exposing what you need14:04
mupBug #1581610 changed: snap connect/disconnect does not abort when an error occurs <Snappy:Fix Released by zyga> <https://launchpad.net/bugs/1581610>14:04
mupBug #1665590 changed: When snapd is refreshed, it does not regenerate apparmor profiles when interfaces have changed <Snappy:Fix Released by zyga> <https://launchpad.net/bugs/1665590>14:04
kalikiana_Rumple: Although it sounds like you mainly need access to those devices? No extra service implementing them?14:05
Rumplekalikiana_: correct. I would use --classic but stable branch does not allow that (without manual review')14:06
King_InuYashasergiusens: hey, it's been a long time!14:11
King_InuYashahaven't seen you around here in a while14:11
kalikiana_Rumple: Maybe double-check with jdstrand which is more sensible14:11
Rumplekalikiana_: thanks I'll give it a try14:13
Jasem[m]so I tried to make a snap for my app (KStars), and I install KF5 content snap, but when I start the program (kstars), I get error while loading shared library: libKF5Crash.so.5: cannot open shared object file14:24
mupPR snapcraft#1176 closed: demos, tests: remove the tomcat demo snap <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1176>14:27
qenghoAnyone have a trick for a upstream project that doesn't honor the INSTALL_ROOT env var to its "make" invocation?14:46
qenghoI see "make-install-var" yaml key. I'm not sure it takes anything.14:48
qenghofg14:48
sergiusensJasem[m]: you need to publish as the same publisher as the kde5-frameworks one or maybe manual connect to the content interface slot for kde-frameworks514:49
sergiusensqengho: that allows you sets you up to use prefix instead14:50
Jasem[m]sergiusens: how do I do that? manuall connect the content interface?14:50
Jasem[m]sergiusens: I just looked in my /snap directory, have ubuntu-core, kde5-frameworks-5, and kstars14:50
Jasem[m]in kstars, there is /snap/kstars/current/kf5 but empty, and of course /snap/kstars/current/usr/lib/* does not have libKF5Crash.so provided by the kde-frameworks-5 snap14:51
qenghoAh, "artifacts" yaml key. Got it.14:52
nuclearbobI'm not sure who to ask about this (maybe ogra_ ?) but I'm trying to auto-import a system-user assertion on a virtual machine, and in the logs I see things proceeding up to the api call to create the user, but the user doesn't actually get created14:53
mupBug #1671511 opened: snap run --shell <snap> should ignore env vars such as PROMPT_COMMAND <Snappy:New> <https://launchpad.net/bugs/1671511>14:56
tyhickscachio: no, sorry, I've been busy with security updates this week and haven't been able to get enough breathing room to look into perf testing15:06
Jasem[m]so I ran snap interfaces kde-frameworks-515:13
Jasem[m]but got nothing, no Slot/Plug!15:14
Jasem[m]also ran snap interfaces kstars and got only some of the plugs specified in the snapcraft.yaml file, the rest (camera, serial-port, pulseaudio) not listed15:14
sergiusensJasem[m]: maybe it isn't connected to anything and doesn't show? http://paste.ubuntu.com/24146456/15:17
Jasem[m]sergiusens: so I connect it to kstars ? sorry never done this before15:18
sergiusensJasem[m]:  snap connect kstars:<plug-name> kde-frameworks-5:<slot-name>15:19
Jasem[m]sergiusens: let me run that and check15:19
sergiusensdon't know your plug-name and slot-name you can check in my paste15:19
Jasem[m]sergiusens: error: cannot perform the following tasks:15:21
Jasem[m]- Connect kstars:kde-frameworks-5-plug to kde-frameworks-5:kde-frameworks-5-slot (cannot connect plug "kde-frameworks-5-plug" from snap "kstars", no such plug)15:21
Jasem[m]This is what I get from 'snap interfaces kstars' https://paste.kde.org/prugyftgz15:23
elopiodidrocks: davidcalle: I was making a snap for bitcoin and found that most of the other cryptocoins out there are just forks. So I think it would be really useful to have a tutorial to snap bitcoin. What do you think?15:25
Jasem[m]sergiusens: here is my snap if you want to test it yourself: http://indilib.org/jdownloads/snap/kstars_2.7.5_amd64.snap15:27
didrockselopio: I would prefer we cover the per-topic tutorials first15:32
didrocksonce we are done, yeah, real life use case can be useful15:32
davidcalleelopio: is it an electron app?15:32
didrocksif it serves a real purpose directly, we can turn it into that topic15:32
didrockslike electron15:32
elopiodavidcalle: no. It's qt, a daemon and a cli.15:33
didrocksoh, interesting topic15:33
didrocksbut yeah, can be once we covered the basics15:33
didrocks(unless you volounteer to write it)15:33
davidcallecan you port it to Electron?15:33
davidcalle(kidding)15:34
elopiodidrocks: not me, but a guy from the community. Should I tell him to start writing it and maybe publish it somewhere else while the basic tutorials are in place?15:34
didrockselopio: no, he could just coordinate with us (we can flush out together the titles/structures)15:35
didrocksI'm happy to help15:35
=== cachio is now known as cachio_lunch
elopiodidrocks: cool. If I fail to convince him, I'll do it myself.15:36
elopiothe only problem I see is that we need to apply a tiny patch in the source code. But I hope that snappy will give us a workaround.15:36
didrockselopio: \o/15:37
didrocksyeah :)15:37
RumpleHow long does 'manual review' take, and does it occur on every release (classic confinement snap in stable branch)?16:03
=== cachio_lunch is now known as cachio
mupPR snapcraft#1179 opened: godeps plugin: add git to build-packages <Created by cjwatson> <https://github.com/snapcore/snapcraft/pull/1179>16:24
flexiondotorgseb128 didrocks Have you ever tried using classic confinement and the desktop helpers?16:37
flexiondotorgThis combination results in desktop-launch not found.16:37
=== chihchun is now known as chihchun_afk
mupPR snapd#3011 opened: tests: remove core_name variable <Created by fgimenez> <https://github.com/snapcore/snapd/pull/3011>16:50
didrocksflexiondotorg: I didn't, but you need to say bin/desktop-launch I think16:51
didrocksI opened a bug about it, was set as "low" priority (at least having an error message)16:52
flexiondotorgI'll give that a go. I think I been here before ;-)16:52
mupPR snapcraft#1178 closed: tests: make the kernel unit tests architecture independent <Created by elopio> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1178>16:55
mupPR snapd#3001 closed: partition: deal with grub{,2}-editenv in tests <Created by mvo5> <Merged by mvo5> <https://github.com/snapcore/snapd/pull/3001>16:55
gbissonhi all, what would be the best type to package firmware (wifi, bt, etc..) inside its own snap?16:57
kyrofagbisson, I don't quite understand the question16:58
gbissonkyrofa: I need to had some firmware files to my image17:00
sergiusensgbisson: kernel snap17:00
gbissonkyrofa: from what I can see there's a firmware section to the kernel snap17:00
gbissonbut I'm asking if it can be in its own snap17:00
gbissonso you can update the firmware files without updating the kernel basically17:01
kyrofagbisson, hmm, I doubt it, but sergiusens might know some more about how that's structured17:02
gbissonkyrofa: thanks! I'm not sure to understand the motivation behind forcing the firmware to be with the kernel snap17:02
kyrofagbisson, unfortunately I'm afraid I don't either, but I'm sure there's a reason17:02
kyrofagbisson, I don't have as much experience with kernel snaps as I'd like17:03
kyrofagbisson, ppisati may have some insight into this as well17:03
elopiostgraber: hey, I haven't received a confirmation from you on the calendar. Are we still up for the testing day tomorrow?17:09
stgraberelopio: yeah, all good17:13
gbissonsergiusens: ppisati: anymore detail on this limitation about the firmware?17:14
gbissonsergiusens: ppisati: also, does it have to be in a tar-content? or can it be from a folder?17:14
sergiusensgbisson: from whatever valid source you have17:15
sergiusenskyrofa: gbisson the reason for it all to be together is predictability17:16
elopiostgraber: \o/17:18
gbissonsergiusens: thanks for the clarification although I'm still not convinced (what is the difference with a regular Ubuntu system where each fw has its own package)17:20
gbissonsergiusens: this also avoids installing firmware you don't need, which is useful for embedded systems with some space constraints17:22
sergiusensdavidcalle: do we have docs going over the differences in Ubuntu Core? ^17:22
sergiusensgbisson: I suggest going to the mailing list and bringing up your concenrs there17:23
gbissonsergiusens: I know the difference between Ubuntu and Snappy, I meant the difference in predictability between the two17:24
sergiusensgbisson: then why are you asking these questions?17:28
gbissonsergiusens: I'm not saying I know it all, I just wanted to point that my question was only about "why is predictability an argument for Snappy and not Ubuntu" and not "what are all the difference between the 2"17:31
gbissonsergiusens: anyway I'll add the firmware inside the kernelsnap as it's supposed to be, thanks17:32
sergiusensgbisson: what I mean is, ask these questions on the mailing list; the whys will be answered there17:37
mupBug #1670749 changed: classic confinement requires manually setting PATH and PYTHONPATH <openstack> <Snappy:Invalid> <https://launchpad.net/bugs/1670749>18:24
pmcgowanjdstrand, hey, testing the confined version and getting one denial still accessing mir, did I miss something20:17
pmcgowanMar 09 20:15:29 patsdragon audit[5240]: AVC apparmor="DENIED" operation="capable" profile="snap.mir-kiosk.mir-kiosk" pid=5240 comm="Mir/IPC" capability=21  capname="sys_admin"20:17
=== JanC is now known as Guest31591
=== JanC_ is now known as JanC
mupBug #1670749 opened: classic confinement requires manually setting PATH and PYTHONPATH <openstack> <Snappy:New> <https://launchpad.net/bugs/1670749>20:22
pmcgowanjdstrand, nm, somehow lost the kiosk changes20:33
mupPR snapd#3012 opened: [interfaces] Enable location.Service.Provider in dbus policy <Created by vosst> <https://github.com/snapcore/snapd/pull/3012>20:55
mupPR snapcraft#1180 opened: tests: support snap directory in external tests <Created by elopio> <https://github.com/snapcore/snapcraft/pull/1180>21:01
mupPR snapcraft#1179 closed: godeps plugin: add git to build-packages <Created by cjwatson> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1179>21:10
Odd_BlokeCan anyone point me at an example of using seed.yaml to seed snaps for installation on first boot?  I'm struggling to get it to work (on zesty, classic).21:27
Odd_BlokeI have the snap I want installed in /var/lib/snapd/seed/snaps/ and the assertion that was downloaded by `snap download` at /var/lib/snapd/seed/assertions/.21:27
Odd_BlokeMy seed.yaml is 'snaps: [ "hello-world_27.snap" ]' (but formatted more like yaml).21:28
Odd_Blokesnapd tells me I need a model assertion, and I'm not sure how to produce one in this one-off case.21:29
Jasem[m]can you install a GUI app on Ubuntu Core?21:43
Odd_BlokeOK, I've found http://people.canonical.com/~vorlon/amd64-generic-model.assertion but then I hit "devicemgr: cannot find account-key (9tydnLa6MTJ-jaQTFUXEwHl1yRx7ZS4K5cyFDhYDcPzhS7uyEkDxdUjg9g08BtNn): assertion not found" and I'm not sure how to fetch that assertion.21:43
slangasekhuh21:44
Odd_BlokePresumably due to "sign-key-sha3-384: 9tydnLa6MTJ-jaQTFUXEwHl1yRx7ZS4K5cyFDhYDcPzhS7uyEkDxdUjg9g08BtNn" in that assertion.21:45
slangasekhave the keys rotated or something?21:46
slangasekOdd_Bloke: you probably want to 'snap known' the model assertion, now that this interface exists, instead of using my one-time cached one21:46
Odd_Blokeslangasek: `snap known model` gives nothing; perhaps you meant `snap ack /var/lib/snapd/seed/assertions/model.assert`?  That gives the same error.21:48
slangasekOdd_Bloke: 'snap known model series=16 brand-id=canonical model=pc-amd64 --remote' - ok, the model hasn't changed.  so instead, you need 'snap known account-key public-key-sha3-384=9tydnLa6MTJ-jaQTFUXEwHl1yRx7ZS4K5cyFDhYDcPzhS7uyEkDxdUjg9g08BtNn --remote' to grab the account-key assertion from the store21:50
pmcgowanJasem[m], yes, for example https://developer.ubuntu.com/en/snappy/guides/mir-snaps/21:50
pmcgowanjdstrand, about?21:50
slangasekOdd_Bloke: but I think you probably don't want the pc-amd64 assertion here, since that enforces gadget+kernel and I assume you're trying to seed onto classic?21:51
Odd_Blokeslangasek: I am, yeah.21:51
Odd_BlokeWas just sort of looking around for model assertions I could steal from.21:51
slangasekOdd_Bloke: which loops back around to a question from mvo on one of the bugs about how to do seed.yaml for classic21:51
Jasem[m]pmcgowan: well I need to run KStars which is a KDE application, so that's not possible?21:52
slangasekhttps://bugs.launchpad.net/snappy/+bug/1609903/comments/721:52
mupBug #1609903: Enable the installation of snaps in a classic chroot <cpc> <Snappy:New> <https://launchpad.net/bugs/1609903>21:52
slangasekOdd_Bloke: ^^ I don't know what the "needed" assertions are for seed.yaml on classic21:52
slangasekbut I'm sure you don't want the pc-amd64 model assertion21:52
pmcgowanJasem[m], it may work following the approach there as its a qt app and thats what that demo shows, not sure what else KStars needs21:53
Odd_Blokeslangasek: OK, fair enough.21:53
Odd_BlokeThis sort of question was much easier to get answered in my old timezone. :p21:54
Jasem[m]pmcgowan: It need Qt5+KF5 so obviously X1121:54
pmcgowanJasem[m], there is a QPA plugin directly to MIR that does not require X11, but you do not get a window manager21:55
Jasem[m]pmcgowan: well, a minimal desktop environment is required. I guess Ubuntu Core is not the solution I'm looking for. Maybe Ubuntu Mate would do21:57
pmcgowanJasem[m], yes core is not quite ready for a full desktop, we are working toward it21:58
Jasem[m]pmcgowan: If I use Ubuntu Mate, but install my app as a snap, it still would get the benefit of snaps like if I update it on the store, then users would get the updates atomically?21:59
pmcgowanJasem[m], yes22:00
Odd_Blokeslangasek: I continued poking at it, and I think those model assertions need s/TBD/canonical/.22:03
Odd_BlokeBut, of course, making those changes means that the signature doesn't validate.22:04
slangasekOdd_Bloke: right, those are not the official assertions (not sure why the ones published there have that) - the official assertion is the one retrievable by 'snap known model series=16 brand-id=canonical model=pc-amd64 --remote'22:04
Odd_BlokeOK, now I get to "state ensure error: devicemgr: cannot seed a classic system with an all-snaps model" as we would expect.22:06
Odd_BlokeThe system works!22:06
slangasek:)22:06
Odd_BlokeJust not currently in my favour.22:06
Mario__hi all! I'm evaluating Rocket Chat using snap. I want to now if there is some, let's say, convinient way to backup the current installation before applying major configuration changes to the app. Perhaps it's just about taring the app directory below snap.22:09
Odd_Blokeslangasek: Is there a way I can list model assertions that the store has?22:15
slangasekOdd_Bloke: you can query by attributes; I don't believe you can list22:15
qenghoMario__: Find the SNAP_DATA (or SNAP_COMMON), and copy it. For a daemon, you are guaranteed that the dir there has the only files the package changed, because snap disallows anything else.22:18
Mario__thanks a lot qengho22:19
Odd_Blokeslangasek: Hmph, I need to know the model of a model assertion to query for it.22:19
Odd_BlokeSo I can't see if we have any classic assertions.22:19
slangasekright22:21
Odd_BlokeAm I able to create my own model assertion, or will snapd choke because my key isn't in the store's web of trust?22:22
kyrofaOdd_Bloke, it'll choke, but you can get your key there22:23
kyrofaOdd_Bloke, follow this tutorial, you'll see what I mean: https://tutorials.ubuntu.com/tutorial/create-your-own-core-image#022:24
Odd_Blokekyrofa: Thanks!22:34
Odd_BlokeIt worked! \o/22:40
Odd_Blokekyrofa: One piece of feedback on that tutorial: "you will find it on your account page" <-- it wasn't immediately obvious to me how to get to my account page to find this22:41
kyrofaOdd_Bloke, the account ID, you mean?22:41
Odd_Blokekyrofa: Yep, sorry, should have given more context.22:42
kyrofaOdd_Bloke, you may wonder how I knew exactly what you were talking about: I ran into the same thing :P22:42
Odd_Bloke^_^22:42
kyrofaOdd_Bloke, so yeah, agreed22:42
Odd_BlokeNot sure if you're the person to feed back to, but this is what happens when you're helpful. ;)22:43
kyrofaI think probably either didrocks or davidcalle22:43
davidcalleOdd_Bloke: that's a fair point, do you mind filing an issue about it? https://github.com/canonical-websites/tutorials.ubuntu.com/issues22:46
Odd_Blokedavidcalle: Sure thing.22:47
davidcalleThanks!22:47
Odd_Blokedavidcalle: https://github.com/canonical-websites/tutorials.ubuntu.com/issues/13722:50
davidcalleNice, ty22:52
kyrofajdstrand, could I borrow your eyes for a minute? The nextcloud snap has a bug against it that I can't quite figure out: https://github.com/nextcloud/nextcloud-snap/issues/22123:05
kyrofajdstrand, oparoz is saying that it reminds him of a snap-confine issue from a while back, but I'm fuzzy23:06
mupPR snapcraft#1157 closed: repo: support versioned stage-packages <Created by josepht> <Merged by sergiusens> <https://github.com/snapcore/snapcraft/pull/1157>23:49
mupPR snapcraft#1177 closed: sources: update documentation for source-subdir <Created by kyrofa> <Merged by kyrofa> <https://github.com/snapcore/snapcraft/pull/1177>23:58

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