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

=== verterok` is now known as verterok
=== balloons is now known as Guest87130
=== bigcat__ is now known as bigcat
zygagood morning06:37
zygamvo: hey, did you have a safe trip home?06:39
dholbachgood morning06:49
fgimenezgood morning07:09
clobranomorning o/07:26
Chipaca*yawn*08:00
Chipacamorning!08:00
Chipacamvo: o/08:27
mvohey Chipaca! good morning08:29
Chipacamvo: welcome back to the world of the living mr mvo!08:29
Chipacamvo: hope you've been able to rest and snuggle the family :)08:29
mvoChipaca: :) thanks! I did and it was very nice. I am currently write down all that I can remember from the sprint08:30
Chipacamvo: good idea. carry on. :)08:30
mvoChipaca: is there anything I can do for you?08:31
mvoChipaca: I guess code reviews?08:31
mvoChipaca: (haven't really looked yet :(08:31
mvoChipaca: I will certainly need a break from spec writing at some point08:31
Chipacamvo: don't worry about it *until* you need that break :)08:32
Chipacai'm in no hurry08:32
Chipacapuzzled by things that are nil not being equal :)08:32
mvoChipaca: heh :)08:33
Chipacai've got thing != nil, but thing == (*snappy.SnapPart)(nil)08:34
Chipaca*head scratch*08:34
Chipacaon the upside, tests are hitting some weird corner cases :D08:34
mvowoah08:34
Chipacaah, i know why; thing is an interface08:35
Chipacainterface value08:35
Chipaca\o/08:36
JamesTaitGood morning all; happy Monday, and happy Teachers' Day! 😃08:54
dpmdholbach, it seems now LP can build snaps  http://blog.launchpad.net/general/launchpad-news-september-201510:39
dholbachyep, great news, isn't it? :-D10:39
dholbachI'm just finishing my patch pilot shift today, then I'll go and play around with it and then write a blog post :)10:40
dpmcool :)10:47
Chipacawith bug 1487010 still stuck, that means no race detector for go in wily, right?10:56
ubottubug 1487010 in golang (Ubuntu) "please upload new package to reenable go's race detector on wily" [Undecided,In progress] https://launchpad.net/bugs/148701010:56
=== chihchun is now known as chihchun_afk
squllHello, I have a .snap file. We are wondering how to run this?12:56
mvosqull: run "snappy install your-snap" on a snappy system, snaps will only work on snappy systems, i.e. http://ubuntu.com/snappy12:59
Chipacamvo: any chance of a review on https://code.launchpad.net/~chipaca/snappy/activate-package/+merge/272716 ?13:30
Chipacamvo: http://i.imgur.com/UnlYwpF.jpg13:31
squllbuilt a snappy file, still no clue on running that13:31
squllAnyone got tips?13:31
Chipacasqull: how did you build it?13:32
squllsnappy build .13:33
Chipacasqull: and how did you try to run it?13:33
squllWe still have no clue on even how to run that13:34
Chipacasqull: and, more interestingly for me13:34
Chipacaok13:34
squllAnd Googling 'How to run a snappy app' gives me alot of information on building13:34
squllBut I am not really seeing a command or something like that to run it13:34
Chipacasqull: did you see mvo's reply to you the first time you asked?13:34
Chipacasqull: how do you run an apk?13:34
squllNo I  did not13:34
Chipaca<mvo> squll: run "snappy install your-snap" on a snappy system, snaps will only work on snappy systems, i.e. http://ubuntu.com/snappy13:34
squllYes I saw that13:35
squllWe did that indeed.13:35
squllsnappy versions gives us a list with that name in the list13:35
squllBut then I want to run it (it gives me data when executing it)13:35
Chipacasqull: sorry, i'm not sure i understand13:37
Chipacasqull: did you install the snap in a snappy ubuntu core system?13:37
squllYes we did13:37
squllWe have an Erle Rover (robot) with an small pc on it running snappy Ubuntu Core13:38
Chipacasqull: ok13:38
Chipacasqull: and does your snap have binaries, services, both, ...?13:38
squllWe are able to connect to the snappy app webinterface where we were able to run the HelloWorld snap. We find a hello-world.canonical file after some searching. That is indeed running and echo'ing hello world as expected.13:39
Chipacasqull: does *your* snap, the one you built, have binaries, services, both, ...?13:40
squllSo then we go along and follow the tutorial of the vendor of our robot containing a snappy which prints out the date.13:40
squllNo it does not13:40
Chipacawhat prints out the date?13:40
squllWell, we just don't really understand what we should expect after like a succesful build. Do we get a .canonical file or somthing?13:40
squllIt's just some C++ code, let me look up if there is a public github13:41
Chipacasqull: hold on13:41
Chipacasqull: let's slow down a bit13:41
Chipacasqull: you created a snap by following the tutorial and doing "snappy build ."13:41
squllYes we did.13:42
Chipacasqull: you then copied the snap to your snappy system13:42
=== Odd_Blok1 is now known as Odd_Bloke
Chipacasqull: and did "sudo snappy install your-snap.snap"13:42
squllWe moved it to /home/ubuntu (as the tutorial tells us to do)13:42
Chipacasqull: ah, you built it on the snappy system itself?13:43
Chipacasqull: and did you then install it?13:43
squllYes. We are ssh-ing into the system and indeed building it on the system itself13:44
Chipacasqull: sorry to repeat, but: did you, after building the .snap, install it?13:45
squllOkay, hold on. We seemed to build it and let the robot blink a LED as we expected. But the whole idea of snappy is vague to us13:46
squllWe received a script file and after executing that, the led blinks.13:47
mvoChipaca: yes, I do that next, sorry for the delay13:47
=== davmor2_ is now known as davmor2
tedgAnyone know the link for sabdfl's talk at ROSCon?13:48
Chipacasqull: I'm not sure whether you think you've answered my question, because I still feel you haven't13:48
squll@tedg: Not found it yet, I think you should keep an eye on the social media platforms of OSRF13:49
nothal_squll: No such command!13:49
Chipacamvo: thanks13:49
squllChipaca, what question you mean exactly?13:50
Chipacasqull: did you, after building the .snap, install it?13:51
squllWe executed 'snappy install status-led-XXX.snap'. Is that what you mean by installing?\13:52
tedgFunny that it was apparently live streamed, but when trying to get things the old fashioned recorded way that proves difficult :-)13:52
Chipacasqull: yes.13:52
Chipacasqull: ok, so "snappy list" shows that snap, then13:52
squllYes we did execute that command13:52
squllYes it does13:52
Chipacasqull: so. If your snap exports binaries, you should now have things that start with status-led-* in your PATH13:53
Chipacasqull: if you enter status-led- and hit <tab> they should come up13:53
Chipacaumm. was "-" valid as part of a snap name? I don't remember. Anyway, not important at this stage.13:54
Chipacasqull: if, on the other hand, your snap exports services, they would show up in "snappy services status"13:54
Chipacasqull: sorry, snappy service status13:54
squllWe find an binary (what is a script) contain some shellscript13:56
squllIt uses the command aa-exec which needs a profile which can not be found13:56
Chipacasqull: that means your snap is not a good snap :)13:57
squllBut it is a safe app thing, we know it is safe13:57
Chipacasqull: could you pastebin your package.yaml and what you get when you run the script?13:58
Chipacasqull: also, could you point me at the tutorial you followed, if it's online?13:59
squllCan't find the tutorial quickly. Package is just as it should14:02
squllHow do I officially run a snappy app? Just as a command?14:02
Chipacasqull: I'd expect most snaps at this stage to have services, with commands used only for debugging, introspection, or integration purposes14:04
Chipacasqull: as to "official", as long as you're using the services (through whatever interface they provide) or binaries (through the wrappers in /apps/bin), that's about as official as it gets14:05
Chipacasqull: as to your snap being "just as it should", if it were exactly as it should you wouldn't get apparmor complaining14:07
squllWell I look at the  default example of a package.yml14:08
squllThe package.yml is following that specification14:08
Chipacasqull: which is the default example of a package.yml?14:09
elopioplars: any news with the lab?14:53
plarselopio: I'm having some annoying issues with logstash, and with rpi, but otherwise things are going ok14:54
plarselopio: last I tried, the logging was working this morning, so if you want to retry your job I can look (unless you were able to get output some other way already)14:55
elopioplars: I will run it.14:55
plarselopio: actually14:55
plarselopio: did you already run it this morning?14:55
plarselopio: someone ran something on bbb14:55
elopioplars: it's scheduled to run daily, but jenkins chooses the time.14:56
elopioso yesterday, at some point, it ran.14:56
plarselopio:  https://www.irccloud.com/pastebin/J5R78ELe/14:56
dholbachcan anyone review https://code.launchpad.net/~dholbach/snapcraft/fix-pep8-and-doc-indentation/+merge/273195?14:58
* Chipaca looks15:00
Chipacadholbach: actually, standup; after that15:00
dholbachcool thanks!15:00
elopioplars: ok, that's one step closer. Still it doesn't capture those errors in the results. It should.15:00
elopioplars: also, it should exit with != 0, but it says PASS.15:01
plarselopio: yeah, that's a change that just landed this morning, I can redeploy with the new code in just a bit if you'd like15:02
elopioplars: that would help a little.15:02
elopiothat output for some reason hides everything that happened on the actual run. /me checks that.15:03
plarselopio: it looks like you are pointing at a bad path15:04
elopioplars: where?15:04
plarselopio: I guess perhaps it would be there if the earlier go bits ran15:05
elopioplars: no, that's because adt-run didn't execute.15:05
elopiothe error is before, when we build the test binaries.15:06
elopioplars: could you install this two?15:06
elopiosudo apt-get install golang-go-linux-arm15:06
elopio    sudo apt-get install gcc-arm-linux-gnueabihf15:06
plarselopio: sure, I'll wait for the job on bbb-5002 to complete and redeploy both15:08
plarselopio: try again?15:40
plarselopio: I also installed the latest autopkgtest from http://launchpadlibrarian.net/218441943/autopkgtest_3.17.2_all.deb15:40
elopioplars: thanks. Running.15:41
tedgbarry: You know, to help with the Python 3 transition, you guys should make it so the Python2 documentation isn't indexed by search engines.15:47
Chipacadholbach: long branch, but an easy ready :) lgtm.15:48
Chipacaeasy read*15:48
dholbachthanks Chipaca!15:48
barrytedg: maybe!  i almost never see py2 docs.  i have a nice chrome search shortcut for getting to the latest py3 library docs15:50
tedgbarry: Ah, the problem is the py2 ones come up first almost always, they're the most linked to.15:51
barrytedg: i'm not sure how we can influence that, other than making those pages off limits to robots, which seems like a heavy hand15:52
barrytedg: i'd go more with public shaming for even thinking about py2 :)15:53
tedgbarry: "To see this documentation please first watch this video on why you're a bad person if you click 'next'."15:54
barrytedg: love it! :)15:54
wigglewormcan someone point me to a list of basic snappy commands to get my nic running?15:57
wigglewormalso can someone tell me how to list the installed pci devices - lspci does not seem to work or be installed15:58
Chipacawiggleworm: not without a lot more info on what you've got, and maybe not even then :)16:02
Chipacawiggleworm: your nic as in a network interface?16:02
Chipacawiggleworm: wrt lspci, ls /sys/bus/pci/devices might be a good place to start16:03
wiggleworm@Chipaca: I ran the ls command and is shows a lot of device IDs but not "human readable" names16:10
nothal_wiggleworm: No such command!16:10
wiggleworm@nothal_: thanks :) - thats why I am here - I am looking for a list of basic network commands16:11
nothal_wiggleworm: No such command!16:11
wigglewormI know that I have a wireless card and an ethernet card but I do not know the commands to bring them up16:12
Chipaca@dance for us16:13
nothal_Chipaca: No such command!16:13
* Chipaca thinks nothal_ is no fun anymore16:14
* nothal_ thinks Chipaca is no fun anymore16:14
Chipacawiggleworm: is the (ethernet) network plugged in?16:14
Chipacawiggleworm: if so it should come up on its own16:14
Chipacawiggleworm: for wireless i'm not sure; i think we ship enough bits that it should be possible, now, to bring up a wireless network, but i wouldn't know how to go about it. I'd start reading interfaces(5) and go from there.16:16
wiggleworm@Chipaca: thanks, I will start there16:21
nothal_wiggleworm: No such command!16:21
elopioplars: things are happening, because it has been running for more than 15 minutes.16:26
dholbachelopio, do you know which version of pep8 is running on the tarmac instance? (https://code.launchpad.net/~dholbach/snapcraft/fix-pep8-and-doc-indentation/+merge/273195)16:27
elopiodholbach: let me check.16:28
plarselopio: I never saw any output from it, but the last run I see seems to have exited with a rc of 216:31
elopiodholbach: 1.4.6-1.1build116:34
dholbachah, ok, so that's trusty's pep8...16:35
elopiodholbach: yes, tarmac is trusty.16:35
elopioshould I install vivid's pep8?16:35
dholbachI'll see what I can do16:35
dholbachthat helps already, thanks16:36
elopiodholbach: it would be nice to have the tests passing in both. But I prefer to land your branch soon, so let me know if it is bothering you too much.16:36
dholbachI'll see if I can make it conform to both16:37
elopioplars: now it says failed: http://10.55.32.109:8080/job/snappy-daily-rolling-bbb/26/console16:50
elopiostill no results. Can you please paste the output?16:50
elopiothis one must have run something because it took 1 hour to poll the result.16:51
plarselopio: ^16:51
plarselopio: Command failed, rc=216:51
plarsno output16:51
elopioplars: hum, does it timeout?16:52
plarselopio: it didn't take that long to die, only about 12 min16:52
plarselopio: in my logs I show that it was done trying to run after 12 min16:52
elopioplars: are you looking at jenkins-snappy-daily-rolling-bbb-26669ff7f4-ddb9-4dcc-b836-28b879072a26 ?16:52
elopioif it took only 12 min, there's something wrong with the results in spi. The job checked it 4 times.16:53
plarselopio: I have no idea how long it takes for spi to register the results16:53
plarselopio: but on my end, it's been done for a very long time16:53
plarsafk for a few, brb16:54
dholbachelopio, it works for me in both now - maybe you want to take another look? https://code.launchpad.net/~dholbach/snapcraft/fix-pep8-and-doc-indentation/+merge/27319516:57
elopiodholbach: thanks a lot17:01
dholbachthanks for confirming and reviewing it initially :)17:01
elopioI've been wanting to do this for a long time, but mterry doesn't like 80 column lines17:01
elopioyou doing it while he's no longer with us was the perfect solution :D17:02
dholbachI had no idea :)17:03
mterryelopio, :)17:03
mterry80 column lines are an historical accident17:03
elopiodholbach: I know. I didn't say a word ;)17:03
elopiomterry: we still love you and miss you.17:04
mterry:)17:04
* dholbach hugs you all17:04
dholbachhave a great rest of your day everyone!17:08
=== bigcat is now known as bigcat[s3]
elopioouch, dholbach had a typo.17:14
wigglewormQuestion about webdm - if its running should I be able to see port8080 in LISTEN mode17:21
Chipacawiggleworm: webdm uses port 5200, not 808017:23
Chipaca4200*17:23
=== DanChapman_ is now known as DanChapman
Chipacawiggleworm: what's on 8080?17:26
wiggleworm@Chipaca: ok, even if its 4200 - I should still be able to see it when I run netstat -ntlp17:27
nothal_wiggleworm: No such command!17:27
Chipacastop with the @s already :)17:27
wigglewormok17:27
Chipacawiggleworm: just saying my nick is enough17:27
wigglewormno17:28
wigglewormnp17:28
Chipacaotherwise i'll have to ask for nothal to be kicked out, because it's annoying17:28
Chipacaanyway17:28
wigglewormwhat does the at symbol do17:29
Chipacawiggleworm: yes, if webdm is running, i'd expect to see it in netstat17:29
Chipacawiggleworm: nothal_ is a bot, he does some useful things for us17:29
Chipacafor example17:29
Chipaca@reviewlist17:29
nothal_https://code.launchpad.net/~snappy-dev/ubuntu-core-launcher/lp1496070/+merge/271167 | No reviews (19 days old)17:29
nothal_https://code.launchpad.net/~stephen-stewart/webdm/use-correct-version-for-post-css-bemlinter/+merge/272467 | Approve: 1 (9 days old)17:29
nothal_https://code.launchpad.net/~kyrofa/webdm/autorestart_services/+merge/268120 | No reviews (51 days old)17:29
nothal_https://code.launchpad.net/~fgimenez/snappy/hw-assign-test/+merge/273413 | No reviews (less than a day old)17:29
nothal_https://code.launchpad.net/~fgimenez/snappy/wait-for-idle-partition/+merge/273100 | No reviews (3 days old)17:29
Chipaca$ sudo netstat -ntlp17:30
ChipacaActive Internet connections (only servers)17:30
ChipacaProto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name17:30
Chipacatcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1007/sshd17:30
Chipacatcp6       0      0 :::22                   :::*                    LISTEN      1007/sshd17:30
Chipacatcp6       0      0 :::4200                 :::*                    LISTEN      3293/snappyd17:30
Chipacawiggleworm: ^17:30
wigglewormChipaca - thanks. Mine is not showing that - I guess i do not have the service started17:31
Chipacawiggleworm: do you have it installed?17:32
wigglewormChipaca: its says its installed - but I think its not running17:32
wigglewormChipaca: systemctl list-units --no-pager | grep webdm17:33
Chipacawiggleworm: what does "snappy service status" say?17:33
wigglewormshows webdm_snappyd_0.9.2.service      loaded failed failed17:33
Chipacawiggleworm: time for a little journalctl17:33
Chipacawiggleworm: or17:33
wigglewormwebdm   snappyd enabled; loaded; failed (failed)17:34
Chipacasudo snappy service logs webdm17:34
wigglewormChipaca: 2015-10-05T16:45:51.766560Z systemd Started Snappy WebDM.17:37
wiggleworm2015-10-05T16:45:51.769154Z systemd Starting Snappy WebDM...17:37
wiggleworm2015-10-05T16:45:51.930078Z ubuntu-core-launcher 2015/10/05 16:45:51 Failed to listen 224.0.0.251:5353: listen udp4 0.0.0.0:5353->224.0.0.251:setsockopt: no such device17:37
wiggleworm2015-10-05T16:45:51.973332Z systemd webdm_snappyd_0.9.2.service: main process exited, code=exited, status=1/FAILURE17:37
wiggleworm2015-10-05T16:45:51.973857Z systemd Unit webdm_snappyd_0.9.2.service entered failed state.17:37
wiggleworm2015-10-05T16:45:51.974349Z systemd webdm_snappyd_0.9.2.service failed.17:37
wigglewormChipaca: Service failed - any way to find out why?17:38
Chipacasigh17:38
Chipacai know why17:38
Chipacait can't start without a network device17:38
Chipacait's supposed to wait, but there is a timeout17:38
wigglewormmy eth1 is working17:38
wigglewormChipaca: is there a way to "modify" the wait time?17:39
Chipacawiggleworm: sudo snappy service webdm start should get you back up17:39
Chipacawiggleworm: not easily, no17:39
Chipacawiggleworm: but there is a bug about restarting services not happening17:40
Chipacaneed to fix that17:40
wigglewormChipaca: another error17:41
wigglewormChipaca: unable to start webdm's service snappyd: [start webdm_snappyd_0.9.service] failed with exit status 6: Failed to start webdm_17:41
wigglewormsnappyd_0.9.service failed to load: No such file or directory.17:41
Chipacaoh, that's interesting17:41
Chipacaoh, wait17:42
Chipacasnappyd_0.9.service?17:42
Chipacadid you type that by hand, or is it missing the .2?17:42
Chipacawiggleworm: ?17:43
wigglewormChipaca: I ran sudo snappy service webdm start and thats what popped out17:43
Chipacaok17:43
Chipacawiggleworm: and what does 'status' print now?17:43
Chipacathis might be a different bug :)17:43
Chipacawiggleworm: there's a bug where sometimes service files get left behind on upgrade, i need to dig a little but it's some weird systemd integration problem, probably my fault17:44
Chipacawiggleworm: but it's benign, if it is that17:44
wigglewormChipaca: (amd64)ubuntu@localhost:~$ snappy service status17:46
wigglewormSnap    Service State17:46
wigglewormwebdm   snappyd ; not-found; inactive (dead)17:46
wigglewormwebdm   snappyd enabled; loaded; failed (failed)17:46
Chipacahurr17:46
Chipacawiggleworm: what do you get from `sudo journalctl -ex -u webdm_snappyd_0.9.2.service`?17:47
Chipaca(pastebin plz)17:47
wigglewormChipaca: Sorry, I have to run. I will be back later this afternoon. I will run that and pastebin it in a little bit17:48
Chipacawiggleworm: sure17:48
wigglewormthen ping you17:48
Chipacawiggleworm: i'm off too, but will read up when i return17:48
plarselopio: one just finished a few minutes ago, same exit status (2) no output17:57
elopioplars: I will remove the test from the script and just try creating the results json.17:58
wigglewormChipaca: here is the pastebin you asked for http://pastebin.com/GHTfEpM017:59
elopioplars: take a look at the script. I commented out everything except the cat to the results.json. Still no payload. How come?19:42
plarselopio: hmm, not sure... let me take a look19:45
plarselopio: where's your script again?19:45
elopioplars: http://people.ubuntu.com/~elopio/spi_scripts/snappy-tests-job.sh19:46
plarselopio: also, do you have the results url for spi?19:47
elopioplars: not sure what do you mean19:47
elopioplars: https://spi.canonical.com/orgs/canonical/results ?19:48
plarselopio: https://spi.canonical.com/orgs/canonical/results... or something? what's a good search string to use?19:48
elopiohttps://spi.canonical.com/orgs/canonical/results/ + image_unique_id19:49
plarselopio: ....which is?19:49
elopioplars: for the latest run, jenkins-snappy-daily-rolling-bbb-29af6fb1fb-6489-4e26-a298-28d14c6fe82719:49
plarselopio: your json needs fixing19:53
plarselopio: double quotes instead of single, and you need a comma between the k:v pairs19:53
plarselopio: then it should work19:53
plarselopio: also, try something for me19:53
plarselopio: this won't matter to spi, but it will answer a question for me about my logging config, have it echo something during your script19:54
plarsto stdout, not just to the file19:54
plarselopio: fixing the json should be enough that you can see results in the result_payload though19:54
elopioplars: ugh, stupid me20:01
elopiothanks, I'll give it a try.20:01
plarselopio: I got the output on my end, but it looks like your payload is still missing. I think I know what's wrong though, sorry I forgot to mention, but you'll likely need to escape your quotes20:34
plarselopio: \"20:34
plarselopio: otherwise the json will still be missing them20:34
wigglewormChipaca: you back yet?20:54
Chipacawiggleworm: no20:59
Chipacawiggleworm: remind me, what was it about?20:59
Chipacasomething about webdm not running21:00
* Chipaca looks at the pastebin21:00
Chipacawiggleworm: the pastebin is cut off, can you tell me what it says to the right of “Failed to listen 224.0.0.251:5353: list”? :)21:01
wigglewormChipaca: listen udp4 0.0.0.0:5353->224.0.0.251: setsockopt: no such device21:17
plarselopio: I see your result payload now21:24
plars\o/21:24
Chipacawiggleworm: this is after a reboot?21:27
wigglewormChipaca: nope, just a sec and I will reboot and try again21:31
Chipacais there something like bzr shelve, but less dselect-before-apt?21:38
Chipacamwenning: any news wrt the race detector branch?22:10
Chipacapackage22:10
Chipacathing?22:10
Chipacamwhudson: ^ I meant you22:12
Chipacamwenning: bad completion, sorry22:12
mwhudsonChipaca: no, i had one round of review22:12
Chipacayeh, saw that, but then nothing?22:12
mwhudsonChipaca: if you know any members of ~ubuntu-sponsors...22:12
Chipacamwhudson: i fear it'll miss the boat, if it hasn't happened already :(22:12
mwhudsonChipaca: it is getting pretty late :(22:13
mwhudsonChipaca: i'm not sure i have the energy to get worked up about it unfortunately, i have other things on my plate22:13
mwhudson(as i'm sure everyone does)22:13
Chipacamhmm22:14
Chipacai'll poke pitti tomorrow22:14
Chipacahe'll be so relieved i'm not asking him about systemd, he might actually do something about it22:14
Chipacayisss23:23
Chipacaafter a moment of panic where i thought i'd deleted it all, the husks pipeline is now up for review23:24
Chipaca\o/23:24
Chipacaalso: 💤23:24

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