api calls fail while launchpad is readonly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Invalid
|
Low
|
Unassigned |
Bug Description
affects launchpad
status triaged
importance high
tags api readonly-mode
When lp is readonly, API requests that ought to also be readonly still fail:
+/home/
canonical-bazaar
Traceback (most recent call last):
File "./bin/kanban", line 14, in <module>
main(sys.argv)
File "./kanban/
controller.
File "/home/
run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
run_argv_aliases
return self.run(
File "/usr/lib/
return self._operation
File "/usr/lib/
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/
_do_with_cleanups
result = func(*args, **kwargs)
File "./kanban/
bugs = get_person_
File "./kanban/
person = launchpad.
File "/usr/lib/
line 917, in __getitem__
unicode(
File "/usr/lib/
line 287, in get
response, content = self._request(url, extra_headers=
File "/usr/lib/
line 277, in _request
raise HTTPError(response, content)
lazr.restfulcli
Response headers:
---
-content-encoding: gzip
connection: close
content-length: 5667
content-type: text/html;
date: Wed, 09 Feb 2011 23:17:42 GMT
server: zope.server.http (HTTP)
status: 503
transfer-encoding: chunked
vary: Accept-Encoding
via: 1.1 wildcard.
x-powered-by: Zope (www.zope.org), Python (www.python.org)
---
Response body:
---
Is there an OOPS in the body?
Without an OOPS its a little tricky to figure out whats going on, but I'll take a stab and say its the nonce table rejecting writes.
-> we cannot fix this while using oauth and other nonce based systems, unless we move the nonces out of postgresql (and even then we may still be taking the services in question down).