/srv/irclogs.ubuntu.com/2015/09/25/#snappy.txt

loolwee, got an IP00:12
ricmm\o/00:30
loolricmm: sent you a status email; some open questions for you00:31
ricmmlool: yea, just skimmed through it00:32
loolricmm: if we're maintaining this, I might elect the ugly+complex but quick to deliver hacks on top of Ubuntu packages -- to avoid maintaining NM and deps twice00:32
ricmmI'll reply, keep an eye out00:33
ricmmlool: go sleep00:33
loolhaha my inbox looks like a jungle now00:33
loolyeah, time for sleep00:33
h00sierI'm trying to add a user in snappy. I've already added lines to /var/lib/extrausers/{password,group,gshadow}, I don't know how to make the line for shadow. It's encrypted I guess, any help?01:30
=== hikiko-lpt is now known as hikiko
=== chihchun_afk is now known as chihchun
pittimvo: guten Morgen!06:23
pittimvo: I reviewed the snappy classic dimension spec06:24
mvopitti: great, thanks06:26
mvopitti: I also have a systemd question again :) so I have this snappy-workaround.service and it needs to be completed before ppp-dns.service runs. in snappy-workarounds.service I used before=ppp-dns.service but thats not strong enough, I also added "wantedby=network-pre.target" to ensure its run earlier and indeed its run earlier but ppp-dns still starts in parallel, whats the best way to express that the unit has to have exited? (or the best way06:28
mvoto do what I want, namely that the workaround is applied before ppp-dns starts)?06:28
pittimvo: before= does just that06:29
pittimvo: but it only says that your unit must get *started* before the other one, not *ended*06:29
pittimvo: maybe  you are missing a Type=oneshot?06:29
pittimvo: for those, the unit only counts as "done" when all Exec= commands exited, not when they started06:30
mvopitti: this is what it looks like http://paste.ubuntu.com/12551829/06:31
mvopitti: is it the "remainafterexit"?06:32
pittimvo: oh, when does ppp-dns.service get started?06:32
mvoiirc we added it to easily see the logs06:32
pittimvo: my guess is that ppp-dns.service gets started in a target much ealier than multi-user.target06:32
mvopitti: pps-dns is a old-school init script06:33
pittimvo: and thus the snappy-workaround.service isn't even taken into account06:33
pittimvo: in rcS?06:33
pittioh, I have it06:33
pittimvo: ah, rcS06:33
mvopitti: indeed it is06:33
pittimvo: ack, clear then; hang on06:34
mvopitti: thanks!06:34
mvopitti: would be nice if systemd would tell me in some way that the before= releation can not be satisfied or something :)06:34
pittimvo: old-school init.d> err, is it? I have a /lib/systemd/system/pppd-dns.service which is in multi-user, but that might be new in wily06:35
pittimvo: and indeed it being in rcS makes things unnecessarily hard :/06:35
mvopitti: uh, I'm sorry, I have that in vivid too on my snappy image06:35
mvopitti: but its also in rcS.d it seems, what happens in this case? will the native one always "win"?06:36
pittimvo: http://paste.ubuntu.com/12551864/06:36
pittimvo: yes, native always wins06:36
pittiok, then I don't know -- journal SVP?06:36
pittimvo: the above paste would be to start much earlier, in case pppd-dns already ran in rcS (aka sysinit.target)06:37
mvopitti: sure, one sec and I can give you the journal and the systemd-analiyze output06:37
pittimvo: systemd actually should tell you that, in that case you get a dependency cycle in journal and one service in the cycle doesn't start06:37
pittimvo: so, given /lib/systemd/system/pppd-dns.service your wantedby=multi-user.target shoudl be fine06:38
pittiand the before=06:38
mvopitti: http://paste.ubuntu.com/12551875/ is the journal06:38
pittimvo: haha!06:39
pittimvo: ppp-dns.service06:40
pittimvo: spot the typo :)06:40
* mvo drops dead06:40
pittimvo: /me tosses mvo another 'd'06:40
mvo*cough* thanks, I guess I owe you one (or two)06:40
pittiand try to say "pppd-dns" very fast ten times06:40
* pitti hugs mvo06:40
pittino warning about this, as having an After=/Before= to nonexisting units is a common and legitimate use case06:41
pittibut we should maybe configure --enable-typo-detection06:41
pittimvo: now that this is done, another thing: http://cdimage.ubuntu.com/ubuntu-core/vivid/daily-preinstalled/current/ is not actually a "classic" ubuntu tarball, it's snappy06:42
pittimvo: fortunately it still has an intact dpkg database, but we need to remove the /usr/local/bin/apt* stuff at lesat06:42
mvohmm06:42
pittimvo: I was just wondering what these ubuntu core tarballs actually want to be -- a deb based minimal ubuntu, or classic06:42
pittierr, "or snappy"06:42
mvopitti: indeed, I think we should find a real core tarball, the snappy one removes most of /usr/share/doc for example and iirc the man-pages so its not a great fit for the classic env06:44
mvopitti: we could simply create another artifact with livecd-rootfs06:45
mvopitti: I wonder what lxd is doing to build the ubuntu image? maybe we can use that?06:45
pittimvo: I left a note and a TODO in the spec06:46
pittimvo: lxc has pre-built images available for download, indeed06:46
pittimvo: we don't have "lxc" installed to actually call the templates, but we could of coruse just hardcode the URL06:46
pittimvo: but we would then depend on something.linuxcontainers.org, not on *.ubuntu.com infrastructure06:47
pittihttp://images.linuxcontainers.org/images/ubuntu/vivid/amd64/default/06:47
mvopitti: yeah, lets discuss in budapest, but my plan-b would be to just create another artifact on cdimage.u.c via livecd-rootfs06:48
pittiright06:48
pittimvo: I'll adjust my prototype to use a hardcoded URL to the lxc tarballs for now06:48
mvopitti: thanks!06:50
mvoelopio: I'm a idiot, the snappy-workaround issue is found and I uploaded a fix, thanks to pitti, will create a new image now06:51
* yashi_ tring to send a fix to lp...06:51
yashi_https://code.launchpad.net/~yashi/snapcraft/snapcraft06:52
mvopitti: thanks for the spec update, I just looked over it, you mostly replied to the comments, right? and the open question? the rest looks ok?06:52
pittimvo: "making frustrating typos" != "idiot", happesn to everyone!06:52
pittimvo: I also added some new comments, yes06:52
pittimvo: open q?06:52
mvopitti: indeed, thanks :) I feel a bit silly for not spotting it earlier06:52
mvopitti: the open question about were to get the tarball from06:53
pittimvo: ah, right06:53
mvogreat, I think that spec is in good shape then06:53
mvoyashi_: nice!06:53
mvoyashi_: if you click on "prose for merging" and then propose to merge it into "lp:snapcraft" it will appear on the radar of the snapcraft developers automatically :)06:54
pittimvo: meh, need to think about what to do with /etc/resolv.conf06:54
mvopitti: oh, indeed :/06:56
yashi_mvo: done.  Thanks :)06:58
fgimenezgood morning07:03
mvohey fgimenez, good morning07:09
fgimenezhi mvo i'm going to check elopio's concerns. is all set in alpha, right?07:09
mvofgimenez: yes, I found the bug why the workarounds ording was not quite correct and fixed it07:10
mvofgimenez: the image is building right now in alpha07:11
fgimenezmvo, great! :) the image is ready for testing?07:11
fgimenezmvo, ah ok :)07:11
pittimvo: btw, what does your workaround do?07:18
dholbachgood morning07:21
pittimvo: I mean, it's usually more elegant to create a /lib/systemd/system/pppd-dns.service.d/snappy.conf with an extra ExecStartPre=, or changing/deleting the ExecStart= command, or something07:22
pittimvo: then you can restart/stop pppd-dns.service and things still work correctly; you don't need to be aware of re-running the workarounds.service as well, etc.07:22
pittihey dholbach, wie gehts?07:23
dholbachhey pitti - sehr gut - und dir?07:25
pittidholbach: prima, danke07:25
mvopitti: aha, nice. I will keep that in mind07:30
dholbachpitti, thanks for looking at the ffe07:31
pittidholbach: no worries, that's a trivial one07:32
dholbachyeah, I could imagine there's going to be another upload before release,  but it should be smaller to be reviewed07:32
dholbachmvo, asac: upload snapcraft 0.2 to wily07:32
mvofgimenez: new image available, I do a quick test now07:33
fgimenezmvo, thanks on it07:33
mvofgimenez: systemd analyize tells me the order is now correct07:35
fgimenezmvo, trying the update from 178 now. it's still not available on alpha, right?07:39
mvofgimenez: not in alpha yet, I can do that now07:40
mvofgimenez: there should be a new amd64 alpha now based on r18507:42
fgimenezmvo, thanks a lot, i'll try it now 178 -> 185 worked fine for ppp \o/ http://paste.ubuntu.com/12552242/07:44
mvofgimenez: yay!07:45
fictionedgeHi everyone07:45
fictionedgeCan anyone tell me what's the best way to submit a few suggestions to the developers team?07:45
dholbachfictionedge, if it's about snappy, the mailing list should be a good start: http://lists.ubuntu.com/mailman/listinfo/snappy-devel07:47
asacdholbach: uploaded or you want me to upload :)?07:49
fictionedge@dholbach it's about the general installation process for future releases07:54
nothalfictionedge: No such command!07:54
fgimenezmvo, 11 -> 13 worked fine too http://paste.ubuntu.com/12552292/ :)07:57
fgimenezmvo, i'll run the tests against 13 now07:59
fictionedgejust joined the list thank you dholbach07:59
mvocool07:59
pittimvo: http://people.canonical.com/~pitti/tmp/setup-classic.sh updated for a few glitches08:04
pittimvo: resolv.conf now works OOTB, I un-snappify the core tarball, and I added a policy-rc.d08:04
pittimvo: so apt-get update/install postfix in the chroot now DTRT08:04
mvopitti: nice! postfix DTRT means the service is not started but it does get started on the next reboot, right? (just to be sure I'm on the same page)08:10
pittimvo: correct08:10
pittimvo: or when you systemctl restart classic-container08:10
pittimvo: I need to make this a bit more precise -- if you apt-get install in "machinectl login classic", it actually should start08:11
pittimvo: but I don't think we want to advertise logging into the container too much08:11
mvopitti: yeah, I would love to have a mechanism via policy-rc.d that would notify the host that it needs to do something like"machinectl login classic" to start it08:12
mvopitti: but only if that can be made robust :)08:12
mvopitti: but maybe its not feasible, not sure08:12
pittimvo: that would be in invoke-rc.d08:13
pittimvo: yeah, we could do something like that too08:13
pittimaybe it's even possible to do in policy-rc.d, that would be much nicer08:13
mvoprobably not for now, I guess we should wait for the budapest discussion08:13
pittiright, before we waste too much time on the details of this08:13
mvobut it would be nice from a user experience point of view, but then we have the problem what systemctl inside the snappy classic env should show etc08:14
mvoso there are more questions :)08:14
dholbachasac, already uploaded08:24
dholbachpitti, snapcraft is in binNEW because of a new -examples package - could you take a look?08:27
davidcalledholbach, I'm having issues with a snap, could you have a look?08:32
dholbachdavidcalle, what's the issue?08:32
davidcalledholbach, my "glue" bash script is calling bzr, and bzr has issues running (eg. can't find bzrlib), it's probably a path issue, I'm wondering if I'm doing things wrong in my snapcraft.yaml08:34
davidcalledholbach, http://bazaar.launchpad.net/~davidc3/+junk/snapcraft-doc-snap/view/head:/snapcraft.yaml08:34
davidcalledholbach, (the snap is pretty straightforward, go webserver + bzr imports snapcraft doc + script to convert it to html)08:35
dholbachtaking a look in a bit08:37
davidcalledholbach, thanks :)08:37
pittidholbach: hm, shouldn't that be in /usr/share/doc/snapcraft/examples/ ?08:37
dholbachpitti, hmmm.... http://pastebin.ubuntu.com/12552504/08:40
pittidholbach: right, I just checked the deb, hence my question08:40
dholbachah ok, sorry08:41
dholbachmy mistake08:41
dholbachI'll prepare 0.2.108:41
pittierr, /usr/share/doc/snapcraft-examples/examples I meant08:41
dholbachI'm happy with whatever08:42
dholbachif it needs to be /usr/share/doc/snapcraft-examples/examples that works for me08:42
pittidholbach: well, "needs to be" -> that's the standard path to put examples into08:44
pittinot a biggie, but that's what /usr/share/doc/ is for08:44
dholbachok08:44
pittidh_installexamples should DTRT08:44
pittidholbach: danke!08:44
dholbachyep08:44
dholbachdavidcalle, I'll get to it later, if that's all right - I have a few things to figure out first08:53
dholbachor ask m-vo or s-ergiusens08:54
davidcalledholbach, no rush! Nothing urgent :)08:54
dholbachok, good08:54
JamesTaitGood morning all; happy Friday, and happy Comic Book Day! 😃08:57
=== hikiko-lpt is now known as hikiko
dholbachmvo, pitti: https://code.launchpad.net/~dholbach/snapcraft/0.2.1/+merge/27236209:49
dholbachbrb09:50
mvotimchen119: could you please try https://people.canonical.com/~mvo/tmp/ubuntu-device-flash-128mb-boot-plus-fw-dir10:06
timchen119mvo, ok10:08
* Chipaca suddenly finds himself down a performance rabbithole and tries to get out10:55
* ogra_ sends a fox to speed this up 10:56
clobranoLOL10:56
Chipacaon the one hand, I just cut a test from 0m7.208s to 0m0.072s10:59
Chipacaso I basically just made snappy.VersionCompare 100× faster10:59
Chipacaon the *other* hand, not that many people have 10k versions of a package installed, that it would make a difference11:00
Chipacaah, no, that's with 1k versions, not 10k. Much more real-world a test case.11:02
mvoChipaca: woah!11:13
mvoChipaca: \o/11:13
Chipacamvo: and I can knock down the 100k testcase from 22 seconds to 15 seconds if i change snappy.chOrder to be a table11:15
Chipacamvo: i think i might draw the line above this one though :)11:15
mvoChipaca: I look forward to that branch11:15
Chipacamvo: it's fun, but i'm glad i got to a table quickly (because tables are ugly) :)11:17
Chipacaotherwise i might've been trapped all day11:17
* mvo nods11:19
Chipacaotoh if we were using go:generate the table is totally generate'able :)11:20
Chipacamvo: https://code.launchpad.net/~chipaca/snappy/sort-perf/+merge/27237211:25
Chipacaclobrano: whenever you check whether a file exists and if it does not you then create it you are creating a race11:31
Chipacaclobrano: somebody can create the file (with content) between you checking and you creating11:31
clobranoChipaca: ooh, right!11:32
clobranoChipaca: thank you :)11:32
Chipacaclobrano: e.g. the write it out in file.tmp, then move it to file just after you checked and before you created11:32
Chipacaclobrano: boom, you just stomped on their file11:32
clobranoChipaca: sure11:32
Chipacaclobrano: note that with snappy right now that's not as possible because it has a global lock, but the snappy rest api does not11:33
clobranoChipaca: I understand, but (apart from snappy) is always something to think about :)11:35
Chipacayep11:35
Chipacaclobrano: then there's the symlink considerations, and using openat instead of open, but i think we can leave those for now11:38
Chipacaprobably need to comb the code to grab those at some point though11:38
Chipacaah11:39
Chipacaclobrano: could you add O_NOFOLLOW to the O_CREAT etc ?11:39
Chipacaclobrano: that's syscall.O_NOFOLLOW11:39
Chipacanot portable :-/11:39
=== hikiko is now known as hikiko|ln
clobranoChipaca: sure, but O_NOFOLLOW is for?11:59
Chipacaclobrano: i'll answer that in a bit12:00
Chipacaclobrano: meanwhile, let me ask12:00
Chipacaclobrano: how far away are you from me?12:00
* Chipaca hides12:00
Chipacaclobrano: :)12:00
Chipacaclobrano: i thought of a better way of doing this thing12:00
clobranoChipaca: far away? Do you mean geographically? :D12:01
Chipacayeah, in case you wanted to throw something at me12:01
Chipacaclobrano: it's that i just realised there's no reason to create the file at all at that point12:01
Chipacaclobrano: unless i'm missing something?12:02
clobranoChipaca: I'd like, but I'm in Italy12:02
Chipacaclobrano: just, try to read it, if you fail, move on12:02
Chipacaclobrano: so you start with “rules, err := ioutil.ReadFile(udevRulesFile)”12:02
Chipacaclobrano: and check err != nil && !os.IsNotExist(err)12:03
Chipacaclobrano: you'll have the content of the file, or an empty slice, in rules12:03
Chipacaclobrano: and that's all you need12:03
clobranoChipaca: first, sorry I didn't get at all the joke before ;D. You're talking about addUdevRule right? What if it's the first rule? The file does not exist at all12:04
Chipacayes, talking about addUdevRule12:05
Chipacaclobrano: if it's the first rule, ie if the file does not exist12:05
Chipacaclobrano: you're creating an empty file12:05
Chipacaclobrano: and then reading that with ioutil.ReadFile12:05
Chipacaclobrano: right?12:05
clobranoChipaca: uhmm, I think you're right12:06
Chipacaclobrano: so ioutil.ReadFile will return an empty slice of bytes, because the file is empty12:06
Chipacaclobrano: but ioutil.ReadFile will return a nil slice when it can't open the file12:06
Chipacaclobrano: and appending to a nil slice, and appending to an empty slice, results in the same thing12:07
clobranoChipaca: ReadFile will return no errors?12:07
Chipacait will12:07
Chipacait will return a non-nil error12:07
Chipacabut os.IsNotExist(err) will return true12:07
Chipacahence, you'd do: rules, err := ioutil.ReadFile(...)12:08
Chipacaif err != nil && !os.IsNotExist(err) { return err }12:08
Chipacacapisci?12:09
* Chipaca couldn't resist12:09
clobranoChipaca: ahahahaha12:09
clobranoChipaca: sorry, just a sec12:10
clobranoChipaca: sure I think it's fine. AtomicWrite will create the file if it doesn't exist, right?12:12
Chipacayes12:12
clobranothen ok, I couldn't see any drawback12:12
clobranoChipaca: done it, test it, ready to push it (I just added a comment to the code, since that could be not immediate to understand)12:23
clobrano:)12:23
ChipacaL(12:23
Chipaca:) i mean12:23
ChipacaL( is an off-by-one :)12:23
Chipacaclobrano: did you follow up the .precommit thing?12:24
clobranoChipaca: yes, I did. I still have to check something with Bazaar-explorer, since it fails to find golint, but bzr by command-line it's fine12:25
Chipacaclobrano: you probably need to manipulate PATH from your bzr plugin so it finds golint12:26
Chipacaclobrano: or install golint into ~/bin :)12:26
Chipaca(assuming ~/bin is in your PATH, which it is by default if it exists)12:26
clobranoChipaca: yes, it should be something like that12:26
clobranoI set both GOPATH and GOBIN, but explorer seems to ignore it12:27
clobranoand added GOBIN to PATH12:27
Chipacaclobrano: where did you do those additions, and where do you start explorer from?12:27
clobranoChipaca: that's the point. The definitions are in my bashrc, and I couldn't find the name of the explorer bin to run it from shell12:28
Chipacaclobrano: dpkg -L bzr-explorer | grep /bin/12:29
clobranoChipaca: nada12:29
Chipacaclobrano: dpkg -L bzr-explorer | grep .desktop | xargs grep Exec=12:30
clobranobut I found the .desktop with your command! Thanks12:30
Chipacaheh :) yep12:30
clobranoyep ;)12:30
clobranoChipaca: I think I could open another bug :p. Bzr does not list "explorer" as basic command in its help :D12:32
* Chipaca gives up and installs bzr-explorer12:32
Chipacaclobrano: sure it does, it's right there12:32
Chipacaah, as *basic* commands12:33
Chipacawell, it's hardly basic :)12:33
clobranoChipaca: well, for a basic user, a GUI is better than a shell ;)12:33
clobranoChipaca: but ok, the command its in the full list12:34
clobranoChipaca: done. Let me know if it's fine now12:37
=== chihchun is now known as chihchun_afk
Chipacaaugh!12:38
clobrano:D12:39
Chipacaclobrano: commented inline12:39
=== hikiko|ln is now known as hikiko
=== T-mon__ is now known as T-mon
ogra_Chipaca, hmpf ... webdm doesnt start on my last Pi2 image13:45
Chipacaogra_: i can't even get it to build here13:45
ogra_webdm ?13:45
Chipacayes13:45
Chipacai am not building raspberry pies13:45
Chipacaalthough i do have raspberry jam13:45
ogra_http://paste.ubuntu.com/12554435/13:45
ogra_thats during forst boot13:46
ogra_*first13:46
Chipacaogra_: and did you?13:46
ogra_webdm_snappyd_0.9.service - Snappy WebDM13:46
ogra_   Loaded: loaded (/etc/systemd/system/webdm_snappyd_0.9.service; enabled; vendor preset: enabled)13:46
ogra_   Active: failed (Result: start-limit) since Fri 2015-09-25 13:43:14 UTC; 1min 13s ago13:46
ogra_  Process: 1072 ExecStart=/usr/bin/ubuntu-core-launcher webdm webdm_snappyd_0.9 /apps/webdm/0.9/snappyd (code=exited, status=1/FAILURE)13:46
ogra_ Main PID: 1072 (code=exited, status=1/FAILURE)13:46
ogra_not actually informative13:46
ogra_syslog has:13:47
ogra_Sep 25 13:44:57 localhost ubuntu-core-launcher[1230]: Snappy: 2015/09/25 13:44:57 handlers.go:52: Initializing HTTP handlers...13:47
ogra_Sep 25 13:44:57 localhost ubuntu-core-launcher[1230]: Snappy: 2015/09/25 13:44:57 handlers.go:59: decoding problem13:47
ogra_thats the most recent 15.04 image btw13:47
ogra_(which i thought we plan to release today :/ )13:48
* ogra_ wonders why nobody did hit that during testing 13:48
ogra_fgimenez, do you have webdm running on your armhf and amd64 tests for the last 15.04 edge or alpha image ?13:49
fgimenezogra_ nope, i'll try to reproduce13:50
ogra_seems my amd64 auto-upgraded to 186 and there i see webdm run13:50
ogra_i dont have a BBB around to check if it is perhaps arm specific13:51
fgimenezogra_ then flash alpha 11 for bbb, install webdm, update should be enough?13:57
ogra_fgimenez, yes13:57
ogra_well, i flashed edge13:57
fgimenezogra_ ok, let me try13:58
ogra_and no upgrade ... i just used u-d-f on the last edge image13:58
longsleepogra_: mhm webdm works fine in my 15.04/stable14:08
* longsleep did not test edge yet14:08
ogra_weird14:08
ogra_i did build that image with --device raspi2_armhf ... i wonder if that forces an amd64 webdm to be installed or some such14:09
longsleepwell id installed webdm later on the device14:09
longsleep-d14:09
ogra_ah, dd is done, lets see if it behaves differently without that option14:09
ogra_screen -r14:10
ogra_oops14:10
ogra_EFOCUS :P14:10
ogra_hmm, not caused by the --device option, still failing here14:12
* ogra_ removes and reinstalls webdm14:13
ogra_nope, same issue14:14
longsleepogra_: let me try mine14:38
ogra_trying with alpha 12 here now ...14:38
* ogra_ waits for dd14:38
longsleepogra_: webdm runs fine on my odroid14:42
ogra_sigh14:42
longsleepubuntu-core   2015-09-17 514:42
longsleepwebdm         2015-09-24 0.914:42
ogra_ah, but thats stable14:42
longsleepyeah14:43
ogra_havent gotten to that yet :)14:43
ogra_sigh, so alpha doesnt work either14:43
Chipacaclobrano: you need to set a commit message on the merge request14:43
* longsleep builds an edge image now14:44
* ogra_ builds stable 14:44
longsleepdamn .. no space left on device  - foo!14:49
ogra_bah14:50
longsleeptoo many kernel build trees :/14:50
ogra_heh14:50
ogra_sigh14:51
ogra_stable doesnt uncompress the kernel for me :/14:51
* ogra_ re-tries14:51
jbdatkoAnyone know if the snappy image for BBB needs the SD card to run or can it run completely from the eMMC? The instructions talk about replacing the bootloader on the emmc...14:53
clobranoChipaca: what should the content be?14:57
Chipacaclobrano: a short description of the changes in the branch?14:57
Chipacaoh!14:57
Chipacaand one more thing14:57
Chipacaclobrano: make a nochange commit with --fixes lp:149729914:58
Chipacaclobrano: e.g. bzr ci -m 'fixes lp:1497299' --fixes lp:1497299 --unchanged14:58
Chipacaclobrano: and push that also14:58
clobranoChipaca: ook14:59
zygamorphis: hey, I'm back now15:04
zygamorphis: does the security template work for you?15:04
zygamorphis: I merged the documentation changes and I'm about to rebuild and see if the snap works with the template for me15:04
morphiszyga: I just applied the last changes I got from jdstrand15:05
morphiscan report in some minutes15:05
zygamorphis: ok, thanks15:05
morphiszyga: but pushed the change so you can test too15:06
* zyga builds15:06
zygamake clean; make15:06
zygaI love that15:06
longsleepogra_: webdm works fine here with edge15:07
longsleepubuntu-core 2015-09-25 170     ubuntu15:07
longsleep(installed via ssh though, not together with u-d-f)15:07
clobranoChipaca: done15:09
Chipacahttps://code.launchpad.net/~chipaca/snappy/dddddirs/+merge/272430 for great justice^Wduhr duhr15:32
ogra_mvo, so any idea about the oem snap ?15:34
* ogra_ quickly gets some food15:35
Chipacaogra_: so, you get ErrDecode from oem.Oem() in two cases: one is a bad package.yaml15:37
Chipacaogra_: the other is an unreadable package.yaml15:37
ChipacayamlPath := filepath.Join("/oem", oem[0].Name(), oem[0].Version(), "meta", "package.yaml")15:37
Chipacawhich is rather circuitous, but there you go15:38
Chipacaogra_: so15:38
ogra_http://paste.ubuntu.com/12555387/15:38
Chipacaogra_:  if the version in the yaml does not match the directory15:38
Chipacaogra_: would be one failure mode15:38
ogra_how would thw dir match anything ?15:38
Chipacaogra_: that is15:38
ogra_(RaspberryPi2)ubuntu@localhost:~$ ls /oem/pi2/15:39
ogra_IBbBKVKXNDAQ  current15:39
Chipacaeep15:39
Chipacawhy is it sideloaded?15:39
ogra_right, cant match :)15:39
ogra_because it is built using u-d-f --developer-mode15:39
ogra_with the --oem option15:39
Chipacaso15:40
ogra_thats how we port to new devices15:40
Chipacasomething is out of sync15:40
Chipacaumm15:40
Chipacaogra_: update snappy in webdm15:40
Chipacaogra_: because oem[0].Version() should do the right thing here, and it isn't :)15:41
ogra_??15:41
ogra_snappy in webdm ?15:41
Chipacaogra_: you didn't rebuild webdm?15:41
ogra_why would i15:42
Chipacaogra_: because it embeds snappy15:42
Chipacaogra_: new snappy => new webdm15:42
Chipacamore or less15:42
ogra_i only use u-d-f like i did the last few releases for rpi15:42
Chipacau-d-f *also* embeds snappy :)15:42
ogra_and bumped the version in the pi2 snap15:42
Chipacabut that's not here nor there15:43
ogra_and i'm using the lastes u-d-f i think15:43
Chipacaso15:43
Chipacaogra_: webdm needs to be built agains the same version of snappy as the system snappy15:43
Chipacaogra_: otherwise breakage happens15:43
Chipaca(you effectively have two different snappy implementations on the system)15:43
ogra_right, so we will see breakage on other systems too then15:43
Chipacayes15:43
Chipacaor rather15:43
Chipacano15:43
ogra_i mean, i'm not using anything special15:44
Chipacabecause it doesn't understand the versioning thing15:44
Chipaca:)15:44
Chipacaso, webdm needs attention15:44
ogra_webdm hanst been rebuilt in months15:44
Chipacayeh15:44
Chipacathis is not good :)15:44
ogra_right15:44
Chipacaogra_: do you have vivid?15:45
ogra_trusty15:45
* ogra_ isnt sure, probably vivid on the lappie15:45
Chipacaricmm: where did you try to build webdm (and failed)?15:45
Chipacai think it needs a vivid, but i might be wrong15:45
Chipacaand it might be broken beyond that :-/15:46
Chipacaogra_: one of the reasons the rest api is important is to decouple webdm15:46
ogra_ah15:46
* ogra_ is surprised to be the first one to actually hit an issue, these pieces must be massivel out of sync15:47
ogra_and that since a while15:47
ogra_i uess i could work around by pushing the 0.16 pi2 untested to the store then .... then it wouldnt be sideloaded15:49
Chipacaogra_: i thought you'd tested it with everything except webdm?15:49
ogra_there is just something inside me screaming "dont upload untested, idiot !!!"15:49
ogra_well, yeah15:50
Chipacaogra_: the broken bit here is webdm15:50
Chipacaclobrano: congratulations, btw :)15:52
longsleepogra_: my version in /oem is just 0.3 - why is yours a hash version?16:07
longsleepls /oem/odroidc/16:08
longsleep0.3  current16:08
longsleepi am using vivid to build the images with ubuntu-device-flash 0.20snappy7-0ubuntu1.216:08
fgimeneznice weekend everyone o/16:09
ogra_longsleep, all sideloaded snaps get a hash version nowadays16:10
ogra_so you are lucky because the snappy on the machine you called u-d-f on is old16:10
longsleepogra_: um, i think it is the latest from the ppa16:11
longsleepaha - i am using snappy-dev-beta ppa - snappy-dev has newer :/16:15
longsleepogra_: switched to snappy-dev/tools and now i have 0.31 - thanks for the hint!16:18
ogra_our PPAs are a mess :/16:19
longsleepogra_: so the theory is that if i now create a new image with the newer u-d-f then webdm stops working for me as well?16:34
ogra_right16:36
ogra_well, if you use the --oem switch pointing to a local snap16:36
ogra_only sideloaded snaps get that hash version16:36
longsleepogra_: yes thats what i am doing with the odroid oem snap, verifying now16:48
ogra_\o/16:49
* ogra_ humps Chipaca's leg 16:49
ogra_WOOF !16:49
ogra_i has workin webdm !!16:49
* Chipaca has a headache16:49
ogra_so pushin the snap to the store and using that makes everything work fine16:50
ogra_wow ... what a waste of my afternoon :/16:50
longsleepogra_: so webdm currently breaks for any sideloaded snaps ?16:51
ogra_oem snaps, yes16:51
longsleepah only oem ok16:51
longsleepgood that i used an old u-d-f to create my image then :)16:51
ogra_:)16:51
Chipacano, it'll break for any snap16:52
Chipacasideloaded16:52
ogra_oh16:52
ogra_ok16:52
Chipacathe services will be confused16:52
ogra_well, it will still start at least if the oem one isnt sideloaded16:52
Chipacaright, so i should qualify that16:52
Chipacasnappy and webdm will have different opinions of where things should go16:52
longsleepah, well that image i built with new u-d-f does not even boot :/ seems like i just got some work todo :(16:52
Chipacaand will break if you mix and match16:53
ogra_yeah16:53
Chipacabut if you use webdm, it'll mostly work16:53
Chipacaexcept for the bugs due to not having random versions for sideloaded apps16:53
Chipacaalso none of the fixes in snappy-the-binary will be used by webdm16:53
Chipacasome might say this is bad :)16:54
* ogra_ curses20:20
ogra_this rpi image starts getting on my nerves20:20
ricmmogra_: whats the matter with it20:28
ogra_well, i tried to build an image from the s-i srver bits and ended up with a generic kernel ...20:29
ogra_it funnily booted, i only noticed the wrong kernel after 30min testing :(20:29
ricmmlol20:29
ricmmshould just merge into that generic then20:29
ricmmif it actually booted...20:30
ogra_we tried that but rickspencer3 would be really unhappy ... we needed to add a plethora of patches to make all the bits work he wants20:31
rickspencer3ruroh20:31
rickspencer3no pwm? no i2c, no spi?20:31
* ogra_ doesnt really get how he ended up with the worng device tarball now :(20:31
rickspencer3what would you even do with that?20:32
ogra_run owncloud or kodi :)20:32
rickspencer3heh20:33
ogra_ogra@nusakan:~$ grep raspi2 /srv/system-image.ubuntu.com/etc/config|tail -120:33
ogra_file_device,raspi2_armhf = http;http://people.canonical.com/~platform/snappy/raspberrypi2/device-pi2.tar.xz;name=device,monitor=http://people.canonical.com/~platform/snappy/raspberrypi2/builddid20:33
* ogra_ slaps forehead ...20:33
rickspencer3poor ogra20:33
ogra_indeed the s-i server points to an unversioned tarball20:33
ogra_(i uploaded device-pi2-0.16.tar.xz)20:34
=== ogra2 is now known as ogra-snappy-test
=== kickinz1 is now known as kickinz1|eow

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