/srv/irclogs.ubuntu.com/2015/07/29/#snappy.txt

Chipacasergiusens: take a poke https://code.launchpad.net/~chipaca/snappy/delayed-service-start/+merge/266166 when you have a bit plz01:03
Chipacarsalveti: ^ that's my take on the fix/workaround for bug 146667201:03
ubottubug 1466672 in Snappy trunk "webdm failed to start / Failed to listen 224.0.0.251:5353" [Undecided,In progress] https://launchpad.net/bugs/146667201:03
rsalvetiomg, system-image import takes forever, impossible to get the lock03:22
pittiChipaca: add an [Install] section to it with WantedBy=03:58
pittiChipaca: or just ship the symlink in the deb, as you wish03:58
xajCan anyone help me get git installed in ubuntu-15.04-snappy-armhf-rpi2?04:51
xajI was able to install wget and I’ve been pulling my hair out trying to get dependencies built with dpkg for git04:51
xajaaand nobody gaf >_>04:53
=== chihchun_afk is now known as chihchun
=== guest42345 is now known as oniix
dholbachgood morning07:03
fgimenezgood morning07:10
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
JamesTaitGood morning all; happy Rain Day! 😃09:11
Chipacazyga: finally got round to adding tests and pushing https://code.launchpad.net/~chipaca/snappy/dynamicExclusion/+merge/26619909:51
Chipacaoh, drat, forgot the prereqs09:51
Chipaca1 sec09:51
zygaChipaca: hi09:52
zygaChipaca: looking09:52
Chipacazyga: https://code.launchpad.net/~chipaca/snappy/dynamicExclusion/+merge/26620009:52
zygaohhh09:52
zyganice09:52
zygaone tip/request09:52
Chipacashoot09:52
zygaplease get into the habit of writing manual pages09:52
zygait makes software far far better to discover09:53
Chipacawe suck at that, don't we09:53
zygaI'll start using .snapignore right away09:53
Chipacasystemd puts us to shame09:53
zygahehe09:53
zygayes09:53
Chipacazyga: it's not on trunk yet!09:53
zygasystemd is really good about this09:53
zygaChipaca: we started doing this for plainbox09:53
zygaChipaca: and it's really easy actually09:53
zygaChipaca: just requires discipline and merge request reviewers to spot09:54
zygaChipaca: feel free to copy the sphinx integration bits09:54
zygahttp://bazaar.launchpad.net/~checkbox-dev/checkbox/trunk/files/head:/plainbox/docs/manpages/09:54
zygaChipaca: that and the conf.py file for sphinx is all we need09:55
zygaChipaca: it's a world of difference for our users09:55
zygaChipaca: one more suggestiong09:58
zyga*on09:58
zygaChipaca: perhaps remove the built-in list and create the .snapingore file with that list if missing09:58
zygaChipaca: it's better than having two, one secred that nobody knows of, and one in the file09:58
Chipacahmm09:59
Chipacai see your point09:59
Chipacacan you make that comment on the merge?10:00
Chipacai think it needs sergio or mvo to comment10:00
zygasure10:00
Chipacazyga: also: http://paste.ubuntu.com/11958678/10:01
zygabtw, we have some code that automates that :)10:01
Chipacamissing quite a bit of work still, but that might be a good place to start10:02
zygaso we get the manual page for plainbox commands (all dozens of them) auto-synchronized with sphinx10:02
Chipacazyga: that's produced by "snappy man"10:02
zygaah10:02
Chipaca... which is not a thing on trunk yet either10:02
zygaChipaca: random man page from plainbox10:02
zygahttp://bazaar.launchpad.net/~checkbox-dev/checkbox/trunk/view/head:/plainbox/docs/manpages/plainbox-dev-list.rst10:02
zygathe ..argparse part is also a plainbox feature though I'm moving that to python-guacamole for anyone to use10:02
zyga(that example was poor) http://plainbox.readthedocs.org/en/latest/manpages/plainbox-run.html and http://bazaar.launchpad.net/~checkbox-dev/checkbox/trunk/view/head:/plainbox/docs/manpages/plainbox-run.rst10:04
Chipacazyga: and this is the code that adds "snappy man": https://code.launchpad.net/~chipaca/snappy/snappy-man/+merge/26620310:06
zygalooking10:06
zygaah, but that's go, I thought this part is written in python10:06
zygaChipaca: so it's a feature of the argument parser that go provides10:07
Chipacawell, of the one we use :)10:07
zygaright10:07
Chipacait also produces bash completion things10:07
Chipacawhich we aren't using (why not? :) )10:07
zyganice, it's somewhat similar, we have a sphinx plugin that looks at the parser object10:07
Chipacaogra_: why don't we ship bash completion in core?10:08
zygaChipaca: bash is not in the core ;-)10:09
* zyga ducks10:09
Chipacaif it weren't, i'd be happy10:10
Chipacabut as it is, we might as well use it :)10:10
zygahehe10:10
zygayeah, I was kidding10:10
Chipacame, i'd strip core down so much it would make peoples eyes water10:10
Chipacabut it's not (yet) my fight10:10
zygaChipaca: the 1995 boot floppy!10:10
Chipacaexactly!10:11
ogra_Chipaca, we should just drop bash10:11
Chipacadhcp in the kernel baby!10:11
ogra_iirc the completion db isnt actually small ... and it refers to aps10:11
ogra_*apt10:11
Chipacaalso the kdrive x server, man that thing was sweet10:11
ogra_!10:11
ogra_i loved that10:11
Chipacaogra_: wrt bash completion, we ship random things in /etc/bash_completion.d, which we should probably look at (wrt apt, etc) and nuke, but we don't ship /etc/bash_completion so even if we ship snappy's completion thing, it won't be picked up10:15
Chipacaalso shipped: 400k in /usr/share/bash-completion/completions10:17
ogra_hm i thought it was more in the megabytes10:17
Chipacaogra_: it can be :)10:18
ogra_but perhaps i shouldnt justdge by desktop standards ;)10:18
Chipaca2.4M on my notebook10:18
zygaogra_: we should start measure snappy core image sizes in terms of 720 floppies10:18
ogra_yeah, thats more like i remember10:18
zygaogra_: this will let us see how big we are ;-)10:18
ogra_+110:18
ogra_we are to big ... for sure10:18
Chipacaright! swapping libc to musl in 3...10:18
ogra_lol10:18
ogra_lib modules as squashfs image !10:19
ogra_err10:19
ogra_/lib/modules10:19
Chipacainitrd is whole root system!10:19
Chipacago works fine linking with musl, fwiw :)10:20
Chipacahttp://dominik.honnef.co/posts/2015/06/statically_compiled_go_programs__always__even_with_cgo__using_musl/10:20
ogra_how abouot klibc ?10:20
ogra_(that is actually well maintained in ubuntu)10:20
Chipacahttp://www.etalabs.net/compare_libcs.html10:20
Chipacaah, does not include klibc10:21
Chipacaogra_: wasn't klibc kernel-only or something?10:21
* Chipaca reads10:21
ogra_no,. its a cut down glibc iirc10:21
Chipacai don't think systemd will work with that10:21
Chipacain fact i think the only one there are patches for systemd to work with is uclibc10:22
ogra_good !10:22
ogra_upstart will ;)10:22
Chipacaogra_: so you're going to implement socket activation for upstart?10:22
ogra_we just need to change everything back10:22
Chipaca\o/10:22
ogra_we kind of have socket activation in use on the phone ;) (via hacked upstart jobs)10:23
Chipacaremember when you searched for two words in google, and the first result actually included both words you looked for?10:23
zygaogra_: replace socket activation with dip switches10:23
zyga;)10:23
Chipacagoogle "klibc systemd", first result has no systemd in it :(10:23
ogra_yeah, dip switzches definitely dont get the attention they deserve anymore ...10:24
Chipacanor second, nor third, nor ...10:24
ogra_jumpers killed the dip switch !10:24
Chipacathere's a rather dark joke hiding in that statement, but i'm unable to wiggle it out10:26
=== JamesTai1 is now known as JamesTait
ogra_Chipaca, http://lists.freedesktop.org/archives/systemd-commits/2012-June/002047.html is what i hit when searching for klibc and systemd ...10:37
ogra_but that seems to only refer to udev10:37
ogra_(and is years old)10:38
shuduohi guys, i see someone (seems lool) is working on porting snappy onto edison but i'm not sure where it is. could anyone let me know if there is a  workable image already?10:39
* ogra_ doesnt think there is, but i could be wrong10:39
Chipacalool would know, though10:40
ogra_yeah10:40
Chipacahow bad would it be if, on installing a snap, all installed snap services restarted?10:55
ogra_Chipaca, pretty bad i'd say11:15
=== rickspencer3_ is now known as rickspencer3
=== dpm_ is now known as dpm
Chipacaunfortunately the documentation is unclear on whether that will happen, meaning i need to implement this before knowing11:36
ogra_well, rolling is expected to break ;)11:54
=== bigcat_ is now known as bigcat
ogra_Chipaca, uuuh ... implementing a "phone home" service  to check if the network is up ?12:08
ogra_Chipaca, how about instead checking if a default route exists ?12:10
sergiusensmorning12:15
=== chihchun is now known as chihchun_afk
Chipacaogra_: it's the standard "do you have internets" thing that's used in at least two other places12:26
ogra_hmm12:27
Chipacaogra_: but, um, looking for a default route would work, also :)12:27
Chipacaogra_: comment on the mp?12:27
ogra_just did :)12:27
Chipacasergiusens: mo'in!12:27
Chipacaogra_: ta12:27
sergiusensChipaca: I hink he has12:27
sergiusensthink*12:27
Chipacasergiusens: any comment on zyga's comment in the dynamicExclude branch?12:36
Chipacaon the one hand, putting a file in the user's thing is Not What We Do12:37
Chipacaon the other hand i see his point about it being magic and obscure and stuff12:37
sergiusens@activereviews12:38
nothalsergiusens: No such command!12:38
sergiusens@activereview12:38
nothalsergiusens: No such command!12:38
sergiusens@help12:38
nothal"list" To see the available commands ; "help cmd" for specific command help12:38
sergiusens@list12:38
nothalThe available commands are: ['bug', 'critical', 'help', 'last', 'list', 'more', 'ping', 'reviewlist', 'seen']12:38
Chipaca@reviewlist12:38
nothalhttps://code.launchpad.net/~fgimenez/snappy/config-for-remote-testbeds/+merge/266214 | No reviews (less than a day old)12:38
nothalhttps://code.launchpad.net/~chipaca/snappy/snappy-man/+merge/266203 | Needs Information: 1 (less than a day old)12:38
nothalhttps://code.launchpad.net/~chipaca/snappy/dynamicExclusion/+merge/266200 | Needs Fixing: 1 (less than a day old)12:38
nothalhttps://code.launchpad.net/~fgimenez/snappy/generalize-build-tests-across-versions/+merge/266191 | No reviews (less than a day old)12:38
nothalhttps://code.launchpad.net/~chipaca/snappy/delayed-service-start/+merge/266166 | Needs Information: 2 (less than a day old)12:39
sergiusensChipaca: we should have an alias, it's called activereviews in lp :-P12:39
Chipacaagreed12:39
sergiusensChipaca: and help should just list :)12:39
Chipacasergiusens: https://code.launchpad.net/~verterok/lalita12:39
sergiusensthanks12:39
tedMorning folks!13:12
Chipacaooh, look at that, it *doesn't* restart everything \o/13:21
elopio_hello, good morning.13:29
=== elopio_ is now known as elopio
elopiomterry: I did a shortcut to get this merged: https://code.launchpad.net/~elopio/snapcraft/fix1476452-python_log/+merge/26535413:32
elopionext, if you give me the specs for the logging that you want I can configure the loggers.13:32
mterryelopio, OK.13:33
mterryelopio, so was the point of that MP to use loggers or to get rid of common.log?  Because you could have kept common.log and automatically had it add the bold to the message just like before and just done sed s/print/logger.info/13:33
elopiomterry: the problem with keeping the old common.log is that you can't handle the messages differently depending on their origin and type.13:34
elopioso I still like this one as a fist step towards using fancier logging.13:34
Chipacaogra_: parlez vous ip(8)?13:36
mterryelopio, that's what arguments to a method are for  :)  but ok13:36
elopioit handles differently info, error and warning, which we didn't have before. And opens the option to do bold depending on the origin. It's just that current bold rules are not consistent.13:36
mterryelopio, or even common.info  :)13:36
mterryelopio, not consistent?  We use them for step declarations and error messages13:37
jdstrandrsalveti: where is the "user button" on the bbb? I feel silly...13:38
elopiomterry: well, you can disapprove if you don't like it or don't find it useful. I won't feel bad :)13:38
elopiomterry: isn't this a step:  print("Installing required packages on the host system: " + ", ".join(newPackages)) ?13:38
mterryelopio, eh, that's an action inside a step.  we don't bold commands that plugins run13:39
rsalvetijdstrand: near the sd card13:39
rsalvetithere is only one button13:39
ogra_Chipaca, "ip -4 route list 0/0"13:39
Chipacaogra_: and if they're ipv6-only?13:39
Chipaca:)13:39
ogra_Chipaca, thnen you omit -413:39
rsalvetijdstrand: https://learn.adafruit.com/system/assets/assets/000/008/680/medium800/beaglebone_BeagleBoneBlack.jpeg13:39
Chipacaogra_: nice about 0/013:39
elopiomterry: what about snapcraft.common.log(stage + " " + self.part_names[0] + hint) ? Isn't that a command a plugin runs?13:39
mterryelopio, I'm fine with the idea of loggers in general.  And I don't hugely care how it's implemented.  It just seems like you went out of your way to dismantle central message handling and then bemoan the lack of features that central message handling gives you  :)13:39
mterryelopio, no that's the 'step declaration'13:40
Chipacaogra_: sad that it doesn't error if there's no route to it :)13:40
mterryelopio, or stage declaration more accurately13:40
ogra_Chipaca, yeah, it even returns 013:40
ogra_you need to check for stdout13:41
Chipacamhmm13:41
Chipacaworse things have come to pass ;)13:41
elopiomterry: it's more like I got rid of all the things I haven't understood yet, so I could make a transparent change first.13:41
elopiowith these answers you are giving me, I can configure the logging to get rid of the prints. I dislike the central messages because they replace the origin with the common module.13:42
elopioso maybe if you want, you can wait for me to propose the next couple of branches.13:42
mterryelopio, makes sense, I'm on board with your changes13:42
mterryelopio, I'll look at your new branch this morning13:43
jdstrandrsalveti: boy, not sure I'm coordinated enough to do this (I have mine in the case and turn it on/off by pulling the plug). here goes nothing...13:44
rsalvetijdstrand: you could as well just erase the internal u-boot (in emmc)13:45
rsalvetiand reboot, that will force it to load the u-boot from the sdcard13:45
jdstrandrsalveti: it wasn't clear it was possible to do that from my laptop13:46
rsalvetino, you need do call it on a running system, so under bbb13:46
jdstrandie, I thought I might have to actually get into snappy, then erase it13:46
jdstrandright13:46
jdstrandhence the being coordinated part :)13:46
rsalvetiso yeah, you'd need to press the user button at least once13:46
jdstrandanyhoo, I'll figure it out13:46
rsalvetikeep it pressed and then add power to it13:47
rsalvetireset is not enough13:47
jdstrandany news on flashing the emmc?13:47
rsalvetinot yet13:47
mterryelopio, you left fatal in place, which is fine.  But there's a separate bug about snapcraft having too many exit points, and that maybe those fatal calls should be an exception that bubbles up to main() and gets logged there with a sys.exit call there.  Does that ruin your origin info too, or would the exception keeping track of the origin be usable when logging it?  (you don't need to do the exception thing in your branch, just thinking of future ch13:48
mterryanges)13:48
jdstrandrsalveti: so, I'm running a 4.2 kernel now (on vivid). I noticed that when I put the sd card in it showed up as /dev/mmcblk0 instead of /dev/sdX13:49
jdstrandrsalveti: so I just specified /dev/mmcblk0 instead to the dd command. is this something you've seen or think it might be a problem?13:49
jdstrandrsalveti: I'm talking about the dd to the sd card after creating an image with udf13:50
elopiomterry: the traces have origin information, but anyway we don't want them to be visible to the user.13:50
ogra_jdstrand, mmc devices never show up as sdX unless you use a USB reader13:50
rsalvetijdstrand: yeah, depends on your host13:50
sergiusensjdstrand: fwiw, my trusty laptop has always had mmcblk nodes13:50
rsalvetiif it's native, it shows up as mmcblk013:50
jdstrandok good to know13:50
sergiusensdepends on how it's connected13:50
elopiomterry: so the approach I think we should have is replace all those fatal calls by raise. But keep the logging on the module that generates the message.13:50
rsalvetiif under a usb bus, then it shows as /dev/sdX13:50
sergiusensnot sure why it would change though13:50
ogra_right13:50
jdstrandbefore I flashed with a reader in another host. this time I have a slot for the sd card13:50
mterryelopio, so log the message then raise an error that doesn't include a message (or includes a duplicate, unused message)?13:51
jdstrandgotcha. I was thinking that was the case but wasn't sure13:51
sergiusensogra_: a sw upgrade bringing in a hw upgrade :-P13:51
ogra_hah13:51
* sergiusens wants his 8 gig of ram sw upgraded to 16!13:51
ogra_just add zram :P13:51
sergiusensjdstrand: ah, that explains it13:52
Chipacaogra_: better like this?13:54
Chipacaogra_: (talking about https://code.launchpad.net/~chipaca/snappy/delayed-service-start/+merge/266166 )13:54
ogra_Chipaca, beauty !13:55
* Chipaca knows he is13:55
ogra_:D13:56
Chipacaone improvement could be to specify /sbin/ip instead of just ip13:56
Chipacanot sure if i should care :)13:56
elopiomterry: we can instantiate the exception first, and then use https://docs.python.org/3/library/logging.html#logging.Logger.exception13:56
elopiowe can choose if we want to log immediately after the exception was instantiated, or in a handler in one of the callers.13:57
Chipacaogra_: can i say your 'check for default route' insight solved all the ugly/iffy problems in the branch? hence why i say it was brilliant13:59
ogra_heh, thanks :)13:59
Chipacasergiusens: webdm is where the bug is pointed at, but everybody wanting to do multicast will have the same problem14:00
Chipacasergiusens: which can be fixed per service by a single setsockopt call before you listen14:00
Chipacasergiusens: but golang doesn't let you setsockopt14:00
Chipacasergiusens: especially not before listening for multicast udp14:00
Chipacasergiusens: youd'd have to rewrite a buuunch of net/14:00
Chipacasergiusens: IP_FREEBIND is the sockopt fwiw14:01
sergiusensChipaca: yeah, I read the bug report14:01
sergiusensChipaca: btw; do we need a separate go bin, or on a different subject, does this need to be a go exec?14:02
Chipacasergiusens: webdm -> mdns's openSocket (private) -> net.ListenMulticastUDP[6] -> net.listenIPv{4,6}MulticastUDP (private) -> net.joinIPv{4,6}Group (private)14:06
* Chipaca suddenly feels lagged to the universe14:07
=== greyback__ is now known as greyback
Chipacasergiusens: i'm not sure which "this" you mean wrt go exec14:08
Chipacasergiusens: you mean, does wait4network have to be go? no14:08
Chipacasergiusens: does it need to be separate? well, given it's potentially long lived, i'd rather it weren't all of snappy :)14:08
Chipacasergiusens: i could write it in C14:09
Chipacasergiusens: it could be sh, also14:09
sergiusensChipaca: long lived? doh, didn't see any exit; it's fine as is14:11
Chipacasergiusens: I could also stuff it as sh into ExecStart14:11
ChipacaExecStart=while ! ip route show 0/0 | grep -q .; do sleep 5; done14:11
Chipacadunno what sh systemd uses; if it has builtin [, i could use [ instead of grep for moar cheap14:12
Chipacae.g. while [ -z "$(ip route show 0/0)" ]; do sleep 5; done14:12
Chipacabut that's asking a lot of a random sh14:13
* Chipaca does perf testing of that14:14
elopiomterry: in this case:14:17
elopio133+    logger.info('Wrote the following as snapcraft.yaml.')14:17
elopio134     print()14:17
elopio135     print(yaml)14:17
elopiowhat you want is the first line to be bold, and the rest to be normal? Is that a rule we can apply to all the messages?14:17
jdstrandrsalveti: sorry for being a pain. are there any known issues with 15.04/edge r132 and bbb? I flashed the sd card and booted holding the button and for sure the emmc didn't load, but neither did snappy14:17
jdstrandI have udf 0.27-0ubuntu114:18
rsalvetijdstrand: hm, did it even boot into u-boot?14:18
rsalvetiU-Boot SPL 2015.07-dirty (Jul 17 2015 - 11:40:49)14:19
rsalvetithat is the boot loader that we are now using14:19
jdstrandrsalveti: I don't know-- I only ever ssh in. I think I need a cable I don't have14:19
jdstrand:\14:19
rsalvetioh, ok, you don't have serial14:20
rsalvetihow did you generate the image?14:20
jdstrandsudo ubuntu-device-flash core --channel=edge --oem=beagleblack --enable-ssh --output=15.04-edge.bbb 15.0414:20
jdstrandsudo dd if=15.04-edge.bbb.r132 of=/dev/mmcblk0 bs=32M && sync14:20
mterryelopio, that case is a little different than the others, a different flow (it's not iterating over parts or whatnot).  So I felt like the 'wrote' message was Snapcraft's top-level "here is what I'm doing" and the yaml was the content (plus it would be too intense if all the yaml was bold)14:21
jdstrand(I had a mv 15.04-edge.bbb 15.04-edge.bbb.r132 in between)14:21
mterryelopio, I'm happy to change some of these bold/not-bold decisions.  I just didn't want to block your python logger branch on hashing them out14:21
rsalvetijdstrand: let me flash it from scratch and see14:21
* mterry is testing your branch right now14:21
elopiomterry: ok, so what we need is two arguments, a message and a content. Or something like that.14:22
mterryelopio, except usually the content comes much later (like when running a plugin's step, which has subcommands and all that)14:22
jdstrandI'm excited to use the snappy-- I think I was affected by the fatwrite stuff cause every once in a while it would upgrade and never come back14:23
elopiomterry: no, that's alright. We need to figure out a way to make it easier for all the cases. Which is not easy  :)14:23
elopiothere are many ways to do this, with filters, handlers, format and namespaces.14:24
elopioI'm just trying to figure out which would be clearer.14:24
rsalvetijdstrand: hm, worked fine in here, got ssh running and was able to get in just fine14:29
rsalvetitook a minute to boot, because of cloud-init, but it was fine14:29
rsalvetijdstrand: did you put power while pressing the button?14:29
rsalvetijdstrand: can you also give http://releases.ubuntu.com/15.04/ubuntu-15.04-snappy-armhf+bbb.img.xz a try?14:31
jdstrandrsalveti: I'll try the whole thing again14:31
rsalvetithis is latest stable14:31
rsalvetihas webdm and ssh by default14:31
jdstrandI'll try with edge, if that doesn't work, I'll try with stable14:31
jdstrandthanks14:32
rsalveticool14:32
rsalvetiit sucks not having serial easily14:32
jdstrandand, yes, I held the button down while applying power14:32
rsalvetijdstrand: can you see blinking leds?14:32
jdstrandit was difficult, but I mustered the dexterity :)14:32
rsalvetiand the ethernet led as well14:33
rsalvetijust to know if the system booted or not14:33
jdstrandyeah, all that is illuminated14:33
jdstrandbut it never asked for an ip address14:33
rsalvetiright, so it should be up14:33
jdstrandactually, there are no blinking leds14:34
jdstrandthere is a solid blue, and then the green for the ethernet14:34
jdstrandthe green is blinking sporadically14:34
jdstrandanyway, let me try it from scratch14:34
rsalvetiright, the ethernet led is already enabled by u-boot14:34
rsalvetijust the blue leds are the one that actually shows if the kernel booted or not14:35
rsalvetiif it doesn't work, guess you can mount at your host and look for the syslog14:35
ogra_rsalveti, btw, do we have any docs how we generate that releases.u.c image ?14:35
rsalvetisee if booted in any way14:35
rsalvetihttps://trello.com/c/PUpWXouz/89-stable-release-checkpoints14:38
ogra_(i.e. any ready made scripts or anything)14:38
rsalvetiogra_: ^14:38
ogra_ah, k14:38
ogra_:)14:38
mterryelopio, you have a conflict on https://code.launchpad.net/~elopio/snapcraft/fix1477638-format_strings-2/+merge/26571714:39
Chipacaogra_: sergiusens: http://pastebin.ubuntu.com/11959990/14:43
Chipacaogra_: sergiusens: C wins every time :) but sh and go are tied14:43
Chipacaand they're tied if you're generous towards go ;)14:44
ogra_heh14:44
Chipacago is the only one that made the cpu think14:44
ogra_yeah14:44
ChipacaC manages to do it without context major pagefaults \o/14:45
sergiusensChipaca: do shell I guess14:45
sergiusensChipaca: try python for the kicks :-P14:45
ogra_lol14:45
Chipacai love python, but this is not a dick contest it'd win, ever14:45
ogra_especially not on arm :)14:46
Chipacamicropython, however .... :-p14:46
ogra_hahaha14:46
jdstrandrsalveti: ok, I have a solid blue led then a couple of rapidly blinking blue leds over the usb port14:50
jdstrandthey are now solid14:50
rsalvetihm, kernel booted then14:50
ogra_yeah14:50
jdstrandand now it is pingable14:50
jdstrandok, good!14:50
rsalvetidholbach: how to change https://developer.ubuntu.com/en/snappy/start/ ?14:51
rsalvetiI get "You do not have permission to edit this plugin"14:51
* jdstrand guesses something went wrong with the initial dd14:51
jdstrandit's working now though14:51
dholbachrsalveti, you logged in using /openid/login and all the boxes were ticked?14:52
rsalvetidholbach: yeah14:52
dholbachrsalveti, which part of the page are you trying to edit?14:52
rsalvetidholbach: Getting started with a Beaglebone Black14:53
=== chihchun_afk is now known as chihchun
rsalvetito add the instruction about the sdcard booting process14:53
dholbachlet me see if I can change it14:54
dholbachstrange, it works for me14:55
rsalvetihm, let me try to login again14:55
dholbachmhall119, do you have any idea why rsalveti might get "You do not have permission to edit this plugin" when trying to edit the "Getting started with a Beaglebone Black" section on https://developer.ubuntu.com/en/snappy/start/?14:55
rsalvetistill, even after doing a clean login on another browser14:56
rsalvetiand I was in the developerportal-editors group14:56
mhall119dholbach: because rsalveti is a suspicious character with questionable motives?14:57
rsalvetithat might be true14:57
rsalveti:P14:57
mhall119or because he didn't tell SSO to pass along his team membership?14:57
rsalvetiI did14:58
mhall119or his session cookie has expired14:58
rsalvetimhall119: dholbach: so I can change the top part of that page14:59
rsalvetibut not the bbb piece14:59
rsalvetimaybe that is a different page14:59
mhall119not a different page, but a different content plugin within the page14:59
rsalvetiif I double click at "Getting started with a Beaglebone Black", I get not enough permission14:59
rsalvetiI can change the rpi2 part15:00
mhall119hmmmm, I can save it (I made no changes)15:00
rsalvetibut not the bbb15:00
rsalvetithe vagrant part is also fine15:00
mhall119weird...15:02
mhall119rsalveti: have a call right now,but I'll keep investigating15:03
rsalvetimhall119: np15:08
=== carlo_ is now known as Guest97320
Chipacapitti: a first pass at moving our services to a generator shows that generators are run before the local fs is mounted15:33
pittiChipaca: correct15:33
pittithey run as pretty much the first thing, as they could (and often do) create early-boot units15:34
Chipacapitti: and yet they purport to be for converting one config to systemd services15:34
pittilike fstab :)15:34
Chipacapitti: which is hard to do without a filesystem15:34
pittiChipaca: why? the generated units are in /run/15:34
ogra_tmpfs ftw15:34
Chipacapitti: how do you read the config you're trying to convert?15:34
pittia generator should *only* create units, it shoudln't actually run logic15:34
pittiChipaca: well, you have a r/o root, you can read it?15:35
pittioh, unless you need mounts from fstab15:35
Chipacai don't seem to have that, no15:35
Chipaca:)15:35
pittiwe still don't do the writable-mounts from initramfs, but from the running system, don't we15:35
ogra_yes, you should have the ro root15:35
pittiChipaca: ok, if you need info from fstab mounts, you can't use generators, I'm afraid15:35
ogra_else systemd wouldnt be running ;)15:36
ogra_the binary was started from that ro root15:36
Chipacapitti: can a unit call daemon-reload without the world asploding?15:36
pittiChipaca: yes, that should work; daemon-reload is done all the time15:37
Chipacathat'd work then15:37
pittithat'll re-run the generators15:37
Chipacaexactl15:37
Chipacay15:37
pittibut it won't auto-start the new units, as the initial boot transaction already ran; so you need to do that too15:37
pittior (and I think that makes much more sense), we move the writable mounts that you need into initramfs15:38
Chipacathat does sound nicer :)15:38
pittibooting from a root partition which isn't actually your root partition has caused tons of trouble, you are just experiencing the n+1st one15:38
Chipacawe'll see; right now i think i need to step away from this for a bit again to do some paperwork15:39
Chipacaoh man, +1 to initrd-is-root-is-all :)15:39
pittiyeah, I still remember several hacks because we don't do that, and I'm not even working on snappy :) I guess you guys must have done tons of them15:39
Chipacapff15:40
ogra_pitti, hacks ?15:40
Chipacayou say hacks, i say flexible engineering15:40
pitti:)15:40
ogra_we use the mountroot function of initramfs-tools ... :)15:40
ogra_(we just replaced all of it, but thats a small detail :P )15:41
Chipacathat's like saying "oh, no, it's pure regular python; we just patched it to make func_code writable"15:43
ogra_*g*15:43
Chipaca... except in 3.4 func_code *is* writable15:43
Chipacahah15:43
longsleepogra_: i just got fat corruption with old style u-boot on odroidc ... i guess i should roll a new image asap15:44
ogra_longsleep, +1 ... stop scaring me like that :)15:45
* ogra_ saw uboot and corruption as first word even before reading the whole line 15:45
longsleepogra_: hehe sorry - OLD style uboot only15:45
ogra_yeah :)15:45
ogra_*words15:45
longsleepnow of someone would review my OEM snap so i could test with that as well ;-)15:46
ogra_i wonder if beuno is around to do that :)15:46
longsleepNow that i am testing again is there something i can do to get rid of all the DISCARD mount output on boot (see http://paste.ubuntu.com/11960346/), or is this normal?15:56
ogra_i *think* thats a leftover from the phone code15:57
ogra_but if oyur controller and Sd support it it will speed up your IO15:57
ogra_we should probably make that configuarable so you can turn it off for HW that doesnt15:58
longsleepogra_: yeah - but i think sdcards never support discard15:58
ogra_i had some (not micro) that did in my ac100 netbook (they made a significant difference on that tiny arm device)15:58
ogra_not sure if there are any microSDs that support it at all though15:59
ogra_but i dont think i have seen that error on the BBB15:59
longsleepoh really - i thought sdcards no matter what size do wear leveling internally15:59
ogra_http://paste.ubuntu.com/11960398/16:00
longsleepok similar16:01
ogra_no DISCARD messages16:01
longsleepyes - there are sd controllers pretending to support discard - but still it will not work afaik16:01
ogra_yeah16:02
longsleepthere is a MMC_ERASE command in the SD spec, not sure how this adapts to discard though16:02
ogra_the "couldn't mount" thing is fine, thats just the kernel looping over all possible ext filesystems it knows16:02
longsleepah ok16:03
longsleepogra_: so on the BBB it seems to mount with discard for you?16:03
ogra_no idea why it first tries ext3, then ext2 and only then ext416:03
ogra_yeah, at least it doesnt complain16:04
longsleepok let me check that then16:04
longsleepwhat card is that ?16:04
ogra_apw, isnt there a way to turn off that babbling about the kernel trying out filesystems in the logs ?16:04
ogra_longsleep, some 4GB panasonic one, dunno the exact name ... mediamarkt-cheapo-ware16:05
ogra_says "made in taiwan" pretty prominently at the front :)16:06
longsleepogra_: oh panasonic should be enough, i only seem to have sandisk and sony ones here16:06
ogra_i dont use the good ones for frequent dd sessions ... i have others indeed16:07
ogra_32-128G16:07
ogra_samsung and lexar16:07
longsleepogra_: but even if it would support it, i would still suggest not to use discard mount option. It is much better to regularly run fstrim16:07
longsleepogra_: and those mount fine with discard as well?16:07
ogra_pitti, ^^^ do you know if we do that on snappy16:07
ogra_longsleep, i have never noticed your error during my boots so i guess they at least hide it well (or i simply never noticed :P )16:08
longsleepyeah well, some sd controllers just claim they support discard16:09
ogra_i know we have some userspace stuff to run fstrim regulary ... if the discard option isnt set in fstab16:09
ogra_but i'm not sure we ship that bit on snapy16:09
longsleepso when you run fstrim -v /16:09
longsleepdoes it trim something ?16:09
ogra_/: 533 MiB (558919680 bytes) trimmed16:10
ogra_not bad :)16:10
longsleepok - so try again and see if it is zero now16:10
ogra_yeah, i guess we should make sure to have pitti's fstrim stuff included then16:10
ogra_yup, it is16:11
longsleepok - that seems nice then16:11
ogra_(and drop discard)16:11
longsleepmhn no hdparm on snappy :/16:12
ogra_that was on the list for comfy iirc16:12
longsleepogra_: so for your sdcard, can you try to trim system-a from the pc? Also on the pc, what does 'sudo hdparm -I /dev/$sdcard' show for yours if you find the time.16:19
longsleepogra_: mine looks like this: http://paste.ubuntu.com/11960496/16:19
* longsleep wants to make sure that it is the sdcard and not the kernel or card reader16:19
ogra_ogra@anubis:~/Devel/branches/project-rootstock-ng$ sudo fstrim -v /media/ogra/system-a16:21
ogra_fstrim: /media/ogra/system-a: FITRIM ioctl failed: Vorgang wird nicht unterstützt16:21
ogra_longsleep, seems my USB reader doesnt hand it through16:21
longsleepogra_: so you cannot trim on the PC but on the device?16:22
ogra_yep16:22
ogra_might be the cheapo reader i use on the PC16:22
longsleepok16:22
ogra_hdparm isnt helpful either16:22
ogra_/dev/sdc:16:22
ogra_SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0016:22
ogra_Unknown device type:16:22
ogra_bits 15&14 of general configuration word 0 both set to 1.16:22
ogra_thats all i get from it16:23
longsleepoh16:23
longsleepthat is not much - ok so i need to dig deeper and see if i can get this card to trim on another device - thanks for your help16:23
ogra_thanks or pointin it out, i'll try to catch pitti tomorrow to take a deeper look16:24
longsleepsounds good thanks16:25
ogra_*for pointing ...16:26
* ogra_ needs a break :)16:26
* longsleep grabs a Cuba Libre soon :P16:26
ogra_+116:26
elopiomterry: "each part is build" is wrong, right? It should be built, I think.16:47
elopioenglish is hard.16:47
mterryelopio, uh oh, in my docs branch?  Let me see16:47
ogra_everyone is build !16:47
longsleepeveryone is bluna16:48
mterryelopio, fixed16:48
ogra_yummy !16:48
longsleepNew snappy images for ODROID-C1: https://www.stdin.xyz/downloads/snappy/odroidc/20150729/ if anyone wants to try it before i write release notes tomorrow16:53
elopiomterry: +1, but there seems to be a conflict.16:56
apwre16:56
elopiowell, a wrong merge actually, you have 415-<<<<<<< TREE16:56
apwogra_, lowering loglevel perhaps, or lowering level logged by syslog16:56
mterryelopio, in which branch?16:56
mterryelopio, I just did a merge from trunk, may have screwed up something16:57
ogra_apw, well, without tweaking the loglevel ... i find this annoying on my desktop too :)16:57
ogra_couldnt we quieten the driver ?16:57
ogra_i think it causes a lot of confusion for many people16:58
elopiomterry: https://code.launchpad.net/~snappy-dev/snapcraft/docs/+merge/26624316:58
ogra_"i have an error when my rootfs gets mounted"16:58
apwhmmm really? it has always always done that16:59
mterryelopio, can you pull or branch again?  I think you have old code?17:00
elopiomterry: I'm just looking at the MP on launchpad.17:01
elopiomterry: might be launchpad being crazy.17:01
ogra_apw, i think it only started with ext417:01
ogra_before it didnt loop over ext2 to mount ext3 ... or it simply was quiet when doing that17:01
mhall119rsalveti: can you try editing the bbb section again?17:01
mterryelopio, yeah I don't see why it's doing that17:02
mterryelopio, I mean, I see it doing it.  I just don't understand why17:02
mterryelopio, ok, merged again from pre-req branch, fixed it17:03
elopioyes, looks good now.17:04
=== chihchun is now known as chihchun_afk
mterrylool, when I try your tomcat-webapp-demo, it doesn't seem to run correctly.  journalctl shows "Tomcat started" but no processes are running by the time I get to do a 'ps'18:11
rsalvetilongsleep: still need help with the oem review?18:55
rsalvetiit seems it already landed18:56
rsalvetiso should be all good18:56
rsalvetimhall119: still can't change it19:09
mhall119rsalveti: how about now?19:11
rsalvetimhall119: nops19:12
mhall119rsalveti: log out and back in?19:14
rsalvetimhall119: nops19:16
rsalvetistill You do not have permission to edit this plugin19:16
rsalvetijust this part19:16
mhall119ok...this is very strange indeed19:16
mhall119rsalveti: ok, one more time, log out and back in, refresh the page (clearing cache) and try it again19:17
rsalvetimhall119: yay, finally19:18
rsalvetimhall119: what was it?19:18
mhall119ok, ok, don't get too excited19:18
mhall119rsalveti: I made you a super-user, gives all perms to everything, which I'm revoking now19:19
mhall119rsalveti: log out, back in, and try again please19:19
rsalvetimhall119: same error19:19
mhall119heh, well, that narrows it down a little...19:20
mhall119rsalveti: again please19:20
rsalvetimhall119: nops19:21
mhall119rsalveti: again?19:29
mhall119logging out and back in, refreshing, etc19:29
rsalvetimhall119: seems to be working19:38
mhall119getting closer19:43
rsalvetimhall119: did you fix it or are you trying something else?20:10
mterryogra_, OK...  I'm setting up my beaglebone black.  I booted up an sd card with the latest image.  I'm attached via usb.  But when I try to ssh into webdm.local, it isn't responding.  How do I know where I went wrong?20:11
rsalvetimterry: did you try to boot while holding down the user button?20:12
rsalvetiso it forces it to boot from the sdcard20:12
rsalvetialso, which image are you using?20:12
mterryrsalveti, one published yesterday or so20:13
mterryrsalveti, I have to hold down the user button!  didn't know20:13
mhall119rsalveti: I have you more permissions, now I'm going to take some away until it stops working again20:13
rsalvetimhall119: alright20:13
rsalvetimterry: yeah, that's why I'm trying to update our docs :-)20:13
rsalvetiand fighting that over with mhall11920:13
mterryrsalveti, is it that unlabled button near the sd card?20:14
rsalvetimterry: https://learn.adafruit.com/system/assets/assets/000/008/680/medium800/beaglebone_BeagleBoneBlack.jpeg20:14
rsalvetiyeah20:14
mterryrsalveti, ...  that is not user friendly  :)20:14
rsalvetihold it down and then put power in your board20:14
* mterry loves software20:14
rsalvetionce booted you can erase the u-boot from emmc20:14
rsalvetithen it will automatically load the one from the sdcard20:14
mhall119rsalveti: try again please20:15
mterryrsalveti, is there a doc for doing that?  (I have SO little experience with circuit boards)20:15
rsalvetisudo dd if=/dev/zero of=/dev/mmcblk1 bs=1024 count=102420:15
rsalvetionce booted20:15
mterryk20:15
rsalvetimterry: just the email I sent yesterday atm20:15
rsalvetimhall119: still fine20:16
mhall119rsalveti: and now?20:16
rsalvetimhall119: not anymore20:17
mhall119rsalveti: how about now, working again?20:17
rsalvetimhall119: yes20:17
mhall119ah ha! identified the missing permission20:18
rsalveticool, what was it?20:18
mhall119rsalveti: one last try, I've set the missing permission to the ubuntudeveloperportal-editors group and removed it from your user account, so please try it again and it should (hopefully) still work20:19
rsalvetimhall119: still working20:20
mhall119\o/20:20
mhall119rsalveti: it was the raw HTML plugin permission you didn't have20:21
rsalvetimhall119: interesting20:21
rsalvetimhall119: why just that piece?20:21
mhall119the db setup command gives the editors group permissions to all the Django CMS stuff, but the raw html plugin was something we created, and so it lives outside of the django-cms permissions set20:22
rsalvetioh, alright20:22
mhall119so we need to fix the initdb.py command to include that20:23
loolmterry: Yes, I have to patch the catalina.sh still20:23
mhall119but for now it's fixed in the production db20:23
loolmterry: I didn't figure out why exactly, but I need to remove the "&" in the "start" invocations20:23
rsalvetimhall119: awesome, thanks for helping me out with this20:23
loolmterry: I couldn't really tell who was at fault, so I didn't examine this further; one way out of it, it to fork catalina.sh into the demo snap, but I had already copied the config and wanted to avoid copying the whole tomcat dist over20:24
mhall119rsalveti: no problem, thanks for patiently helping me debug it20:24
mterryMaybe my sd card is bad20:35
mterryWhen I press the user button all I ever get is power light on, but no flashing "activity" lights.  and no webdm20:36
mterryrsalveti, ogra_: ^ tried again with new flashed card.   Is there a way to see what's happening after I boot with the user button pressed?  (definitely different behavior without pressing, but not leading to a working BBB)20:42
* mterry is an idiot!20:43
mterryBBB isn't connected to ethernet20:43
mterryI assume I have to do that20:43
rsalvetiif you don't have serial, yes20:45
rsalvetithe only way to access would then be with ssh20:45
rsalvetiwithout the user button I believe it will end up booting debian instead (which is flashed in the emmc by default)20:46
rsalvetiunless you erased your emmc before20:46
mterryrsalveti, I think I'm booting off the sd card (I get different light behavior than booting without user button)20:49
rsalvetiright20:49
mterryrsalveti, ethernet plugged in didn't seem to let me get wedm.local either (and I rebooted the BBB)20:49
rsalvetimight just be missing the ethernet cable :-)20:49
rsalvetimake sure to press the button when powering up the device, only when rebooting is not enough20:50
rsalvetimight take one minute to boot due cloud-init20:50
mterryrsalveti, powering on is what i meant20:53
mterrynot rebooting20:53
mterryyeah, i've waited several minutes20:53
mterry:(20:53
mterrymaybe I will try the raspberry pi20:54
rsalvetimterry: did you use the pre-built image or did you create one with ubuntu-device-flash?20:54
rsalvetihttp://cdimage.ubuntu.com/ubuntu-snappy/15.04/stable/20150729/20:54
mterryrsalveti, I used http://releases.ubuntu.com/15.04/ubuntu-15.04-snappy-armhf-bbb.img.xz20:55
rsalvetiyeah, should be good20:55
rsalvetiit's the same20:55
rsalvetithat is annoying20:55
rsalvetiwhen it boots here the blue leds blink for a while20:56
mterryrsalveti, I'm sure it's user error.  I've just not done this before20:56
mterryrsalveti, ah interesting.  I get no blinking when I hold down the user button20:56
rsalvetithat means it's not even booting the ubuntu image20:56
mterry:(20:57
rsalvetiwonder if the default debian image got ssh or some sort of it by default20:58
rsalvetilet me check that20:58
rsalvetitry booting without the sd card to see what happens20:58
mterryrsalveti, well, booted without the user button anyway.  ethernet in.  Do you know what the default address is?20:59
* mterry will resume this later21:01
rsalvetiNote: Depending on your internal network these may work out of the box21:02
rsalvetiApache, Port 80: http://arm.local/ (Bone: via usb) http://192.168.7.221:02
rsalvetiSSH, Port 22: ssh debian@arm.local (Bone: via usb) debian@192.168.7.221:02
rsalvetiGetty, Serial Port21:02
rsalveticheck http://elinux.org/BeagleBoardDebian as well21:03
mterryrsalveti, found 192.168.7.2 online yeah21:03
mterryrsalveti, I can log in to default debian image21:04
rsalvetinice21:04
mterryso it's not the board or the ethernet.21:04
rsalvetisudo dd if=/dev/zero of=/dev/mmcblk1 bs=1024 count=102421:04
mterryrsalveti, i checked the shasum of my downloaded image21:04
rsalvetithat will kill the internal emmc u-boot21:04
rsalvetiand will force it to always boot via the sdcard21:04
mterryrsalveti, ok.  so no user button now21:04
rsalvetiyeah21:04
mterryrsalveti, hrm.  no blinking lights  :)21:05
rsalvetimakes no sense21:06
rsalvetimaybe try running dd again21:06
rsalvetisudo dd if=ubuntu-15.04-snappy-armhf-bbb.img of=/dev/mmcblk0 bs=32M21:06
mterryrsalveti, I already did that over once...  :-/  When I plug it into my laptop, I see all the partitions.  It feels right21:07
mterryrsalveti, but I can try again, doesn't hurt21:07
rsalvetiunless it's an issue with the sdcard or the reader in the bbb21:08
rsalvetior a different beagle revision21:08
rsalvetimterry: give http://cdimage.ubuntu.com/ubuntu-snappy/15.04/stable/20150609/ a try as well21:08
rsalvetiif it doesn't work, that is our previous image21:09
rsalveticontains a different bootloader21:09

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