Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 195 resp = None
- 197 try:
- 198 import rpdb; rpdb.set_trace()
- 199 -> with ConnectionTimeout(self.conn_timeout):
- 200 conn = http_connect(node['ip'], node['port'], node['device'],
- 201 part, 'GET', path, headers=self.headers)
- 202 with Timeout(self.node_timeout):
- 203 resp = conn.getresponse()
- 204 if resp.status != HTTP_OK:
- (Pdb) p headers
- {'X-Backend-Storage-Policy-Index': 0, 'X-Backend-Node-Index': 0}
- (Pdb) p self.headers
- {'Content-Length': '0', 'X-Backend-Storage-Policy-Index': 0, 'user-agent': 'obj-reconstructor 37124'}
- (Pdb) p self
- <swift.obj.reconstructor.ObjectReconstructor object at 0x7f9141be9c10>
- (Pdb) l
- 205 self.logger.warning(
- 206 _("Invalid response %(resp)s from %(full_path)s"),
- 207 {'resp': resp.status,
- 208 'full_path': self._full_path(node, part, path, policy)})
- 209 resp = None
- 210 except (Exception, Timeout):
- 211 self.logger.exception(
- 212 _("Trying to GET %(full_path)s"), {
- 213 'full_path': self._full_path(node, part, path, policy)})
- 214 return resp
Advertisement
Add Comment
Please, Sign In to add comment