/srv/irclogs.ubuntu.com/2015/10/21/#snappy.txt

=== bschaefer_ is now known as bschaefer
=== chihchun_afk is now known as chihchun
dholbachgood morning06:36
clobranogood morning all06:58
fgimenezgood morning07:28
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
ogra_mvo, the resize script logs to /run/initramfs/resize-writable.log08:03
mvoogra_: right, I don't get a shell when this happens. is there a way to make it dump the log on the screen or the serial port?08:07
ogra_hmm, no08:07
mvook, not important right now, its a bit of a courner case that partition in the middle of the disk disappear08:07
ogra_(i mean, beyond hacking the script indeed)08:08
ogra_thats on a GPT system i assume ?08:08
Chipacamvo: mo'in!08:25
Chipacamvo: wrt "autovivifying", is it the word you didn't know of, or the concept?08:25
mvohey Chipaca - a word I did not know of08:35
Chipacaah :)08:35
Chipacai blame perl08:36
mvoindeed08:36
ogra_poor perl08:41
JamesTaitGood morning all; happy Wednesday, and happy Back To The Future Day! 🙌 The future is now!08:55
ogra_not only now ... it is TODAY !08:55
Chipacaeverybody's going on about hoverboards, and all i want is climate control08:59
* Chipaca tweets it09:00
ogra_you could team up and do climate controlled hoverboards though09:00
Chipacasell hoverboards to londoners, with a note saying they only actually hover when it's dry09:03
Chipacarake in millions09:03
Chipacaactually be selling roof tiles09:03
morphisanybody had time to have a look at https://bugs.launchpad.net/snappy/+bug/1501638?09:09
ubottuLaunchpad bug 1501638 in Snappy "Removing a snap doesn't clean up generated files" [Undecided,New]09:09
morphiswith that we see also https://bugs.launchpad.net/snappy/+bug/145284809:12
ubottuLaunchpad bug 1452848 in Snappy "snappy fails to update snap if previous version systemd stop action failed" [Critical,Incomplete]09:12
morphisjoc_: ^^09:14
dpmdavidcalle, morning!09:17
dpmdavidcalle, do you have everything you need to start with the snappy docs IA work?09:17
davidcalledpm o/09:17
davidcalledpm, yep09:17
dpmdavidcalle, excellent, thanks09:19
asacogra_: mvo: anything i need to do on milestone creation still?09:21
ogra_asac, not really09:25
ogra_and welcome back daddy !09:25
Chipacamorphis: do you have steps to reproduce bug 1452848?09:26
ubottubug 1452848 in Snappy "snappy fails to update snap if previous version systemd stop action failed" [Critical,Incomplete] https://launchpad.net/bugs/145284809:26
morphisChipaca: yes09:26
Chipacamorphis: could you add them to the bug please?09:27
morphisyes09:27
morphisjoc_: does https://bugs.launchpad.net/snappy/+bug/1452848/comments/4 apply to what you did to end up with that bug?09:28
ubottuLaunchpad bug 1452848 in Snappy "snappy fails to update snap if previous version systemd stop action failed" [Critical,Incomplete]09:28
morphisChipaca: what about https://bugs.launchpad.net/snappy/+bug/1501638 ?09:29
ubottuLaunchpad bug 1501638 in Snappy "Removing a snap doesn't clean up generated files" [Undecided,New]09:29
joc_morphis: yes sounds about right09:31
morphisgood09:31
Chipacamorphis: i haven't looked09:32
Chipacamorphis: can you put the generated snap somewhere? I don't have vivid.09:35
ogra_mvo, i uploaded an initramfs-tool-ubuntu-core to the PPA that will print all resize output to the console if "debug" is set on the kernel cmdline09:37
ogra_(next image should have it)09:37
Chipacamorphis: I'm not seeing that, here09:38
Chipacamorphis: what are you running it on?09:38
morphisChipaca: joc_ saw it09:39
Chipacajoc_: what are you running it on?09:41
mikendholbach: Hi there! mvo says you're the person to chat with about getting a click-reviewers-tools branch landed? I've got this MP which intended to just add a new test which *didn't* use any mocks, but ended up refactoring the test base class to get rid of a small test isolation issue. More details on the MP if you've time: https://code.launchpad.net/~michael.nelson/click-reviewers-tools/add-test-without-mocks/+merge/27450910:09
asacogra2: thx :)10:28
dholbachmiken, I'll have a chat with jdstrand about landing it later on10:39
mikenGreat, thanks dholbach10:43
Chipacafgimenez: which is the image that doesn't bring up eth on first boot in kvm?13:12
fgimenezChipaca, 15.04/edge from 212 at least, 209 was good13:13
dholbachjdstrand, are https://code.launchpad.net/click-reviewers-tools/+activereviews MPs you want to give an extra thorough review yourself or are you fine with maybe pindonga and myself reviewing them?13:42
dholbachsergiusens, tedg: shall we do a clinic at UOS?13:53
tedgsergiusens: Does that make sense? I thought UOS was for planning?14:00
sergiusenstedg, uos has evolved14:00
* tedg can't keep track of what the kids are doing these days14:01
jdstranddholbach: they all either have issues I need to comment on or need a thorough review14:16
dholbachok14:16
dholbachthanks jdstrand14:16
dholbachmiken, mvo, shawnwang: ^14:17
mvowuuut, issue :P ?14:17
mvomy branch has no issues14:18
dholbachmvo, typos maybe :-P14:18
mvolol14:18
* dholbach hugs mvo14:18
dholbachtedg, sergiusens: so yeah, there's planning and there's "show & tell" sessions14:33
dholbachI think at UOS we're going to get some additional eyeballs14:34
ogra_crap14:45
ogra_seems snappy update on the rpi is not so happy14:45
=== fginther` is now known as fginther
Chipacapitti: you got a bit?15:12
ogra_or a byte :)15:15
mvopitti: hi, can I ask silly systemd questions again? so I have a snappy system (wily) here that tells me startup has finished but I get no getty on tty1, only on 2-6. should I be concerned?15:21
cmkany1 get snappy GUI on snappy desktop to work?15:38
ogra_cmk, i think tedg did a QML app on top of Mir once15:40
ogra_and no. desktop is still a bit away15:40
tedgYeah, but that wasn't snappy desktop.15:41
tedgJust snappy core.15:41
ogra_well, it was a snappy GUI :)15:41
ogra_(app)15:41
ogra_ppisati, hmm ... i just accidentially flashed a rpi image that still had 3.19 ... ran snappy upgrade which worked fine, but after reboot i end up with: http://paste.ubuntu.com/12886195/15:42
ogra_doesnt even uncompress 4.215:42
ppisatiogra_: 99% you have to update the dtb15:43
cmkk thx15:43
ogra_ppisati, hrm15:43
ogra_thats tricky since the dtb doesnt actually liuve in the device tarball but in the oem (bootloader) snap15:44
ogra_also then we wouldnt be able to roll back15:44
ogra_mvo, sergiusens ^^^ thats a problem15:45
ogra_(nothing we need to tackle today but the RPi HW reqs wont work with the current snappy design as soon as we get a major bump of the kernel)15:45
ppisatiogra_: don't we handle the rollback via the a/b thing?15:46
ogra_and thanks to vfat i cant just use a link to the a or b dtb15:46
ogra_ppisati, yes, after the blob loaded the dtb15:46
ppisatiogra_: and since a/b doesn't work in rpi2 due to the bcm bootloader15:46
ogra_a b works fine15:47
ogra_this is why we have uboot15:47
ogra_it handles all that15:47
ogra_but the blob loads the dtb before we load uboot15:47
ogra_and it doesnt load it from a or b either but from /boot15:47
ppisatiogra_: right, so my point was that we hanlded going back and forth using two different kernels/initrd/dtb15:47
ogra_not on the Pi15:48
ppisatiright15:48
ogra_because the dtb is loaded by the blob15:48
ppisatisince we use the bcm bootloader15:48
ogra_yeah15:48
ppisatiso that feature is broken there15:48
ogra_which isnt acceptable for a fully supported snappy arch15:48
ogra_rollback needs to work15:49
* ogra_ sighs15:49
ogra_the blob also doesnt knwo if we boot a or b ... because the logic for that happens later15:50
tedgvmayoral: Trying to think about how we explain better the whole deb vs. snap thing on the mailing list. Here's my thought dump as a graphic, thoughts?  https://usercontent.irccloud-cdn.com/file/26hwfJt2/deb-vs-snap15:52
vmayoralhi tedg, that's good one15:54
vmayoraltedg: in a general way, that's what Snappy (AFAIK) is doing15:54
ogra_ppisati, oh ! ignore me, thats probably a red herring ... i just see it installed the -generic kernel during the upgrade :P15:55
vmayoraltedg: ROS-wise, there's the  issue of "extending" a robot's behavior based on other snaps. I've been doing a bit of thinking on that but haven't been able to come up with anything solid but a few hacks15:56
vmayoraltedg: will keep thinking though :)15:56
ogra_so the hard hang at uncompressing  definitely comes from that15:56
ogra_(wont fix the dtb issue indeed)15:56
=== chihchun is now known as chihchun_afk
vmayoraltedg: thanks for clarifying the OSRF claim btw, appreciate that.15:56
tedgvmayoral: Cool, no problem, sorry I misspoke originally.15:59
vmayoraltedg: I'm interested about your thoughts on the snappy environment for ROS15:59
tedgOverally I'm worried people are mis-understanding Snappy and so we're not communicating.15:59
tedgOverall16:00
tedgFeel like we need some new language there.16:00
tedgvmayoral: For ROS I'm kinda leaning towards thinking about ROS2 and keeping ROS1 contained in a snap. Which we can then support for ROS2 (i.e. bundle the bridge)16:01
vmayoraltedg: that'll be sweet and pretty smart. ROS 2 is still on its infancy but it'll take over really soon and will define the next 10 years of robotics16:03
vmayoral(that's my personal thinking at least)16:03
vmayoraltedg: my feeling is that there're some things that quite don't fully match, how do you see the following scenario: "Erle-Spider is delivered based on Snappy with a single snap containing roscore and our ROS packages. A developer in Japan wants to create a visual odometry snap and make money out of it. How can he do it without hacking the snap released by us?"16:04
tedgvmayoral: I'll start by saying I'm relatively new to ROS :-)16:05
tedgvmayoral: But it seems to me that's basically the problem ROS2 is trying to solve.16:05
tedgvmayoral: In that in ROS1 you need all kinds of access and assumptions about the underlying system to do that.16:05
tedgvmayoral: Where ROS2 seems to think about associations and connection points between robots, which could be internally as well.16:06
vmayoraltedg: i'd say the same applies to RO2. ROS 2 replaces the communication layer by DDS and adopts a standard but several problems still will apply with the snappy aproach16:07
vmayorallet me put it this way:16:07
vmayoraltedg: "Erle-Spider is delivered based on Snappy with a single snap containing roscore and our ROS packages to make it move around. In a later stage, Erle Robotics deliver a 'visual_odometry' snap that provides odometry information to developers exposed in a new ROS node. A developer in Japan wants to create an app with Erle-Spider an for that he wants to use visual the odometry snap released by Erle Robotics."16:09
vmayoralHow do you see this happening?16:09
ogra_your odometry data would have to be exposed on a (domain|network) socket ... from where he picks it up16:10
vmayoralogra_: but since snaps can't depend on snaps, there should be a way to enforce it, shouldn't it?16:10
tedgvmayoral: So I think that there will have to be some amount of frameworks, and frameworks are going to have to know something about the applications that use them.16:11
vmayoralogra_: i mean, right, UDP comms should be allowed between snaps, but dependencies aren't AFAIK.16:11
ogra_right16:11
tedgvmayoral: For instance, an app on the desktop needs to install and setup its icon. Same idea.16:11
tedgvmayoral: There'll be a certain amount of "handshaking," declarative of course, between the two.16:12
vmayoraltedg: mmm well that convinces a bit. Not sure, i'd like to do more thinking about it16:19
vmayoralwhat seems clear to me are the benefits of adopting Snappy on a final (commercial) product.16:19
vmayoralThe fact that you guys deal with security is actually a great complement to the lack of it in ROS16:19
tedgYes, I was a little shocked by that when I started researching how ROS works :-)16:27
ogra_well, dont blame ROS16:28
ogra_after all this is how *all* embedded development worked for the past 20-30 years16:28
ogra_(which is why it is so easy to hack into nuclear power plants or industrial controllers today :P )16:29
tedgLet's not talk about that, I want to sleep tonight :-)16:36
ogra_haha16:37
ogra_http://themcphails.uk/snappy.jpg16:44
kgunntedg: ok, back to our discussion yday, configflags is supported by cmake....so i'd suppose i type something like snapcraft build Boost_DIR=./parts/mir-demo-server/install/usr/lib/x86_64-linux-gnu/16:47
kgunnjust checking incantation syntax16:47
kgunnwhat would it be16:47
tedgkgunn: No, no, a field in the snapcraft.yaml16:47
tedgkgunn: plugin: cmake\nconfigflags:\n-Boost_DIR=./parts/mir-demo-server/install/usr/lib/x86_64-linux-gnu/16:48
tedgkgunn: (whitespace left as an exercise for the reader)16:48
kgunntedg: lol @whitespace16:48
kgunnthanks16:48
kgunntedg: so i added like so  https://pastebin.canonical.com/142330/ but got a16:53
kgunnIssues while validating snapcraft.yaml: mapping values are not allowed here on line 18 of snapcraft.yaml16:53
kgunnso possibly failed your whitespace quiz :)16:53
tedgkgunn: Yes, you did :-)16:53
ogra_heh16:54
tedgkgunn: Two spaces away from configflags.16:54
ogra_and you thought python was insane, eh ?16:54
tedgYeah, I find writing YAML so error prone. I really don't like it most of the time.16:55
ogra_well, json isnt that much better16:55
kgunntedg: 2 spaces away from configflags ? sorry...more context?16:55
ogra_unless you have a properly highlightingv editor that shows the matching bracket .... and a gigantically big screen16:55
tedgkgunn: http://pastebin.ubuntu.com/12886920/16:57
tedgogra_: Being able to use '%' in VIM helps me there.16:57
kgunntedg: damn it! :)16:57
ogra_yep16:57
tedgThough, I have a gigantically big screen too ;-)16:57
ogra_i only have three vertically small ones16:58
ogra_which doesnt exactly help with that issue16:58
pittimvo: "systemctl status -l getty@tty1.service"?17:09
=== inaddy is now known as tinoco
loolsergiusens: do you have a recent example of custom plugin?17:54
loolsergiusens: I've put x_custom.py under parts/plugins, but it's not finding the custom_cmd option in self.options at runtime17:55
mvopitti: many thanks, I think I found the underlying issue, has to do with writable-paths18:01
sergiusenslool, look at the last snappy clinic18:19
sergiusens:-)18:19
sergiusenslool, name the module x_custom.py but call it plugin: custom18:19
loolsergiusens: I figured the schema thing out18:19
sergiusenslool, show me your plugin18:19
loolsergiusens: I  needed a schema18:20
sergiusenslool, ah, there we go18:20
sergiusenslool, yeah18:20
loolI took it from the autotools plugin18:20
sergiusenslool, the base plugin is a lot more simple in 0.4 btw18:20
sergiusenslool, http://bazaar.launchpad.net/~snappy-dev/snapcraft/core/view/head:/snapcraft/__init__.py18:20
sergiusenselopio, https://code.launchpad.net/~sergiusens/snapcraft/1481122/+merge/275237 mind looking at that?20:23
jdstrandChipaca: hey, fyi, I had some time today to look at the click-apparmor removal. I decided to go with the go rewrite in the same pass since it occurred to my that cranking up the python interpreter twice (once for apparmor and once per seccomp) was going to really stink on arm21:20
jdstrandtwice per app within the snap21:20
jdstrandthat was not going to be nice21:21
jdstrandChipaca: so, I have some code, nowhere near ready for merging, that actually generates apparmor and seccomp policy for security-template/caps and security-policy21:22
jdstrandChipaca: but when I'm done, .click/ will be gone, the .json files will be gone, aa policy will move to /var/lib/snappy, and in general everything is going to be clean and nice21:24
jdstrandlike how seccomp is now. but even that is going to be better cause we won't use sc-filtergen any more and the policy generation logic will have a clean internal api21:25
Chipacajdstrand: yaaay!21:25
jdstrandso snappy install is cleaned up too21:25
Chipacajdstrand: i needed this news :)21:25
Chipacanot because i was this desperate for click-apparmor removal21:25
Chipacabut because it's been a long, sucky day21:25
Chipacaand this is good :)21:25
jdstrand:(21:25
jdstrandglad I could give you some good news21:26
jdstrandit is going to take quite a bit of work for me to get everything in order, but I have a plan and even some code that is doing good things21:26
jdstrandso, hopefully in a couple weeks I'll have something to review21:27
jdstrandChipaca: oh, and the weird security-override is going to be revamped21:28
jdstrandChipaca: you won't specify a json file any more. you'll express the overrides directly in the package.yaml21:28
jdstrandeg:21:28
Chipacajdstrand: that sounds nice21:28
jdstrandbinaries:21:28
jdstrand  foo:21:28
jdstrand    security-override:21:28
jdstrand      apparmor:21:29
jdstrand        read-paths: [ /foo, /bar ]21:29
jdstrandthat sort of thing21:29
jdstrandso it is all going to be nice and clean :)21:29
Chipacaexcellent21:29
jdstrandsecurity-override has been bugging me for a while21:30
jdstrandwell, really, all of it has21:30
jdstrandanyhoo21:30
jdstrand:)21:30
Chipaca:)21:30
Chipacathanks21:30
Chipacaogra_: elopio: so, wrt 15.04 edge not bringing up eth0, i have a fix21:31
Chipacaogra_: elopio: https://code.launchpad.net/~chipaca/snappy/firstboot-ordering/+merge/27524421:31
Chipacaogra_: elopio: but that's not the whole story21:31
Chipacawe also need to tweak cloud-init's service file21:31
Chipacaogra_: that's where i think you come in? (not sure) (i know you just luuurve cloud-init)21:32
Chipacai'll comment on that mp so it isn't lost21:32
Chipacaand then zz21:32
cmkhi21:51
cmkogra are you online?21:52
loolsergiusens, beuno: what's the quickest way to download a snap from the public store?21:56
Chipacalool: do you know the package name?21:59
Chipacalool: if you do, then, https://search.apps.ubuntu.com/api/v1/package/hello-world.canonical22:00
Chipacalool: and look for anon_download_url22:00
loolChipaca: yup22:00
Chipacalool: GET $( GET https://search.apps.ubuntu.com/api/v1/package/mir.mvp-demo | jq -r .anon_download_url )22:01
Chipacalool: for example22:01
loolChipaca: thanks22:01
Chipacalool: not a long-term solution as anon downloads should go away at some point22:02
manikChipaca: there's no URL to download from at the hello-world link22:04
manikit just begins downloading directly22:04
Chipacamanik: sorry, what?22:04
cmkanon_download_url: "https://public.apps.ubuntu.com/anon/download/canonical/hello-world.canonical/hello-world.canonical_1.0.18_all.snap",22:05
manikChipaca: my bad, found it22:05
Chipacak. g'night.22:05
cmkon ubuntu core 14.04 edge... i can see a cursor, but the screen is black22:07
cmk*snappy ubuntu core22:07
cmksuggestions?22:07

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