)]}'
{"cinder/tests/scheduler/test_allocated_capacity_weigher.py":[{"author":{"_account_id":4355,"name":"Avishay Traeger","email":"avishay@stratoscale.com","username":"avishay-il"},"change_message_id":"a29e6895bc715ec630584ddd1b8249b824086c13","unresolved":false,"context_lines":[{"line_number":56,"context_line":""},{"line_number":57,"context_line":"        # host1: allocated_capacity_gb\u003d0, weight\u003d0"},{"line_number":58,"context_line":"        # host2: allocated_capacity_gb\u003d1748, weight\u003d-1748"},{"line_number":59,"context_line":"        # host3: allocated_capacity_gb\u003d0, weight\u003d-256"},{"line_number":60,"context_line":"        # host4: allocated_capacity_gb\u003d1848, weight\u003d-1848"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        # so, host1 should win:"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAATn%2F8mzQ%3D","line":59,"updated":"2013-12-24 12:24:58.000000000","message":"allocated_capacity_gb\u003d256","commit_id":"f3d93ecdabdf05eb868872a8a3ab7d970a75a3a6"},{"author":{"_account_id":2759,"name":"Huang Zhiteng","email":"winston.d@gmail.com","username":"zhiteng-huang"},"change_message_id":"efddf902ae9235f4011bdbda7ad767e4d94cadd8","unresolved":false,"context_lines":[{"line_number":56,"context_line":""},{"line_number":57,"context_line":"        # host1: allocated_capacity_gb\u003d0, weight\u003d0"},{"line_number":58,"context_line":"        # host2: allocated_capacity_gb\u003d1748, weight\u003d-1748"},{"line_number":59,"context_line":"        # host3: allocated_capacity_gb\u003d0, weight\u003d-256"},{"line_number":60,"context_line":"        # host4: allocated_capacity_gb\u003d1848, weight\u003d-1848"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"        # so, host1 should win:"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAATn%2F8mok%3D","line":59,"in_reply_to":"AAAATn%2F8mzQ%3D","updated":"2013-12-24 13:24:27.000000000","message":"Done","commit_id":"f3d93ecdabdf05eb868872a8a3ab7d970a75a3a6"},{"author":{"_account_id":4355,"name":"Avishay Traeger","email":"avishay@stratoscale.com","username":"avishay-il"},"change_message_id":"a29e6895bc715ec630584ddd1b8249b824086c13","unresolved":false,"context_lines":[{"line_number":70,"context_line":""},{"line_number":71,"context_line":"        # host1: allocated_capacity_gb\u003d0, weight\u003d0"},{"line_number":72,"context_line":"        # host2: allocated_capacity_gb\u003d1748, weight\u003d1748"},{"line_number":73,"context_line":"        # host3: allocated_capacity_gb\u003d0, weight\u003d256"},{"line_number":74,"context_line":"        # host4: allocated_capacity_gb\u003d1848, weight\u003d1848"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"        # so, host4 should win:"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAATn%2F8mzE%3D","line":73,"updated":"2013-12-24 12:24:58.000000000","message":"allocated_capacity_gb\u003d256","commit_id":"f3d93ecdabdf05eb868872a8a3ab7d970a75a3a6"},{"author":{"_account_id":2759,"name":"Huang Zhiteng","email":"winston.d@gmail.com","username":"zhiteng-huang"},"change_message_id":"efddf902ae9235f4011bdbda7ad767e4d94cadd8","unresolved":false,"context_lines":[{"line_number":70,"context_line":""},{"line_number":71,"context_line":"        # host1: allocated_capacity_gb\u003d0, weight\u003d0"},{"line_number":72,"context_line":"        # host2: allocated_capacity_gb\u003d1748, weight\u003d1748"},{"line_number":73,"context_line":"        # host3: allocated_capacity_gb\u003d0, weight\u003d256"},{"line_number":74,"context_line":"        # host4: allocated_capacity_gb\u003d1848, weight\u003d1848"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"        # so, host4 should win:"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAATn%2F8mog%3D","line":73,"in_reply_to":"AAAATn%2F8mzE%3D","updated":"2013-12-24 13:24:27.000000000","message":"Done","commit_id":"f3d93ecdabdf05eb868872a8a3ab7d970a75a3a6"},{"author":{"_account_id":4355,"name":"Avishay Traeger","email":"avishay@stratoscale.com","username":"avishay-il"},"change_message_id":"a29e6895bc715ec630584ddd1b8249b824086c13","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        # host1: allocated_capacity_gb\u003d0, weight\u003d0"},{"line_number":86,"context_line":"        # host2: allocated_capacity_gb\u003d1748, weight\u003d-3496"},{"line_number":87,"context_line":"        # host3: allocated_capacity_gb\u003d0, weight\u003d-512"},{"line_number":88,"context_line":"        # host4: allocated_capacity_gb\u003d1848, weight\u003d-3696"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        # so, host1 should win:"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAATn%2F8my4%3D","line":87,"updated":"2013-12-24 12:24:58.000000000","message":"allocated_capacity_gb\u003d256","commit_id":"f3d93ecdabdf05eb868872a8a3ab7d970a75a3a6"},{"author":{"_account_id":2759,"name":"Huang Zhiteng","email":"winston.d@gmail.com","username":"zhiteng-huang"},"change_message_id":"efddf902ae9235f4011bdbda7ad767e4d94cadd8","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        # host1: allocated_capacity_gb\u003d0, weight\u003d0"},{"line_number":86,"context_line":"        # host2: allocated_capacity_gb\u003d1748, weight\u003d-3496"},{"line_number":87,"context_line":"        # host3: allocated_capacity_gb\u003d0, weight\u003d-512"},{"line_number":88,"context_line":"        # host4: allocated_capacity_gb\u003d1848, weight\u003d-3696"},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        # so, host1 should win:"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAATn%2F8moc%3D","line":87,"in_reply_to":"AAAATn%2F8my4%3D","updated":"2013-12-24 13:24:27.000000000","message":"Done","commit_id":"f3d93ecdabdf05eb868872a8a3ab7d970a75a3a6"},{"author":{"_account_id":7494,"name":"Guangya Liu","email":"gyliu513@gmail.com","username":"JayLau"},"change_message_id":"7b3fe352316ed5fbc1cd2cee7131bdf42a1dce9b","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"import mock"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from oslo.config import cfg"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"from cinder import context"},{"line_number":25,"context_line":"from cinder.openstack.common.scheduler.weights import HostWeightHandler"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAT3%2F%2F8w4%3D","line":22,"updated":"2013-12-26 13:40:47.000000000","message":"Put those two imports together.","commit_id":"7b971c005833e06f047e8673459b54a0f7fee1d8"}],"cinder/tests/test_rbd.py":[{"author":{"_account_id":7494,"name":"Guangya Liu","email":"gyliu513@gmail.com","username":"JayLau"},"change_message_id":"7b3fe352316ed5fbc1cd2cee7131bdf42a1dce9b","unresolved":false,"context_lines":[{"line_number":702,"context_line":"        super(ManagedRBDTestCase, self).setUp()"},{"line_number":703,"context_line":"        fake_image.stub_out_image_service(self.stubs)"},{"line_number":704,"context_line":"        self.volume.driver.set_initialized()"},{"line_number":705,"context_line":"        self.volume.stats \u003d dict(allocated_capacity_gb\u003d0)"},{"line_number":706,"context_line":"        self.called \u003d []"},{"line_number":707,"context_line":""},{"line_number":708,"context_line":"    def _create_volume_from_image(self, expected_status, raw\u003dFalse,"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAT3%2F%2F8wc%3D","line":705,"updated":"2013-12-26 13:40:47.000000000","message":"please use {} instead of dict() http://doughellmann.com/2012/11/the-performance-impact-of-using-dict-instead-of-in-cpython-2-7.html","commit_id":"7b971c005833e06f047e8673459b54a0f7fee1d8"}],"cinder/tests/test_volume.py":[{"author":{"_account_id":7494,"name":"Guangya Liu","email":"gyliu513@gmail.com","username":"JayLau"},"change_message_id":"7b3fe352316ed5fbc1cd2cee7131bdf42a1dce9b","unresolved":false,"context_lines":[{"line_number":113,"context_line":"        self.stubs.Set(brick_lvm.LVM, \u0027_vg_exists\u0027, lambda x: True)"},{"line_number":114,"context_line":"        self.stubs.Set(os.path, \u0027exists\u0027, lambda x: True)"},{"line_number":115,"context_line":"        self.volume.driver.set_initialized()"},{"line_number":116,"context_line":"        self.volume.stats \u003d dict(allocated_capacity_gb\u003d0)"},{"line_number":117,"context_line":"        # keep ordered record of what we execute"},{"line_number":118,"context_line":"        self.called \u003d []"},{"line_number":119,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAT3%2F%2F8wY%3D","line":116,"updated":"2013-12-26 13:40:47.000000000","message":"please use {} instead of dict() http://doughellmann.com/2012/11/the-performance-impact-of-using-dict-instead-of-in-cpython-2-7.html","commit_id":"7b971c005833e06f047e8673459b54a0f7fee1d8"}],"cinder/volume/manager.py":[{"author":{"_account_id":7494,"name":"Guangya Liu","email":"gyliu513@gmail.com","username":"JayLau"},"change_message_id":"7b3fe352316ed5fbc1cd2cee7131bdf42a1dce9b","unresolved":false,"context_lines":[{"line_number":245,"context_line":""},{"line_number":246,"context_line":"        try:"},{"line_number":247,"context_line":"            sum \u003d 0"},{"line_number":248,"context_line":"            self.stats.update(dict(allocated_capacity_gb\u003dsum))"},{"line_number":249,"context_line":"            for volume in volumes:"},{"line_number":250,"context_line":"                if volume[\u0027status\u0027] in [\u0027available\u0027, \u0027in-use\u0027]:"},{"line_number":251,"context_line":"                    # calculate allocated capacity for driver"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAT3%2F%2F8wQ%3D","line":248,"updated":"2013-12-26 13:40:47.000000000","message":"please use {} instead of dict() http://doughellmann.com/2012/11/the-performance-impact-of-using-dict-instead-of-in-cpython-2-7.html","commit_id":"7b971c005833e06f047e8673459b54a0f7fee1d8"},{"author":{"_account_id":7494,"name":"Guangya Liu","email":"gyliu513@gmail.com","username":"JayLau"},"change_message_id":"7b3fe352316ed5fbc1cd2cee7131bdf42a1dce9b","unresolved":false,"context_lines":[{"line_number":249,"context_line":"            for volume in volumes:"},{"line_number":250,"context_line":"                if volume[\u0027status\u0027] in [\u0027available\u0027, \u0027in-use\u0027]:"},{"line_number":251,"context_line":"                    # calculate allocated capacity for driver"},{"line_number":252,"context_line":"                    # XXX (zhiteng) Should volumes in \u0027error\u0027 stat be included?"},{"line_number":253,"context_line":"                    sum +\u003d volume[\u0027size\u0027]"},{"line_number":254,"context_line":"                    self.stats[\u0027allocated_capacity_gb\u0027] \u003d sum"},{"line_number":255,"context_line":"                    self.driver.ensure_export(ctxt, volume)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAT3%2F%2F8wI%3D","line":252,"updated":"2013-12-26 13:40:47.000000000","message":"XXX \u003d\u003d\u003e TODO","commit_id":"7b971c005833e06f047e8673459b54a0f7fee1d8"}]}
