)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"f52a54c032dcec8e1f63e386d72aa57f5a4334f4","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Support shrink_share in Huawei driver"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"- Add implementation for shrink_share() method"},{"line_number":10,"context_line":"- Add shrink_share unit tests"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: Ic366e7c93228ec9afcb453b475e737f258b43072"},{"line_number":13,"context_line":"Implements blueprint huawei-driver-shrink-share"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"9a41bdd9_d37ac2bc","line":10,"updated":"2015-07-15 20:59:42.000000000","message":"OK, but I think in the future you can just assume the unit tests are included and don\u0027t need to mention it in every commit message.","commit_id":"238c4f209b2a65d010a1aa233a9c486c8a62841a"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"2d00bec0805b5a5e205a45233a53d2aba43b2253","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Support shrink_share in Huawei driver"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"- Add implementation for shrink_share() method"},{"line_number":10,"context_line":"- Add shrink_share unit tests"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: Ic366e7c93228ec9afcb453b475e737f258b43072"},{"line_number":13,"context_line":"Implements blueprint huawei-driver-shrink-share"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"9a41bdd9_c96689ec","line":10,"in_reply_to":"9a41bdd9_d37ac2bc","updated":"2015-07-16 07:01:14.000000000","message":":) ok, I will do.","commit_id":"238c4f209b2a65d010a1aa233a9c486c8a62841a"}],"manila/share/drivers/huawei/base.py":[{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"5fd1b1a2d90256746cda721abfc3e21fdfaf5c1a","unresolved":false,"context_lines":[{"line_number":59,"context_line":"    def shrink_share(self, share, new_size, share_server):"},{"line_number":60,"context_line":"        \"\"\"Shrinks size of existing share.\"\"\""},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    @abc.abstractmethod"},{"line_number":63,"context_line":"    def get_network_allocations_number(self):"},{"line_number":64,"context_line":"        \"\"\"Get number of network interfaces to be created.\"\"\""},{"line_number":65,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a41bdd9_aa365301","line":62,"updated":"2015-07-12 21:18:28.000000000","message":"This is an unrelated change.","commit_id":"c07a54b36d7d24120972bc0235157f2f6ee11c9b"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"64e2ff33704e18fecebe9751f60c620859df431a","unresolved":false,"context_lines":[{"line_number":59,"context_line":"    def shrink_share(self, share, new_size, share_server):"},{"line_number":60,"context_line":"        \"\"\"Shrinks size of existing share.\"\"\""},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    @abc.abstractmethod"},{"line_number":63,"context_line":"    def get_network_allocations_number(self):"},{"line_number":64,"context_line":"        \"\"\"Get number of network interfaces to be created.\"\"\""},{"line_number":65,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_60e11fd0","line":62,"in_reply_to":"9a41bdd9_aa365301","updated":"2015-07-21 06:40:03.000000000","message":"Just add:\n    @abc.abstractmethod\n    def shrink_share(self, share, new_size, share_server):\n        \"\"\"Shrinks size of existing share.\"\"\"\n\nThis is display misplaced.","commit_id":"c07a54b36d7d24120972bc0235157f2f6ee11c9b"}],"manila/share/drivers/huawei/huawei_nas.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"1f2f3ae3d52e939cec21487a20e13dc408bdb312","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    Executes commands relating to Shares."},{"line_number":46,"context_line":"    API version history:"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        1.0 - Initial version."},{"line_number":49,"context_line":"    \"\"\""},{"line_number":50,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9a41bdd9_048601b9","line":47,"updated":"2015-07-14 12:15:08.000000000","message":"What about update of this? That also should have been update with addon of \"extend\"  feature.","commit_id":"525547b3490599dff0f28e0fa70fc38872529c7d"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"f13ccf6a15d5aeb669e6aa5cb42deb00daba0375","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    Executes commands relating to Shares."},{"line_number":46,"context_line":"    API version history:"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        1.0 - Initial version."},{"line_number":49,"context_line":"    \"\"\""},{"line_number":50,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9a41bdd9_d340d9a7","line":47,"in_reply_to":"9a41bdd9_048601b9","updated":"2015-07-14 14:01:03.000000000","message":"Done","commit_id":"525547b3490599dff0f28e0fa70fc38872529c7d"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"1f2f3ae3d52e939cec21487a20e13dc408bdb312","unresolved":false,"context_lines":[{"line_number":155,"context_line":"        backend_name \u003d self.configuration.safe_get(\u0027share_backend_name\u0027)"},{"line_number":156,"context_line":"        data \u003d dict("},{"line_number":157,"context_line":"            share_backend_name\u003dbackend_name or \u0027HUAWEI_NAS_Driver\u0027,"},{"line_number":158,"context_line":"            vendor_name\u003d\u0027Huawei\u0027,"},{"line_number":159,"context_line":"            storage_protocol\u003d\u0027NFS_CIFS\u0027)"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"        self.plugin.update_share_stats(data)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a41bdd9_6464ad21","line":158,"updated":"2015-07-14 12:15:08.000000000","message":"And provide here updated driver version?","commit_id":"525547b3490599dff0f28e0fa70fc38872529c7d"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"f13ccf6a15d5aeb669e6aa5cb42deb00daba0375","unresolved":false,"context_lines":[{"line_number":155,"context_line":"        backend_name \u003d self.configuration.safe_get(\u0027share_backend_name\u0027)"},{"line_number":156,"context_line":"        data \u003d dict("},{"line_number":157,"context_line":"            share_backend_name\u003dbackend_name or \u0027HUAWEI_NAS_Driver\u0027,"},{"line_number":158,"context_line":"            vendor_name\u003d\u0027Huawei\u0027,"},{"line_number":159,"context_line":"            storage_protocol\u003d\u0027NFS_CIFS\u0027)"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"        self.plugin.update_share_stats(data)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a41bdd9_b3ee75b2","line":158,"in_reply_to":"9a41bdd9_6464ad21","updated":"2015-07-14 14:01:03.000000000","message":"Done","commit_id":"525547b3490599dff0f28e0fa70fc38872529c7d"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"f52a54c032dcec8e1f63e386d72aa57f5a4334f4","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        1.0 - Initial version."},{"line_number":49,"context_line":"        1.1 - Add extend share"},{"line_number":50,"context_line":"              Add read-only share"},{"line_number":51,"context_line":"              Add shrink share"},{"line_number":52,"context_line":"    \"\"\""},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"    def __init__(self, *args, **kwargs):"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a41bdd9_ae179543","line":51,"updated":"2015-07-15 20:59:42.000000000","message":"I\u0027m assuming extend and read-only happened sometime after 1.0 so you are including them here.","commit_id":"238c4f209b2a65d010a1aa233a9c486c8a62841a"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"a4ca534767f34f433aeac9178273813669a177f3","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        1.0 - Initial version."},{"line_number":49,"context_line":"        1.1 - Add extend share"},{"line_number":50,"context_line":"              Add read-only share"},{"line_number":51,"context_line":"              Add shrink share"},{"line_number":52,"context_line":"    \"\"\""},{"line_number":53,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_7d8fc1cc","line":50,"updated":"2015-07-24 07:38:17.000000000","message":"I think 48-50 lines should be removed because you add in this patch only shrink share functionality.","commit_id":"f5f482adb27da239ca4570ee955f76b838a20ab5"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"3a6d713d1fddb8201932269f012b7c978b8c66fe","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"        1.0 - Initial version."},{"line_number":49,"context_line":"        1.1 - Add extend share"},{"line_number":50,"context_line":"              Add read-only share"},{"line_number":51,"context_line":"              Add shrink share"},{"line_number":52,"context_line":"    \"\"\""},{"line_number":53,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_08875dd8","line":50,"in_reply_to":"3a50d1a3_7d8fc1cc","updated":"2015-07-24 08:09:40.000000000","message":"Done","commit_id":"f5f482adb27da239ca4570ee955f76b838a20ab5"}],"manila/share/drivers/huawei/v3/connection.py":[{"author":{"_account_id":16883,"name":"huyang","email":"huyang1@huawei.com","username":"huyang"},"change_message_id":"810474eefbb48aa95d18638048ef9d7e8c164c89","unresolved":false,"context_lines":[{"line_number":138,"context_line":"        current_size \u003d int(fs_info[\u0027CAPACITY\u0027]) / units.Mi / 2"},{"line_number":139,"context_line":"        if current_size \u003c\u003d new_size:"},{"line_number":140,"context_line":"            err_msg \u003d (_(\"New size for shrink must be lesser than current \""},{"line_number":141,"context_line":"                         \"size in array. (current: %(size)s, \""},{"line_number":142,"context_line":"                         \"extended: %(new_size)s).\")"},{"line_number":143,"context_line":"                       % {\u0027size\u0027: current_size, \u0027new_size\u0027: new_size})"},{"line_number":144,"context_line":"            LOG.error(err_msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a41bdd9_73ddc86f","line":141,"updated":"2015-07-11 02:17:58.000000000","message":"in array -\u003e on array","commit_id":"c07a54b36d7d24120972bc0235157f2f6ee11c9b"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"349679e774b5080a0a240e0c9bf18aa1a33e8d21","unresolved":false,"context_lines":[{"line_number":138,"context_line":"        current_size \u003d int(fs_info[\u0027CAPACITY\u0027]) / units.Mi / 2"},{"line_number":139,"context_line":"        if current_size \u003c\u003d new_size:"},{"line_number":140,"context_line":"            err_msg \u003d (_(\"New size for shrink must be lesser than current \""},{"line_number":141,"context_line":"                         \"size in array. (current: %(size)s, \""},{"line_number":142,"context_line":"                         \"extended: %(new_size)s).\")"},{"line_number":143,"context_line":"                       % {\u0027size\u0027: current_size, \u0027new_size\u0027: new_size})"},{"line_number":144,"context_line":"            LOG.error(err_msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a41bdd9_6d937b5c","line":141,"in_reply_to":"9a41bdd9_73ddc86f","updated":"2015-07-13 09:35:57.000000000","message":"Done","commit_id":"c07a54b36d7d24120972bc0235157f2f6ee11c9b"},{"author":{"_account_id":16883,"name":"huyang","email":"huyang1@huawei.com","username":"huyang"},"change_message_id":"810474eefbb48aa95d18638048ef9d7e8c164c89","unresolved":false,"context_lines":[{"line_number":139,"context_line":"        if current_size \u003c\u003d new_size:"},{"line_number":140,"context_line":"            err_msg \u003d (_(\"New size for shrink must be lesser than current \""},{"line_number":141,"context_line":"                         \"size in array. (current: %(size)s, \""},{"line_number":142,"context_line":"                         \"extended: %(new_size)s).\")"},{"line_number":143,"context_line":"                       % {\u0027size\u0027: current_size, \u0027new_size\u0027: new_size})"},{"line_number":144,"context_line":"            LOG.error(err_msg)"},{"line_number":145,"context_line":"            raise exception.InvalidShare(reason\u003derr_msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a41bdd9_33be6000","line":142,"updated":"2015-07-11 02:17:58.000000000","message":"extended -\u003e shrink","commit_id":"c07a54b36d7d24120972bc0235157f2f6ee11c9b"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"349679e774b5080a0a240e0c9bf18aa1a33e8d21","unresolved":false,"context_lines":[{"line_number":139,"context_line":"        if current_size \u003c\u003d new_size:"},{"line_number":140,"context_line":"            err_msg \u003d (_(\"New size for shrink must be lesser than current \""},{"line_number":141,"context_line":"                         \"size in array. (current: %(size)s, \""},{"line_number":142,"context_line":"                         \"extended: %(new_size)s).\")"},{"line_number":143,"context_line":"                       % {\u0027size\u0027: current_size, \u0027new_size\u0027: new_size})"},{"line_number":144,"context_line":"            LOG.error(err_msg)"},{"line_number":145,"context_line":"            raise exception.InvalidShare(reason\u003derr_msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a41bdd9_0da0af9e","line":142,"in_reply_to":"9a41bdd9_33be6000","updated":"2015-07-13 09:35:57.000000000","message":"Done","commit_id":"c07a54b36d7d24120972bc0235157f2f6ee11c9b"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"5fd1b1a2d90256746cda721abfc3e21fdfaf5c1a","unresolved":false,"context_lines":[{"line_number":145,"context_line":"            raise exception.InvalidShare(reason\u003derr_msg)"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        if fs_info[\u0027ALLOCTYPE\u0027] !\u003d \u00271\u0027:"},{"line_number":148,"context_line":"            err_msg \u003d (_(\"Share(%s) can not be shrink, only \u0027Thin\u0027 share \""},{"line_number":149,"context_line":"                         \"support shrink.\")"},{"line_number":150,"context_line":"                       % share_name)"},{"line_number":151,"context_line":"            LOG.error(err_msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a41bdd9_1542003f","line":148,"updated":"2015-07-12 21:18:28.000000000","message":"shrink -\u003e shrunk","commit_id":"c07a54b36d7d24120972bc0235157f2f6ee11c9b"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"349679e774b5080a0a240e0c9bf18aa1a33e8d21","unresolved":false,"context_lines":[{"line_number":145,"context_line":"            raise exception.InvalidShare(reason\u003derr_msg)"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        if fs_info[\u0027ALLOCTYPE\u0027] !\u003d \u00271\u0027:"},{"line_number":148,"context_line":"            err_msg \u003d (_(\"Share(%s) can not be shrink, only \u0027Thin\u0027 share \""},{"line_number":149,"context_line":"                         \"support shrink.\")"},{"line_number":150,"context_line":"                       % share_name)"},{"line_number":151,"context_line":"            LOG.error(err_msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a41bdd9_ad87430e","line":148,"in_reply_to":"9a41bdd9_1542003f","updated":"2015-07-13 09:35:57.000000000","message":"Done","commit_id":"c07a54b36d7d24120972bc0235157f2f6ee11c9b"},{"author":{"_account_id":16883,"name":"huyang","email":"huyang1@huawei.com","username":"huyang"},"change_message_id":"810474eefbb48aa95d18638048ef9d7e8c164c89","unresolved":false,"context_lines":[{"line_number":199,"context_line":""},{"line_number":200,"context_line":"        if snapshot_flag:"},{"line_number":201,"context_line":"            self.helper._delete_snapshot(snapshot_id)"},{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            LOG.warning(_LW(\"Can not find snapshot %s in array.\"), snap_name)"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"    def update_share_stats(self, stats_dict):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a41bdd9_b3403009","line":202,"updated":"2015-07-11 02:17:58.000000000","message":"in array -\u003e on array","commit_id":"c07a54b36d7d24120972bc0235157f2f6ee11c9b"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"349679e774b5080a0a240e0c9bf18aa1a33e8d21","unresolved":false,"context_lines":[{"line_number":199,"context_line":""},{"line_number":200,"context_line":"        if snapshot_flag:"},{"line_number":201,"context_line":"            self.helper._delete_snapshot(snapshot_id)"},{"line_number":202,"context_line":"        else:"},{"line_number":203,"context_line":"            LOG.warning(_LW(\"Can not find snapshot %s in array.\"), snap_name)"},{"line_number":204,"context_line":""},{"line_number":205,"context_line":"    def update_share_stats(self, stats_dict):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a41bdd9_0d774f3b","line":202,"in_reply_to":"9a41bdd9_b3403009","updated":"2015-07-13 09:35:57.000000000","message":"Done","commit_id":"c07a54b36d7d24120972bc0235157f2f6ee11c9b"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"f52a54c032dcec8e1f63e386d72aa57f5a4334f4","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        share_proto \u003d share[\u0027share_proto\u0027]"},{"line_number":117,"context_line":"        share_name \u003d share[\u0027name\u0027]"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"        # The unit is the sectors."},{"line_number":120,"context_line":"        size \u003d new_size * units.Mi * 2"},{"line_number":121,"context_line":"        share_url_type \u003d self.helper._get_share_url_type(share_proto)"},{"line_number":122,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"9a41bdd9_8e6171d5","line":119,"updated":"2015-07-15 20:59:42.000000000","message":"The unit is sectors.  Or maybe \"in sectors\".","commit_id":"238c4f209b2a65d010a1aa233a9c486c8a62841a"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"2d00bec0805b5a5e205a45233a53d2aba43b2253","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        share_proto \u003d share[\u0027share_proto\u0027]"},{"line_number":117,"context_line":"        share_name \u003d share[\u0027name\u0027]"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"        # The unit is the sectors."},{"line_number":120,"context_line":"        size \u003d new_size * units.Mi * 2"},{"line_number":121,"context_line":"        share_url_type \u003d self.helper._get_share_url_type(share_proto)"},{"line_number":122,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"9a41bdd9_89be41ac","line":119,"in_reply_to":"9a41bdd9_8e6171d5","updated":"2015-07-16 07:01:14.000000000","message":"Done","commit_id":"238c4f209b2a65d010a1aa233a9c486c8a62841a"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"f52a54c032dcec8e1f63e386d72aa57f5a4334f4","unresolved":false,"context_lines":[{"line_number":122,"context_line":""},{"line_number":123,"context_line":"        share \u003d self.helper._get_share_by_name(share_name, share_url_type)"},{"line_number":124,"context_line":"        if not share:"},{"line_number":125,"context_line":"            err_msg \u003d (_(\"Can not get share ID by share %s.\")"},{"line_number":126,"context_line":"                       % share_name)"},{"line_number":127,"context_line":"            LOG.error(err_msg)"},{"line_number":128,"context_line":"            raise exception.InvalidShare(reason\u003derr_msg)"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a41bdd9_2e114504","line":125,"updated":"2015-07-15 20:59:42.000000000","message":"Just FYI: \"Cannot\" is more correct than \"Can not\" in cases like this -- but to be consistent with other messages nearby, I usually ignore that and just be consistent.","commit_id":"238c4f209b2a65d010a1aa233a9c486c8a62841a"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"f52a54c032dcec8e1f63e386d72aa57f5a4334f4","unresolved":false,"context_lines":[{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        current_size \u003d int(fs_info[\u0027CAPACITY\u0027]) / units.Mi / 2"},{"line_number":139,"context_line":"        if current_size \u003c new_size:"},{"line_number":140,"context_line":"            err_msg \u003d (_(\"New size for shrink must be lesser than current \""},{"line_number":141,"context_line":"                         \"size on array. (current: %(size)s, \""},{"line_number":142,"context_line":"                         \"new: %(new_size)s).\")"},{"line_number":143,"context_line":"                       % {\u0027size\u0027: current_size, \u0027new_size\u0027: new_size})"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a41bdd9_2eb625f9","line":140,"updated":"2015-07-15 20:59:42.000000000","message":"s/lesser/less/","commit_id":"238c4f209b2a65d010a1aa233a9c486c8a62841a"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"2d00bec0805b5a5e205a45233a53d2aba43b2253","unresolved":false,"context_lines":[{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        current_size \u003d int(fs_info[\u0027CAPACITY\u0027]) / units.Mi / 2"},{"line_number":139,"context_line":"        if current_size \u003c new_size:"},{"line_number":140,"context_line":"            err_msg \u003d (_(\"New size for shrink must be lesser than current \""},{"line_number":141,"context_line":"                         \"size on array. (current: %(size)s, \""},{"line_number":142,"context_line":"                         \"new: %(new_size)s).\")"},{"line_number":143,"context_line":"                       % {\u0027size\u0027: current_size, \u0027new_size\u0027: new_size})"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a41bdd9_69f09dc9","line":140,"in_reply_to":"9a41bdd9_2eb625f9","updated":"2015-07-16 07:01:14.000000000","message":"Done","commit_id":"238c4f209b2a65d010a1aa233a9c486c8a62841a"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"f52a54c032dcec8e1f63e386d72aa57f5a4334f4","unresolved":false,"context_lines":[{"line_number":145,"context_line":"            raise exception.InvalidShare(reason\u003derr_msg)"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        if fs_info[\u0027ALLOCTYPE\u0027] !\u003d \u00271\u0027:"},{"line_number":148,"context_line":"            err_msg \u003d (_(\"Share(%s) can not be shrunk, only \u0027Thin\u0027 share \""},{"line_number":149,"context_line":"                         \"support shrink.\")"},{"line_number":150,"context_line":"                       % share_name)"},{"line_number":151,"context_line":"            LOG.error(err_msg)"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a41bdd9_ce98d97a","line":148,"updated":"2015-07-15 20:59:42.000000000","message":"Add a space after \"Share\". Probably change the comma to a period.  The second \"share\" should be \"shares\".","commit_id":"238c4f209b2a65d010a1aa233a9c486c8a62841a"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"2d00bec0805b5a5e205a45233a53d2aba43b2253","unresolved":false,"context_lines":[{"line_number":145,"context_line":"            raise exception.InvalidShare(reason\u003derr_msg)"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        if fs_info[\u0027ALLOCTYPE\u0027] !\u003d \u00271\u0027:"},{"line_number":148,"context_line":"            err_msg \u003d (_(\"Share(%s) can not be shrunk, only \u0027Thin\u0027 share \""},{"line_number":149,"context_line":"                         \"support shrink.\")"},{"line_number":150,"context_line":"                       % share_name)"},{"line_number":151,"context_line":"            LOG.error(err_msg)"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a41bdd9_c9e52909","line":148,"in_reply_to":"9a41bdd9_ce98d97a","updated":"2015-07-16 07:01:14.000000000","message":"Done","commit_id":"238c4f209b2a65d010a1aa233a9c486c8a62841a"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"a4ca534767f34f433aeac9178273813669a177f3","unresolved":false,"context_lines":[{"line_number":146,"context_line":"            err_msg \u003d (_(\"Can not get filesystem info by filesystem ID: %s.\")"},{"line_number":147,"context_line":"                       % fsid)"},{"line_number":148,"context_line":"            LOG.error(err_msg)"},{"line_number":149,"context_line":"            raise exception.InvalidShareAccess(reason\u003derr_msg)"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"        current_size \u003d int(fs_info[\u0027CAPACITY\u0027]) / units.Mi / 2"},{"line_number":152,"context_line":"        if current_size \u003c new_size:"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_681ce16a","line":149,"updated":"2015-07-24 07:38:17.000000000","message":"You shouldn\u0027t use this exception type here because InvalidShareAccess is about access rules to share. Please replace by exception.InvalidShare","commit_id":"f5f482adb27da239ca4570ee955f76b838a20ab5"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"3a6d713d1fddb8201932269f012b7c978b8c66fe","unresolved":false,"context_lines":[{"line_number":146,"context_line":"            err_msg \u003d (_(\"Can not get filesystem info by filesystem ID: %s.\")"},{"line_number":147,"context_line":"                       % fsid)"},{"line_number":148,"context_line":"            LOG.error(err_msg)"},{"line_number":149,"context_line":"            raise exception.InvalidShareAccess(reason\u003derr_msg)"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"        current_size \u003d int(fs_info[\u0027CAPACITY\u0027]) / units.Mi / 2"},{"line_number":152,"context_line":"        if current_size \u003c new_size:"}],"source_content_type":"text/x-python","patch_set":11,"id":"3a50d1a3_487d65e6","line":149,"in_reply_to":"3a50d1a3_681ce16a","updated":"2015-07-24 08:09:40.000000000","message":"Done","commit_id":"f5f482adb27da239ca4570ee955f76b838a20ab5"}],"manila/share/drivers/huawei/v3/helper.py":[{"author":{"_account_id":16883,"name":"huyang","email":"huyang1@huawei.com","username":"huyang"},"change_message_id":"810474eefbb48aa95d18638048ef9d7e8c164c89","unresolved":false,"context_lines":[{"line_number":552,"context_line":"                       + snap_name.replace(\"-\", \"_\"))"},{"line_number":553,"context_line":"        return snapshot_id"},{"line_number":554,"context_line":""},{"line_number":555,"context_line":"    def _change_share_capabilite(self, fsid, new_size):"},{"line_number":556,"context_line":"        url \u003d self.url + \"/filesystem/%s\" % fsid"},{"line_number":557,"context_line":""},{"line_number":558,"context_line":"        capacityinfo \u003d {"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a41bdd9_f3e8f818","line":555,"updated":"2015-07-11 02:17:58.000000000","message":"capabilite -\u003e capability or capabilites","commit_id":"c07a54b36d7d24120972bc0235157f2f6ee11c9b"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"349679e774b5080a0a240e0c9bf18aa1a33e8d21","unresolved":false,"context_lines":[{"line_number":552,"context_line":"                       + snap_name.replace(\"-\", \"_\"))"},{"line_number":553,"context_line":"        return snapshot_id"},{"line_number":554,"context_line":""},{"line_number":555,"context_line":"    def _change_share_capabilite(self, fsid, new_size):"},{"line_number":556,"context_line":"        url \u003d self.url + \"/filesystem/%s\" % fsid"},{"line_number":557,"context_line":""},{"line_number":558,"context_line":"        capacityinfo \u003d {"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a41bdd9_2dc25334","line":555,"in_reply_to":"9a41bdd9_2a2323bf","updated":"2015-07-13 09:35:57.000000000","message":"Done","commit_id":"c07a54b36d7d24120972bc0235157f2f6ee11c9b"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"349679e774b5080a0a240e0c9bf18aa1a33e8d21","unresolved":false,"context_lines":[{"line_number":552,"context_line":"                       + snap_name.replace(\"-\", \"_\"))"},{"line_number":553,"context_line":"        return snapshot_id"},{"line_number":554,"context_line":""},{"line_number":555,"context_line":"    def _change_share_capabilite(self, fsid, new_size):"},{"line_number":556,"context_line":"        url \u003d self.url + \"/filesystem/%s\" % fsid"},{"line_number":557,"context_line":""},{"line_number":558,"context_line":"        capacityinfo \u003d {"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a41bdd9_6dc85b56","line":555,"in_reply_to":"9a41bdd9_f3e8f818","updated":"2015-07-13 09:35:57.000000000","message":"Done","commit_id":"c07a54b36d7d24120972bc0235157f2f6ee11c9b"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"5fd1b1a2d90256746cda721abfc3e21fdfaf5c1a","unresolved":false,"context_lines":[{"line_number":552,"context_line":"                       + snap_name.replace(\"-\", \"_\"))"},{"line_number":553,"context_line":"        return snapshot_id"},{"line_number":554,"context_line":""},{"line_number":555,"context_line":"    def _change_share_capabilite(self, fsid, new_size):"},{"line_number":556,"context_line":"        url \u003d self.url + \"/filesystem/%s\" % fsid"},{"line_number":557,"context_line":""},{"line_number":558,"context_line":"        capacityinfo \u003d {"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a41bdd9_2a2323bf","line":555,"in_reply_to":"9a41bdd9_f3e8f818","updated":"2015-07-12 21:18:28.000000000","message":"This function should be called _change_share_capacity or _change_share_size.","commit_id":"c07a54b36d7d24120972bc0235157f2f6ee11c9b"},{"author":{"_account_id":16883,"name":"huyang","email":"huyang1@huawei.com","username":"huyang"},"change_message_id":"810474eefbb48aa95d18638048ef9d7e8c164c89","unresolved":false,"context_lines":[{"line_number":562,"context_line":"        data \u003d jsonutils.dumps(capacityinfo)"},{"line_number":563,"context_line":"        result \u003d self.call(url, data, \"PUT\")"},{"line_number":564,"context_line":""},{"line_number":565,"context_line":"        msg \u003d \"Extend a share error!\""},{"line_number":566,"context_line":"        self._assert_rest_result(result, msg)"},{"line_number":567,"context_line":"        self._assert_data_in_result(result, msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a41bdd9_3390a095","line":565,"updated":"2015-07-11 02:17:58.000000000","message":"This function looks like to extend or shrink share. So the log should change to \"Change share capability error!\".","commit_id":"c07a54b36d7d24120972bc0235157f2f6ee11c9b"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"349679e774b5080a0a240e0c9bf18aa1a33e8d21","unresolved":false,"context_lines":[{"line_number":562,"context_line":"        data \u003d jsonutils.dumps(capacityinfo)"},{"line_number":563,"context_line":"        result \u003d self.call(url, data, \"PUT\")"},{"line_number":564,"context_line":""},{"line_number":565,"context_line":"        msg \u003d \"Extend a share error!\""},{"line_number":566,"context_line":"        self._assert_rest_result(result, msg)"},{"line_number":567,"context_line":"        self._assert_data_in_result(result, msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a41bdd9_ad03c372","line":565,"in_reply_to":"9a41bdd9_3390a095","updated":"2015-07-13 09:35:57.000000000","message":"Done","commit_id":"c07a54b36d7d24120972bc0235157f2f6ee11c9b"},{"author":{"_account_id":16883,"name":"huyang","email":"huyang1@huawei.com","username":"huyang"},"change_message_id":"f32b7e2c87ef78a98b33ebff672bd9da9b172911","unresolved":false,"context_lines":[{"line_number":607,"context_line":"        data \u003d jsonutils.dumps(capacityinfo)"},{"line_number":608,"context_line":"        result \u003d self.call(url, data, \"PUT\")"},{"line_number":609,"context_line":""},{"line_number":610,"context_line":"        msg \u003d \"Extend a share error!\""},{"line_number":611,"context_line":"        self._assert_rest_result(result, msg)"},{"line_number":612,"context_line":"        self._assert_data_in_result(result, msg)"}],"source_content_type":"text/x-python","patch_set":9,"id":"3a50d1a3_6ea03ba0","line":610,"updated":"2015-07-21 01:12:59.000000000","message":"Change the message to \"Change share size error!\".","commit_id":"99a2262e2e21a2da229b1c0a24ea9c1faabfd839"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"919872985698cd22c08d02635223c26bb06939eb","unresolved":false,"context_lines":[{"line_number":607,"context_line":"        data \u003d jsonutils.dumps(capacityinfo)"},{"line_number":608,"context_line":"        result \u003d self.call(url, data, \"PUT\")"},{"line_number":609,"context_line":""},{"line_number":610,"context_line":"        msg \u003d \"Extend a share error!\""},{"line_number":611,"context_line":"        self._assert_rest_result(result, msg)"},{"line_number":612,"context_line":"        self._assert_data_in_result(result, msg)"}],"source_content_type":"text/x-python","patch_set":9,"id":"3a50d1a3_694a75c7","line":610,"in_reply_to":"3a50d1a3_6ea03ba0","updated":"2015-07-21 01:54:41.000000000","message":"Done","commit_id":"99a2262e2e21a2da229b1c0a24ea9c1faabfd839"}],"manila/tests/share/drivers/huawei/test_huawei_nas.py":[{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"5fd1b1a2d90256746cda721abfc3e21fdfaf5c1a","unresolved":false,"context_lines":[{"line_number":321,"context_line":"                \"NAME\":\"share_fake_uuid\"}]}\"\"\""},{"line_number":322,"context_line":""},{"line_number":323,"context_line":"            if url \u003d\u003d \"filesystem/4\":"},{"line_number":324,"context_line":"                data, self.extend_share_flag, self.shrink_share_flag \u003d \\"},{"line_number":325,"context_line":"                    filesystem(method, data, self.fs_status_flag)"},{"line_number":326,"context_line":"                self.delete_flag \u003d True"},{"line_number":327,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a41bdd9_b5047415","line":324,"updated":"2015-07-12 21:18:28.000000000","message":"Use () instead of \\","commit_id":"c07a54b36d7d24120972bc0235157f2f6ee11c9b"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"349679e774b5080a0a240e0c9bf18aa1a33e8d21","unresolved":false,"context_lines":[{"line_number":321,"context_line":"                \"NAME\":\"share_fake_uuid\"}]}\"\"\""},{"line_number":322,"context_line":""},{"line_number":323,"context_line":"            if url \u003d\u003d \"filesystem/4\":"},{"line_number":324,"context_line":"                data, self.extend_share_flag, self.shrink_share_flag \u003d \\"},{"line_number":325,"context_line":"                    filesystem(method, data, self.fs_status_flag)"},{"line_number":326,"context_line":"                self.delete_flag \u003d True"},{"line_number":327,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a41bdd9_8dd11fd0","line":324,"in_reply_to":"9a41bdd9_b5047415","updated":"2015-07-13 09:35:57.000000000","message":"Done","commit_id":"c07a54b36d7d24120972bc0235157f2f6ee11c9b"}]}
