)]}'
{"glance_store/_drivers/vmware_datastore.py":[{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"7c1e790758f842e2902414e3e84e008da63fe258","unresolved":false,"context_lines":[{"line_number":344,"context_line":"                             \u0027datastore_name\u0027: self.datastore_name,"},{"line_number":345,"context_line":"                             \u0027image_id\u0027: image_id}, self.conf)"},{"line_number":346,"context_line":"        # NOTE(arnaud): use a decorator when the config is not tied to self"},{"line_number":347,"context_line":"        for i in range(self.api_retry_count + 1):"},{"line_number":348,"context_line":"            cookie \u003d self._build_vim_cookie_header()"},{"line_number":349,"context_line":"            headers \u003d dict(headers.items() + {\u0027Cookie\u0027: cookie}.items())"},{"line_number":350,"context_line":"            conn_class \u003d self._get_http_conn_class()"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_1085c1cf","side":"PARENT","line":347,"updated":"2015-01-23 09:39:43.000000000","message":"Function removal is straightforward, is there a way to fix it instead of removing retry logic however? And if so, rewind() seems isn\u0027t useful any more.","commit_id":"e1542b2c71a9e6fe2521df53499d908b7cb0a913"},{"author":{"_account_id":7575,"name":"Sabari","email":"smurugesan@vmware.com","username":"sabari"},"change_message_id":"14c0de9a23367291d5062805834e714be6605fdd","unresolved":false,"context_lines":[{"line_number":344,"context_line":"                             \u0027datastore_name\u0027: self.datastore_name,"},{"line_number":345,"context_line":"                             \u0027image_id\u0027: image_id}, self.conf)"},{"line_number":346,"context_line":"        # NOTE(arnaud): use a decorator when the config is not tied to self"},{"line_number":347,"context_line":"        for i in range(self.api_retry_count + 1):"},{"line_number":348,"context_line":"            cookie \u003d self._build_vim_cookie_header()"},{"line_number":349,"context_line":"            headers \u003d dict(headers.items() + {\u0027Cookie\u0027: cookie}.items())"},{"line_number":350,"context_line":"            conn_class \u003d self._get_http_conn_class()"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa81d914_d82ba42e","side":"PARENT","line":347,"in_reply_to":"1a930d6b_1085c1cf","updated":"2015-01-28 07:35:37.000000000","message":"The vmware http server doesn\u0027t support resumable upload. So,\nthe only way to fix retry logic is to use a store and forward mechanism like writing to a temp file.","commit_id":"e1542b2c71a9e6fe2521df53499d908b7cb0a913"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"7c1e790758f842e2902414e3e84e008da63fe258","unresolved":false,"context_lines":[{"line_number":368,"context_line":"                                      \u0027%(image)s\u0027), {\u0027image\u0027: image_id})"},{"line_number":369,"context_line":"            res \u003d conn.getresponse()"},{"line_number":370,"context_line":"            if res.status \u003d\u003d httplib.UNAUTHORIZED:"},{"line_number":371,"context_line":"                self.reset_session(force\u003dTrue)"},{"line_number":372,"context_line":"                image_file.rewind()"},{"line_number":373,"context_line":"                continue"},{"line_number":374,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_90829192","side":"PARENT","line":371,"updated":"2015-01-23 09:39:43.000000000","message":"IMO, even we decided to remove rewind() call below, this reset_session() call is needed still before raising exception out, due to the available session is needed for next store.add() call.","commit_id":"e1542b2c71a9e6fe2521df53499d908b7cb0a913"},{"author":{"_account_id":7575,"name":"Sabari","email":"smurugesan@vmware.com","username":"sabari"},"change_message_id":"14c0de9a23367291d5062805834e714be6605fdd","unresolved":false,"context_lines":[{"line_number":368,"context_line":"                                      \u0027%(image)s\u0027), {\u0027image\u0027: image_id})"},{"line_number":369,"context_line":"            res \u003d conn.getresponse()"},{"line_number":370,"context_line":"            if res.status \u003d\u003d httplib.UNAUTHORIZED:"},{"line_number":371,"context_line":"                self.reset_session(force\u003dTrue)"},{"line_number":372,"context_line":"                image_file.rewind()"},{"line_number":373,"context_line":"                continue"},{"line_number":374,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1a930d6b_ab6177aa","side":"PARENT","line":371,"in_reply_to":"1a930d6b_90829192","updated":"2015-01-28 07:35:37.000000000","message":"I have removed the rewind method. There is a subsequent patch that verifies the session before upload.","commit_id":"e1542b2c71a9e6fe2521df53499d908b7cb0a913"}]}
