Revision 77e1d753 daemons/ganeti-rapi
b/daemons/ganeti-rapi | ||
---|---|---|
35 | 35 |
from ganeti import daemon |
36 | 36 |
from ganeti import ssconf |
37 | 37 |
from ganeti import utils |
38 |
from ganeti import luxi |
|
38 | 39 |
from ganeti.rapi import connector |
39 | 40 |
|
40 | 41 |
import ganeti.http.auth |
... | ... | |
144 | 145 |
sn = ctx.handler.getSerialNumber() |
145 | 146 |
if sn: |
146 | 147 |
req.response_headers[http.HTTP_ETAG] = str(sn) |
148 |
except luxi.TimeoutError: |
|
149 |
raise http.HttpGatewayTimeout() |
|
150 |
except luxi.ProtocolError, err: |
|
151 |
raise http.HttpBadGateway(str(err)) |
|
147 | 152 |
except: |
148 | 153 |
method = req.request_method.upper() |
149 | 154 |
logging.exception("Error while handling the %s request", method) |
Also available in: Unified diff