/srv/irclogs.ubuntu.com/2016/01/22/#snappy.txt

utlemmingaatchison: yup, confirmed....I just pulled it and it worked as expected.00:00
aatchisonutlemming, I just installed it today, but I'll check. I'm going to another talk at Scale, but I'll get back to this;)00:03
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== p1gmale0_ is now known as p1gmale0n
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
JamesTaitGood morning all!  Happy Friday, and happy Answer Your Cats' Questions Day! 😃  🐈10:02
jstephanHe guys, I am playing around with Ubuntu Core (snappy) on Raspberry, My project is in Python, any idea how I can get pip and compile some modules I need?10:15
asacppisati: i am playing with making a snapcraft plugin that builds kernel snaps from source without having to do a deb etc. as intermediate step and noticed that make install behaves odd in the sense that it does not just install the zImage etc. in INSTALL_PATH, buut it rather also tries to create a .deb etc.... any idea how i can do make install without that part?10:23
asacjstephan: check out snapcraft ... it has python2/python3 plugins that should support pip10:24
ppisatiasac: not really, the deb packaging of the kernel is a bit convoluted10:24
ppisatiasac: try to ping apw, he might know better than me what to do10:25
ppisatiasac: but if i was you10:25
asacapw: :)10:25
ppisatiasac: i would just create our config from our src tree10:25
asacppisati: so make install just magically assumes that i want to produce a .deb? wow :)10:25
ppisatiasac: e.g. fdrc && fdr-prepare-generic10:25
asacok.... and then?10:26
ppisatiasac: copy the config to a git tree and compile it there10:26
ppisatioh wait10:26
asacsure the compile is fine... i have features in myh plugin for providing a config file or using defconfig or use defconfig and overload a few CONFIGS etc.10:26
apwasac, in the packaging we use like make boot/Zimage or whatever to get just the kernel bits of the right form and we make install_modules to make that10:27
asacinstall is causing the trouble for me... it starts off doing the right thing (e.g. copy stuff to INSTALL_PATH)10:27
asacbut then it also goes and creates a deb10:27
apwasac, but i would not expect make install to make a deb10:27
asacright, but it does for me :(10:27
asaclatest torvalds trunk that is... but let me see10:27
tzununbekov__asac, hey, have you seen our email to you?10:28
jstephanasac: I will have a look10:28
asactzununbekov__: not sure... who are you :)?10:28
asactzununbekov__: jst /msg me the mail subjhect and i will look for it :)10:30
asacapw: ok found that kernel make install runs /sbin/installkernel if that exists on system, which i would guess (as that is on my system from a package called debianutils) seems to be the one spoiling the raw make install show :)\10:47
asaca bit sad that there is no switch to ignore an installkernel helper ... hmm.10:48
* asac gives up and makes custom code to fiddle the right bits out of tree instead of make install10:50
LefterisJPkyrofa: As you suggested yesterday I made a PR for the suggested generic script snapcraft plugin: https://github.com/ubuntu-core/snapcraft/pull/25210:55
LefterisJPops, there is an error in another test. Fixing it now.11:15
apwasac, would you not be making the bits for this in a chroot of your own making, so you can control if that is in there, ie supply like a snappy-build package which diverts the existing and replaces it with one yout want11:44
asacapw: yeah, think i could do it, but then few lines o python that copies the *image is also goodie11:49
asacthanks11:49
kyrofaGood morning12:29
LefterisJPkyrofa: Morning :)12:29
kyrofaLefterisJP, thanks for the PR! I'll take a look :)12:29
renatHi all! It's Renat from Screenly.13:03
renatI have a question again=)13:03
renatHow can I "sign" a snap, so I won't need to use --allow-unauthenticated flag to install a snap, or build an image?13:03
LefterisJPkyrofa: addressed the remarks of your review13:10
kyrofarenat, that's done in the store13:13
kyrofarenat, though in 16.04 you'll be able to do it yourself with assertions13:13
renatkyrofa, thanks!13:14
kyrofarenat, it's a debsig. So while you could sign it, Ubuntu Core 15.04 is only setup to verify against a single key: the store's13:15
renatkyrofa, didn't know. Thanks!13:16
kyrofarenat, sure thing :)13:17
kyrofarenat check out /etc/debsig/policies13:17
renatkyrofa, one more question. About "follow symlinks"13:22
kyrofarenat, ah, yes?13:22
renatIt was named "symlinks" before, and copied symlinks as symlinks only if it's value is true. But after I renamed it to follow symlinks - logic should change now. So follow-symlinks means "copy file instead of symlink", right?13:23
kyrofaAh, interesting point. Indeed, I agree. And I do agree that follow-symlinks is a more clear config name13:26
kyrofarenat, what did you think of my dangling link comment, by the way?13:27
renatWe can add "ignore-dangling" option to control that behavior.13:28
kyrofarenat, but read the docs for copytree-- I don't think that'll work13:28
renat1 min.13:28
kyrofarenat, it only seems to apply when you're FOLLOWING the symlinks. If you're copying the symlinks it doesn't seem to care13:29
kyrofarenat, here: "Changed in version 3.2: Added the copy_function argument to be able to provide a custom copy function. Added the ignore_dangling_symlinks argument to silent dangling symlinks errors when symlinks is false."13:30
renatIt only silences the error message.13:30
renatYou won't get error message if you copy symlinks as symlinks.13:30
kyrofarenat, right, which means we can _create_ dangling symlinks13:31
kyrofarenat, in this case, what I mean by dangling is symlinks that point outside the snap13:31
kyrofarenat, they might be valid at the time of .snap creation13:31
kyrofarenat, but not install/runtime13:31
kyrofarenat, make sense?13:31
renatYes.13:32
renatUnderstood.13:32
kyrofarenat, as-is, copying everything following the symlinks, that's not a problem. So the only way I see to avoid introducing that problem is with a custom copy function that symlinks what it can and copies the rest13:32
kyrofarenat, kind of annoying, granted13:33
kyrofarenat, sorry :P13:33
renatkyrofa, this approach is not very intuitive. You will need to add "smart-copy" and document its behavior then.13:33
renatsorry, smart-copy option.13:33
kyrofarenat, so perhaps you would argue that, if they turned the symlink following off, (I guess it should be on by default), they deserve the dangling symlinks since they should have known about them?13:34
kyrofarenat, and it is indeed a corner case13:34
renatkyrofa, yes. At least - they will know about it during testing.13:35
kyrofarenat, maybe. It could be more insidious. I'll have to get my colleagues thoughts there13:36
renatkyrofa, thanks.13:36
kyrofarenat, sorry for the trouble, thanks for bearing with us :)13:36
renatkyrofa, no problem. Let me return to work and generate more questions=)13:37
kyrofaelopio, sergiusens and I have a meeting which may flow over standup13:47
pindongaelopio, I've reworked my PR so it doesn't depend on xenial anymore... if you, kyrofa or someone else could please review it? https://github.com/ubuntu-core/snapcraft/pull/19714:27
pindongaif you like the approach, I'll squash the commits and fix the coveralls errors14:27
kyrofapindonga, excellent use of discretion regarding the squashes. For future reference, checkout git commit --fixup. Makes the squash insanely easy14:30
pindongaack14:30
kyrofapindonga, https://robots.thoughtbot.com/autosquashing-git-commits14:31
pindongakyrofa, while ssoclient is already packaged in xenial, I proposed vendoring it in to avoid the blockage on getting tests running in xenial14:32
pindongathis also enables snapcraft to include this feature in previous versions14:32
pindongaeg, trusty14:32
kyrofapindonga, I've never vendored in python before. I guess elopio or sergiusens might need to speak on that14:33
kyrofapindonga, do you have experience with that?14:37
pindongakyrofa, not really, I've essentially looked what other people do14:37
pindongaideally I'd like not have to modify the vendored pkg import paths14:38
pindongaso if someone more experienced in this area can suggest a way, +114:38
kyrofapindonga, agreed14:38
elopiogood morning.14:39
kyrofaelopio, good morning!14:39
elopiopindonga: working around xenial seems the way to go. As the only thing that fails on travis are the examples, it's ok because the idea has been always to move that to jenkins. But yesterday the disk of the jenkins slaves got full. What a week to be QA...14:40
elopiofgimenez: ^ did you see the slaves? I wasn't sure what I could delete.14:40
elopiokyrofa: np about the standup. If you want to do it, ping me when ready.14:41
mvipmectors: We have a blocking issue for Screenly on MWC. The bug is filed here (https://bugs.launchpad.net/snappy/+bug/1500755). Any chance you or someone could bump up the priority for that one?14:41
ubottuLaunchpad bug 1500755 in Snappy "bootloader firmware needs update to get vchiq working with 4.2" [High,Confirmed]14:41
pindongaelopio, right, I also think vendoring in this case makes sense to prevent snapcraft requiring xenial from now on14:41
pindonganot sure what's the best way to vendor stuff in cases like this though14:42
elopioI'll check.14:44
elopiopindonga: first thing I see is that your branch drops coverage 7%.14:44
pindongayes, am looking at that14:44
pindongabut I was mostly concerned whether you're ok with the vendoring of ssoclient14:44
pindongaelopio, and tbh, that coverage drop is only there bc I've modified main.py and it didn't have enough coverage to begin with14:45
pindonga:)14:45
elopioright, I'm not saying you have to get it back to 90%. Just looking :)14:47
elopiopindonga: so, how do we run the tests of that vendor package?14:47
pindongaelopio, I didn't include the tests for the vendored packages as those should be tested upstream14:48
pindongaand considered here just as an external library14:48
pindongavendored in for convenience only14:48
pindongaie, we don't test them14:48
elopiopindonga: um, I get the idea. And why don't we just put it in a different repository, package them and import them here?14:49
pindongapackage as in deb packaging?14:49
pindongathat's what we're trying to avoid here14:50
pindonganew packages should go via xenial14:50
pindongaalso, it's quite an overhead14:50
pindongaand this code might evolve in ways incompatible with deb pkg lifecycles14:50
elopioah right right. I don't like this, copying code into the repository without running its tests. What about a git submodule?14:52
elopiopindonga: lets say we want to make a release suddenly. How can we be sure that the new code works with this vendored library?14:52
sergiusenselopio, want to do the standup now?14:53
elopiosergiusens: yes.14:53
pindongaelopio, there are tests for the commands that use the vendored lib14:53
pindongaelopio, I could include the upstream tests here as well if you like, but I see little to no benefit14:53
pindongaas long as the upstream lib doesn't change it's api this should work ok14:54
pindongaand since we control those upstream apis we should make sure to update snapcraft when/if they change14:54
elopiopindonga: ok. Let me read it fully after the call.14:55
pindongaack14:55
ChipacaJamesTait: question, is there a way in cpi to search only on the package name?14:58
JamesTait/api/v1/search?q=name:%22package_name%22 should work I think?14:59
JamesTaite.g. https://search.apps.ubuntu.com/api/v1/search?q=name%3A%22com.ubuntu.music%22&page=115:00
elopioping jdstrand: do you have some time to help me here? https://github.com/elopio/snapcraft/commit/43d6ed402f98fa39046d455ffdcbbde0a244c943#commitcomment-1560627015:01
JamesTaitChipaca, yay?15:03
fgimenezelopio, sorry didn't notice it, it's the same problem we had with devicemapper http://paste.ubuntu.com/14597997/, hopefully we'll have a new server deployed in a few minutes15:06
jdstrandelopio: I planned on giving you a hand but wasn't ready just yet. I will ask-- what is this on 15.04 or 16.04?15:09
mvipmectors: Cool. Thanks.15:09
elopiojdstrand: 16.04, all snaps.15:15
elopiojdstrand: but don't hurry, whenever you have time. I was just wondering if you got the ping.15:16
jdstrandI did15:18
pindongaelopio, btw, pushed a new test that improves coverage15:19
elopiopindonga: saw it. Thanks!15:19
jdstrandI responded in the request. the fix is actually on its way. I am curious though, can I see your snapcraft.yaml, /snaps/mosquitto.../current/meta/package.yaml and /var/lib/snappy/apparmor/profiles/mosquito...15:20
elopiojdstrand: oh nice, so I can just remove the overwrite.15:32
elopiojdstrand: here's the yaml: https://github.com/elopio/snapcraft/blob/43d6ed402f98fa39046d455ffdcbbde0a244c943/examples/mosquitto/snapcraft.yaml (from the previous link I gave you you just have to swipe up :)15:32
fgimenezelopio, the old server is up again http://162.213.35.179:8080/ after http://paste.ubuntu.com/14598180/15:32
elopioand I didn't write any apparmor profile. But I saw the one from mosquitto upstream, let me find it again.15:32
fgimenezelopio, i've taken the opportunity to spin up a vivid slave there too15:32
elopiofgimenez: awesome. Let me join the hangout.15:32
asacapw: ppisati: is it possible to use squashfs as initrd?15:33
apwasac, initramfs is cpio.gz format, each segment of an initramfs has to be that format15:33
elopiojdstrand: https://git.eclipse.org/c/mosquitto/org.eclipse.mosquitto.git/tree/security/mosquitto.apparmor15:34
elopioI assume my snap is consuming that one. Is that right?15:34
asacapw: hmm. i see this; http://lists.busybox.net/pipermail/buildroot/2013-January/066195.html15:34
apwasac, legacy mode will mount other types, iff that type is not a module ... but why that format, when we have a format that is good15:36
asacapw: just pondering as we use squashfs for snaps etc.15:37
asacapw: do i need to enable some config to get legacy mode?15:37
apwasac, it is enabled by default, though whether upstream will keep it long term is less clear15:38
jdstrandelopio: can you give me /snaps/mosquitto.../current/meta/package.yaml and /var/lib/snappy/apparmor/profiles/mosquito... too?15:39
asacright. maybe its not in trunk anymore? my kernel just detects junk according to log15:39
jdstrandelopio: (fyi, I'm in and out of meetings so I will be laggy)15:39
apwasac, with which kernel, i'd expect it to detect junk and then detect it if it was going to15:41
apwbut ... i am not sure it is a good idea to rely on it15:41
apwnoone uses those formats normally, everything is the new cpio format and has been for a long time15:41
asacapw: yeah, it didnt detect it after seeing junk though... but ok, guess better not go down that path at all15:43
kgunnmvo: hey there, i was just trying u-d-f from your all-snaps branch just now...but i can't quite figure out the commands....15:44
kgunni thot it would be15:44
kgunnsudo /home/kg/Downloads/ubuntu-device-flash core rolling --channel edge -o xenial_core_amd64.img --developer-mode --gadget=generic-amd64 --size=515:44
kgunnbut it keeps saying "expected 1 gadget snap"15:45
sergiusenskgunn, maybe try --gadget=generic-amd64/edge ?15:48
kgunnsergiusens: thanks...but no joy15:54
elopio@kyrofa https://github.com/ubuntu-core/snapcraft/pull/20215:55
nothalelopio: No such command!15:55
elopiopleeeeaaase15:56
kyrofaelopio, sheesh man15:56
=== chihchun is now known as chihchun_afk
kyrofaAlright, time to move off the grid a bit to weather the storm. I'll be a bit difficult to reach I'm afraid16:01
elopiojdstrand: ah, you meant the installed ones. I'm sorry. https://paste.ubuntu.com/14598353/16:02
mvokgunn: sorry that its a bit hard to use right now, there is an exmaple here http://people.canonical.com/~mvo/all-snaps/make-rpi2-all-snap and here is what I use for amd64 http://paste.ubuntu.com/14598354/16:03
elopiokyrofa: good luck man! I'll wait for the cute new release pictures on monday ^_^16:03
kgunnmvo: ta16:03
kgunnwill try in a moment16:03
kyrofaelopio, ugh16:04
kyrofaelopio, I might have to birth that boy myself :P16:04
elopiohah, show the world that free software prepares you for absolutely everything. make us proud!16:07
kyrofaelopio, hahahaha!16:07
ChipacaJamesTait: thanks muchly16:11
ChipacaJamesTait: no i'm not lagged why do you ask16:11
Chipaca:-)16:11
JamesTait😃16:11
JamesTaitGlad to be of service!16:11
elopiofgimenez: can you upload your vivid udf somewhere?16:23
fgimenezelopio, sure give me a second16:23
fgimenezelopio, 10.55.32.74:/home/ubuntu16:25
elopiothank you.16:26
ChipacaJamesTait: question for you, v216:34
JamesTaitNo, we don't have a v2 api yet. 😉16:36
Chipacahttps://search.apps.ubuntu.com/api/v1/search?q=name%3D%22http%2216:38
ChipacaJamesTait: what's going on there? (what'm i missing?)16:38
ChipacaJamesTait: because I *could* argue that the match from those names to "http" is rather poor16:40
ChipacaJamesTait: if I were feeling ornery, I mean16:40
Chipacanot that I am, in any way, trying to argue this, of course16:40
Chipacait just seems to me that "bankaustria.peter-bittner" does not, strictly speaking, if I were being picky, match "http".16:41
JamesTaitHmmm...16:41
JamesTaitLooks to me like it's matching http from the description for some reason.16:44
JamesTaitEr, hang on... what's that %3D in there? Shouldn't that be %3A ?16:46
JamesTaitAh, but that doesn't find your package because its full name is http.chipaca and it doesn't have an alias!16:47
Chipacad'oh! 3A!16:47
JamesTaitBut dropping the %22 from the query to make it a keyword search instead of a literal phrase returns your package and one other.16:48
ChipacaJamesTait: it's only exact matches when used like this?16:48
Chipacaah16:48
Chipacawoooo!16:49
Chipacathat's perfect, then16:49
Chipacaso, name:$query16:49
Chipacanot name=$query16:49
* Chipaca LARTs himself16:49
ChipacaJamesTait: thanks again16:50
Chipacaand sorry to have wasted your time a little there :-)16:50
JamesTaitq=[<field_name>:]value[,[field_name:]value]...16:50
JamesTaitOr q=[<field_name>:]"value"[,[field_name:]"value"]...16:51
JamesTaitOr some combination thereof.16:51
ChipacaJamesTait: and if value contains " how do you quote it?16:52
JamesTaitThat, sir, is an excellent question!16:53
Chipacaor ,16:53
ChipacaI mean, it could also be ","16:53
Chipaca:-)16:53
Chipacabecause users are eeevil16:53
JamesTaitNo! Say it ain't so!16:53
ChipacaJamesTait: https://www.youtube.com/watch?v=ZGNtl9A1JwU16:53
JamesTaitAh, Spongebob. Where would we be without you?16:54
jdstrandelopio: security-override ended up in 'subscribe'. I think you want it in mosquito, no?16:54
JamesTaitNot in a pineapple under the sea, that's for sure.16:54
=== chihchun_afk is now known as chihchun
elopiojdstrand: oh... I'm ashamed, I'm sorry :)16:55
JamesTaitI think the answer to your question is to \-escape them, but I'm looking for an example to verify that.16:56
elopiofgimenez: m-o credentials ready, xenial slaves patched. Is it normal for the vivid slave to take that much time to go online?16:56
ChipacaJamesTait: and is there documentation as to what things are "special" in a query? i notice "*" is special, for example16:57
ChipacaJamesTait: as is ?16:57
fgimenezelopio, great! it's still pulling layers from docker hub, but it seems that won't take too long, most of them are already pulled http://paste.ubuntu.com/14598736/16:59
elopiook, I'll wait.16:59
JamesTaitChipaca, in fact, \-escaping the quote doesn't seem to make a difference, so I'm not sure.  The "special" characters mostly come down to those that Elasticsearch uses in its query syntax, which I wish I could find documented in a single place.17:00
Chipacaand elasticsearch is just a frontend for lucene, is it not?17:02
elopiofgimenez: I still don't understand vault to keep secrets. We would store the m-o password in a local vault, and then pass a token from an environment variable to read it?17:06
elopiooh well, but it's late for you. That's for next week.17:06
fgimenezelopio, np, yes they recommend a $VAULT_TOKEN var, anyway so far i had just looked into kubernetes secrets, the bin/create-secrets.sh script is about those17:10
fgimenezelopio, vivid slave is about to show up17:10
jdstrandelopio: np17:15
fgimenezo/ nice weekend everyone17:17
=== chihchun is now known as chihchun_afk
elopiotoday I'm going to take a looong lunch to teach a class of geographers about openstreetmap18:20
elopiolet's see how it goes.18:20
elopiobbl.18:20
kyrofaelopio, quick one: https://github.com/ubuntu-core/snapcraft/pull/25320:14
wigglewormI am looking for help with enabling console but with a twist - I want to see the systemA/systemB login via console22:26
wigglewormI am able to enable cosole ttyS(x) and see the boot process22:26
elopio<- back22:27
wigglewormI want to be able to see the boot choices systemA/systemB22:27
elopiowiggleworm: we are leaving the systemA/systemB implementation22:49
elopionow everything is handled as snaps, even the boot files.22:49
elopiomaybe you should explain what's your goal, and then somebody will be able to give you pointers.22:50
elopiohowever, it's friday and it's late. The developers are already afk.22:50
tsimonq2elopio: although there still might be some developers in the US that are lurking! :)22:58
elopiotsimonq2: right. [Most] devs are afk. And if they are not, they should starting the party right now. It's been a good week :)23:01
tsimonq2elopio: well, again, some devs are still in the US, and idk if most of them are in Europe anyways :)23:05
tsimonq2¯\_(ツ)_/¯23:05

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