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

=== FergusL__ is now known as FergusL
blris there a way to use 'stage-packages' in isolation, i.e. I just want a 1-1 packaging of something already in the archive?01:32
vir17what are the available "plugins" for the yaml file?02:13
=== bigcat__ is now known as bigcat
=== chihchun_afk is now known as chihchun
=== dvladar_ is now known as dvladar
=== ubott2 is now known as ubottu
=== sgclark_sleeping is now known as sgclark
=== FourDollars_ is now known as FourDollars
=== andyrock_ is now known as andyrock
dholbachgood morning07:42
fgimenezgood morning08:13
=== sturmflut2 is now known as sturmflut
sturmflutGood morning! Just out of curiosity: If I were to build my own self-hosted distribution based on Snappy Ubuntu Core, how would I do that?08:29
=== davmor2_ is now known as davmor2
noizerHi an short question.09:14
noizeri set some filesets into my part of the yaml file but they wont copy it to the part dir when im building my applicaiton09:15
noizerkyrofa_ Hi have question about the yaml file. I want to snap an python application but do you have a good example how i need to work to get the job done09:41
JamesTaitGood morning all!  Happy Monday, and happy Freedom Day! 😃09:42
noizerGood morning :D09:42
ogra_`mvo, if you do "Chroot chroot "foo" >chroot/foo.txt then your later commands that run outside the chroot would need to use chroot/chroot/foo.txt (assuming the first command actually creates the dir )10:20
ogra_`;)10:20
ogra_`hmm, or not :P10:21
ogra_`ignore that10:21
mvoogra_`: I'm confused, aha, ok10:21
ogra_`trying to decypher the vivid build failures10:22
=== ogra_` is now known as ogra_
ogra_ah, but i wasnt to wrong :)10:27
ogra_we cd into the chroot dir before you try to cp from chroot/...10:27
* ogra_ fixes10:27
noizerogra_ Hi. just a short question im making an python application but what is the best way to copy alle the necessary files to a snap?10:28
ogra_noizer, http://paste.ubuntu.com/14848777/ that will get you a basic python interpreter installation10:31
noizerI understand that but the code how do I copy the files or does i neet to make a setup.py just lik pypi10:32
ogra_noizer, how about that http://paste.ubuntu.com/14848791/10:34
ogra_though i think you could also use a setup.py10:34
ogra_but i'd have to refer to the examples for that, never did that10:35
noizerok can i copy a complete directory at one line?10:35
ogra_sure10:35
ogra_(at least in snapcraft 2.0 ... )10:36
noizeryea im using snapcraft 2.010:37
noizeris the syntax like that ?:10:37
noizer?10:38
noizerthat:      /dir/ : bin/destinationdir/10:38
ogra_drop a few slashes :)10:38
ogra_http://paste.ubuntu.com/14848805/10:39
ogra_that would copy opt from my snap dir into the package10:39
noizerogra_ thx for the help and the fast support all the time :D10:48
ogra_:)10:54
ogra_mvo, vivid rebuild running (FYI)11:04
mvoogra_: yay, thanks11:04
ogra_ppisati, so for our dt problem on dragonboard ... i was wondering how hard it would be for you to cp it to apq8016-sbc-sdcard-boot.dtsi and add the one line patch, so we can use the sdcard version in snappy11:29
ogra_(i suspect fixing the little-kernel to initialize the controller differently will cause boot issues)11:30
=== chihchun is now known as chihchun_afk
=== lool- is now known as lool
=== nessita_ is now known as nessita
ppisatiogra_: actually i'm chainloading uboot after LK12:25
ppisatiogra_: but probably mine is slightly more recent12:25
ppisatiogra_: look, i'm debugging a race in the wifi init12:25
ogra_ppisati, where did you get the lk ?12:25
ppisatiogra_: and if everything goes well i'll push another update out today12:25
ppisatiogra_: hold on12:25
=== kyrofa_ is now known as kyrofa
kyrofaGood morning12:28
ppisatiogra_: http://pastebin.ubuntu.com/14849122/12:30
ogra_ppisati, hmm, i see you are using a newer u-boot ...12:36
ogra_where did you get the lk though ?12:36
ogra_i wonder why your alsa is messed up ... are you using the right DT ?12:38
* ogra_ had alsa only fail with the msm8916-mtp file12:39
asacmartintrojer_: hi!12:40
ppisatiogra_: it's all your stuff12:40
ogra_oh12:40
ppisatiogra_: i compiled a new uboot to add bootz support12:40
ppisatiogra_: and i'm using this dtb12:41
ogra_hmm, my uboot should have that12:41
ppisatiogra_: apq8016-sbc.dtb12:41
martintrojer_asac: 'lo12:41
ppisatiogra_: i'm going out for lunch, i can publish my uboot somewhere if you want12:41
ogra_ppisati, yeah, thats the correct one.... why do i see the mmc1 init error then ... weird12:41
ogra_ppisati, only the patch ... here is mine http://bazaar.launchpad.net/~ogra/+junk/dragonboard/view/head:/uboot.patch12:42
ogra_oh12:42
ogra_seems you are right, bootz isnt set there12:42
ogra_oh, wait ... because amr64 uses a special boot command12:43
ogra_right12:44
ppisatiogra_: sorry, can't find my patch ATM12:44
ogra_booti12:44
ppisatiogra_: here is the binary12:44
ppisatiogra_: http://people.canonical.com/~ppisati/dboard_uboot/u-boot.img12:44
ogra_ booti ${linux_addr} ${ramdisk_addr}:${initrd_size} ${fdt_add}12:44
ppisatiogra_: i'm they just fixed it upstream12:44
ppisatiogra_: i'm not using initrd either12:45
ogra_turning booti into bootz ?12:45
ogra_well, the initrd shouldnt have any influence regarding the mmc1 init error i would think12:45
ppisatiogra_: no,. i was wrong12:46
ppisatiogra_: i'm still using booti12:46
ppisatiogra_: it's probably just the updated version then12:46
ogra_ok, i'll check that12:47
ogra_would be good to get along without patched DT12:47
* ppisati disappears for a bit12:49
ogra_mvo, do you have your all-snap build scripts somewhere ?12:58
mvoogra_:  lp:~mvo/snappy/mksnap-os-kernel12:59
ogra_thx12:59
mvoogra_: you probably need more stuff though, os snap, gadget snap12:59
ogra_yeah12:59
mvoogra_: I can push you the ones I used for the previous image13:00
ogra_cool, thanks13:00
mvoogra_: one sec, meeting right now13:00
ogra_no hurry13:00
=== ssweeny` is now known as ssweeny
=== JamesTait is now known as Guest5410
sergiusenskyrofa, I made a better change https://github.com/ubuntu-core/snapcraft/pull/285/files13:40
kyrofasergiusens, ah, just move it down?13:40
kyrofasergiusens, good idea13:40
kyrofasergiusens, though honestly, I refactored that in my PR anyway... what if I just move it down?13:41
kyrofasergiusens, otherwise it'll just conflict13:41
kyrofasergiusens, ha! Actually, I already did13:41
kyrofasergiusens, https://github.com/ubuntu-core/snapcraft/pull/283/files#diff-0d5dc26743422dade0478e577247a141R12413:42
kyrofaniemeyer, sorry it took so long, but I managed to document the application launching process here: https://docs.google.com/document/d/1eaXHeFMEKMoWKFjmr5XMOW1vLywCjzoXd5SNJOUi_GE13:53
kyrofaniemeyer, mvo kindly filled in the u-c-l details (thanks mvo!)13:53
noizerogra_ Hi i just installed nginx in my snap but does i need to make a service of it or not?13:57
noizerto get nginx started13:57
sergiusenskyrofa, sure14:01
kyrofasergiusens, I have another STAGE_DIRECTORY-like suggestion: the source location when building the part. This particularly applies to the cmake plugin, which does an out-of-source build (as it should be, of course)14:01
kyrofasergiusens, but when configuring e.g. mysql, if I want to use things included in the src I need to say -DWITH_X=path/to/src/X-dir14:01
noizerkyrofa can you look a moment to my question that i asked to ogra_ i think he is afk14:04
kyrofanoizer, yes, any service you want to run within your .snap must be declared as such14:05
niemeyerkyrofa: Thanks, let's talk this afternoon.. I need to step out to have lunch as we have the weekly Snappy meeting in a few minutes14:09
kyrofaniemeyer, no problem :)14:09
noizerkyrofa ok thx for the answer14:09
ppisatiogra_: i'm building a new kernel for the dboard410c, it contains a couple of fixes (one for ethernet on usb dongle and another for a wifi init race)14:12
ppisatiogra_: as soon as it's done i'll delete the previous one14:12
noizerkyrofa i want to remove an application but it won't work completely. here is some output: http://pastebin.com/CqZDAuxU14:16
kyrofanoizer, no clue what's happening there. It looks like you were in the middle of a commit when you built the snap?14:19
ogra_ppisati, ok14:19
noizerkyrofa not realy14:20
noizerbut that was installed previously xD14:20
jdstrandbeuno: hi! two questions: 1) do you have any objections with me doing some big code cleanups to the review tools with the snap.yaml updates I'll be working on (think, starting fairly anew with snap.yaml) and 2) is it cool for me to force that if you are a squashfs that you must use snap.yaml?14:25
beunojdstrand, +1 and +114:27
Guest5410jdstrand, FWIW, we have tests in the store to enforce that.14:27
* Guest5410 sighs14:28
=== Guest5410 is now known as JamesTait
=== JamesTait is now known as Guest73851
=== Guest73851 is now known as jayteeuk
=== jayteeuk is now known as JamesTait
JamesTaitFinally!14:31
JamesTaitjdstrand, while you're working on that, IIUC readme.md is no longer required (instead we take the summary and description properties from snap.yaml).14:34
JamesTaitmvo and/or sergiusens - feel free to correct me. 😉14:35
sergiusensJamesTait, jdstrand that is indeed correct14:35
sergiusensjdstrand, I say +1 to squashfs implies snap.yaml (but not too tightly coupled in the code)14:36
jdstrandJamesTait: yes-- I will be using the snap.yaml spec to implement this14:39
jdstrandsergiusens: re coupling-- well, no more so than it already is. we said squashfs signifies 16.04. basically, I'd like to say no package.yaml in 16.04 as well right away if I can get away with that14:40
JamesTaitjdstrand, I assumed as much, just wanted to make sure it was on your radar. 😉14:40
jdstrandJamesTait: appreciated :)14:40
mvojdstrand: +1 for now package.yaml in 16.0414:41
sergiusensjdstrand, right, just thinking about 16.10 and squashfs having a different snap.yaml14:44
beunothere will be no 16.10!14:44
beunorolling until 18.04!14:44
sergiusensbeuno, well, rolling14:44
noizerkyrofa what did I wrong. He installed flask but not tornado and yaml as library for python http://pastebin.com/xiXE78Sm15:12
kyrofanoizer, huh?15:17
kyrofanoizer, I don't see a problem there-- what went wrong?15:17
noizerwhen im installing my application and then i look in my site-packages there isn't tornado installed15:17
noizer:s15:17
kyrofanoizer, do you have any errors when creating the snap?15:18
noizerno15:20
noizerwait i will try something again15:20
noizerhe is now building the snap again a moment please15:21
noizerkyrofa got an error verry strange : Parts 'flask' and 'yaml' have the following file paths in common which have different contents:15:32
noizerso it was an old snap file that i had installed :s15:33
kyrofanoizer, please pastebin the build log15:33
noizerkyrofa http://pastebin.com/fpJP1AL115:35
sergiusenselopio, should I give you time to look at https://github.com/ubuntu-core/snapcraft/pull/282 ?15:36
elopiosergiusens: wow, that's big. I'm in a meeting with Federico. If you are happy with kyrofa's review, merge it.15:37
elopioI'll take a look afterwards. Seemed good with my quick glance.15:38
sergiusenselopio, yeah, I added lots of tests ;-)15:39
jdstrandmvo: oh, btw, while I am going to focus on snap.yaml stuff first I think, I did want to let you know that with a patched squashfs I was able to verify an amd64 snap on a powerpc machine (so I'm not worried about endianess any more). need to work out a few other details, but if you were worried, don't be at this point15:43
noizerkyrofa do you have any solution ps I'm using snapcraft 2.015:45
elopiofgimenez: I was trying to say that this create cloud image job doesn't take a lot of time.15:49
elopiocould we create one image per job, and then delete it?15:49
elopionot per job, per test execution.15:49
fgimenezelopio, we need to create the image, convert to qcow2 and upload to glance, less than 5min i think, but each image is valid until a new version is created15:51
elopiofgimenez: right, that would be a lot of wasted resources when there are no changes.15:51
elopiook, lets figure out how to subscribe to new versions.15:52
elopiofgimenez: do you know if there's a good plugin for jenkins that keeps polling?15:52
fgimenezelopio, yes urltrigger, we are using it for the image creation jobs15:53
fgimenezelopio, https://wiki.jenkins-ci.org/display/JENKINS/URLTrigger+Plugin15:53
noizerkyrofa the error is at line 59215:53
elopiofgimenez: great, it lets you even check the json response. I'll use it.15:54
kyrofanoizer, ah, it seems that's bug #153157015:55
ubottubug 1531570 in Snapcraft "Can't have two python3 parts using setuptools" [Undecided,New] https://launchpad.net/bugs/153157015:55
noizerkyrofa is there an solution for that?15:57
kyrofanoizer, you can work around it as I mentioned in the comment, or you can try putting them all in one part using requirements.txt perhaps?15:58
noizerkyrofa or install them manualy in an other os and copy them to the correct dir15:58
kyrofanoizer, you might try the requirements.txt first, if that works for you16:00
noizerkyrofa is there an example of that?16:00
kyrofanoizer, not in snapcraft, it's a pip thing16:01
kyrofanoizer, https://pip.readthedocs.org/en/1.1/requirements.html might be helpful16:01
pindongakyrofa, re: proper login on snapcraft... I just became aware snappy itself has login support as well16:02
pindongaso I think you should attempt to mimick what's being done there16:02
pindongalooked at the code and looks quite right to me16:02
kyrofapindonga, regarding the OTP etc.?16:02
pindongayes16:02
kyrofapindonga, excellent, we'll check it out! Thank you :)16:02
elopiofgimenez: https://search.apps.ubuntu.com/api/v1/package/ubuntu-core.canonical16:03
pindongakyrofa, it might even make sense trying to read the config file written by snappy (so to avoid having multiple config files)16:03
kyrofapindonga, without having looked at it, why does snappy have a login option?16:04
pindongakyrofa, there are certain use cases that need it, eg downloading private packages16:04
kyrofapindonga, ahh16:04
kyrofapindonga, that makes sense then16:05
fgimenezelopio, great! thx, that's all we need, the only thing missing is the version string to assign to the image, it should be compatible with our current schema (plain numbers from system-image) and the schema from official images (dates as in 20160129)16:06
loolLefterisJP: hey!16:06
elopiofgimenez: if we are listening to the three snaps, why don't we just use a timestamp?16:08
elopioI mean one timestamp.16:08
LefterisJPlool: hey :)16:09
fgimenezelopio, we need to be able to know from snappy-cloud-image if we need to create a new image, we need some hint in the latest image name to be able to compare with the info from the snaps16:10
fgimenezelopio, now the source is system-image, and the cloud images have the same version number that the images have there, so we can easily compare both16:11
elopiofgimenez: but system-image is going away. So, we put three url triggers, one for each snap. When anyone fires, we create a new image, and put a timestamp on it.16:12
elopioI might be missing something of course, because I don't get why we need to compare.16:12
fgimenezelopio, yes, we could rely in the external trigger, now we are using it just for preventing the jobs to be executed by cron, the job itself checks again if we should create the instance or not16:15
elopiofgimenez: got it. Well, I won't mind to collect the three versions and build a name from that. Whatever you prefer.16:16
mvojdstrand: \o/ thanks, that is great news16:17
elopiofgimenez: last thing I wanted to talk today is about gocheck.16:17
jdstrandnp16:17
elopiofgimenez: let's see how niemeyer resolves it, and if there's no progress at the end of the week I can propose again the ugly hack to get the list command for plars and team.16:18
fgimenezelopio, ok, let me know if you need any help with that16:19
elopiofgimenez: well, if you have a better implementation in mind and want to give it a go sending it upstream, I won't stop you. I wouldn't ask that of you either :)16:20
beunoJamesTait, so, are you changing crt to not require readme.md for 16.04 snaps?16:22
sergiusensbeuno, mvo just triple confirming; I can land skills for snapcraft? Is there an OS already built?16:25
sergiusensbuilt/uploaded to the store16:25
JamesTaitbeuno, I can do, if it won't interfere with what jdstrand is working on.16:26
beunosergiusens, I don't know. Will it affect the store in any way?16:26
sergiusensbeuno, well; only in the sense that everything might be denied or marked invalid16:28
beunosergiusens, if you get me a snap built with skills, I can run it through and check for you16:29
sergiusensbeuno, sounds good16:29
beunosergiusens, in all likelyhood, it'll be click-reviewers-tools16:29
beunoso you can easily check locally as well16:29
jdstrandJamesTait (and beuno): it would be incorporated in my larger work. if needed, JamesTait or I can make a quick change16:29
JamesTaitjdstrand, I realise it's still early days, but do you have a sense of ETA for the rework yet?16:30
jdstrandsergiusens, beuno: I can say for sure the review tools won't like it16:30
jdstrandJamesTait: I imagine this week. I am wholly focused on it16:30
JamesTaitAck, thanks.16:30
sergiusensjdstrand, if the error does not prevent manually putting into the store I'm fine16:31
sergiusensputting/approving16:31
jdstrandsergiusens: it would be no worse than other squashfs. if you give me a snap I can make super sure for you16:31
sergiusensjdstrand, k, thanks16:32
JamesTaitjdstrand, just an additional heads-up: we've been discussing in OLS "outsourcing" the package metadata extraction wholly to click-reviewers-tools and having it return metadata in a standardised format, rather than having the whole click/snappy1.0/snappy2.0 detection logic in the store as well.16:32
JamesTaitjdstrand, letting you know just in case it's a really bad idea or makes things much more difficult.16:33
jdstrandJamesTait: so, you give a snap to the review tools in some way, and it spits back something the store can consume?16:33
JamesTaitjdstrand, exactly.16:34
jdstrandJamesTait: I think that is a really good idea16:34
jdstrandkeep this stuff in one place16:34
JamesTaitExcellent. ☺16:34
JamesTaitI'll find out whose idea it was and route karma/beers appropriately. 😝16:34
jdstrandI imagine the review tools side would loop back to me (which is fine)16:35
mvosergiusens: there is no updated OS snap in the store yet but I will upload one now that the store is open16:36
sergiusensmvo, great; do we have the opening/closing hours for the store? I hope it is not like the starbucks photo ogra_ posted on g+ :-) https://plus.google.com/+OliverGrawert/posts/fje7cEH4oa216:38
ogra_haha16:38
ogra_wow16:38
ogra_i just wiped the .ics files from my phone and clicked "sync" in the calendar app ....16:39
* ogra_ guesses he shouldnt recommend doing that to anyone .... flushed my whole gcal at google :P16:39
wigglewo1Does anyone know of there are email posted somewhere that say snappy updates are available?16:40
wigglewo1posted or emailed to general public16:41
ogra_what kind of updates ?16:42
ogra_to the snappy binary ?16:42
ogra_(OS updates happen automatically on all images that are supported)16:42
=== sarnold_ is now known as sarnold
ogra_updates to the stable images are usually announced on the snappy-devel mailing list after they went out16:43
wigglewo1i know that but if the automatic updates are diabled then how does one find out about updates?16:43
ogra_well, if you run stable you m8ight want to follow that ML16:44
wigglewo1what is ML16:44
ogra_if you use any rolling channel ... well, you should check regulary by simply running "sudo snappy update ubuntu-core"16:44
ogra_mailing list16:44
wigglewo1thanks where do i find the mailing list16:45
ogra_https://lists.ubuntu.com/mailman/listinfo/snappy-devel16:45
wigglewo1thank you16:46
ogra_:)16:46
wigglewo1are you familiar with apticron? and does that work differently?16:47
ogra_no, never heard of apticron16:48
wigglewo1ok thanks16:48
kyrofaelopio, regarding the INFOs from requests-- are you suggesting I move that line into log.py? Or do something different altogether?16:49
elopiokyrofa: yes, you can put this:16:50
elopiologging.getLogger("requests").setLevel(logging.WARNING)16:50
elopioin the log.configure.16:50
kyrofaelopio, ah, that will be much nicer, I'm glad you caught that. I've never noticed log.py before, heh16:50
sergiusensJamesTait, beuno jdstrand http://people.canonical.com/~sergiusens/snappy/shout_0.52.0_amd64.snap there's a skills snap16:55
JamesTaitHandy, thanks sergiusens!16:55
sergiusenselopio, have time for a quick hangout?16:59
Chipacapitti, got a systemd ordering/dependency question for you17:00
Chipacapitti, when would be a good time?17:00
elopiosergiusens: sure. I have a sore throat, so if it's not quick, we'll have to come back to text chatting. Snapcraft daily channel?17:00
sergiusenselopio, yeah17:01
sergiusenselopio, well this https://plus.google.com/hangouts/_/canonical.com/snapcraft17:01
Chipacapitti, basically we have a bunch of services depending on a target, and that target can take arbitrarily long to load. the services are being wanted by multi-user, but we don't want to block multi-user on these17:08
pittiChipaca: just ask, that's easier :) (drive-by, dinner now, but will come back for a bit later tonight)17:08
pittiChipaca: well, that sounds like a circular dependency then -- you must break it somewhere :)17:09
pittiChipaca: without knowing any details, conceptually they probably shouldn't be wanted by multi-user then?17:10
Chipacapitti, ah, maybe i didn't explain properly. go have dinner, i'll try to explain better in a bit17:10
jdstrandsergiusens (fyi beuno and JamesTait): this is what the store should see with the skills snap: http://paste.ubuntu.com/14850654/. so 'yes' no worse than squashfs, readme.md, etc17:14
sergiusensjdstrand, that's good enough for me.17:18
jdstrandsergiusens: the review tools in the archive is oddly a little more grumpy with that over a snapcraft 2.0.1 build snap17:18
sergiusensjdstrand, probably because 2.0.1 includes a package.yaml and readme.md for backwards compat; but already uses 'apps' instead of "services" and "binaries"17:19
jdstrandsergiusens: don't you run the review tools automatically? if so, I should figure that out now and update the archive17:19
jdstrandoh yes, that would make sense17:19
jdstrandif no package.yaml, it will think it is a click17:19
jdstrandok, let me look at that MP from earlier today and upload that to xenial17:20
jdstrandsergiusens: go ahead with your merge/landing/etc17:20
sergiusensmvo, did you push already; or asked differently; does `snappy update` work on amd64?17:20
sergiusensjdstrand, thanks, just waiting on OS support to make sure all the pieces work :-)17:21
noizerkyrofa Is it possible to enter the container to test some things?17:23
kyrofasergiusens, should I --include-binaries in the copy-package?17:23
kyrofasergiusens, not super clear on what that does :P17:23
kyrofanoizer, what container?17:23
noizerthe snap so i can do some python scripting for do some test17:24
noizerkyrofa17:24
kyrofanoizer, running xenial (rolling), right?17:26
noizerkyrofa yes17:26
sergiusenskyrofa, yes you should17:27
kyrofanoizer, so first of all, the word "container" indicates something at least somewhat virtualized, e.g. lxc, etc. Snaps don't run in a container, they're just very confined. But to actually answer your question, there's no way to modify the squashfs mount, so you'd need to make some overlayfs games to do that17:27
kyrofas/need to make/need to play/17:28
kyrofasergiusens, otherwise it'd what... grab the source package only?17:28
sergiusenskyrofa, yeah, and rebuild17:28
kyrofasergiusens, very good17:29
Chipacakyrofa, maybe 'snappy shell' is what noizer is looking for?17:33
kyrofaChipaca, perhaps, I don't have any experience with it (it doesn't show up as an option for me, must be new?)17:35
ogra_sudo snappy enable-classic17:35
ogra_snappy shell classic17:35
ogra_;)17:35
kyrofaOhh17:35
Chipacayes, but, snappy shell potato17:35
Chipacagives you a shell in the security context of potato17:36
kyrofaChipaca, interesting. But you still can't modify the install snap, right?17:36
kyrofainstalled*17:36
Chipacaright. But you can 'try some things'17:36
kyrofaChipaca, hey, I learned something new. Thanks for that!17:36
ogra_you can also spt-get install snapcraft ;)17:37
ogra_and build your snaps in there17:37
Chipacassh, don't tell people about spt-get yet17:37
ogra_*apt17:37
ogra_haha17:37
kyrofaogra_, yeah I've used classic, I just didn't realize snappy shell was a more generic command17:37
Chipacapitti, so: snappy-wait4network.service is a oneshot that runs and just waits for network. If a snap is installed that has a service with an external port, then that service is made to come after wait4network, and wanted by multi-user. If network never comes up, multi-user is never reached.17:38
Chipacapitti, that last little detail is purportedly a bug :-)17:39
Chipacapitti, basically we want the whole tree under wait4network to be "ignored", as far as reaching multi-user is concerned17:39
ogra_well, you want loopback17:40
Chipacawait4network waits for a route17:40
ogra_is that blocked by that service too ?17:40
ogra_ah17:40
ogra_right, thats the one that never finishes if we have auto in /e/n/i with no network cable attached17:40
Chipacaand a snap with a service with an external port installed17:41
ogra_does systemd not provide a simply way for timingt out a job ?17:42
ogra_*simple17:42
ogra_(like a timeout option :) ))17:42
Chipacayes17:43
Chipacabut we don't want it to timeout17:43
Chipaca(and it'd be in the minutes, this timeout)17:43
ogra_hmm17:44
ogra_what if i have a service i want to use through loopback only ? i suppose it would wait forever if there is no real network then ?=17:44
ogra_(if assigning a port also makes it depend on that service file)17:45
Chipacaogra_, then you don't define an external port for it17:45
Chipacaogra_, there are internal ports17:45
ogra_oh, i thought they were dropped17:45
Chipacathey will be, once we move to caps17:45
ogra_right17:45
Chipacathe problem will remain :-)17:45
ogra_indeed :)17:45
sergiusensjdstrand, fwiw, the store accepted my app (failed reviews though)  https://myapps.developer.ubuntu.com/dev/click-apps/3989/rev/4/17:46
Chipacaogra_, hence head scratching, and pitti invoking17:46
ogra_yeah17:46
Chipacai'd go ask in #systemd but last time i went they said we should have systemd in initrd17:47
Chipacawhich i agree on in principle, but in practice i'm not in a hurry to get there17:47
sergiusensogra_, kyrofa, Chipaca what noizer want is the yet to be made snappy try17:47
ogra_yeah,17:47
kyrofasergiusens, yeah, I did know that one :P17:47
Chipacasergiusens, the tricky bit is the snappy except17:48
Chipacai'll let myself out17:48
kyrofaChipaca, the finally is really terrible17:48
sergiusensChipaca, because it should be catch? :-)17:48
=== bdmurray_ is now known as bdmurray
jdstrandsergiusens: cool. do you need me to accept it?17:49
sergiusensjdstrand, if you want to, sure (it's the same snap, except I uploaded with the to be release snapcraft upload command)17:49
sergiusens*d17:50
* sergiusens is still waiting for ubuntu-core to finish downloading17:50
Chipacasergiusens, kyrofa, i think we all should get each other big "NERD" mugs17:51
kyrofaHahaha17:51
ogra_you dont have one yet ?!?17:51
jdstrandsergiusens: if you request a manual review, I'll approve it17:53
jdstrandsergiusens: fyi, uploaded review tools 0.36 to xenial so it won't be so grumpy17:53
sergiusensjdstrand, :-)18:01
sergiusensjdstrand, we plan on releasing snapcraft 2.1 today as well18:01
sergiusensjdstrand, and this is our next milestone fwiw https://launchpad.net/snapcraft/+milestone/2.218:01
jdstrandsergiusens: cool18:03
jdstrandsergiusens: fyi, accepted18:03
sergiusensmvo, updating does not work in rolling in case it was unknown to you18:56
kyrofasergiusens, 1.0.1 release went smoothly. Thanks for answering my questions :)18:56
sergiusenskyrofa, nice18:57
kyrofasergiusens, is https://github.com/ubuntu-core/snapcraft/pull/283 good to go, then?18:58
sergiusenskyrofa, I am just missing a live upload; unless you have tried that yourself18:59
sergiusensI will trust you ;-)18:59
kyrofasergiusens, only to staging18:59
kyrofasergiusens, but I can do live18:59
sergiusenskyrofa, that should be good enough; don't you want to try against production19:00
sergiusenskyrofa, one of the examples maybe19:00
kyrofasergiusens, verified-- works great :)19:03
sergiusenskyrofa, the minute I press merge, I remember I didn't check the commit message :-P19:05
sergiusenskyrofa, is this mentioned https://bugs.launchpad.net/snapcraft/+bug/1539814 or should I  just dup?19:05
ubottuLaunchpad bug 1539814 in Snapcraft "Upload not closing resource correctly" [Medium,New]19:05
kyrofasergiusens, it is :)19:06
kyrofasergiusens, question is, did I do it right? I wasn't sure whether to do LP: #1, #2 or use two different LP lines19:06
kyrofasergiusens, I went with two19:06
sergiusenskyrofa, I think you did it right19:06
sergiusenskyrofa, we'll see ;-)19:06
kyrofasergiusens, gbp dch picks it up both ways, but one way it's (LP: #1, #2) and the other it's (LP: #1)(LP: #2)19:07
kyrofasergiusens, for my future reference, if I need to do something asynchronously in python, is multiprocessing better than multithreading?19:09
kyrofasergiusens, the way I solved the progress bar problem was driven completely by my experience in C++19:09
kyrofasergiusens, but your comments from earlier lead me to believe there's a better way to do that in python?19:10
sergiusenskyrofa, multithreading is not that good in python; Chipaca might spank you :-P19:12
* kyrofa runs away from Chipaca19:12
sergiusenszyga, any idea how to test if my migration-skill built snaps actually work?19:39
sergiusenszyga, or can you try and see if 'shout.sergiusens' on the store works?19:40
zygasergiusens: I'll check, mvo merged this yesterday19:51
sergiusenszyga, yeah, but I have no idea to know if it is doing the right thing; I copied a snappy binary over but ubuntu-core-launcher fails to aa_*19:53
pittiChipaca: re19:55
pittiChipaca: snappy-wait4network.service sounds very similar to network-online.target19:56
kyrofasergiusens, why does the ROS example have all the exclusions now19:56
kyrofa?19:56
pittiChipaca: normally multi-user.target does/should not depend on network-online.target, unless you have things like /var or /home on NFS19:56
pittiChipaca: so if you want snappy-wait4network.service to not block multi-user.target, then you can't make it an one-shot that is  "starting" forever19:57
kyrofasergiusens, I seem to remember it having to do with shebang stuff19:57
pittiChipaca: option 1 is to make it daemon-like, i. e. not "oneshot" -- then it'll just block m-u for as long as it takes to start that listening thingy19:57
sergiusenskyrofa, so it doesn't conflict with what catkin brings in19:57
pittiChipaca: option 2 is to make snappy-wait4network.service WantedBy=network-online.target instead of m-u.target19:58
sergiusenskyrofa, and yeah, it is related; but I eventually want to get rid of the file migration thing19:58
kyrofasergiusens, didn't we fix that with the always-link change?19:58
sergiusenskyrofa, no; but we also still remove useless stuff for a snap, so it should be fine19:58
pittiogra_: sure, units time out starting/stopping by default after 90s (units can tweak or disable that, but most don't)19:58
kyrofasergiusens, ohhh, the roscore plugin......20:01
kyrofasergiusens, okay good. This'll clean up nicely then20:01
sergiusenskyrofa, yeah20:01
elopioI'm going to have lunch.20:06
elopiosergiusens: if you look for me to give you a hand with the release and I don't reply, insist pinging on telegram. I'm not feeling so well and might end up sleeping deeply.20:07
elopiobbl20:07
sergiusenselopio, no worries, I'm still debating if I should merge the migration skill stuff as there isn't a working image yet20:08
kyrofasergiusens, that would indeed make it difficult to test other changes built on top of master if it merged...20:14
kyrofaChipaca, what kind of parameters does `snappy shell` accept?20:21
kyrofaChipaca, oh you're probably eating or something huh20:21
kyrofaChipaca, you can ignore me :)20:21
sergiusenslol20:28
sergiusenskyrofa, yeah, that is why I didn't merge it20:28
sergiusensjust hoping mvo can answer when he gets back20:29
kyrofasergiusens, what incantation of u-d-f will create a rolling all-snaps amd64 image nowadays? I just realized the canonistack version is too old20:43
sergiusenskyrofa, welcome to my world of not knowing and being blocked most of the evening :-P20:46
wigglewo1hello - looking for direction on how to publish a snap to the snappy store - are there published instructions?20:59
rickspencer3wigglewo1, well ...21:16
rickspencer3the web page is pretty self-explanatory, I think21:16
rickspencer3wigglewo1,  have you looked at https://myapps.developer.ubuntu.com21:16
rickspencer3?21:16
rickspencer3once you sign in, click on Ubuntu Core at the top21:17
rickspencer3and then fill in the form21:17
bdmurrayMy beaglebone never seems to boot snappy. I've followed the steps at https://developer.ubuntu.com/en/snappy/start/#try-beaglebone although I didn't "remove the bootloader available in the eMMC" partition.22:40
zygabdmurray: hold the user button22:45
zygabdmurray: and do remove the other bootloader as otherwise you will never boot into the SD card22:45
bdmurrayzyga: hold the user button during boot?22:46
zygabdmurray: yes22:51
zygabdmurray: it forces the SoC to use SD card to boot22:51
bdmurrayand then you use dd on the device to remove the bootloader? the instructions don't make that clear.22:52
zygabdmurray: you can do that from uboot or after snappy boots22:53
zygabdmurray: AFAIR I used uboot's command to erace the mmc22:54
zygaerase*22:54
bdmurrayzyga: okay, thanks I'm working on a snap of some python software and when I run it on the bbb I get a bad interpreter message.22:55
bdmurrayhttps://paste.ubuntu.com/14852967/22:56
zygabdmurray: did you use snapcraft?23:00
zygabdmurray: you can use snapcraft to build a snap with python23:00
bdmurrayzyga: yes, i did23:01
zygabdmurray: there are existing examples that do just that in snapcraft source23:01
zygabdmurray: try building one of them and ensure it works23:01
zygabdmurray: if that doesn't work, ask sergiusens23:01
zygabdmurray: note that beagle is no longer officially supported23:01
zygabdmurray: though I bet that python won't care here, the image you might be using might be out of date23:02
bdmurrayits still listed at the developer portal23:02
zygabdmurray: it is supported by the community, in practice it might lag behind our officially supported platforms, especially now when we are developing at a very rapid pace23:03
zygabdmurray: I have two beagles in my office, both running snappy, though I'm using raspberry pi for my daily development now23:03
bdmurrayIs there a way to get snapcraft to use my local mirror?23:10
zygabdmurray: perhaps but I don't know the details, ask sergiusens23:11
sergiusensbdmurray, USE_LOCAL_SOURCES=1 and python is included in the snap, you need to build on the arch you want to target23:15
bdmurraysergiusens: How do you recommend building on armhf?23:52

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