/srv/irclogs.ubuntu.com/2016/04/29/#snappy.txt

=== hwang4 is now known as hwang4-afk
geniosDomi, I am *trying* to01:09
sergiusensWhat is your problem when using python?01:14
=== chihchun_afk is now known as chihchun
=== not_phunyguy is now known as phunyguy
=== not_phunyguy is now known as phunyguy
=== chihchun is now known as chihchun_afk
morphiszyga: later today08:44
morphisneed to finish a bunch of non-snappy stuff first08:44
zygasure, thanks08:44
pippohello08:56
zygahey08:57
pippoI'm wworking with what is called snappy for IOT and I've been having problems with 15.04 and 16.04. I need webdm, Webdm for 15.04 does not exist in the market. Hoping that webdm is present in the 16.04 market i tried to use it but this version of ubuntu-core is not present in the default ubuntu-device-flash server. Can someone help me?09:02
pippoBesides, the snappy-tools package is not present in the 16.04 desktop. but this is another problem.09:04
pippos/16.04 desktop/16.04 snappy-tools repo/09:04
qengho15.04?09:05
qenghoYou lost me right there.09:05
pippoyou don't read? it could be my client09:07
pippohi09:08
pipposomeone knows if webdm is going to be reintroduced in 15.04? (i tried to use 16.04 but it is not available) (i'm talking about snappy for "iot" armh)09:10
pippook I see that webdm was reintroduced in the 15.04 market.09:13
qenghopippo: Where do you see that?09:15
zygapippo: 16 is not released yet09:29
zygapippo: webdm should be available in the store soon but is still under development09:30
zygapippo: 15.04 is almost guaranteed not to be supported anymore AFAIK09:30
zygapippo: (webdm soon == for 16)09:30
pippowhat is not available ? webdm for 16.04 or 16.04 core? ubuntu-core 16.04 is not present in the default ubuntu-flaash-device server.09:36
zyganothing yet09:37
zygaall that is available is the source under development09:37
=== chihchun_afk is now known as chihchun
mvoogra_: I think we need an initramfs update for uboot on x86, I will work on this in a bit, it seems like it is acting really silly10:01
ogra_mvo, oh ?10:02
ogra_given that only grub bits were dropped from the image that is weird10:03
ogra_it shouldnt behave any different from uboot on armhf10:03
ogra_(i havent seen any arch specific code )10:03
mvoogra_: the initramfs code is just plain silly, I upload in a bit once you see the diff it should be obvious10:07
ogra_there is a lot silly stuff in the old initrd code :)10:08
mvoogra_: yes :)10:08
mvoogra_: I'm just double checking a few things before the upload to not make things worse10:08
ogra_mvo, btw, should we perhaps rename /etc/system-image before final ?10:08
ogra_i know thats just cosmetic ... :)10:08
mvoogra_: yeah, good idea10:08
ogra_but the german in me screams seeing it all the time there :)10:08
mvoogra_: what german in you?!?10:09
ogra_lol10:10
pippoogra: i'd like to generate snappy-tools (for 16.04 desktop) and ubuntu-core 16.04 (for arm) from sources, is there some doc? (for the second one I suppose this is the place: https://github.com/ubuntu-core/snappy)10:11
ogra_pippo, the latter one happens in your image build infrastructure ... thats rather complex10:11
ogra_we use live-build to create the rootfs snaps with the configuration from the livecd-rootfs package in the archive10:12
pippowell, I have to migrate from 15.04 to 16.04. If the packages are not available from ubuntu-device-flash to download I have to generate it somehow.10:13
pippo"complexity" is not a problem ;)10:13
ogra_what do you mean by " If the packages are not available "10:14
ogra_mvo, so amd64 building fails ...10:14
ogra_boot/ubuntu bind mount failed with: exit status 32 mount: mount point /tmp/diskimage835456834/system/boot/grub does not exist10:15
zygapippo: core snap is available but the kernel and gadget snaps are being redesigned10:15
ogra_seems we need a mkdir in u-d-f10:15
pippoi mean that 16.04 is not here: https://system-image.ubuntu.com/ubuntu-core/10:15
zygapippo: so no matter if you can build stuff from source, you will also chase a moving target10:15
ogra_zyga, well, all sbnaps are "available" currently10:15
ogra_both, in the store and on cdimage.ubuntu.com10:15
zygaogra_: "yes"10:15
zygaogra_: "available" but not released10:16
ogra_and they usually produce bootable images10:16
zygausually :)10:16
* zyga loves our optimism10:16
ogra_well, the ones in the store "always" :)10:16
zyga"this bridge is not finished but we let people use it every day, trucks too"10:16
zyga"it ususally doens't fall apart"10:16
zyga"we rebuild it every night too"10:16
zyga"last night it was blue"10:17
ogra_cdimage is currently broken due to the "uboot on i386" crazyness :)10:17
ogra_but the store is a manual thing ... i personally dont uzpload anything that i didnt smoketest10:17
zygain the end we'll build a tunnel10:17
ogra_you might need to re-flash them if format changes, but you shoudl always be able to use the userspace for testing development stuff10:18
qenghoAt Release Day, disk image uploads quiet down, right?10:18
ogra_we're rolling :)10:19
qenghoSo, we have to fix that.10:19
ogra_release day only marks when we start with that officially ;)10:19
qenghoSoftware is hard. :(10:19
zygausually hardware is hard10:19
zygasoftware just ships broken10:19
zygabut has a splash screen so it's all good10:20
ogra_the really good SW has a splash *and* a progressbar10:21
zygawhile being on fire ;)10:22
=== chihchun is now known as chihchun_afk
ogra_mvo, woah ... so your image build failed ... in chpasswd for the ubuntu user ?!?11:22
* ogra_ doesnt get why that would fail all of a sudden11:24
mvoogra_: eh, that is very surprising12:00
kyrofaGood morning12:15
ogra_mvo, yeah, totally not logical ... nothing changed12:27
zygaogra_: friday failure syndrome12:39
ogra_zyga, well, there is no reason at all why it could fail ... no code changes, no changes in the archive that could even remotely touch chpasswd behaviour12:40
zygaogra_: we saw totally weird autopkgtests errors this morinng12:40
ogra_but it now fails reproducable12:40
zygaogra_: no idea what the cause ise12:40
zygais*12:40
* ogra_ starts a yakkety build ... to check if that fails too 12:41
ogra_mvo, yakkety builds :/13:13
mvoogra_: all broken?13:13
ogra_xenial, yes13:13
ogra_yakkety not ...13:13
ogra_the only thing that changed in the archive since the last working xenial build was bind913:14
ogra_but i see no reason why that should make chpasswd fail13:14
ogra_Get:52 http://ftpmaster.internal/ubuntu xenial-updates/main arm64 libisc-export160 arm64 1:9.10.3.dfsg.P4-8ubuntu1 [124 kB]13:22
ogra_Get:53 http://ftpmaster.internal/ubuntu xenial-updates/main arm64 libdns-export162 arm64 1:9.10.3.dfsg.P4-8ubuntu1 [534 kB]13:22
ogra_Get:31 http://ftpmaster.internal/ubuntu xenial-updates/main arm64 debootstrap all 1.0.78+nmu1ubuntu1.1 [35.7 kB13:22
ogra_the only three packages we get from xenial-updates13:22
ogra_and debootstrap only adds a yakkerty link ... must be one of the two other libs13:23
ogra_(which obviously come from bind9)13:25
* ogra_ ponders to push a rool-back package to the PPA 13:25
ogra_*roll13:25
zygajdstrand: hey13:27
zygajdstrand: I found something curious/buggy yesterday13:27
zygajdstrand: I wanted to ask you before proposing a fix13:27
zygajdstrand: also seems like might be a CVE if you look at it the right way13:27
ogra_mvo, oh, lovely ... bug 1576378 touches our bootloader work too ...13:44
ubottubug 1576378 in snapd (Ubuntu) "Snap installing doesn't work in live session" [Undecided,Confirmed] https://launchpad.net/bugs/157637813:44
ogra_"can not set next boot: cannot determine bootloader"13:44
mvoogra_: oh, right13:55
mvohmm13:55
ogra_i guess firstboot will also barf with the /boot/grub dir returned in the rootfs13:55
ogra_do we have any i386 uboot gadget yet that we could test with ?13:56
ogra_ricmm, ^^^^ ?13:56
ricmmnot from me, we need AceLan for that and Taipei is asleep13:56
ogra_hmm, k13:56
ricmmsend him an email13:57
ogra_i will, once i got the images back to building13:57
* ogra_ hopes the bind9 rollback will fix us13:58
ricmmsounds terrible13:58
ogra_it is13:58
ogra_and it ate my day so far :)13:59
ricmmogra_: could be worse :)14:00
ogra_yeah,. it could rain or some such ...14:01
* ogra_ taps foot waiting for the arm PPA builders14:04
sergiusenskyrofa care to take a glance at https://github.com/ubuntu-core/snapcraft/pull/480/files ?14:37
=== pitti is now known as Guest30809
=== Guest30809 is now known as pitti
kyrofasergiusens, sure, I'll trade you for my quickly bloating https://github.com/ubuntu-core/snapcraft/pull/45414:42
kyrofasergiusens, I'm starting to not like maintaining snappy docs in snapcraft. Things change without our knowing14:44
zygakyrofa: interfaces?14:44
kyrofazyga, like the removal of services, or --allow-unauthenticated14:45
zygaah, yeah14:45
kyrofaErr, removal of snappy service14:45
zygawell, bumpy ride14:45
kyrofazyga, perfectly natural, just makes for sloppy docs14:45
kyrofazyga, since we don't realize we're out of date until we actually hit something14:46
kyrofazyga, or someone complains :P14:46
zygayeah, I completely understand and agree14:46
ogra_finally, bind9 built ...14:47
* ogra_ kicks an amd64 image with the rolled back version ... lets see14:48
vilakyrofa, sergiusens: speaking of being out of date, the macaroon MP aims at reducing the gap between the store and snapcraft regarding '16', there are more work to be done still, but the switch from OAuth to macaroons should happen sooner rather than later to get feedback from users14:50
beunosergiusens, kyrofa, FYI, we're dropping oauth support very soon14:57
beunoso without vila's branch, snapcraft will break soon  :)14:57
ogra_mvo, definitely not the bind9 upload ... still fails15:01
* ogra_ rips livecd-rootfs from the PPA 15:04
ogra_next build running ...15:06
slvnhey! just wondering about icons on snap. not sure that putting a file "./setup/gui/icon.png" is working .. is there a GUI to see my installed snap and there icons ?15:10
zygasvij: nope, not yet15:11
zygaslvn: ^^15:11
zygasorry, svij:15:11
slvnzyga, ok np !15:12
ogra_mvo, so even removing all packages from the PPA (except your initrd change) make chpasswd fail15:13
ogra_oh, crap15:13
ogra_LP lied ... the livecd-rootfs package still comes from the PPA despite having been deleted15:14
slvnzyga, another remark: it seems to me libpng12.so is accessible (because I don't provide it in my snap). but libjpeg is not, so that I need to provide it in the snap to get jpeg image loaded through SDL2_image!15:14
ogra_*sigh*15:14
zygaslvn: you need both, you cannot access libpng12.so from the OS15:14
slvnzyga, well it seems this is possible :/ all my png images gets loaded correctly !  (and when I do "ldd on my snap binary, it requires : libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f8eb9799000))15:16
zygaslvn: indeed15:17
* zyga wonders why we need libpng in the OS snap15:17
zygaslvn: it's safer to include your own copy15:17
zygaslvn: though I cannot say as to when we will remove libpng from the os snap or if we ever will15:17
slvnzyga, ok .. then I'll include it15:18
zygaogra_: is there a nice tool / website that shows the seed for ubuntu-core and how it results in the effective set of packages included?15:24
ogra_zyga, there might be some germinate wikipage, not sure15:25
quaglandhi, does anybody know of an easy way to disable apparmor for created snaps for testing purposes?15:26
jdstrandquagland: install the snap with --devmode15:26
zygaquagland: yes, http://www.zygoon.pl/2016/04/snap-install-devmode.html15:26
* jdstrand let's zyga handle it from here15:26
zyga:D15:26
zygaI just use my crude language skills to describe what I work with :)15:27
sergiusensbeuno that branch was missing something rather important, unit tests; while that is being worked on I don't want to switch to it.15:27
vilasergiusens: I thought that was settled with elopio, faked tests can be good while you can't test the real code, but this branch already test the real code so fakes are not needed and will only create paperwork15:29
quaglandthanks for the --devmode argument, looks like still got some investigating to do - trying to get a java snap (with bundled jvm) working to no avail15:29
vilasergiusens: with unit tests using fakes for Oauth, snapcraft will happily keep passing tests even when it stop working15:30
kyrofavila, that's not an argument for having integration tests instead of units-- it's an argument for having both15:31
vilasergiusens: with tests using real code both snapcraft and the server team have the opportunity to learn earlier that something broke15:31
vilakyrofa: if the client and the server were in the same project they would be unit tests, just like a snappy command calls its internals15:32
vilakyrofa: we don't have that, we have a staging server, that's better than fakes15:32
kyrofavila, having tests that make sure we stay in sync with the real server is great. But we also need tests making sure our code works the way we think it does. Just because the server could change isn't a reason not to cover the code in unit tests15:35
vilasergiusens, kyrofa: can we relax the definition of unit vs integration tests ? I don't think it helps getting progress. I'm focused on reducing the feedback loop between snapcraft and the store15:36
vilakyrofa: and I don't think it helps anybody to know that the code does what he thinks it does if it does the wrong thing15:37
vilakyrofa: don't get me wrong,15:37
josephtI've discovered some squashfs inconsistencies on pi2.  http://paste.ubuntu.com/16127818/15:37
vilaI /do/value layered and focused tests15:37
vilakyrofa: and I like my test to allow reproducing and fixing bugs, fakes don't help with that and as far as the snapcraft part dealing with the server, fakes won't help either. I did ran into that when I started working on that branch15:39
josephtjdstrand: ^ this is related to why my nmap snap built on pi2 fails click-reviewers-tools15:39
kyrofavila, the code doing the wrong thing as defined by what? By a service external to snapcraft. The snapcraft code would still be doing what it was designed to do, and passing its unit tests as a result. If that becomes the wrong thing with regards to the external service, that's exactly what an integration test is made to catch15:42
kyrofaYou see how there are different layers here?15:42
jdstrandjosepht: oh that will be helpful. I had this in a trello card but just filed bug #157676315:45
ubottubug 1576763 in click-reviewers-tools (Ubuntu) "pi2 images generate different checksums on repeated runs" [Undecided,New] https://launchpad.net/bugs/157676315:45
jdstrandjosepht: can you check the version of squashfs-tools that the pi2 system is using?15:46
jdstrandjosepht: also, attaching the offending snap would be great15:46
josephtjdstrand: I added both to the bug.  Thank you15:49
jdstrandjosepht: thank you! :)15:49
josephtjdstrand: my pleasure15:51
ogra_mvo, mystery solved ... task header missing in initramfs-tools-ubuntu-core and ubuntu-core-config ... the latter ships the extrausers pam config ... that is why chpasswd failed15:53
slvnzyga, another thing I noticed : I don't know what is value of the current directory when running a snap. So I had to do a "chdir($env(SNAP))" to get file loaded correctly.15:53
sergiusensmvo still around, need to ask you SRU strategy questions and how you will deal with it15:53
zygaslvn: I don't think the directory is modified, I might be wrong15:53
slvnzyga, currently it is the real cwd (same as the shell). but the snap is confined .. so (for me) it's better to have it set to $env(SNAP). not sure what should be done15:57
zygaslvn: I think that's the desired behavior15:57
slvnok15:58
slvnnp15:58
zygaslvn: e.g. when the snap is using the home interface15:58
vilakyrofa, sergiusens: sorry for the interruption, desktop crashed hard15:58
slvn(need to go away)15:58
slvnzyga, I don't use the "plug home"15:58
vilaI didn't get anything after:15:58
vila<vila> kyrofa: and I like my test to allow reproducing and fixing bugs, fakes don't help with that and as far as the snapcraft part dealing with the server, fakes won't help either. I did ran into that when I started working on that branch15:58
zygaslvn: yes but if you did, would you expect snappy to behave differently for such a basic operation/15:58
vila... and that wasn't a crash test ;)15:59
kyrofavila, I didn't notice for a bit too long :P15:59
kyrofa<kyrofa> vila, the code doing the wrong thing as defined by what? By a service external to snapcraft. The snapcraft code would still be doing what it was designed to do, and passing its unit tests as a result. If that becomes the wrong thing with regards to the external service, that's exactly what an integration test is made to catch15:59
kyrofa<kyrofa> You see how there are different layers here?15:59
vilakyrofa: then you're talking about the tests around _store.py which defines the internal API between snapcraft and the next layer which is storeapi, I can agree with that. But storeapi deals with the store16:04
vilakyrofa: it cannot be tested without the store16:05
vilakyrofa: the analogy would be for snapcraft to test without involving mksquashfs but fake it in memory16:05
vilakyrofa: or testing the clean command without building a snapcraft.yaml16:07
kyrofavila, how do you test error handling if you only talk to the real store?16:08
sergiusensvila to be clear you are saying that doing something like this https://github.com/ubuntu-core/snappy/blob/master/store/store_test.go#L179 is impossible?16:08
vilakyrofa: for the edge cases where it's less effort to fake the errors, that's indeed what I did16:09
vilasergiusens: not impossible, but less valuable as fakes bitrot16:09
sergiusensvila in the case of mksquashfs, we trust that the interface for that won't change (how it is called and what it will generate), but we make sure in a unit test we called it the right way16:09
vilasergiusens: certainly fakes are better than not testing, but testing against the real thing is better than testing with fakes and when the real thing is available, why use fakes ?16:10
sergiusensvila fakes should not bit rot; you will not be around forever to keep this working, we need ensurance that when we change something it won't break badly16:10
sergiusensvila you don't understand, we need both16:10
sergiusensI am really really sad you don't see that16:10
kyrofavila, we're not saying that we don't want to use the real store. Those tests are very valuable16:11
vilasergiusens: I'm really sad that you don't see that using fakes means you will have to wait for your users reporting bugs rather than having the tests fail as soon as one side makes a wrong change16:11
kyrofavila, in that case the integration tests fail16:12
vilasergiusens: and if I won't be around, the test will16:12
sergiusensvila and if the store is down during maintenance? and if I want to develop while on an airplane?16:12
vilakyrofa: you're back with the dichotomy between unit and integration, it's a continuum16:12
kyrofavila, okay-- "in that case the tests with talk to the staging server fail"16:12
kyrofas/with/which/16:12
vilafail if the server is down, skip if you're on the airplane16:13
kyrofavila, how is that different than what you've currently done?16:13
vilabut if you're changing code dealing with the server on an airplane you can't test them either16:13
kyrofavila, exactly. Not to mention such things are run in CI16:14
kyrofavila, it won't merge if it's broken16:14
sergiusensvila bottom line, if the branch is not green, it is not landing; that means you cannot drop code coverage16:14
sergiusensvila if you don't want to do it, don't.16:14
sergiusenswe will, but until then it does not land16:14
vila...16:15
vilaSnapcraft has the ability to upload snaps for publication in the Snappy Store.16:16
vilaIf you're working on a feature that requires you to interact with the store, you16:16
vilamight want to use the staging server instead of the production store.16:16
vilaYour call, it's your project, I'm trying to help16:17
beunovila, yeah, I think at this point, lets just roll with it16:17
sergiusensbeuno vila so where is this part of the store documented for us to start working on it?16:19
ysionneauhi, I get this when running ubuntu-image to create a devel pi2 image : http://pastebin.ubuntu.com/16129071/16:30
ysionneauany idea zyga ?16:30
zygaysionneau: !16:31
zygaogra_: ^^16:31
zygais that the same thing?16:31
zygaysionneau: I have no idea except that it seems to be everywhere now16:31
zygaysionneau: are you on xenial or something else?16:31
kgunni've got a situation where my snap won't install due to a previous install attempt where it got stuck...so it now says "error: cannot install snap file: snap "mir-server" has changes in progress"16:32
kgunni have already rebooted16:32
ogra_ysionneau, you didnt download the u-d-f from mvo today, did you ?16:32
kgunni looked at using snap abort16:32
kgunnbut how to find the change-id ?16:32
zygakgunn: reboot wont help since snappy tracks changes in a persistent way16:32
zygakgunn: snap changes16:32
ogra_(that is in active development atm, might be broken)16:32
zygakgunn: if all else fails rebuild the VM, I recommend using -snapshot for kvm boxes16:32
zygakgunn: but I know you have special requirements16:32
ysionneauzyga: I'm on ubuntu mate 16.0416:33
kgunnhmmm seemed to work...returned id 116:33
kgunnbugger...abort didn;t complain, but install still does...16:33
kgunnok, rebuilding image16:33
ysionneauogra_: it's a brand new udf from mvo, yes16:34
zygamvo: do you know anything about the squashfs magic number issue we saw in autopkgtests today?16:34
ysionneauI modified the sha512sum from ubuntu-image to make the script accept it16:34
ogra_ysionneau, well, better roll back then16:34
ysionneauah, and I guess I cannot download the old one can I? ;)16:34
ogra_it is actively being changed atm16:34
ogra_hmm, probably not16:34
zygaysionneau: ubuntu-image keeps old versions16:34
zygaysionneau: revert to earlier hash16:34
zygaysionneau: if you ran that hash at least once it will work16:35
zyga(as in, it will run that udf)16:35
ogra_ah, cool16:35
zygaubuntu-image is transactional ;-)16:36
ysionneauwouldn't it be interesting to do versionning of those?16:36
ogra_heh16:36
ysionneaulike opening a git repository with udf binaries?16:36
zygaysionneau: it would be much more interesting to not have to od htat16:36
ogra_it would be interestiong to have a working version in the archive :)16:36
zygaand I think that's what we are trying to get :)16:37
ysionneauzyga: yes, I agree, but since it's been monthsthat we use this script and this binary16:37
ysionneauwith this method of distribution (wget)16:37
ogra_well, atm we're trying to get uboot into i386 :P16:37
zygaysionneau: because we were focused on 16.0416:37
ysionneaumaybe we should at least do it right (with proper versioning)16:37
zygaysionneau: it will be stabilized quickly now16:37
ogra_high hopes :P16:37
zygaogra_: what times we live in16:37
zygauboot i38616:37
zyga_i386_16:37
ogra_insanity16:37
zyganot even amd6416:37
ogra_next they will come and ask for grub on arm !!!16:38
* ogra_ shakes head16:38
zygaheheh16:38
ysionneauzyga: none ofthe cached versions I have work :/16:42
ysionneaudoes someone here have a working udf binary?16:43
zygaysionneau: it's Friday16:43
* zyga checks16:43
mvozyga: the squashfs test is fixed, please merge master16:44
zygamvo: \o/ thanks!16:44
zygaysionneau: the copy I have doesn't work now16:44
mvozyga: yw! Chipaca is the hero who did it16:44
ogra_ysionneau, http://people.canonical.com/~ogra/snappy/all-snaps/ubuntu-device-flash that is the last one16:44
ogra_mvo, YAY ! so after wasting my day on this we now have images building again ...16:45
ogra_just finished :)16:45
ogra_what a silly issue16:45
zygaso what was the true root cause?16:45
ogra_zyga, missing XB-Task headers in PPA packages16:46
zygawhat even is that?16:46
ogra_if you dont use a metapackage for your seed, the packages get only a task header added ... that works fine in the archive16:46
mvoogra_: meh, again16:46
ogra_as soon as you upload to the PPA that header goes missing16:46
mvoogra_: the headers are terrible16:47
ogra_yes16:47
mvoogra_: glad its fixed now16:47
ogra_"fixed"16:47
ogra_i hacked them in :P16:47
ysionneauogra_: this one works, thanks!16:47
* ogra_ triggers a full image set ... just to be sure16:48
ogra_what a waste ... :(16:50
dz0ny_Broken link https://developer.ubuntu.com/en/snappy/porting/17:36
zygamhall119: ^^17:37
dz0ny_From bottom of https://developer.ubuntu.com/en/snappy/start/17:37
jdstrandzyga: you're famous: http://www.ubuntu.com/usn/usn-2956-1/17:50
zygamy dream has come true :)17:50
jdstrand:)17:50
zygagiven that I hack on interfaces all day, I wonder if I'll be on the less honorable end of the CVE (or rather, when :/)17:51
jdstrandheh17:51
beunozyga, just wait until there's a big security flaw named after you17:52
zygabeuno: I sense it will be named after "Polon"17:53
mhall119zyga: thanks, fixed it18:19
zygamhall119: thank you :)18:19
sergiusensogra_ ok, SRU followup questions :-)18:22
sergiusensogra_ if I push this to yakety https://github.com/ubuntu-core/snapcraft/pull/491 (changing the series), can I push the same thing to xenial? or should the series there be xenial-updates?18:22
sergiusensogra_ if it is just xenial, it will be auto forwarded to xenial-proposed, right?18:23
kyrofaHey jdstrand, tyhicks: as of https://github.com/ubuntu-core/snappy/pull/1095 Snappy supports unversioned data. Okay with you if I add the creation of the one in $HOME/snap to ubuntu-core-launcher?18:25
geneiosIs there anyway to change the gcc  compiler version used when trying to install packages from pip inside of a python2 snap?18:34
geneiosIt seems I can't compile the version of numpy I need with gcc 6, from some testing it looks like gcc 4.7 is working18:34
jdstrandkyrofa: that seems reasonable18:35
kyrofajdstrand, alright thanks :)18:36
sergiusensjdstrand ah, maybe I can ask you SRUing questions :-) can I?18:38
jdstrandI'm not on the ubuntu-sru team, but you can ask :)18:40
sergiusensjdstrand so I want to get this out https://github.com/ubuntu-core/snapcraft/pull/491 do I just dput that to yakety, wait for it to get in and the dput to straight out xenial (it should get forwarded to xenial-proposed iirc)18:49
sergiusensand then tag all those bugs as per the SRU doc (and probably update the description to cover how it is safe and all that)18:49
josephtgeneios: I'd assume you could add gcc-6 or whatever to build-packages.  I don't know if the python2 plugin supports the options to indicate a different compiler, but I'll bet you could write a custom plugin to do it fairly easily.18:51
jdstrandsergiusens: dput to yakkety, yes. you will want to use a diferent version for xenial following: https://wiki.ubuntu.com/SecurityTeam/UpdatePreparation#Update_the_packaging18:51
jdstrandsergiusens: I believe you will need to use xenial-proposed (that will definitely do the right thing), but I'm not 100% if it is required. otherwise, follow https://wiki.ubuntu.com/StableReleaseUpdates#Procedure18:52
geneiosjosepht: Thanks! I have started digging around in the python2 plugin. I had to make some changes already because it was having issues finding the python-dev headers too.18:54
sergiusensjdstrand so when uploading to xenial I can change the version to 2.8.5ubuntu16.04 ?18:56
jdstrandsergiusens: yes19:00
jdstrandsergiusens: you might even consider 2.8.5ubuntu16.04.119:00
zygajdstrand: can I have a moment of your time?19:02
sergiusensjdstrand ok, the next release in Y will be 2.9 and we will ty and get that SRUed as well (as we will have to basically SRU everything we do anyways).19:02
zygahttps://github.com/ubuntu-core/snappy/pull/1095/files#diff-a34e166c5b3016c122430c5884f41e9b19:02
zygajdstrand: can you please look at apparmor changes there?19:02
zygaseems harmless I just want to ensure you see it19:03
jdstrandzyga: I did already. they look fine. I'll comment19:03
jdstrandzyga: thanks! :)19:03
zygathanks!19:03
sergiusensjdstrand hmm, looking at how the desktop team did gnome software really confuses me https://launchpad.net/ubuntu/+source/gnome-software19:07
sergiusensslangasek can I bug you about SRUing?19:10
* sergiusens is pinging everybody19:10
slangaseksergiusens: hi19:10
jdstrandsergiusens: indeed, that is non-standard to say the least :)19:12
jdstrandthey should've used 3.20.1+git20160426.1.a976144-0ubuntu0.16.04.1 for xenial and 3.20.1+git20160426.1.a976144-1 for yakkety19:14
sergiusensjdstrand series also says 'xenial' in the yakety changelog19:15
sergiusensjdstrand to be fair, it is sort of what I want to do; but I get it if it is not valid :-)19:15
* sergiusens likes clear versions19:15
jdstrandsergiusens: they probably did a pocket forward copy19:16
jdstrandwhich people sometimes do at the beginning of the release. but people should do separate uploads due to our shiny gcc19:16
sergiusensjdstrand yeah, but this is python, so if there is a new python that breaks the old one, there goes my ideal one code base to rule them all19:17
jdstrandsergiusens: what I described is the normal procedure. for a short period of time at the beginning of the release you can get away with the shortcut. but you can't go wrong if you follow the route I mentioned19:17
sergiusensjdstrand yeah; I follow :-) I just want my development focus to be xenial (as it really is) and just upload to yakety because the norm says so ;-)19:18
jdstrandsergiusens: it's simply a changelog difference and a dput19:19
sergiusensjdstrand snapd will see it much worse as they will have to deal with go 1.719:19
jdstrandI did literally the same thing for ubuntu-core-launcher today19:19
sergiusensjdstrand ack then :-)19:19
sergiusensslangasek so the only question for you about SRUing is, do I put `xenial` in debian/changelog and expect to be automatically forwarded to -proposed?19:20
slangaseksergiusens: yes19:20
sergiusensslangasek ty!19:20
sergiusensjdstrand and ty!19:20
oparoz_how do you restart the network in snappy or use ifconfig?19:20
oparoz_Ah.. you use sudo ifconfig :facepalm:19:23
kgunnjdstrand: so i'm really close...but just need to confirm one thing20:08
kgunnin my mir.go file, when adding apparmor/seccomp for the mir-server (not the client) i was add those for permanentslot right?20:09
kgunn(not plug)20:09
jdstrandyes20:09
kgunndang...i was hoping that was wrong jdstrand20:10
kgunnjdstrand: cause now i get the endless hang on install20:10
kgunndebug from snapd20:10
kgunnhttps://pastebin.canonical.com/155582/20:10
jdstrandwe need zyga20:10
kgunn:-/20:10
jdstrandactually20:10
jdstrandERROR cannot setup dbus for snap "mir-server": cannot obtain DBus security snippets for snap "mir-server": unknown security system20:11
jdstrandyou need to I think give something empty20:11
* kgunn raise one eyebrow20:11
jdstrandkgunn: there are 4 secure subsystems-- apparmor, seccomp, dbus and udev20:11
kgunnjdstrand: ok, i wondered about that20:12
jdstrandyou are only need two20:12
jdstrandso you have to do something with the other two it seems20:12
kgunni notice bluze and netrwork had those20:12
jdstrandbut they have an empty udev20:12
kgunnjdstrand: i suppose i can just return nil, nil right?20:12
kgunnon each20:12
jdstrandI'm not sure. what did you do for udev?20:12
kgunnjdstrand: nothing actually20:13
kgunnjdstrand: i only have aa & seccomp for slot20:13
jdstrandlet me look at what they did for udev20:13
jdstrandyes20:13
jdstrandil, nil20:14
jdstrandnil, nil20:14
jdstrandkgunn: look at ConnectedPlugSnippet in bluez.go20:14
jdstrandnotice:20:14
kgunnjdstrand: thanks , will do...20:14
jdstrandcase interfaces.SecurityUDev, interfaces.SecurityDBus:20:14
jdstrand   return nil, nil20:14
kgunnjdstrand: so zyga's blogs mention nothing of udev and dbus20:15
kgunn:)20:15
jdstrandso in each of all of those different places where you can return snippets, return nil, nil for the ones you aren't using20:15
jdstrandnothing is using udev yet20:15
kgunnseems strange to me to have a template requiring those when most folk might not need20:15
jdstrandthat will come with actual hardware assignment, which is probably slated for the gadget snap20:15
kgunnyep20:15
jdstrandkgunn: you might make that comment to him regarding the template20:16
* kgunn remembers jamie always says hw assignment when they speak, but always says "next time..."20:16
kgunnjdstrand: will do and thanks for the pointers20:16
jdstrandnp20:16
kgunnfinally starting to form in my mind waht's happening20:16
sergiusenskyrofa elopio the beast is alive!20:52
sergiusensmissing fonts === SIGABRT ;-)20:53
kgunnjdstrand: hmmm, still giving me the same error.... and i've double checked, i'm pretty sure i've got it correct on which interfaces get returned and tested etc20:55
jdstrandkgunn: unfortunately that would really need zyga then20:57
kgunnyep, thanks tho20:57
kgunnjdstrand: i wonder if i'm the first interface addition not using dbus...maybe there's a baked in assumption somewheres20:59
jdstrandkgunn: most of the builtins don't use dbus21:03
kgunnhmm21:04
jdstrandkgunn: that said, most of the builtins don't have a slot side21:04
kgunnjust bad luck for me i suppose21:04
* jdstrand nods21:04
kgunnjdstrand: and it is permanent slot right?21:04
kgunnjust double checking21:04
jdstrandyes. mir server needs certain policy to run at all regardless of connection. that is what permanent is supposed to be for21:05
jdstrandthe connected stuff is when a slot and plug are connected21:05
kgunnright...which make sense21:06
kgunnbummed i didn't make better/more progress this wekk21:06
jdstrandbut if you install your server snap it would fail to start until you connected it to a client. that is weird which is why the permanent stuff is there21:06
kgunnat least i learned some stuff21:06
jdstrandif you really think it is a blug in the slot side permanent stuff, you could but it in slot side connected21:06
jdstrandand then connect and see if it runs21:07
jdstrands/blug/bug/21:07
jdstrands/but it/put it/21:07
kgunninteresting idea21:07
jdstrandclearly, it is getting to the point where I should stop :)21:07
kgunni may tinker with that21:07
jdstrand(too many typos)21:07
kgunn:)21:07
sergiusensjdstrand is there a way to do `setpriority`?21:20
jdstrandsergiusens: once this lands, yes: https://code.launchpad.net/~jdstrand/ubuntu-core-launcher/seccom-arg-filtering/+merge/29106921:27
jdstrandtyhicks: btw, don't wait on me for that ^ wrt socketcall(). I'm going to see if I can fix it properly. If not, I'll do a separate MP21:28
sergiusensjdstrand what is the quick hack for it? I don't know where all the new paths are21:30
jdstrandsergiusens: /var/lib/snapd/seccomp/profiles21:31
sergiusensjdstrand can i just add setpriority to /var/lib/snapd/seccomp/profiles/snap.vscode.vscode ?21:31
jdstrandsergiusens: just add it to the end21:31
sergiusensand launch again?21:31
jdstrandyes21:31
* sergiusens tries21:31
jdstrandnote, snapd may regenerate that21:31
jdstrandbut it is fine for testing21:31
jdstrandsergiusens: also note, the seccomp arg filtering branch is for GA21:31
sergiusensjdstrand great; I am so close; I have vscode working with --devmode now, but not with "normal" mode; aside from setpriority I have http://paste.ubuntu.com/16136197/21:35
sergiusensjdstrand sounds good (wrt seccomp)21:35
sergiusensI guess that /dev/shm/.org.chromium.Chromium.49BqTu would be a problem21:37
kgunnjdstrand: hey one quick thing, and i swear it's last ques for the day...just confirming something zyga said21:38
kgunnif i add the permanent slot to snappy, then run snapd....and i run snap interfaces21:39
kgunn i would or would not see mir(interface) listed under slots?21:39
jdstrandkgunn: the design aiui is that you would see it21:46
jdstrandsergiusens: erf it has chromium too? what isn't in that thing21:47
jdstrandsergiusens: those will be tricky21:47
jdstrandcause /dev/shm/.org.chromium.Chromium.49BqTu is not app-specific21:48
kgunnjdstrand: ok, zyga said i would not, until i loaded my mir.snap (which didn't make sense to me)21:48
kgunnand fwiw, i do not see it21:48
jdstrandsergiusens: you get /{dev,run}/shm/snap/@{SNAP_NAME}/@{SNAP_REVISION}/**21:48
jdstrandkgunn: oh I meant after the loading21:49
kgunn...and i can't get past the loading21:49
jdstrandfor before, I'm not sure21:49
jdstrandthis is all pretty new stuff here. it landed a week ago I think :)21:49
jdstrandfyi, I clocked out a few minutes ago21:49
jdstrandI'll read backscroll21:49
kgunnlol21:49
kgunnsorry21:49
jdstrandhave a nice weekend :)21:50
kgunnyou too21:50
sergiusensjdstrand yeah, electron IS chromium ;-)22:06

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