)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"8cb4a8064698d482671cd2ec3818b1c7c6a30392","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Sheepdog: Change storelocation format"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch changes storelocation format from \u0027sheepdog://image\u0027 to"},{"line_number":10,"context_line":"\u0027sheepdog:addr:port:image\u0027. It add ip and port to the location."},{"line_number":11,"context_line":"This offers the advantages of:"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"1.The ip and port represents a sheepdog cluster which contains the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9a8ffd7b_fc956731","line":10,"updated":"2015-12-03 04:14:39.000000000","message":"Why is this format change required? All our locations use `//` and Sheepdog not having it would break the consistency there. Also, I believe this change would break existing environments already using sheepdog as there\u0027s no code migrating from the old format to the new one.","commit_id":"ead8b76b9020ede81ec89b004224eb8b750ae38a"},{"author":{"_account_id":18967,"name":"zhangsong","email":"zhangsong@cmss.chinamobile.com","username":"zhangsong"},"change_message_id":"86db0e14b386b67ce2d6d894eec1bc476ec1bc49","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Sheepdog: Change storelocation format"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch changes storelocation format from \u0027sheepdog://image\u0027 to"},{"line_number":10,"context_line":"\u0027sheepdog:addr:port:image\u0027. It add ip and port to the location."},{"line_number":11,"context_line":"This offers the advantages of:"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"1.The ip and port represents a sheepdog cluster which contains the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9a8ffd7b_39321c11","line":10,"in_reply_to":"9a8ffd7b_fc956731","updated":"2015-12-03 10:15:45.000000000","message":"Use `//` to maintain consistency is a good idea, I will update my patch to maintain consistency. But the IP and port is required: The IP and port represents which sheepdog cluster is used. When clone an image in cinder, it parse ip and port from image_location, and these two parameters is used to decide whether\tthe image is in the same sheepdog cluster with cinder-backend, this is very important for us to determine if the image is cloneable.","commit_id":"ead8b76b9020ede81ec89b004224eb8b750ae38a"}],"glance_store/_drivers/sheepdog.py":[{"author":{"_account_id":7575,"name":"Sabari","email":"smurugesan@vmware.com","username":"sabari"},"change_message_id":"185a167de678c48bfd54d8bf9961a30f5e0316c1","unresolved":false,"context_lines":[{"line_number":147,"context_line":"    def parse_uri(self, uri):"},{"line_number":148,"context_line":"        valid_schema \u003d \u0027sheepdog://\u0027"},{"line_number":149,"context_line":"        if not uri.startswith(valid_schema):"},{"line_number":150,"context_line":"            reason \u003d _(\"URI must start with \u0027%s://\u0027\") % valid_schema"},{"line_number":151,"context_line":"            raise exceptions.BadStoreUri(message\u003dreason)"},{"line_number":152,"context_line":"        self.image \u003d uri[11:]"},{"line_number":153,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_9af3670a","side":"PARENT","line":150,"updated":"2015-12-04 21:58:43.000000000","message":"Kind of unrelated but it\u0027s fine :)","commit_id":"f1f79b898dc9f37a4161a68574feff8364f73ab3"},{"author":{"_account_id":7575,"name":"Sabari","email":"smurugesan@vmware.com","username":"sabari"},"change_message_id":"185a167de678c48bfd54d8bf9961a30f5e0316c1","unresolved":false,"context_lines":[{"line_number":143,"context_line":""},{"line_number":144,"context_line":"    def get_uri(self):"},{"line_number":145,"context_line":"        return \"sheepdog://%(addr)s:%(port)s:%(image)s\" % {"},{"line_number":146,"context_line":"            \u0027addr\u0027: self.conf.glance_store.sheepdog_store_address,"},{"line_number":147,"context_line":"            \u0027port\u0027: self.conf.glance_store.sheepdog_store_port,"},{"line_number":148,"context_line":"            \u0027image\u0027: self.image}"},{"line_number":149,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_fad38b5d","line":146,"updated":"2015-12-04 21:58:43.000000000","message":"For consistency with other store drivers, the data used to build the URI should be from the location object. In other words, use the specs to initialize the location object with addr and port. See comment on L280","commit_id":"5852d49f719295e4288d3d2e74a6864583a41b8e"},{"author":{"_account_id":7575,"name":"Sabari","email":"smurugesan@vmware.com","username":"sabari"},"change_message_id":"185a167de678c48bfd54d8bf9961a30f5e0316c1","unresolved":false,"context_lines":[{"line_number":153,"context_line":"            reason \u003d _(\"URI must start with \u0027%s\u0027\") % valid_schema"},{"line_number":154,"context_line":"            raise exceptions.BadStoreUri(message\u003dreason)"},{"line_number":155,"context_line":"        (ip, port, name) \u003d uri[len(valid_schema):].split(\":\", 2)"},{"line_number":156,"context_line":"        self.image \u003d name"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"class ImageIterator(object):"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_da4d6f73","line":156,"updated":"2015-12-04 21:58:43.000000000","message":"What about ip, port ? They should also be part of the location object now.\n\n self.addr \u003d ip\n self.port \u003d port","commit_id":"5852d49f719295e4288d3d2e74a6864583a41b8e"},{"author":{"_account_id":7575,"name":"Sabari","email":"smurugesan@vmware.com","username":"sabari"},"change_message_id":"b5e5da4c71885b91af068b3dcadc391239b175a3","unresolved":false,"context_lines":[{"line_number":153,"context_line":"            reason \u003d _(\"URI must start with \u0027%s\u0027\") % valid_schema"},{"line_number":154,"context_line":"            raise exceptions.BadStoreUri(message\u003dreason)"},{"line_number":155,"context_line":"        (ip, port, name) \u003d uri[len(valid_schema):].split(\":\", 2)"},{"line_number":156,"context_line":"        self.image \u003d name"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":""},{"line_number":159,"context_line":"class ImageIterator(object):"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_fab94bcc","line":156,"in_reply_to":"7a740942_da4d6f73","updated":"2015-12-04 22:03:27.000000000","message":"Also, for backwards compatibility, if the URL doesn\u0027t contain the ip, port you can substitute it with that from the config.","commit_id":"5852d49f719295e4288d3d2e74a6864583a41b8e"},{"author":{"_account_id":7575,"name":"Sabari","email":"smurugesan@vmware.com","username":"sabari"},"change_message_id":"185a167de678c48bfd54d8bf9961a30f5e0316c1","unresolved":false,"context_lines":[{"line_number":228,"context_line":"        :raises `glance_store.exceptions.NotFound` if image does not exist"},{"line_number":229,"context_line":"        \"\"\""},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"        loc \u003d location.store_location"},{"line_number":232,"context_line":"        image \u003d SheepdogImage(self.addr, self.port, loc.image,"},{"line_number":233,"context_line":"                              self.READ_CHUNKSIZE)"},{"line_number":234,"context_line":"        if not image.exist():"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_3a5ef312","line":231,"updated":"2015-12-04 21:58:43.000000000","message":"Again, addr and port should be part of the location object and that should be used to fetch the image. So basically,\n\n SheepdogImage(loc.addr, loc.port, loc.image, self.READ_CHUNKSIZE)","commit_id":"5852d49f719295e4288d3d2e74a6864583a41b8e"},{"author":{"_account_id":7575,"name":"Sabari","email":"smurugesan@vmware.com","username":"sabari"},"change_message_id":"185a167de678c48bfd54d8bf9961a30f5e0316c1","unresolved":false,"context_lines":[{"line_number":270,"context_line":"        :raises `glance_store.exceptions.Duplicate` if the image already"},{"line_number":271,"context_line":"                existed"},{"line_number":272,"context_line":"        \"\"\""},{"line_number":273,"context_line":""},{"line_number":274,"context_line":"        image \u003d SheepdogImage(self.addr, self.port, image_id,"},{"line_number":275,"context_line":"                              self.WRITE_CHUNKSIZE)"},{"line_number":276,"context_line":"        if image.exist():"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_da2c8f4c","line":273,"updated":"2015-12-04 21:58:43.000000000","message":"same, loc.addr, loc.port instead of self.addr and self.port.","commit_id":"5852d49f719295e4288d3d2e74a6864583a41b8e"},{"author":{"_account_id":7575,"name":"Sabari","email":"smurugesan@vmware.com","username":"sabari"},"change_message_id":"185a167de678c48bfd54d8bf9961a30f5e0316c1","unresolved":false,"context_lines":[{"line_number":276,"context_line":"        if image.exist():"},{"line_number":277,"context_line":"            raise exceptions.Duplicate(_(\"Sheepdog image %s already exists\")"},{"line_number":278,"context_line":"                                       % image_id)"},{"line_number":279,"context_line":""},{"line_number":280,"context_line":"        location \u003d StoreLocation({\u0027image\u0027: image_id}, self.conf)"},{"line_number":281,"context_line":"        checksum \u003d hashlib.md5()"},{"line_number":282,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_3a683387","line":279,"updated":"2015-12-04 21:58:43.000000000","message":"The spec for StoreLocation should now also include addr, port.","commit_id":"5852d49f719295e4288d3d2e74a6864583a41b8e"},{"author":{"_account_id":7575,"name":"Sabari","email":"smurugesan@vmware.com","username":"sabari"},"change_message_id":"185a167de678c48bfd54d8bf9961a30f5e0316c1","unresolved":false,"context_lines":[{"line_number":310,"context_line":"        :raises NotFound if image does not exist"},{"line_number":311,"context_line":"        \"\"\""},{"line_number":312,"context_line":""},{"line_number":313,"context_line":"        loc \u003d location.store_location"},{"line_number":314,"context_line":"        image \u003d SheepdogImage(self.addr, self.port, loc.image,"},{"line_number":315,"context_line":"                              self.WRITE_CHUNKSIZE)"},{"line_number":316,"context_line":"        if not image.exist():"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a740942_7af55bc9","line":313,"updated":"2015-12-04 21:58:43.000000000","message":"same, loc.addr, loc.port instead of self.addr and self.port.","commit_id":"5852d49f719295e4288d3d2e74a6864583a41b8e"}]}
