Guest User

Untitled

a guest
Sep 9th, 2015
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. 195 resp = None
  2. 197 try:
  3. 198 import rpdb; rpdb.set_trace()
  4. 199 -> with ConnectionTimeout(self.conn_timeout):
  5. 200 conn = http_connect(node['ip'], node['port'], node['device'],
  6. 201 part, 'GET', path, headers=self.headers)
  7. 202 with Timeout(self.node_timeout):
  8. 203 resp = conn.getresponse()
  9. 204 if resp.status != HTTP_OK:
  10. (Pdb) p headers
  11. {'X-Backend-Storage-Policy-Index': 0, 'X-Backend-Node-Index': 0}
  12. (Pdb) p self.headers
  13. {'Content-Length': '0', 'X-Backend-Storage-Policy-Index': 0, 'user-agent': 'obj-reconstructor 37124'}
  14. (Pdb) p self
  15. <swift.obj.reconstructor.ObjectReconstructor object at 0x7f9141be9c10>
  16. (Pdb) l
  17. 205 self.logger.warning(
  18. 206 _("Invalid response %(resp)s from %(full_path)s"),
  19. 207 {'resp': resp.status,
  20. 208 'full_path': self._full_path(node, part, path, policy)})
  21. 209 resp = None
  22. 210 except (Exception, Timeout):
  23. 211 self.logger.exception(
  24. 212 _("Trying to GET %(full_path)s"), {
  25. 213 'full_path': self._full_path(node, part, path, policy)})
  26. 214 return resp
Advertisement
Add Comment
Please, Sign In to add comment