/srv/irclogs.ubuntu.com/2013/06/12/#launchpad-dev.txt

=== wedgwood is now known as wedgwood_away
StevenKwgrant: httplib2.debuglevel = 1 produces 200MiB of output01:34
StevenKsteven@undermined:~% tail -n 1 qa-mawson-output | wc -c01:34
StevenK20633876201:34
wgrantAs you'd expect01:35
StevenKwgrant: Blah. http://pastebin.ubuntu.com/5756839/01:48
StevenKwgrant: That's 3 POSTs in a row, so I don't know what the hell lplib is doing02:05
wgrantStevenK: What are the responses?02:07
StevenKreply: ''02:08
StevenKFor the first one02:08
StevenK502 for the second02:08
StevenKreply: '' for the third02:24
StevenKwgrant: reply: '' and 502s make me sad03:59
wgrantStevenK: Indeed04:00
wgrantStevenK: The second call is probably a retry of the 50204:00
StevenKreply: '' was first04:00
StevenKSo I suspect all but the first are retries04:00
wgrantStevenK: Wasn't that the response to the initial GET, not the POST?04:05
wgrantOh, or you mean that there was a third POST after your paste?04:05
StevenKNo04:05
StevenKsend: 'POST /devel/ubuntu/raring/i386 HTTP/1.1\r\nHost: api.qastaging.launchpad.net\r\nContent-Length: 71817072\r\nAuthorization: OAuth realm="OAuth", oauth_nonce="73131629", oauth_timestamp="1371000604:06
StevenKreply: ''04:06
StevenKconnect: (api.qastaging.launchpad.net, 443)04:06
StevenKsend: 'POST ...04:06
StevenKwgrant: So I'm not sure what would cause an empty reply to a POST04:43
wgrantStevenK: There was no separate status?04:49
=== tasdomas_afk is now known as tasdomas
StevenKwgrant: No status, no headers, nothing05:03
StevenKwgrant: I'm a bit stuck where I should fix this invalid transition critical that you filed a dupe of05:54
wgrantStevenK: What are the options?05:55
StevenKwgrant: We can hack lazr.jobrunner to log "Skipping Completed job" in runJob, but I don't think we can impose a cronscript to rip out the entry from the rabbit queue when it completes a job05:56
StevenKWe could also do that in lp.services.job.runner, rather than lazr.jobrunner05:57
wgrantStevenK: No, we can't dequeue the job05:58
wgrantWe have to handle it once celery receives it05:58
StevenKRight05:59
StevenKSo runJob can just log it and move on05:59
wgrantStevenK: Probably. The normal jobrunners only fetch jobs that are WAITING, so it would make sense for celery to skip them similarly06:00
wgrantBefore it even gets into the job ode06:00
wgrantcode06:00
StevenKWell, we don't have that luxury, since we're pulling jobs off the queue06:01
wgrantI know06:03
wgrantBut you can possibly check as soon as you pull a job off the queue06:03
wgrantThe job should ideally be thrown away before we reach the common celery+cronjob code06:03
StevenKwgrant: I can do it in acquireLease() which should be early enough06:05
StevenKwgrant: But is probably the wrong place. lp.services.job.runner.BaseJobRunner.runJob() should be okay to log and return06:07
wgrantStevenK: Sounds reasonable06:10
StevenKwgrant: https://code.launchpad.net/~stevenk/launchpad/no-completed-jobs-for-celery/+merge/16885907:02
=== tasdomas is now known as tasdomas_afk
=== tasdomas_afk is now known as tasdomas
=== Nigel_ is now known as G
=== tasdomas is now known as tasdomas_afk
=== wedgwood_away is now known as wedgwood
=== olli_ is now known as olli
fgintherwhat causes a new password to be generated for access to a private ppa?19:02
fgintherI'm working with some ppa automation which accesses private ppas. I'm seeing an issue where sometimes it works and sometimes it gets a 401. While debugging I've noticed that the password is different each time. Each time the script runs, it uses the same credentials, but a different cache dir19:02
=== tasdomas_afk is now known as tasdomas
=== tasdomas is now known as tasdomas_afk
fgintherplease disregard my earlier question. It doesn't look like the ppa access was setup correctly.21:10
=== wedgwood is now known as wedgwood_away

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