/srv/irclogs.ubuntu.com/2014/06/30/#ubuntu-quality.txt

=== chihchun_afk is now known as chihchun
pittiGood morning06:16
pittijibel: !!07:14
pitti$ ./run-from-checkout -d ~/ubuntu/tmp/ubuntu-calculator-app/ ~/ubuntu/tmp/com.ubuntu.calculator_1.3.283_all.click --- ssh -s ssh-setup/adb07:14
pittiadt-run [09:14:23]: test autopilot:  - - - - - - - - - - results - - - - - - - - - -07:14
pittiautopilot            PASS07:14
jibelpitti, \o/07:18
pittijibel: still with one remaining hack, but I committed the "advertise suggested-normal-user=" capability fix which was missing07:19
pittijibel: did you ever happen to figure out how to run powerd-cli in the background?07:22
pitti--setup-commands "(powerd-cli display on bright &) &"07:22
pittieven with this double fork it hangs eternally07:22
jibelpitti, usually I do "powerd-cli display on & " it hangs over adb but not with ssh07:45
pittijibel: that still hangs for me07:49
pittijibel: ugly, but working: http://paste.ubuntu.com/7725346/08:27
jibelpitti, ugly really :)08:31
jibelpitti, you'd probably want to force bash for disown. it is not a builtin of dash and I think adb shell calls sh -c08:32
pittijibel: hm, it seems to call bash here08:34
pittijibel: but adding another "bash -c" probably can't hurt08:34
pittijibel: now I just need to disable the screen lock08:43
jibelpitti, BTW I'm sure you noticed bug 133517608:55
ubot5bug 1335176 in autopkgtest (Ubuntu) "Add man page for ssh runner" [Undecided,New] https://launchpad.net/bugs/133517608:55
jibeljust confirming08:55
pittijibel: yes, I did; next thing after I add the aa-clickhook bits08:55
pittijibel: btw, might be easier to put your own /users git branch on alioth, and/or asking for membership in the autopkgtest alioth project08:56
pittis/branch/repository/08:56
jibelpitti, for unlocking the device, there is a helper in unity8-autopilot09:16
jibelpitti, http://bazaar.launchpad.net/~unity-team/unity8/trunk/view/head:/tools/unlock-device09:16
pittijibel: thanks; vila just pointed that out in #touch09:17
jibelok09:17
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== davmor2_ is now known as davmor2
davmor2Morning all10:03
=== rfinley is now known as average_guy
pittijibel: looking at (and simplifying) your nova script now; that doesn't have the floating-ip-create/floating-ip-associate stuff, isn't it necessary in general or just not for the canonistack?11:05
jibelpitti, I didn't try with hpcloud, but the private ip should be enoguht11:20
jibelenought11:20
jibel-t11:20
pitti| evan.dandrea@canonical.com-network network | 10.0.0.611:21
pittijibel: ^ that's what I get without a floating IP11:21
jibelpitti, right and can you ssh to 10.0.0.6?11:21
pittijibel: no, as I said I need to add a public floating one11:22
pittiat least I haven't figured out how to use the 10.0.0.x one, supposedly you need some kind of VPN to the HP cloud?11:22
pittiev, vila: ^ did you happen to figure out how to use these "private" IPs from HP cloud?11:22
pittii. e. without floating-ip-create/floating-ip-associate ?11:23
jibelpitti, ah, you're right, we probably cannot for hpcloud. For canonistack I'm forwarding via chinstrap11:27
pittijibel: detecting this automatically is a nuisance, so I suppose I'll just add an option to create/associate a floating IP11:37
vilapitti: you need a floating IP, juju may handle it for you otherwise  you're on your own11:46
pittivila: *nod*11:46
=== fader_` is now known as fader
pittijibel: so with canonistack you can immediately ssh in after nova boot? with HP cloud it still takes a minute or so until ssh actually works, so I need to add an ssh wait loop12:44
pittijibel: oh, that's already in adt-virt-ssh now, nevermind12:46
pittiHTTPSConnectionPool(host='region-a.geo-1.compute.hpcloudsvc.com', port=443): Max retries exceeded with url: /v2/11490006884368/servers (Caused by <class 'socket.error'>: [Errno 104] Connection reset by peer)12:46
pittiERROR: Unable to delete any of the specified servers.12:46
pittiand I'm getting fun like that12:46
vilapitti, jibel: you're running into problems that has been solved in uci-engine testbed.by (floating IP, slow boot, transient hp errors, etc)12:47
pittivila: ah, ncie12:48
pittivila: so I suppose for CI we should use an ssh setup script which uses uci12:48
vilapitti: exactly12:48
pittivila: you mentioned a script/package that sets these up, uci-vm or something?12:49
vilapitti: uci-vms yes, but the nova part is still uci-engine specific for now (and we're still trying to find the right cloud config  with webops... can't use nova in prodstack :-/)12:50
pittivila: ack; the ssh setup scripts will be highly environment specific anyway, I mostly want to include some of them (adb, nova) as examples; although the adb one works quite nicely now12:51
pittivila: so as soon as uci-vms is packaged somewhere, we can also include an ssh setup script which uses that12:51
pittivila: while developers will want to use the adb setup script to reproduce errors locally, I suppose they'd rather use adt-virt-qemu for reproducing a package test failure than ssh with nova12:52
pittifew people actually have access to the HP (or other) cloud, and even if you do, it's a magnitude slower12:52
pittivila: so ATM the nova script is mostly just good enough to prove that adt-virt-ssh can deal with this kind of testbed12:53
vilapitti: indeed, I don't want to stop you from exploring, just mentioning that hpcloud can be a can of worms (well, so can canonistack ;-)12:54
vilapitti: yup12:54
pittiheh, amen12:54
pittivila: so to be on the same page, you are mostly looking for the ssh runner itself, but want to write your own setup script using uci-vms?12:54
pittivila: so that I should make sure that the ssh  runner provides enough functionality, but the shipped nova setup script doesn't need to be production-stable?12:57
vilapitti: exactly12:57
pittivila: très bien; then I won't waste too much time on it, let's rather package uci-vms at some point and then use that12:58
vilapitti: IP, login, ssh key12:58
pittiand treat it as a PoC12:58
vilapitti: it's packaged but only available in https://launchpad.net/~canonical-ci-engineering/+archive/ci-airline-phase-0 for now12:59
vilapitti: feedback welcome on the packaging in any case ;)12:59
pittijibel: hmm, current nova script doesn't export "identity", how did that work for you?13:00
pittijibel: also, I'm not entirely sure how to find the private key now, when just giving the keypair name; keypair-show only shows the pub key, but not its location13:00
jibelpitti, as I said I just tried with canonistack and I had my account already setup. So probably better rename nova -> canonistack  and just as a proof of concept than anything else :)13:01
pittijibel: right, but even with canonistack the ssh runner shoudl just fail without an "identity="?13:02
jibelpitti, I can have a look later this week with another cloud13:02
pittijibel: no worries, I'll add it13:02
pittijibel: or perhaps rather just default to ~/.ssh/id_rsa.pub in virt-ssh, seems easier than doing it for every script13:03
jibelpitti, in my ssh/config I have Host XX.XX.XX.XX13:04
jibelUser ubuntu13:04
pittijibel: aah13:04
jibelIdnetityFile <some path>13:04
jibeland the proxy command for chinstrap13:04
pittijibel: hm, true, if the script doesn't give identity=, ssh should default to the usual key by itself, so nevermind13:05
=== plars_ is now known as plars
pittijibel: nevermind, it was a bug in wait_for_ssh(), fixed now13:12
pittijibel: now I get much further, I just run into unexpected stderr "sudo: unable to resolve host adt-nova-6ogg8l"13:12
pittijibel: almost there :)13:13
jibelpitti, sorry for the bugs13:16
pittijibel: no worries13:16
pittijibel: just pondering how to set the host name properly, in the setup script or in virt-ssh13:17
jibelpitti, IMO in the setup script because usually it's already setup correctly. For example, on a phablet you won't change it, on an existing host it's already done, on canonistack cloud-init takes care of it, on lxc it's done in the template, ...13:19
jibelit seems to be really target specific13:20
pittijibel: yeah, I agree13:20
pittijibel: but I won't want to replicate the ssh wait loop, so I'm now reading http://docs.openstack.org/user-guide/content/user-data.html how to do this kind of setup at "nova boot" time instead of through ssh13:20
pitti  --meta <key=value>    Record arbitrary key/value metadata to /meta.js on the13:21
pitti                        new server. Can be specified multiple times.13:21
pittithat looks promising, if cloud-init can use that to fix /etc/hosts13:21
pitti(but this is really just a bug in cloud-init or the HP version of it, *grump*)13:22
pittivila: ^ does uci-vms magically happen to fix that, too by chance?13:22
vilapitti: sorry, which one ? host name ? yeah, through cloud-init meta data, fuzzy memory there, I can't remember when I ran into issues there, I don't think I use it for nova though13:26
pittivila: creating an instance foo-123 doesn't seem to add "foo-123" (the hostname) to /etc/hosts by default, so that e. g. sudo complains (apache and postfix will as well)13:26
pittiI suppose I want to set manage_etc_hosts13:26
pittimeh, this is really stuff that ought to "just work"13:27
vilapitti: hmm, I remember seeing that on juju instances but not on testbeds (and indeed I do use manage_etc_hosts)13:28
vilapitti: in uci-vms that is13:28
pittimeh, sometimes it feels like all that stuff makes it specifically hard to be used13:31
pittiso there is a --meta to set an individual key, but not a corresponding one for setting a cloud-config option !?13:31
pittijust a whole --user-data thing, but thanks no, I don't want to manage the *entire* configuration myself13:31
pittijibel: I just pushed the revised nova script, which now also works for HP; would you mind testing adt-virt-ssh HEAD again against canonistack?14:02
pittijibel: finished the libpng test, in a whopping 7:06 minutes (compare to schroot runner's 4 seconds..)14:05
jibelpitti, OTOH you can boot thousands in parallel :)14:07
jibel*of VMs14:07
jibelI'll test it in canonistack14:07
pittiyeah, still much room for optimization :)14:07
pittijibel: ssh connnection sharing might help quite a bit with adb though, I'll still look into that14:08
pittijibel: but many thanks for all your ground work here, nice to see all the puzzle pieces now14:08
jibelpitti, I tried quickly but the runner exited with an error 255 from ssh. If I try interactively it is fine.14:08
pittijibel: do you have a -d (with both) output?14:15
jibelpitti, I don't.14:16
jibelI'll try again.14:16
=== bdmurray_ is now known as bdmurray
elopiorobotfuel: how can I run the tests you are working on?15:55
robotfuelelopio: the test is here https://code.launchpad.net/~chris.gagnon/+junk/lrt15:59
elopiorobotfuel: branching...16:00
=== chihchun is now known as chihchun_afk
elopiorobotfuel: why is it on your junk? maybe inside launchpad.net/ubuntu_autopilot_tests would be a good place for it.16:00
robotfuelelopio: ok16:02
elopiorobotfuel: ok, what we will need in order to have it running for every image is a deb package.cd ..16:03
elopiorobotfuel: do you know about packaging?16:04
robotfuelelopio: I use run-lrt.sh to start the test because launchpadlib is py2 and the other code is in py3.. so I can upload the bugs16:04
robotfuelelopio: yes, I can package it16:04
elopiorobotfuel: and then we will have to add it to the archive: https://wiki.ubuntu.com/UbuntuDevelopment/NewPackages#Going_through_MOTU16:05
elopioI'm doing the same for ubuntu_experience_tests, so it would be nice to do it together :D16:05
robotfuelsure16:05
robotfuelelopio: my plan for today is get the graph working for time to failure. then I will do the packaging and add more types of lrt tests.16:07
elopiook, thanks. robotfuel: let me know if you need a hand or a review.16:07
* elopio goes to get breakfast.16:07
=== om26er is now known as om26er|away
=== om26er|away is now known as om26er
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
mapreribdmurray: is there a way to avoid the crichton bot to subscribe ~ubuntu-sponsor and add the tag patch on bugs where someone upload a debdiff? maybe a particular tag?17:47
bdmurraymapreri: 'bot-stop-nagging' should prevent that from happening17:53
mapreribdmurray: ok, thanks17:54
elopioI'll upgrade my quassel server to trusty because it's unbearable. I might be away for some time.18:27
=== chihchunl is now known as chihchun
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== salem_ is now known as _salem

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