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

wxlhey folks can someone tell me how to generate an i386 image with ubuntu-device-flash? no matter what i do, i can't get it to wor04:46
wxlk04:46
wxli'm trying sudo ubuntu-device-flash core 15.04 -o my-snappy.img --device generic_i386 --channel edge --enable-ssh04:48
wxli get a warning that "this option" should only be used to build azure images04:48
wxland then it starts downloading a generic-amd6404:48
wxland then says it failed to install (but i'm not trying to install it)04:48
=== chihchun_afk is now known as chihchun
fgimenezgood morning08:04
dholbachgood morning08:20
diwicgood morning!08:21
diwicnew day, new snappy questions :-)08:21
diwicI'm wondering about XDG_RUNTIME_DIR - PulseAudio expects to be able to write to that directory. It currently points to /run/user/1000 where the snap cannot write.08:22
diwicShould we 1) point XDG_RUNTIME_DIR to somewhere inside /snap/pulseaudio/current/ or 2) add some rule that allows PA to write to /run/user/1000 ?08:23
noizerkyrofa is that the correct link to download the ubuntu 16.04 for Raspberry pi08:44
JamesTaitGood morning all!  Happy Friday, and happy Fun At Work Day! 😃09:37
mvohey JamesTait, good morning! It looks like I missed some messages yesterday, anything important that I should reply to now .) ?09:53
JamesTaitGood morning, mvo!  I don't think there's any action on you at the moment.  I'm just cleaning up my branch and jd-strand is working on the click-reviewers-tools part.09:54
devil_hi, can somebody clarify for me, if Snappy Personal is still happening?09:56
noizerHi i have a question for what should I use Docker on my snappy?09:58
mvoJamesTait: cool, thanks09:58
noizerIs it good for things like UWSGI and Nginx?09:58
=== chihchun is now known as chihchun_afk
ogra_mvo, your gadget snap looks fine but i think something changed the order how/when partitions are created10:21
ogra_mvo, what my code does it to append all partitions to the created image ... you have three partitions and left a gap at the start ... i append 4,5,6,7,8,9,10 (this is in partition numbering though, pyhsically they would be 1,2,3,4... and then tell sgdisk to sort the numbering by position in the end which should align the numbering to the physical position10:25
mvoogra_: oh, the new image has less partitions, its just boot and writable, no more a/b.10:26
ogra_mvo, somehow "boot" with u-boot.img ends up at the last physical position now10:26
mvoogra_: what positition should this have?10:26
ogra_the number shouldnt matter though10:27
ogra_i pick up the last one and add +110:27
mvoogra_: ok, let me look at this code again, maybe I get an idea10:27
ogra_"boot" should be after "aboot" http://paste.ubuntu.com/14694737/10:28
ogra_the u-boot binary currently expects top find its env on p810:28
ogra_mvo, the wrong position isnt the big issue here, it would still boot (though couldnt resize anymore due to writable not being at the end)10:29
ogra_well, the wrong position of "boot" isnt the blocker10:29
ogra_its still an issue :)10:30
mvoogra_: what is the blocker? the kernel?10:30
ogra_mvo, no, the uboot binary is broken .... wheere did you get it ?10:31
ogra_(if i dd mine in place i get a proper uboot shell)10:31
ogra_heh, well, and yeah, the kernel too :P10:31
* ogra_ isnt awake yet10:31
ogra_we need to fix all three10:32
mvoogra_: I thought I had it from your dragonboard oem snap, let me double check10:32
ogra_well, if it is the same binary then something in the way it is written to disk is broken10:33
ogra_ogra@anubis:~/datengrab/dragonboard/all-snaps$ md5sum ../oem-snap/snap/u-boot.img10:33
ogra_aad77edcce10781ace7df4d4a104c891  ../oem-snap/snap/u-boot.img10:33
mvoogra_: I thikn its out of http://people.canonical.com/~ogra/snappy/dragonboard/dragonboard_0.1_all.snap10:34
ogra_thats the md5 here10:34
mvoogra_: but let me check10:34
mvoeh, sorry10:34
mvono, the right snap10:34
mvoogra_: md5 matches10:35
ogra_then the way it gets written broke it i guess10:36
ogra_cant imagine anything else10:36
mvoogra_: offset is correct? 3179520 ?10:36
ogra_317952010:37
ogra_yeah10:37
ogra_the type GUID is also correct ... but the little kernel complains and stops the boot in the default image10:37
ogra_as soon as i dd mine it boots fine (to the point where it cant find the uboot.env on partition 8)10:37
mvoogra_: ok, I look at u-d-f now. what is the correct kernel url?10:38
ogra_let me check, ppisati said he has a new deb10:38
ogra_https://launchpad.net/~p-pisati/+archive/ubuntu/embedded/+files/linux-image-4.2.0-2009-generic-dragon410c_4.2.0-2009.9~15.10_arm64.deb10:39
ogra_mvo, oh, but that needs another dtb (needs changing in package.yaml of the gadget and uboot.env)10:40
asacmvo: lool: how is producing OS-type initrd going?10:40
asac(good day :))10:42
mvoasac: not at all on my side, busy with 4234324 other things :/10:42
ogra_mvo, the dtb we need it apq8016-sbc10:42
ogra_asac, mvo i'll do that10:43
ogra_its essentially just copying the build script from the phone initrd package into the core one10:43
asacgreat... i guess for now i would need a one off OS snap with such kernel-less initrd10:43
asaccool10:43
ogra_asac, i just want to get that dragonboard image to run first if possible10:44
asaconce we have that i think i can start poking on x86 with some help on how to hack grub bootconf10:44
asacsure take your time10:44
ogra_mvo, hmm, could it be that you made the gap at the start of the disk smaller when you dropped the 4th partition in u-d-f ?10:48
ogra_that would explain why boot gets appended at the end10:48
ogra_hmm, but looking at the numbers there seems to be enough space10:49
=== didrocks1 is now known as didrocks
mvoogra_: with sudo DEBUG_DISK=1 i see http://paste.ubuntu.com/14694839/ which looks like the partitions are initialized in hte right order, the sorting looks suspicious10:59
ogra_well, the sorting should just align the numbering with physical position10:59
ogra_you would have tzo break before the sorting and check the image with sgdisk to see where they physically are11:00
ogra_but i'm pretty sure boot is at the end already11:00
ogra_i wonder if it would complain if there is already a boot partition ... could it be that you created it already when this runs ?11:01
mvoogra_: yeah, its all a bit myserious - just to double check what it should look like: *first* the rawPartitions and then ours? or *first* ours and then the raw ones?11:03
ogra_mvo, how about a quick HO11:03
LefterisJPhey guys if I want to have a python binary using PyYaml available in my pass what's the right way to go about it using snapcraft?11:03
LefterisJPI have this:   mybinary:11:04
LefterisJP    plugin: python211:04
LefterisJP    python-packages:11:04
LefterisJP      - PyYAML11:04
LefterisJPBut where should I specify that this is only to be used by a simple python file which should go to the bin/ directory of the final snap?11:04
LefterisJPIt seems that the source attribute would expect a directory11:04
noizerogra_ for wat should i use docker on snappy?11:06
noizerogra_ or what is meant to be used?11:06
ogra_mvo, the final order needs to be: all gadget partitions -> system-boot -> writable .... the creation order differs though11:06
ogra_noizer, for whatever you like11:07
mvoogra_: sure, HO is fine.  so what ensures the final order?11:07
ogra_i mean ... obviously for running apps in containers :)11:08
ogra_mvo, the physical position ... that is what the sgdisk sorting uses afaik11:08
noizerogra_ but snaps ar already containered but for what is there than an advantage to use docker?11:08
ogra_mvo, https://plus.google.com/hangouts/_/canonical.com/gadget11:08
ogra_noizer, dunno, even more containment ?11:08
noizerogra_ ok11:10
noizer:D11:10
noizerogra_ so when im making a docker vm on an other ubuntu then it can be ran on snappy?11:12
noizerso its then mutch easier to port to other linux distro's?11:12
noizerogra_ how can i install snapcraft 2.0 on a raspberry pi11:26
ogra_noizer, in xenial images you can enable the classic dimension and use a container11:27
noizerWill it work on a Ubuntu Mate 16.04 ogra_11:29
noizer?11:29
ogra_sure11:29
ogra_but why not use it on your snappy directly ?11:30
noizerhmmm but how can i develop easily on snappy?11:31
ogra_read above11:31
ogra_<ogra_> noizer, in xenial images you can enable the classic dimension and use a container11:31
noizerOk such as an user interface?11:32
noizeror istn't that it?11:32
ogra_sudo snappy enable-classic11:32
noizerok i will try it11:32
ogra_... that will create the container ...11:32
kyrofaGood morning11:32
noizerok i will have a look11:33
noizerOK i did that but what are the concrete difference between that oter?11:39
noizer*other11:39
ogra_noizer, so if you now run "snappy shell classic" you are in a normal ubuntu 16.04 and can use apt to install snapcraft and build your packages11:52
ogra_noise][, the advantage is that this container is fully based on the readonly snappy rootfs, it only extends it by the missing pieces to get a normal apt based ubuntu11:54
ogra_err11:54
ogra_sorry11:54
ogra_(didnt notice he left)11:54
sergiusensgood morning12:05
kyrofaMorning sergiusens :)12:05
Lefteris`morning12:05
ogra_moin12:06
Lefteris`hey guys how can I have a simple python binary which depends on a pypi package with snapcraft? The python plugin seems to expect you to give a directory and build a whole package.12:06
kyrofaLefteris`, I'm not super familiar with python packaging, but is that something you can use requirements.txt for?12:09
sergiusenskyrofa, oh, git guy :-) Heeeeello12:09
kyrofasergiusens, what's up?12:09
sergiusenskyrofa, how do you think this will merge https://github.com/ubuntu-core/snapcraft/pull/273 ?12:09
kyrofasergiusens, looks fine to me. Are you concerned because it's not rebased?12:10
sergiusenskyrofa, nah, just wondering what will happen to the first commit which is already in master12:11
kyrofasergiusens, oh, I didn't notice that12:11
kyrofasergiusens, so he built this feature on another, eh?12:12
kyrofasergiusens, my initial reaction is to expect a conflict. But github isn't whining about it12:13
didrocksit's the same commit id12:13
didrocksso no conflict, it will be like if he forked later on12:13
didrocks(basically, on the graph, there will be 2 "merges commit" with just one branch alongside)12:14
Lefteris`kyrofa: I have a simply .py file that I want to be executable and part of my snap and depends on PyYaml. Any idea what's the best way to achieve this? From what I see in snapcraft, both requirements.txt and python-packages in yaml will work. Adding the dependency is not my problem. My problem is how to specify that my python file should be what I want as the final binary and depending on PyYaml.12:15
Lefteris`I got this:   configurator:12:17
Lefteris`    plugin: python212:17
Lefteris`    python-packages:12:17
Lefteris`      - PyYAML12:17
Lefteris`If I add the location of my python file as source then it says it expects a directory. So I assume it expects me to have a custom made python package with a setup.py as the source attribute. Can't I just give a simple python script in some way?12:18
sergiusensdidrocks, so if he would have created the PR in the future, it would only be one id?12:19
* sergiusens will just hit merge12:19
didrockssergiusens: exactly!12:19
kyrofasergiusens, indeed, tested locally as well12:19
kyrofaThanks didrocks :)12:19
didrocksyw ;)12:19
sergiusensdidrocks, kyrofa seems to just be a presentation problem I guess12:19
sergiusenswell, I consider it a presentation problem, others might not ;-)12:19
kyrofasergiusens, yeah, I wish github would update12:19
sergiusensor just tell me it is already in master, it is so smart about everything else :-P12:20
didrocksyeah, github doesn't "refresh" the list of commits not included in master12:20
didrocksit should IMHO, if the hash matches12:20
kyrofadidrocks, nor the diff12:20
kyrofadidrocks, agreed12:20
sergiusensmvo, btw, mind taking a look at https://github.com/ubuntu-core/snapcraft/pull/27812:20
kyrofadidrocks, I see that change happening twice and my first conclusion is "conflict"12:20
didrocks(but then, you need to ensure that the hash order is the same)12:20
sergiusenskyrofa, but same id12:21
sergiusensright12:21
didrocksdisclaimer: I'm probably lagging as being on 4G (in the TGV to Brussels)12:21
kyrofaLefteris`, sorry, I'm not ignoring you :)12:22
didrocksyou know, even if the hash is different, but the diff is the same, git is smart enough to do a silent reconciliation12:23
didrocks(but then, you have an additional commit)12:23
kyrofadidrocks, but the additional commit is gross :P12:23
didrocksheh, yeah ;)12:23
kyrofaLefteris`, I think you need two parts here12:26
kyrofaLefteris`, one part that uses the python2 plugin and the requirements.txt, and another part that uses the copy plugin to put your script in the right place12:26
kyrofaLefteris`, then declare your script as the binary12:26
kyrofaLefteris`, make sense?12:27
Lefteris`kyrofa: yeah it does make sense, and this is what I was doing right now, but seems kind of dirty12:28
Lefteris`would be nice if we the python plugin could allow you to do that withou involving the copy plugin12:28
kyrofaLefteris`, yeah it's kinda made for a project with a setup.py or something12:29
kyrofaLefteris`, would that be easier? Have the setup.py install your script?12:29
diwicOk, I need pulseaudio to access /run/udev in order to scan for sound cards. I was trying by adding "security-overrides: read-paths: [/run/udev]" but it looks like this is not working, and that the feature might not even be implemented...?12:29
kyrofaLefteris`, otherwise, if we added the ability to place random scripts wherever, we just duplicated the copy plugin :P12:30
Lefteris`kyrofa: hmmm maybe the copy plugin would make more sense, don't want to have separate directory and setup.py for no reason12:31
kyrofadiwic, I think it's just security-override (singular)12:31
Lefteris`let me try it out :D12:31
sergiusenskyrofa, did you already fix this https://bugs.launchpad.net/snapcraft/+bug/1539247 ?12:31
ubottuLaunchpad bug 1539247 in Snapcraft "Snapcraft should support using the staging server in a developer-friendly way" [Undecided,New]12:31
kyrofasergiusens, no. That reflects the current state12:32
sergiusenskyrofa, great, I wish it were automatic12:32
sergiusensdidrocks, what was the tool jono showed?12:32
diwickyrofa, right. It was right in the snap, I just made a typo on IRC12:32
sergiusensthe trello but for github12:32
kyrofasergiusens, it should be! Let's write a launchpad script and plug it into travis12:32
kyrofadiwic, oh darn :P12:33
kyrofadiwic, but I know read-paths works, since we have an example for it12:33
didrockssergiusens: ah, one sec, looking in my history12:34
kyrofadiwic, https://github.com/ubuntu-core/snapcraft/blob/master/examples/mosquitto/snapcraft.yaml12:34
diwickyrofa, okay - how does wildcards work here? If I do /run/udev, does that include /run/udev/dir1/dir2/file3 ?12:34
kyrofadiwic, no I don't believe so12:34
Lefteris`sergiusens: could it be https://waffle.io/ ?12:34
kyrofadiwic, you need some asterisks12:34
kyrofadiwic, it's apparmor12:35
Lefteris`This is what comes to my mind when I think of "trello for github"12:35
diwickyrofa, hmm, so if I want to give read access to /run/udev and everything below that?12:35
didrockssergiusens: yeah, it's waffle.io12:35
kyrofadiwic, /run/udev/** I _think_12:35
didrocksthanks Lefteris` :)12:36
diwickyrofa, thanks, will try12:36
kyrofasergiusens, or... you know... we could just use gitub12:36
kyrofaOr even github12:37
diwickyrofa, and now that I've changed that, can I just write "stage" to parts/pulseaudio/state to avoid a full rebuild of PulseAudio ?12:37
diwicor is there some smarter way?12:37
kyrofadiwic, so you've completely build a .snap, and all you've changed is the YAML?12:37
sergiusenskyrofa, with waffle.io ;-)12:37
kyrofasergiusens, oh... yeah that would be epic12:38
diwickyrofa, yes, I've just changed /run/udev to /run/udev/** in snapcraft.yaml12:38
kyrofasergiusens, although then my LP karma would start dropping12:38
kyrofasergiusens, what is the best solution in Snapcraft 2 for diwic's problem without --force?12:39
kyrofasergiusens, also, I vote we use waffle.io just because of firefly now12:41
kyrofadiwic, trying to run build again won't hurt anything, but I imagine it will probably say "already built"12:47
sergiusenskyrofa, edit the parts/<part-name>/state file I guess12:47
kyrofadiwic, in which case you can at the very lease edit the... yeah12:47
kyrofadiwic, open the parts/<part>/state file and change the state to "build" and run snapcraft snap again12:50
kyrofadiwic, we're currently working on a --force option that will do that for you, but we're still in the design phase12:51
diwickyrofa, right, that's what I thought12:54
noizerkyrofa and orga_ where can I find more information about the classic dimension or what is is the difference with the normal snappy?12:56
diwickyrofa, actually, I don't think I need to do that. Just running "snapcraft snap" will update snap/meta/*.yaml accordingly12:56
kyrofadiwic, ah! Good catch!12:57
kyrofadiwic, you just hit the special case of only modifying the YAML that gets directly copied to other YAML :P12:57
diwickyrofa, next question. How do I allow it to talk to the system dbus?12:57
sergiusenskyrofa, are you getting rid of the roscore plugin today?12:58
diwicI expect bluetoothd to be there, so can't do bluetooth audio without it12:58
kyrofadiwic, last I knew that needed custom security policies... I'm honestly not sure how one is supposed to do that in 16.04. sergiusens?12:58
kyrofasergiusens, no I'm still on the store stuff. Why, you really want it gone eh?12:59
kyrofa:P12:59
sergiusenskyrofa, yeah, remove the qml one while at it ;-)12:59
kyrofasergiusens, I can do that. No replacement?12:59
kyrofasergiusens, bad enough to pause the store stuff for a little bit?13:00
sergiusensdiwic, I will invoke tyhicks if you need either a security-policy, security-template or security-override13:00
sergiusenskyrofa, nah13:00
kyrofasergiusens, next task then, you got it :)13:01
diwicthanks. I'll double check with awe when he gets online to make sure bluetoothd is where it's supposed to be13:01
sergiusenskyrofa, just roscore, the qml thing is political at this point :-P13:01
kyrofasergiusens, hahaha13:01
sergiusenskyrofa, it even depends on something we don't have13:02
kyrofasergiusens, that sounds problematic13:02
kyrofasergiusens, oh, mir?13:02
sergiusenskyrofa, yeah ;-)13:02
kyrofasergiusens, duh13:02
noizerogra_ about the classic how can we see it in snappy13:03
kyrofasergiusens, yeah I agree with you though. The presence of the plugin indicates first-class support13:03
kyrofaAnd... it's not13:03
ogra_<ogra_> noizer, the advantage is that this container is fully based on the readonly snappy rootfs, it only extends it by the missing pieces to get a normal apt based ubuntu13:03
ogra_you left to early :=13:03
ogra_:)13:03
ogra_noizer, just use "snappy shell classic"13:04
kyrofasergiusens, if a dev needs it they can include it in-tree13:04
ogra_then you can spt-get update and apt-get install snapcraft and use it there13:04
ogra_*apt-get13:04
kyrofasergiusens, anyway, let me know13:04
noizerogra_ ok then can i get there than an User interface so I can develop faster?13:05
ogra_user interface ?13:05
ogra_it gives you a place to build your snaps in13:06
noizerogra_ hmmm I now developing on lubuntu for Raspberry Pi but now i want to install it on snappy but how can i do that the easiest way13:06
ogra_oh, you dont have a PC to work with ?13:06
sergiusenscommand line user interfaces ftw :-)13:07
ogra_:D13:07
noizerogra_ hahah ok thats hard then but can i develop on my lubuntu en scp it to the classic ubuntu13:08
ogra_i usually develop in a bzr branch ... so i can push from the PC, pull from classic and then just run snapcraft snap, install and test the package13:09
ogra_(such a process makes you automatically backup your code too :) )13:10
kyrofaogra_, and results in this https://xkcd.com/1296/13:11
ogra_(indeed, if you prefer git thats the same )13:11
noizeri uses git :p ok intresting but to make the yaml for the software thats a hard part i think13:11
ogra_kyrofa, lol, yeah13:11
ogra_making the yaml for the first time is hard ... but having a pretty giu around your editor wont change that ;)13:12
kyrofaYou'll get the hang of it noizer !13:12
ogra_yeah13:13
* ogra_ hated yaml in the beginning .... after getting used to it i actually like it a lot13:13
noizerhah thats a fact kyrofa ogra_13:13
noizerok i will try to push it to my ubuntu classic13:13
noizerand hopefully it will work13:14
=== davidcalle is now known as davidcalle_3g
noizerfor snapcraft installation is it sudo apt-get install snapcraft13:15
noizerbut when i type it it fails13:15
noizershould i need to add the ppa,13:16
noizer?13:16
kyrofanoizer, how does it fail?13:16
noizerkyrofa http://pastebin.com/KVNjkVnE13:17
kyrofanoizer, do `sudo apt-get update` first13:17
diwicbtw. Can I change the contents of either one of the wrap scripts somehow? I e, to be able to start pulseaudio with some switches (such as --path-to-something=/snaps/pulseaudio/weirdcharacters/somewhere) ?13:19
diwicor to set an environment variable13:19
kyrofadiwic, you can pass those things in the binary/service exec line13:19
asacsergiusens: so got a good idea how to make a nice global parallel and verbose option available? maybe just hook those to the top level main.py somehow?13:19
kyrofadiwic, in the YAML13:19
diwickyrofa, but at that point I don't know the "weird characters"13:20
kyrofadiwic, remember the environment variables though-- don't hard-code /snaps/etc.13:20
asace.g. not in build.py13:20
kyrofadiwic, ah, you don't know the environment variables then!13:20
kyrofadiwic, double-check-- you're on rolling?13:20
kyrofadiwic, oh, /snaps, yes you are13:21
diwickyrofa, I am on 16.04. Say that I want to add one environment variable, e g XDG_RUNTIME_DIR=$SNAP/tmp/somedir13:22
kyrofadiwic, so you can use the $SNAP environment variable, which will point to the /snaps/pulseaudio/version13:22
kyrofadiwic, yeah, just put it on the command line like you would in the shell13:22
diwickyrofa, ok, so that will end up being a long line I expect, but that's ok :-913:23
diwic:-)13:23
kyrofadiwic, the alternative is to write a shell script to be your binary instead, which is perfectly acceptable if you prefer it13:23
diwicjust three wrappers to start the executable ;-)13:24
kyrofadiwic, welcome to Snapcraft. We wrap your wrappers so we can wrap them13:24
ogra_its like christmas and your birthday at once !13:25
asacsergiusens: think i would keep the getter/setter parts for those flags in common.py and just drop the build.py parts from my cleaned patches... in that way you can land the CLI wiring later. soudns good?13:25
* diwic renames it to wrapcraft13:25
asacppisati: where can i find the definite list of minimal patches and config flags that are super essential for a runnign snappy system?13:26
asac"minimal and super essential"13:26
asaclol13:26
ogra_asac, no idea how recent that is http://people.canonical.com/~ppisati/snappy_config/#13:27
ogra_asac, and wrt pathes ... "the latest apparmor" is a rule of thumb13:28
ogra_*patches13:28
ppisatiasac: kernel version?13:30
asacppisati: 4.4?13:31
asacor if we have a lookup table for each main version that would be nicer even13:31
asacthe latest apparmor is vague13:31
sergiusensasac, making it global is easy13:31
noizerogra_ sorry for the many question but how do I instal it best NGinx and UWSGI?13:31
asacfor someone coming from outside13:31
asacsergiusens: ok with you if i move it to main.py from build.py? think those flags could also be honoured by some other lifecycle rules13:32
asacnot all of course13:32
asacbuut install maybe could pick it up for some plugins13:32
asacor even pull :)\13:32
kyrofasergiusens, did you annotate the 2.0.1 tag?13:32
ogra_noizer, for what exactly ?13:32
ogra_*for doing13:32
noizerfor running a webpage13:33
diwickyrofa, jftr, you can't put things like "XDG_RUNTIME_DIR=$SNAP/tmp pulseaudio" as your binary, "snapcraft snap" will fail with "file not found: XDG_RUNTIME_DIR=$SNAP/tmp"13:34
sergiusenskyrofa, yes13:34
noizermy snap exist about html page and some backend modules etc13:34
sergiusenskyrofa, oh, annotate, no https://github.com/ubuntu-core/snapcraft/tags13:34
noizerand running with flask ogra_13:34
vir17hi guys, i need help for a .yaml file, after the yesterday failures I try today to create a simple first app (a python helloworld)  my code is here: https://github.com/lmbn/hellosnappy   and my .yaml file http://pastebin.com/j2hpwDri , what I dont know is what I have to add in my .yaml file so after the installation to have my app into "apps/bin" and run it  (sorry for the newbie question)13:35
ogra_noizer, well, create a snapcraft.yaml that builds ngnix from source or use the copy plugin and ngnix as stage package to grab the deb binary (but then you might need to adjust the config to match all the changed paths)13:36
sergiusensif it is just a webpage, write a simple server with go13:36
kyrofadiwic, ah, right, I'm sorry I misled you! You'll have to create a wrapper script, then13:36
noizerogra_ sergiusens its not a simple webpage :s13:36
ogra_noizer, right, what sergiusens said ... there is even an example webserver (in 5 lines or so)13:36
sergiusensnoizer, you said html, I replied in response to that ;-)13:38
* sergiusens goes for a quick run13:38
kyrofavir17, you need to specify `binaries` there somewhere13:38
noizersergiusens ok sorry :p13:38
kyrofavir17, like this: https://github.com/ubuntu-core/snapcraft/blob/1.x/examples/py2-project/snapcraft.yaml#L413:39
noizerok i will try now to make my yaml file13:39
kyrofasergiusens, I need to babysit for a bit this morning, I'm afraid I need to miss standup, I'm sorry!13:40
diwickyrofa, actually XDG_RUNTIME_DIR is perhaps a bigger question; should we set that by default to something inside the snap or user? It seems reasonable for it to point to something writable by default IMO.13:41
ogra_diwic, i think ted brought that up before .... thgere was a discussion somewhere13:42
ogra_tedg i mean13:42
sergiusenskyrofa, elopio let's just cancel and do the planning then13:42
kyrofasergiusens, okay, sounds good13:42
kyrofasergiusens, go for your run :)13:43
kyrofadiwic, probably user-specific, so I suggest SNAP_USER_DATA13:44
diwicogra_, ok; I'm going to try to work around it for the time being, if you're aware that there's an issue13:44
ogra_not on the level we have worked on yet .... i am awarwe it will be an issue in graphical envs and desktop context13:44
diwicok13:45
ogra_IoT and server ... not so much13:45
ogra_lets ask tedg once he is around what came out of that discussion13:46
ogra_i know he started one13:46
mvoogra_: I think I know now now what is going on with sgdisk, when you tell it to create a partition with num 0 and start 0 it will find the first free partition and then looks for the first available sector in the largest free area on disk. this happens to be (by pure chance) that part *after* writable once we reach partition 7 :) so mystery solved, I will add the offset and we need to continue with that and force sgdisk to write to the numbers we13:48
mvo give it13:48
mvoogra_: that was hard work!13:48
ogra_mvo, it was ! thanks so muchj !13:49
vir17thanks kyrofa  i will try13:53
ollihey ogra_, did you have a chance to work on that Pi2 bug for ectors?13:58
ogra_olli, i worked on getting the dragonboard images ready, Pi2 firmware update is on my list13:58
ogra_(i guess they are eaqually important :) )13:59
mvoogra_: http://people.canonical.com/~mvo/all-snaps/dragon-all-snap.img.xz should have the right layout now14:00
mvoogra_: would be nice to know if uboot is still broken14:00
ogra_mvo, pulling now14:00
mvo\o/14:00
olliogra_, thx!14:06
ogra_mvo, u-boot still broken :/14:07
=== chihchun_afk is now known as chihchun
ogra_mvo, eeek14:08
ogra_and all bootloader partitions now have an x appended to the name14:08
mvoogra_: uff14:16
ogra_gimme a sec ... the u-boot issue might actually be the naming issue14:16
ogra_dding my uboot in place didnt work either until i dropped the x from bootx in the partition name14:17
ogra_i'm just re-flashing from scratch to see if just fixing the name helps14:17
mvoogra_: wait, let me make a new image14:17
* ogra_ wants faster dd !!!14:17
mvoogra_: godd!14:17
mvoogra_: and a scandisk extreme14:18
ogra_well, that wont make faster bytes i gues :)14:18
mvoogra_: let me make a new image14:18
ogra_*guess14:18
mvoogra_: sure it will ;)14:18
mvoogra_: ok, maybe not, but *progressbar*14:18
ogra_\o/14:18
ogra_fixing the name is enough14:19
ogra_bah14:19
ogra_but i end up in an initrd shell now14:19
mvoogra_: oh, but the kernel boots? that is the wrong kernel :)14:19
ogra_insmod: can't read './lib/modules/*/kernel/fs/squashfs/squashfs.ko': No such file or directory14:19
mvoogra_: still the old one from your dir, not the kernel from pablo14:19
ogra_ah, i thought you used the arm64 one frrom the archive14:20
ogra_mine should boot, but has obviously no squashfs enabled :)14:20
mvoogra_: I'm slow14:20
ogra_so lets switch to paolos latest kernel and we should be golden14:20
ogra_this looks very good already :D14:21
mvoogra_: http://bazaar.launchpad.net/~snappy-dev/snappy-hub/snappy-systems/revision/20 is the new syntax, if you give the raw-partition a "pos" paramter it will put it there and all following right behind (unless you use pos again)14:21
mvoogra_: sweet, I will update the kernel snap next14:21
ogra_mvo, but pos isnt required for all of them ? thats good then14:21
ogra_mvo, dont forget you need to switcch to the other dtb14:22
ogra_mvo, "apq8016-sbc"14:22
mvoogra_: yeah, pos is only needed for the first one if they are all aligned14:23
ogra_great14:23
kyrofaChipaca, do you have any favorite python3 progress indicator libs? Or do you typically roll your own?14:25
sergiusenskyrofa, if you pick the right implementation/module you don't need to worry about vte/vt sizes14:39
kyrofasergiusens, yeah that's exactly my concern14:39
kyrofasergiusens, researching options14:39
sergiusensmvo, what was the pbar used for snappy when it was python?14:39
mvosergiusens: let me look14:40
mvosergiusens: and also look at your branch, sorry, full day14:40
mvosergiusens: I think it was a nice progress bar14:40
sergiusensmvo, or point me to the sources, I can't find them; yeah iirc barry helped out on that so I guess it has good qa too :-)14:41
sergiusensand indeed it worked nicely14:41
sergiusenskyrofa, and this is for you http://whatthecommit.com/14:42
tedgogra_: I never got anywhere with it, replied on the mailing list, to silence.14:42
kyrofasergiusens, hahaha, awesome14:42
ogra_tedg, well, now you have a companion in diwic :) perhaps you can revive the thread14:43
tedgdiwic: You should reply, see if you can get responses. :-)14:44
tedgdiwic: If you do, I have a bunch of other questions you can ask.14:44
mvosergiusens: I think it was python3-progressbar but I can't find the old python source right now :/ let me look harder14:45
mvosergiusens: yeah, python3-progressbar it is14:47
sergiusensmvo, great, thanks14:47
sergiusensmvo, do you have links to the old code anywhere btw?14:47
sergiusenskyrofa, python3-progressbar14:47
kyrofasergiusens, I've read that SIGWINCH throws it off14:48
kyrofasergiusens, but I'm playing with it now14:49
mvosergiusens: I think it was mostly a frontend for click back in the day, here is the acquire bits https://code.launchpad.net/~mvo/click/progressmeter/+merge/24349814:49
mvoare14:49
diwictedg, what mailing list14:49
diwic?14:49
tedgdiwic: I think that conversation was on snappy-devel14:50
diwicok14:51
mvoogra_: http://people.canonical.com/~mvo/all-snaps/dragon-all-snap.img.xz has an updated kernel now14:54
ogra_pulling14:54
noizerogra_ can I scp it to the classic ubuntu?14:55
ogra_it ?14:55
noizerogra_ some files14:56
ogra_(and i dont know, you can surely scp from inside the classic container)14:56
ogra_(or wget or whatever to pull stuff from somewhere remote)14:56
noizerok xD14:56
ogra_reading canonical-dragon-linux.sideload_ILPMLfIRBYVH.snap/dtbs/msm8916-mtp.dtb15:00
ogra_** Unable to read file canonical-dragon-linux.sideload_ILPMLfIRBYVH.snap/dtbs/msm8916-mtp.dtb **15:00
ogra_mvo, ^^^^15:00
ogra_it needs a name change in the gadget/oem snap too15:01
mvoogra_: oh, yeah, I knew there was soemthing else15:02
* ogra_ adjusts the env manually15:03
wxlwhere can i get the latest ubuntu-device-flash for trusty?15:03
ogra_mvo, bah, that kernel is broken15:04
ogra_ppisati, ^^^^15:04
ogra_[    6.029908] mmc1: error -110 whilst initialising SD card15:04
ogra_[    6.135706] mmc1: Reset 0x1 never completed.15:04
ogra_hangs hard here15:04
ppisatiogra_: which one did you use?15:04
ogra_https://launchpad.net/~p-pisati/+archive/ubuntu/embedded/+files/linux-image-4.2.0-2009-generic-dragon410c_4.2.0-2009.9~15.10_arm64.deb15:05
ogra_the one you linked from your last mail15:05
ppisatiogra_: ah, but that's bad & broken15:05
ogra_ppisati, not in my kernel buiolds15:06
ogra_oh, you mean that binary :)15:06
ogra_yeah, obviously :)15:06
mvois there a right one somewhere?15:06
ogra_mvo, well, given ppisati said it was uploaded i'd guess there is something in xenial-proposed we could fish out ?15:07
ogra_(but likely also missing squashfs until paolo lands that change)15:07
mvoogra_: thats ok15:07
ppisatihttps://launchpad.net/~p-pisati/+archive/ubuntu/embedded/+files/linux-image-4.2.0-2011-generic-dragon410c_4.2.0-2011.11_arm64.deb15:07
ogra_there you go :)15:07
ppisatiogra_: in the archive is15:07
ppisatilinux-snapdragon15:08
mvoppisati: ta15:08
ogra_mvo, we are >< *that* close :)15:08
ppisatiif you want i have a deb image too15:09
vir17guys how can I fix this error: [Errno 13] could not open port /dev/ttyACM0: [Errno 13] Permission denied: '/dev/ttyACM0'15:09
ppisatihttp://people.canonical.com/~ppisati/ubuntu_embedded/ubuntu-embedded-16.04-dragon410c.img.xz15:09
vir17^^at snappy15:10
* ogra_ needs some food ... brb15:10
davmor2snappy get ogra_ food......did it work?15:10
ogra_Error: "get" no such command15:14
wxlwhere would i file a bug against the snappy-dev ppa version of ubuntu-device-flash?15:14
ogra_just file it in general and mention the ppa version you use15:16
wxlk thx ogra_15:16
ogra_whats the issue ?15:16
wxlogra_: can't build a generic_i386 image15:17
ogra_hmm, not sure you can at all15:17
wxlogra_: is that new?15:17
ogra_i386 isnt actually in focus15:17
wxli thought it was part of edge15:17
ogra_well, we never tested it15:18
wxland for that matter that developer portal mentions using ubuntu-device-flash to get an i386 image15:18
ogra_an i doubt anyone has it on the plan to test/try it at all15:18
wxlit seems to suggest it's a supported possibility15:18
wxlthen i guess we should file a bug against the developer portal, hm?15:18
davmor2ogra_: just remove the documentation bug fixed ;)15:18
ogra_well, does your arch not support 46bit ?15:18
ogra_err15:18
ogra_6415:18
wxlogra_: i have some machines that are i386 only, so i'd like to do some testing15:19
ogra_davmor2, yeah, i guess thats in order unless we want to start doing i386 ...15:19
ogra_up to now i386 hasnt been among the released and tested arches15:19
wxlyour buggy "code" is here in the first bullet point https://developer.ubuntu.com/en/snappy/start/#try-x8615:20
wxlshould you decide instead to support i386, let me know XD15:21
ogra_well, we might "support" it, ... as in ... we do build the parts to assemble something ... but it definitely isnt in the list of tested or released arches15:22
mvoogra_: http://people.canonical.com/~mvo/all-snaps/dragon-all-snap.img.xz has an even more updated kernel now plus new dtb15:25
ogra_ok.gimme a bit to finish eating15:25
mvosure15:31
kyrofasergiusens, how would you feel about handling a keyboard interrupt a bit nicer?15:40
noizerogra_ Hi i was testing snapcraft 2.0 but i tried to make a snap but it didn't work i typed just like in snapcraft 1.0 just snapcraft. but thats not the way anymore to make a snap15:40
kyrofanoizer, `snapcraft snap`15:40
noizerok thx a lot15:41
sergiusenskyrofa, I wouldn't mind15:43
kyrofasergiusens, I dunno... I feel like it might look a little more "polished"15:43
sergiusenskyrofa, oh, I said yes, change ;-)15:44
kyrofasergiusens, hahaha15:44
sergiusenskyrofa, 'cancelled by user input' or something; maybe with smarts later on to rollback to a last known good state15:44
kyrofasergiusens, okay :)15:44
kyrofasergiusens, agreed15:44
sergiusensbut the latter for later, we don't have the smarts for that15:45
elopiofgimenez: https://github.com/go-check/check/pull/7615:46
ogra_mvo, nope15:46
ogra_** Unable to read file canonical-dragon-linux.sideload_ILPOPIVJLVGO.snap/dtbs/msm8916-mtp.dtb **15:47
ogra_reading canonical-dragon-linux.sideload_ILPOPIVJLVGO.snap/initrd.img15:47
elopiofgimenez: sorry, one of your reviews was a push I did wrong. You were asking there for the logger tests. This is fully covered in run_tests.15:47
ogra_mvo, seems it still uses the old uboot.env15:47
elopioonce we move the logger out of check.go, we can add lower level tests specific to that package.15:47
* ogra_ fixes by hand again15:47
ogra_mvo, and smae kernel bug :(((15:48
ogra_[    6.333797] mmc1: error -110 whilst initialising SD card15:48
ogra_[    6.439615] mmc1: Reset 0x1 never completed.15:48
ogra_and now paolo is gone ... :/15:49
mvoogra_: *gar* mkenv was missing, I updated the .in but not the .env15:49
ogra_mvo, well, the kernel is broken anyway15:50
mvoogra_: hrm, hrm, ok15:51
ogra_paolo has a img at people.canonical.com/~ppisati/ubuntu_embedded/ubuntu-embedded-16.04-dragon410c.img.xz i'll take a look if i can steal something from that15:52
ogra_he said it would work15:52
ogra_else i'mm just rebuild my own kernel with SQUASHFS=Y15:52
ogra_*i'll15:52
ogra_oh, wait, that could be a dtb issue ... i remember i had to fix something15:53
mvoogra_: a dtb issue in what way?15:53
ogra_in that the SD controller was only initialized half15:54
mvoogra_: ok, I'm away for some minutes but if you have something, please ping me via tg15:55
ogra_will do15:55
mvoJamesTait: just curious what the state of the snap.yaml support is, sorry for naging15:55
ogra_mvo, http://paste.ubuntu.com/14696129/15:57
JamesTaitmvo, it's landed in SCA trunk (within the last hour), should be on Staging for me to QA; after that, just needs the work in click-reviewers-tools.15:58
mvoogra_: oh, with that it works?16:00
ogra_mvo, yeah, it should ... i'll try to just use my dtb, not sure how much it its tied to the kernel version16:01
JamesTaitmvo, jd-strand was looking at that, but he's off today, so it might not happen until Monday - it doesn't appear to be in the changelog for c-r-t trunk at least.16:01
mvoJamesTait: hm, ok. is c-r-t a blocker? i.e. it will just mean we loose  the checks but for manual review it would be ok?16:02
mvoJamesTait: or is this not the case?16:02
ogra_WHEEEE !16:05
JamesTaitmvo, c-r-t currently doesn't understand snap.yaml, so squashfs snaps lacking package.yaml are assumed to be debclick packages.  c-r-t then barfs because DEBIAN/* files aren't present.16:06
ogra_ubuntu@localhost:~$ uname -a16:06
ogra_Linux localhost.localdomain 4.2.0-2011-generic-dragon410c #11-Ubuntu SMP Mon Jan 25 11:21:40 UTC 2016 aarch64 aarch64 aarch64 GNU/Linux16:06
ogra_ubuntu@localhost:~$ snappy list16:06
ogra_Name                   Date       Version      Developer16:06
ogra_canonical-dragon       2016-01-29 ILPOPIQWILRE sideload16:06
ogra_canonical-dragon-linux 2016-01-29 ILPOPIVJLVGO sideload16:06
ogra_ubuntu-core-arm64      2016-01-29 ILPOPJFVLUfH sideload16:06
ogra_mvo, ^^^16:06
ogra_:D16:06
mvoJamesTait: right, but that means it will warn, not block, right?16:06
mvoogra_: wooah!16:06
mvoogra_: what did you do?16:07
ogra_replace the dtb and hack the uboot.env for the proper name16:07
mvoJamesTait: what I am trying to get at is that it might be good enough for the few selected snaps we need to fix our unit tests to manually approve those :)16:07
JamesTaitmvo, with that, I don't think there's an option to manually approve - I think that option only appears where we have a "REDFLAG" error (like we get when the package is a squashfs), not a complete failure.16:07
mvoJamesTait: aha, ok. then I misunderstood what is happening. thanks16:07
ogra_mvo, http://people.canonical.com/~ogra/apq8016-sbc.dtb16:07
ogra_grab that for the next image16:08
mvoogra_: yes sir16:08
ogra_(and fix the uboot.env ;) )16:08
mvoogra_: uboot.env got fixed ages^Wminutes ago ;)16:08
ogra_haha16:09
* ogra_ checks if wlan will work16:09
vir17is there anything that I can do to allow the snappy to open tty ports?16:13
vir17I get this error16:13
vir17 [Errno 13] could not open port /dev/ttyACM0: [Errno 13] Permission denied: '/dev/ttyACM0'16:13
ogra_mvo, bah, crap, so polos kernel doesnt include the wlan driver or any of the firmware for it16:14
ogra_no networking :/16:14
ogra_vir17, is that *on* snappy or on your PC trying to talk to snappy via serial ?16:15
vir17on snappy16:15
ogra_mvo, oh !16:15
vir17snappy try to talk to an arduino16:16
ogra_mvo, whatever creates your kernel snap has never run depmod ... i cant load modules and i cant run depmod either because of the readonly squashfs16:16
ogra_mvo, also you want all the firmware included in the kernel snap ... seems /lib/modules only has a few modules, there should be a few 100 MB of firmware files too16:17
ogra_(from linux-firmware and if available linux-image-extra )16:17
mvoogra_: right, I think we can fix all this once the kernel hits the archive16:17
ogra_mvo, well16:18
mvoogra_: this is more or less a hacked up kernel snap, the script is really build on top of what we get from the device tarball16:18
ogra_i'm not sure paolo can actually include the wlan firmware16:18
ogra_not sure about the licensing16:18
mvoogra_: thats fine, if its available in some package. or are you saying we can't have the firmware in the archive at all?16:18
ogra_mvo, right16:19
mvoogra_: new image with your fix uploaded16:19
ogra_trying16:19
* ogra_ sighs ... i went through all these issues in december ... but only write down stuff for half of them,16:20
ogra_*wrote16:20
ogra_vir17, and you try to use that devicfe as "ubuntu" user from commandline ?16:21
ogra_or do you have a snap that tries to access it16:21
vir17ogra_:  I have a snap that sends a command through serial16:22
vir17tries to send a command16:22
ogra_vir17, well, then you need to define the permission to access this device in your snapcraft.yaml first16:22
vir17how I can do this?16:22
ogra_snaps cant just access devices or any files outside their confined area16:22
vir17is there any tutorial/documentation on how to do this?16:23
ogra_this changed a lot recently, so ui dont know exactly .... you were able to run the hw-assign command before after installing the snap to prevent access16:23
ogra_now there are capabilities and skills you need to define in the snapcraft.yaml ... but i didnt have any time to look into that yet16:24
vir17ogra I cannot use now the hw-assign?16:25
ogra_not in 16.04 ... it should still be in the old 15.04 images16:25
ogra_(bot it is obsolete so better get familiar with the new way)16:26
ogra_*but16:26
vir17at the moment i have the old image16:26
ogra_well, then hw-assign should work16:26
vir17how the command was exactly16:26
vir17snappy hw-assign?16:26
noizerogra_ ok i made a snap in the classic. How can i install it then on my snappy?16:27
ogra_noizer, iirc /home/ubuntu is a shared dir16:27
ogra_so exit the classic shell and you should see it16:28
ogra_in the homedir16:28
noizeroooh ok niceeee16:28
noizerogra_ what was the parameters to install the snaps?16:31
ogra_--allow-unauthenticated16:31
vir17ogra_: thanks it works now :)16:33
ogra_:)16:33
vir17in the new image when you said "try to use this device as "ubuntu" user"16:33
vir17you mean with the classic shell16:34
vir17?16:34
ogra_nope, just via ssh16:34
ogra_or serial console16:34
vir17serial console from snappy?16:34
ogra_to snappy16:34
ogra_mvo, works ! (execpt for thze missing modules.dep and wlan)16:35
vir17ok, just asked to check if there is another to way to do what I am thinking16:35
vir17snappy to talk to arduino16:36
ogra_mvo, the modules.dep should really be fixed in any case ... you just need to run depmod with the right params before mksquashfs16:36
dholbachall right my friends - I call it a day - see you all on Monday again - have a great weekend! :)16:36
ogra_vir17, no,. that seems fine16:36
vir17:016:36
vir17:)16:36
ogra_dholbach, you too ... any enjoy the last bits of your jetlag ;)16:37
dholbachhehe :)16:37
dholbachwill do16:37
* ogra_ too16:37
vir17ogra_: should we expect new tutorials from the new image? because as you said it is good to start developing for the new snappy16:38
ogra_there will be, yes16:38
vir17:)16:38
ogra_it is mainly all snapcraft nowadays though16:38
vir17what do you mean?16:38
ogra_well, all you need in the new world is snapcraft and a properly created snapcraft.yaml16:39
ogra_(and snapcraft to build your snap indeed)16:39
ogra_there is no extra tools like hw-assign anymore etc16:39
ogra_the developer life turns into a single yaml file ;)16:40
mvoogra_: yeah, lets talk on monday16:44
vir17hahaha16:44
vir17sounds scary!16:44
vir17hahhaha16:44
mvoogra_: ideally this would all be par tof the device.tar.gz like on the rpi2 and the bbb16:45
ogra_mvo, yeah16:45
=== marcoc|airplane is now known as marcoceppi
ogra_mvo, mailed a status to the ML16:49
mvogreat16:49
kyrofasergiusens, elopio my wife isn't home yet-- can we push the planning back an hour?16:50
ogra_hmm, no HDMI out ... i guess we need to fix that one too16:51
ogra_oh !16:51
ogra_there is ... but only for login indeed16:51
ogra_great16:51
ogra_lol... but no USB kbd without module support :P16:52
sergiusenskyrofa, I don't mind, elopio ?16:55
kyrofaSorry guys16:56
sergiusenskyrofa, no worries17:00
elopiokyrofa: I can't an hour later. I need to pick up some sd cards before the store closes, and have a date to have lunch with my mother at that time.17:03
elopiocan you do the planning without me?17:03
kyrofasergiusens, elopio what if we do it on Monday this once?17:06
kyrofapindonga, do you know if the store supports chunked uploads?17:08
LefterisJPguys I got a pretty basic question! So far I have been using an Ubuntu VM to develop for my Ubuntu core target machine. My host is ArchLinux. Is there any possible, conceivable way to build snaps (basically use snap and snapcraft tools) from another linux distro? It would save me from firing up a VM all the time I work on Ubuntu Core.17:09
sergiusenskyrofa, elopio lets do it in 30 if possible and if not we'll see what to do17:09
ogra_LefterisJP, why dont you just build *on* ubuntu-core instead ?17:10
ogra_it has a mode for that17:10
LefterisJP? :o17:10
LefterisJPfirst time I hear of that17:10
ogra_sudo snappy enable-classic17:11
ogra_snappy shell classic17:11
kyrofasergiusens, alright17:11
ogra_and you are in a container that allows you to use apt and friends to build snaps17:11
LefterisJPok that's interesting17:11
LefterisJP:)17:11
ogra_then just apt-get update ... apt-get install snapcraft and you are ready to go17:12
ogra_the homedir is shared so if you place your generated snaps in 7home/ubuntu in the container you will find them later in snappy17:12
ogra_(for sideloading)17:13
LefterisJPok I am definitely gonna try that. But still the question stands, do you think it would be possible to try and port snappy tools to another distro?17:14
ogra_not sure17:14
ogra_it makes a lot of use of archive packages to get build dependencies in place etc17:15
ogra_while i could imagine it wouldnt be to hard to port to debian, i think arch is a bit different17:15
kyrofaLefterisJP, Snapcraft is just Python. If you get the right dependencies on arch there's no reason it shouldn't work17:16
ogra_kyrofa, even the plugins that apt-get install build deps etc ?17:16
kyrofaogra_, oh yeah... that17:16
* ogra_ doubts it is that easy with a different package manager17:16
ogra_debian will be an easy target to port to though17:17
kyrofaLefterisJP, ignore me17:17
ogra_non deb distros will surely be possible ... but will need a lot extra work17:17
core_twhat do you get if you #reinvent debian?17:18
LefterisJPkyrofa: I know snapcraft is python, was talking about the rest. Well let's see .. for now will try the way ogra_ suggested but will also look into eventually allowing me to work from my host machine ... I would really love the convenience :)17:21
ogra_LefterisJP, well, you should be able to use an ubuntu chroot on your host ... definitely more convenient than a vm17:26
* ogra_ calls it a day17:28
LefterisJPhmm indeed, had done that for a previous job with Debian. Should set that up.17:29
LefterisJPogra_: good night!17:29
sergiusensor lxc17:29
sergiusenslxd (if you want to grab the tarball)17:29
kyrofasergiusens, elopio now does work by the way17:33
sergiusenskyrofa, elopio lets do this then17:33
elopiokyrofa: sergiusens: joining the call.17:33
LefterisJPsergiusens: yeap, also good idea17:34
pindongakyrofa, don't think so, but let me check17:39
kyrofapindonga, how does the web interface display upload progress?17:39
pindongait's a streaming upload17:40
kyrofapindonga, hmm... I'm trying to figure out how to get upload progress out of the requests lib17:40
pindongabut let me get you properly backed facts instead of spitting out buzz words :)17:40
pindongakyrofa, on the web ui we're using the YUI uploader component, which handles the progress itself (don't really know how)17:42
pindongabut I'm getting you those answers17:42
pindongakyrofa, I guess you could do something like this: https://stackoverflow.com/questions/10525635/python-3-and-requests-with-a-progressbar#1057652117:46
pindongaoh, but it looks like requests itself doesn't support upload streaming17:47
pindongahttps://stackoverflow.com/questions/13909900/progress-of-python-requests-pos17:47
sergiusensogra_, if still around, mind telling me what uname -m returns for the dragon?18:39
wxlok, so i tried ubuntu-device-flash to get an amd64 image and i get issues while partitioning19:28
wxlwell that's the incredibly verbose error19:29
wxl$ sudo ubuntu-device-flash core --device generic_amd64 --channel ubuntu-core/15.04/edge --enable-ssh -o mysnappy.img19:32
=== chihchun is now known as chihchun_afk
ogra_sergiusens, ubuntu@localhost:~$ uname -m19:45
ogra_aarch6419:45
sergiusensogra_, thanks19:59
kyrofaelopio, what changed to make the unit tests so noisy on master?21:24
elopiokyrofa: um, I don't know. Let me give it a try.21:24
kyrofaelopio, something to do with the loggers21:25
sergiusenskyrofa, https://github.com/ubuntu-core/snapcraft/pull/282 if you want to take a look21:52
sergiusenselopio, ^21:52
kyrofasergiusens, do you know what changed to make the test output so noisy? Something regarding the loggers?22:42
kyrofabisect to the rescue22:49
sergiusenskyrofa, the landing of the tests for store uploads23:10
kyrofasergiusens, yeah I bisected to that, but I can't seem to figure out exactly what's causing it!23:10
sergiusensthose tests need to use the mocked loggers like the other test23:10
kyrofasergiusens, but I'm seeing Catkin logs and stuff23:11
kyrofasergiusens, https://github.com/ubuntu-core/snapcraft/pull/283 by the way. I can clean that up in another PR23:11
sergiusenskyrofa, do something like this https://github.com/ubuntu-core/snapcraft/blob/master/snapcraft/tests/test_commands_build.py#L6223:13
kyrofasergiusens, there are indeed some of those, but the use the level of INFO. Does that set it for EVERYthing?23:13
sergiusensno need to assign23:13
sergiusenssorry baby in arms23:14
kyrofasergiusens, understood! I gotta run too :)23:14
bdmurrayHow can I install a snap that I've created on my own?23:23
ogra_snappy install --allow-unauthenticated /path/to/snap23:26
ogra_+sudo23:26
bdmurrayogra_: so just scp it over then?23:27
ogra_yeah23:27
vir17guys I am a little confused, I have a .csv file with some data inside and I want from a python script to read this data, how can I declare this inside the .yaml file?23:27
ogra_there is a tool called snappy-remote that can do both, but i dont know in what shape it is (never used it)23:28
vir17I suppose I have to put the file in the directory where the python code will be23:34
vir17is "plugin:copy" something that I can use?23:34
ogra_vir17, well, do you need to read the csv at package build time ?23:36
vir17no, when the app will run in the snappy23:36
ogra_yeah, then the copy plugin is the right thing23:36
vir17ogra_:  thank you,  do you know also what is the correct declaration for plugin:copy ?23:38
vir17how i am going to add the destination23:39
ogra_http://paste.ubuntu.com/14708722/23:39
ogra_that would make it copy myfile from the toplevel of the source dir into the toplevel of the snap dir23:40
vir17thank you ogra_ much appreciated! :)23:41

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