)]}'
{"glance_store/_drivers/rbd.py":[{"author":{"_account_id":20599,"name":"Jason Dillaman","email":"dillaman@redhat.com","username":"dillaman"},"change_message_id":"00745e1f51c549783ea2e41f8be1669f3d7d28e8","unresolved":false,"context_lines":[{"line_number":338,"context_line":"                try:"},{"line_number":339,"context_line":"                    with rbd.Image(ioctx, loc.image,"},{"line_number":340,"context_line":"                                   snapshot\u003dloc.snapshot) as image:"},{"line_number":341,"context_line":"                        return image.size()"},{"line_number":342,"context_line":"                except rbd.ImageNotFound:"},{"line_number":343,"context_line":"                    msg \u003d _(\u0027RBD image %s does not exist\u0027) % loc.get_uri()"},{"line_number":344,"context_line":"                    LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a57fde8_40b4a5f1","line":341,"updated":"2017-01-12 16:29:05.000000000","message":"Note: this API is only available starting with the Ceph v10+ (Jewel) release.","commit_id":"9cd76706ee684d567d21ea20dc6e8fb4db4511f0"},{"author":{"_account_id":20599,"name":"Jason Dillaman","email":"dillaman@redhat.com","username":"dillaman"},"change_message_id":"0e48f5823d7b0d9a5812400d90a3663106c86530","unresolved":false,"context_lines":[{"line_number":338,"context_line":"                try:"},{"line_number":339,"context_line":"                    with rbd.Image(ioctx, loc.image,"},{"line_number":340,"context_line":"                                   snapshot\u003dloc.snapshot) as image:"},{"line_number":341,"context_line":"                        return image.size()"},{"line_number":342,"context_line":"                except rbd.ImageNotFound:"},{"line_number":343,"context_line":"                    msg \u003d _(\u0027RBD image %s does not exist\u0027) % loc.get_uri()"},{"line_number":344,"context_line":"                    LOG.debug(msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a3c09a3_798874e8","line":341,"in_reply_to":"9a57fde8_40b4a5f1","updated":"2017-01-13 15:31:12.000000000","message":"Cancel that: I was thinking about a different API method that was added in support of the original Ceph bug that was linked. The \"size()\" method has been around for a while.","commit_id":"9cd76706ee684d567d21ea20dc6e8fb4db4511f0"}],"releasenotes/notes/use_image_size_for_rbd-54cd3cda212ac0ad.yaml":[{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"fe9097d42b4f5c672802d83b4b7c46833eb78ab1","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"3a461143_8f64fce5","line":7,"updated":"2017-02-02 03:04:26.000000000","message":"I\u0027m not sure this describes the situation correctly.  Jens\u0027 first fix was to use image.size() because that was stable, but image.stat() was behaving weird.  The ceph bug you linked to fixes image.stat() in master and backports a fix to H and J.  So the current code should work with upgraded H, upgraded J, and everything after J.  Jason Dillaman said in a comment that image.size() has been around for a while, so this current patch using image.size() only should work on even unpatched older systems.\n\nMaybe say something like,\n\n\u003e A Ceph bug, http://tracker.ceph.com/issues/17310, was causing intermittent image upload failures due to the way glance_store tried to determine the image size.  The glance_store code has been modified to use a more stable way to determine the image size, and in the meantime the Ceph bug has been fixed and backported to Jewel and Hammer.\n\nOr maybe we don\u0027t need a release note for this, because it seems to me that our fix is independent of the Ceph fix.  On the other hand, the ceph bug has been discussed on the ML, so we should probably mention it.","commit_id":"fe400d957bffaea8715cc183bf5bb8b609f75fc0"}]}
