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

=== verterok` is now known as verterok
=== chihchun_afk is now known as chihchun
dholbachgood morning06:38
ejathi, how can i upgrade06:43
ejatName          Date       Version Developer06:43
ejatubuntu-core   2015-08-28 1       ubuntu06:43
ejatto the latest?06:43
ejat?06:47
didrocksejat: hey, there is unfortunately no upgrade path between ubuntu core 15.04 and 16, you will need to reinstall06:50
ejaton thanks didrocks06:51
ejathttps://developer.ubuntu.com/en/snappy/start/#snappy-azure <-- how to get the 16.xx to azure .. the same step ?06:56
nhainesejat: you may need to wait until Ubuntu Core is released.07:01
didrocksyeah, it's only beta3 for now, we have images for amd64, x86 and pi207:04
Quacky2200Hey, I normally package my application into a deb with the right binaries, as it's a node.js, how could I make sure it downloads a stable release from github and make sure to install the binaries, or should I use the nodejs plugin (it would install the necessary node dependencies right)?07:13
Quacky2200If I wanted a snap to pull from GitHub, does it always pull the latest source or the latest release source?07:36
Son_Gokuzyga, how will this handle more than one different core snap being used on the same system?07:42
Son_Gokufor example: ubuntu 14 core snap, ubuntu 16 core snap, fedora 24 core snap, centos 7 core snap, opensuse 42.1 core snap, mageia 6 core snap all being used by different snaps07:43
zygaSon_Goku: I don't know, let's make this a sprint topic07:43
Son_Gokuthe snap-confine code *look like* it only can handle one core snap07:43
zygaSon_Goku: yes, right now only one snap is supported07:43
zygaSon_Goku: technically snap-run should probably just tell it wich one to use07:44
zygaSon_Goku: but let's discuss the details at the sprint07:44
Son_Gokusure07:44
ejatok noted nhaines n didrocks08:22
=== anon is now known as Guest54135
popeyis there some way to recover from:-09:20
popeypopey@localhost:~$ snap list09:20
popeyerror: cannot list snaps: cannot communicate with server: Get http://localhost/v2/snaps: dial unix /run/snapd.socket: connect: connection refused09:20
zygapopey: check why snapd stopped09:22
OerHekspopey, what is the status of snapd.refresh.service ?09:22
OerHekssystemctl status snapd.refresh.service >> https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/159250309:23
mupBug #1592503: "snapd.refresh.service" fails to start on startup <amd64> <apport-bug> <xenial> <Ubuntu GNOME:Confirmed> <snapd (Ubuntu):Confirmed> <https://launchpad.net/bugs/1592503>09:23
popeyhm, will poke at it some more09:24
popeythanks09:24
ogra_popey, did your board switch channels again ?09:46
ogra_(the fw_setenv hack i gave you recently might not be persistent, it doesnt switch the channel, only forces the working ubuntu-core)09:47
popeyogra_: dunno, how can i tell?10:16
ogra_cat /proc/cmdline10:17
ogra_see which core is picked there10:17
popey8250.nr_uarts=1 dma.dmachans=0x7f35 bcm2708_fb.fbwidth=592 bcm2708_fb.fbheight=448 bcm2709.boardrev=0xa02082 bcm2709.serial=0xe377e4ab smsc95xx.macaddr=B8:27:EB:77:E4:AB bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 console=tty1,115200 elevator=deadline root=/dev/disk/by-label/writable net.ifnames=0 init=/lib/systemd/systemd ro panic=-1 fixrtc snap_core=ubuntu-core_424.snap snap_10:17
ogra_42410:17
ogra_looks like it switched back to stable again10:17
popey:(10:17
popeyis this install doomed?10:18
popeydo i need to reflash to get to a known good state?10:18
ogra_dunno, you have to ask mvo if/how you can switch back to edge10:18
popeytempted to nuke from orbit10:18
popeyas it seems badly broken10:18
ogra_you will need to reflash anyway at some point, there wont be a cross-grade option to go from ubuntu-core to core10:18
popeyis core now in the unstable images?10:19
ogra_this bug is very serious though ... if you can, keep the SD10:19
popeyso if i grab an image today I'll have the new shiny10:19
popeyok, happy to keep it to poke at it10:19
ogra_right, it is in the dailies (they ahve some issues though) and in the new beta10:19
popeyif i go for beta3 (which I think I saw announced yesterday?) will I be on dailys?10:20
ogra_you will be a few days behind the daily10:20
popeybut will it update to daily?10:21
ogra_oh, wait, i dont think we released the arm images yet10:21
ogra_no10:21
ogra_it will only update to the next beta set of snaps10:21
ogra_dailies are built with the edge channel, betas with the beta one10:21
ogra_(anfd thechnically the board should never ever switch channels on its own :P )10:22
popeyheh10:23
zygatyhicks: hey10:32
=== bpierre is now known as 6A4AAA1WT
zygatyhicks: I've addressed most of the things you pointed out, I'm just testing the far simplified apparmor profile10:34
zygatyhicks: can you please have a look, I didn't squash or rebase anything10:34
=== dch is now known as Guest82060
=== elijah is now known as Guest53930
=== JamesTait is now known as Guest88501
=== hikiko is now known as hikiko|ln
mupPR snapd#2139 opened: cmd/snap: tweak unknown command error message <Created by fgimenez> <https://github.com/snapcore/snapd/pull/2139>11:32
=== JamesTai1 is now known as JamesTait
mupPR snapd#2140 opened: snap: validate and stringify plug/slot attributes early <Created by pedronis> <https://github.com/snapcore/snapd/pull/2140>11:48
mupPR snapcraft#866 opened: Bug/1619193 <Created by psivaa> <https://github.com/snapcore/snapcraft/pull/866>12:02
mupPR snapd#2131 closed: tests add spread test for prepare-device customizing device init/registration <Created by pedronis> <Merged by pedronis> <https://github.com/snapcore/snapd/pull/2131>13:19
zygatyhicks: if you are around I could use a re-review of the media-sharing branch13:48
popeyogra_: think I should file a bug for my pi flipping channel?13:58
ogra_popey, i the the one you filed is sufficient13:59
popeyok14:00
tyhickszyga: hey - I'll take a look14:07
tyhickszyga: I need to take care of a couple other quick things first14:07
Quacky2200@thibautr_ @didrocks - I just got your email. I thought I might as well tell you I'm here in case you want to chat rather than email. I'm thinking of just trying to package my snaps similarly to debs with binaries rather than trying to build them separately.14:15
nothalQuacky2200: No such command!14:15
Quacky2200thibautr_    didrocks - I just got your email. I thought I might as well tell you I'm here in case you want to chat rather than email. I'm thinking of just trying to package my snaps similarly to debs with binaries rather than trying to build them separately.14:16
=== hikiko|ln is now known as hikiko
didrocksQuacky2200: oh, excellent! Do not hesitate to ask questions here if you have any :)14:27
didrocks(in some meetings right now)14:27
tyhickszyga: looking now14:28
apolhi, I'm working on a snapd client. when I call the actions calls (i.e. POST /v2/snap/something) I get a 401 Unauthorized error message. Could anybody point out how should I acquire the privilege?14:34
mupPR snapd#2141 opened: overlord/devicestate: don't spam the debug log on classic <Created by chipaca> <https://github.com/snapcore/snapd/pull/2141>14:34
Quacky2200@apol is it your own API? You will probably need a token to use the api14:44
nothalQuacky2200: No such command!14:44
apolQuacky2200: is that a wild guess? it's not my own API, I'm writing a client that talks to the official snapd14:45
Quacky2200Well the 401 error means that the client is actually getting a connection and since a 401 means you're unauthorised, then it means you can't use it without authorisation. Typically API's use a token to authorise a user rather than credentials.14:46
Quacky2200apol: yes it's a guess...14:48
apolyes, I know what a 401 is and I've read the documentation14:49
apolI was hoping there would be someone here that knows how it actually works14:49
Quacky2200apol: Sorry I can't help more, however, did you use it on something that worked before?14:50
apolhm? snap cli client works as long as I use sudo, so I'm guessing we'd need to use policykit and an external process, but I'm not entirely sure14:51
Quacky2200Why would policykit send a 401 request, surely policykit would just block the request altogether?14:53
apolI'm not using policykit, I'm using the same socket as default14:54
Quacky2200Oh sorry, I apologise -_-14:54
=== ahayzen_ is now known as ahayzen
=== om26er is now known as om26er1
=== om26er1 is now known as om26er
mupBug #1633111 opened: Missing API documentation for /v2/snaps/[name] POST <Snappy:New> <https://launchpad.net/bugs/1633111>15:04
apolQuacky2200: the answer was in the docs, FYI: Authentication over the unix socket is delegated to UNIX ACLs, and uses SO_PEERCRED to determine privilege levels. In essence this means that a user will be either authenticated or trusted, with the latter restricted to the superuser.15:05
Quacky2200apol: Ahh I'm glad you found the answer :)15:06
mupPR snapd#2141 closed: overlord/devicestate: don't spam the debug log on classic <Created by chipaca> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2141>15:14
tyhickszyga: review done!15:17
=== tvoss is now known as tvoss|dinner
oparozHello, 16.10 can't load any snaps, they segfault. Any issue logged yet for that?15:37
didrocksnot that I know of, maybe open one with some coredumps info if you can?15:38
oparozThanks didrocks. It's just been reported by a user, so I'll see if he can do that15:39
didrocksgreat! thanks oparoz15:46
=== chihchun is now known as chihchun_afk
mupPR snapd#2142 opened: tests: skip auto-mount and auto-import tests on systems without trusted test keys <Created by fgimenez> <https://github.com/snapcore/snapd/pull/2142>16:21
mupBug #1633141 opened: gadget.yaml should specify disk/volume image sizing behavior <Snappy:New> <Ubuntu Image:New> <https://launchpad.net/bugs/1633141>16:23
mupPR snapd#2143 opened: overlord: check that the first installed gadget matches the model assertion <Created by pedronis> <https://github.com/snapcore/snapd/pull/2143>16:31
mupPR snapd#2144 opened: overlord/snapstate: skip removing the snap on install if it's in the seed dir <Created by chipaca> <https://github.com/snapcore/snapd/pull/2144>16:53
Croephahi, is anyone familiar with an issue where running /snap/bin/ubuntu-image fails when calling snap prepare-image with a complaint about opening the model assertion with no such file or directory, but when I run snap prepare-image directly with the same arguments it works?16:55
mupPR snapcraft#867 opened: Handle 'broken' validations that don't match refresh-control <Created by ralsina> <https://github.com/snapcore/snapcraft/pull/867>17:05
mupPR snapcraft#868 opened: Parametrize call args for pluginhandler <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/868>17:20
mupPR snapd#2144 closed: overlord/snapstate: skip removing the snap on install if it's in the seed dir <Created by chipaca> <Closed by niemeyer> <https://github.com/snapcore/snapd/pull/2144>17:28
mupPR snapd#2142 closed: tests: skip auto-mount and auto-import tests on systems without trusted test keys <Created by fgimenez> <Merged by niemeyer> <https://github.com/snapcore/snapd/pull/2142>17:32
=== tvoss|dinner is now known as tvoss
zygatyhicks: thanks18:22
zygatyhicks: let me know if the explanation I gave makes sense18:28
tyhickszyga: it did, I'm happy with the PR :)18:28
Croephaso, if snaps run in a separate filesystem namespace, then accessing the cwd doesn't work reliably right? and is this a known issue? ie. accepted issue?18:52
kyrofaCroepha, indeed, the cwd might not be accessible from the snap18:53
Croephakyrofa, gotcha ok thanks, that hung me up for a while couldn't figure out why the ubuntu image command couldn't find my files, newb mistake i guess18:55
kyrofaCroepha, I'm not familiar with ubuntu-image yet, but that's not part of the snap's documentation or anything?18:58
Croephakyrofa: this is what I was following19:00
Croephahttps://github.com/CanonicalLtd/snappy-docs/blob/master/core/images.md19:00
Croephaseems to be the most up to date19:00
kyrofaCroepha, and you installed it in devmode?19:03
Croephayea19:04
zygaCroepha: if that happens we move to /var/lib/snapd/void19:04
kyrofaCroepha, you should probably log a bug against snappy-docs, then19:05
Croephaso. fyi, to fix, I just bind mounted stuff into my home directory19:08
Croephaand used that19:08
Croephathat seemed to work across snap commands19:08
zygatyhicks: I just added one more patch19:16
zygatyhicks: I need to review the code later for more cases of this19:16
zygatyhicks: mount -o bind,r?{shared,private,slave} seems to really be different than two separate operations19:17
zygatyhicks: I reviwed the .json files and saw that /etc/alternatives was "shared" (like /media) so I fixed that19:17
zygatyhicks: I'll check the kernel sources and play with more examples when I'm properly awake, just FYI19:18
tyhickszyga: ok, I'm off tomorrow so I won't be able to review19:18
zygatyhicks: wanna see it now? :)19:18
zyga(it's short)19:18
tyhickszyga: oh, I thought you had more changes to make19:19
tyhicksyeah, I'll look now19:19
zygathe .json files now look good (only one shared)19:19
tyhickszyga: have you pushed yet?19:19
zygahttps://github.com/snapcore/snap-confine/pull/168/commits/a6bedacfc6821c40ec39fa309ec2e5beee73761419:20
mupPR snap-confine#168: Rework mount namespace support <Created by zyga> <https://github.com/snapcore/snap-confine/pull/168>19:20
zygajust now19:20
zygaoh, I see a typo there (rslave vs slave)19:21
zygapushed again19:23
tyhicksI left the same comment seconds before you pushed :)19:24
zygaThanks, I'll do the rest tomorrow, I'll try to get back to sleep now19:26
tyhicksgood night19:27
wililupyTrying to build an Ubuntu-Core image and I get the following error:19:28
wililupycannot fetch and check prerequisites for the model assertion: account-key19:28
wililupyand a key I don't recognize. I'm using the doc in https://github.com/CanonicalLtd/snappy-docs/pull/1319:29
wililupyAhh, figured it out.19:38
wililupyHow do I delete a registered key in snapcraft?19:39
niemeyerjdstrand: Heya19:56
niemeyertyhicks: Heya^219:56
jdstrandniemeyer: hey19:56
niemeyerHow're things going in snap-confine land?19:56
tyhickshi!19:56
tyhicksniemeyer: good as far as I know :)19:57
* jdstrand too19:57
niemeyertyhicks, jdstrand: Anything pending in terms of reviews for media sharing, etc?19:59
tyhicksniemeyer: I've reviewed everything that zyga has pushed and it has my ack20:00
tyhicksniemeyer: he spotted something a little odd in the json files for the test and he's going to take a look at that tomorrow20:00
tyhicksniemeyer: but I think it is just about ready to be merged20:00
niemeyer\o/20:00
niemeyertyhicks: Great to hear!20:00
niemeyerThis one had me worried for a little while20:01
tyhicksniemeyer: it is great news but I have to say that zyga deserves the biggest pat on the back20:01
tyhicksyeah, that was some complex stuff20:01
niemeyertyhicks: Yeah, he did a great job there20:01
niemeyerdespite the bad timing20:02
* tyhicks nods20:02
jdstrandyeah, that was pretty crazy20:06
jdstrandit happily fixed an issue in mountinfo along the way20:07
zyga hmm?20:07
zygawhich issue?20:07
zyga(yeah, I cannot get back to sleep again)20:07
jdstrandthe docker workaround20:07
zygadamn week is so messed up ;)20:07
zygaah20:08
zygayes, I know what you are talking about now20:08
qengho:w20:46
qenghoGah.20:46
kyrofaqengho, that's a gnarly mustache20:49
zygaall I see is a duck face20:51
zygakyrofa: how's your jetlag?20:51
kyrofazyga, killer man. I got some weird stomach bug, too20:59
zygakyrofa: for real? here you have to go to a market to buy those21:08
kyrofazyga, hahaha21:08
zygakyrofa: I'm sorry, hope you get better soon21:08
kyrofazyga, thanks, yesterday was dreadful but I seem to be on the mend today21:08
Quacky2200I don't mind yet lag or being ill too much as to the continue of coughing to extremism, the repetitive dreams or vertigo21:10
zygaI did a loop on the bus here today, the outside of town is totally different, I'm going to see if I can get somewhere far tomorrow and snap some photos21:10
kyrofazyga, yeah, try to get out in the country a bit! Go eat in a small town21:15
zygakyrofa: I feel like I do every day21:17
kyrofazyga, I felt like I barely saw the sky there :P21:18
zygakyrofa: this place is different, it's the old part of the city, I live within the city walls :)21:18
zygakyrofa: I wish I had two weeks here21:18
blackboxswQuestion out of left field for folks. If I continue to release snaps the the stable channel, they are not automatically updated are they? From the docs it looks like the user would have to perform a snap refresh <mysnap>  http://snapcraft.io/docs/core/updates22:12
qenghoblackboxsw: That's a great question. Users get updates automatically from whatever channel they got the package from last time.22:14
qenghoblackboxsw: snapd has a scheduler. I don't know the delay, but on average, a could of hours after your upload.22:15
qenghoblackboxsw: make sure it's marked "published" in the store.22:15
blackboxswqengho, thanks so much for clarification22:15
blackboxswqengho, were there other docs I should have looked at to glean that information? http://snapcraft.io/docs/core/update seems to mention the transactional refresh, but I didn't see mention of snapd here22:16
qenghoblackboxsw: it feels a little weird to me that it's automatic, so I could be wrong in suggesting it's always like that.22:16
blackboxswfrom http://snapcraft.io/docs/core/snapd I see "A store where developers can easily make their software directly available to users and from which devices can automatically pull updates on a daily basis."22:17
qenghoblackboxsw: the code that implements that is so new that it could be the web site hasn't synch'ed up with reality.22:18
blackboxsw+1 qengho22:18
qenghoblackboxsw: https://github.com/snapcore/snapd/blob/98c8e937625ce3134cf17025d8f0eb3e1016259a/docs/autoupdate.md22:21
blackboxswexcellent reference thanks qengho22:23
qenghoblackboxsw: Welcome. Make something awesome!22:23
blackboxswcount on it ;)22:23
wililupyis the gadget snap for amd64 still called pc?22:34
wililupyDoes anyone have an example assertion for building a vanilla ubuntu-core image? The one I used a month ago no longer works, and I am not trying to build on Pi, so the one in the documentation doesn't serve me too well.........22:41
wililupyI am using "gadget": "pc" and it is failing right after it says fetching pc22:42

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