)]}'
{"manila/api/v1/share_snapshots.py":[{"author":{"_account_id":2417,"name":"Ben Swartzlander","email":"ben@swartzlander.org","username":"bswartz"},"change_message_id":"42f0e60a099eb629559b3db70a897c78b6f15891","unresolved":false,"context_lines":[{"line_number":153,"context_line":""},{"line_number":154,"context_line":"        share_id \u003d snapshot[\u0027share_id\u0027]"},{"line_number":155,"context_line":"        share \u003d self.share_api.get(context, share_id)"},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"        # Verify that share can be snapshotted"},{"line_number":158,"context_line":"        snapshot_support_exception \u003d exc.HTTPUnprocessableEntity("},{"line_number":159,"context_line":"            \"Share can not be snapshotted.\")"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa1b9901_80c98f28","line":156,"updated":"2015-08-19 18:58:28.000000000","message":"Need a TODO here to mention saving the snapshots_supported value from the time the share was created, since it\u0027s possible to modify that extra spec after the share is created.","commit_id":"db360d016925cc52e8f410535a942382c7932d52"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"3fb295bb2787f8974a69259f1326957a8027524a","unresolved":false,"context_lines":[{"line_number":153,"context_line":""},{"line_number":154,"context_line":"        share_id \u003d snapshot[\u0027share_id\u0027]"},{"line_number":155,"context_line":"        share \u003d self.share_api.get(context, share_id)"},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"        # Verify that share can be snapshotted"},{"line_number":158,"context_line":"        snapshot_support_exception \u003d exc.HTTPUnprocessableEntity("},{"line_number":159,"context_line":"            \"Share can not be snapshotted.\")"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa1b9901_11763bd7","line":156,"in_reply_to":"fa1b9901_80c98f28","updated":"2015-08-25 17:25:09.000000000","message":"Instead of TODO, I implemented it.","commit_id":"db360d016925cc52e8f410535a942382c7932d52"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"f65a009a3535ed2b28227e1a8eef7f6e2ffdc867","unresolved":false,"context_lines":[{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        # Verify that share can be snapshotted"},{"line_number":154,"context_line":"        if not share[\u0027snapshot_support\u0027]:"},{"line_number":155,"context_line":"            msg \u003d _(\"Snapshot can not be created from a share \u0027%s\u0027, because \""},{"line_number":156,"context_line":"                    \"share back end does not support it.\") % share_id"},{"line_number":157,"context_line":"            LOG.error(msg)"},{"line_number":158,"context_line":"            raise exc.HTTPUnprocessableEntity(msg)"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa1b9901_6c0d433d","line":155,"updated":"2015-08-26 04:20:45.000000000","message":"s/can not/cannot/  s/a share/share/","commit_id":"aabe252b27d461cfebed780d88b5fde3a075674e"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"3a742310a917eba2807d54113971c0346a525f98","unresolved":false,"context_lines":[{"line_number":152,"context_line":""},{"line_number":153,"context_line":"        # Verify that share can be snapshotted"},{"line_number":154,"context_line":"        if not share[\u0027snapshot_support\u0027]:"},{"line_number":155,"context_line":"            msg \u003d _(\"Snapshot can not be created from a share \u0027%s\u0027, because \""},{"line_number":156,"context_line":"                    \"share back end does not support it.\") % share_id"},{"line_number":157,"context_line":"            LOG.error(msg)"},{"line_number":158,"context_line":"            raise exc.HTTPUnprocessableEntity(msg)"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa1b9901_355f8e10","line":155,"in_reply_to":"fa1b9901_6c0d433d","updated":"2015-08-26 05:03:49.000000000","message":"Done","commit_id":"aabe252b27d461cfebed780d88b5fde3a075674e"}],"manila/share/driver.py":[{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"37d71649a74020caca648617f65ec99159cc11a7","unresolved":false,"context_lines":[{"line_number":446,"context_line":"        raise NotImplementedError()"},{"line_number":447,"context_line":""},{"line_number":448,"context_line":"    @property"},{"line_number":449,"context_line":"    def snapshots_are_supported(self):"},{"line_number":450,"context_line":"        if not hasattr(self, \u0027_snapshots_are_supported\u0027):"},{"line_number":451,"context_line":"            methods \u003d ("},{"line_number":452,"context_line":"                \"create_snapshot\","}],"source_content_type":"text/x-python","patch_set":8,"id":"fa1b9901_bac9987b","line":449,"updated":"2015-08-24 20:09:30.000000000","message":"I see this mechanism (i.e. using runtime introspection) as far simpler and better than the ABC approach that Cinder has taken.  As such I would like to see it further generalized into two methods:\n\n    _has_driver_methods(self, method_list):\n        \u003creturns true if all listed methods are present\u003e\n    \n    snapshots_are_supported(self):\n        return self._has_driver_methods([\u0027create_snapshot\u0027, \u0027delete_snapshot\u0027, \u0027create_share_from_snapshot\u0027])\n\n(Obviously, the latter method should still have @property semantics and cache its value.)","commit_id":"db360d016925cc52e8f410535a942382c7932d52"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"3fb295bb2787f8974a69259f1326957a8027524a","unresolved":false,"context_lines":[{"line_number":446,"context_line":"        raise NotImplementedError()"},{"line_number":447,"context_line":""},{"line_number":448,"context_line":"    @property"},{"line_number":449,"context_line":"    def snapshots_are_supported(self):"},{"line_number":450,"context_line":"        if not hasattr(self, \u0027_snapshots_are_supported\u0027):"},{"line_number":451,"context_line":"            methods \u003d ("},{"line_number":452,"context_line":"                \"create_snapshot\","}],"source_content_type":"text/x-python","patch_set":8,"id":"fa1b9901_44439213","line":449,"in_reply_to":"fa1b9901_bac9987b","updated":"2015-08-25 17:25:09.000000000","message":"Done","commit_id":"db360d016925cc52e8f410535a942382c7932d52"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"d4b8d8ca5c982127684772b660512e6248dc3873","unresolved":false,"context_lines":[{"line_number":499,"context_line":"            reserved_percentage\u003d0,"},{"line_number":500,"context_line":"            QoS_support\u003dFalse,"},{"line_number":501,"context_line":"            pools\u003dself.pools or None,"},{"line_number":502,"context_line":"            snapshot_support\u003dself.snapshots_are_supported,"},{"line_number":503,"context_line":"        )"},{"line_number":504,"context_line":"        if isinstance(data, dict):"},{"line_number":505,"context_line":"            common.update(data)"}],"source_content_type":"text/x-python","patch_set":14,"id":"fa1b9901_46eb7edc","line":502,"updated":"2015-08-26 02:08:49.000000000","message":"Looks like this is interacting with the HP patch which just merged, and one of their unit tests omits \"\u0027snapshot_support\u0027: True\".","commit_id":"aabe252b27d461cfebed780d88b5fde3a075674e"}],"manila/tests/share/drivers/hp/test_hp_3par_driver.py":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"f65a009a3535ed2b28227e1a8eef7f6e2ffdc867","unresolved":false,"context_lines":[{"line_number":500,"context_line":"            \u0027share_backend_name\u0027: \u0027HP_3PAR\u0027,"},{"line_number":501,"context_line":"            \u0027storage_protocol\u0027: \u0027NFS_CIFS\u0027,"},{"line_number":502,"context_line":"            \u0027thin_provisioning\u0027: True,"},{"line_number":503,"context_line":"            \u0027total_capacity_gb\u0027: 0,"},{"line_number":504,"context_line":"            \u0027vendor_name\u0027: \u0027HP\u0027,"},{"line_number":505,"context_line":"        }"},{"line_number":506,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"fa1b9901_afcd8d31","line":503,"updated":"2015-08-26 04:20:45.000000000","message":"snapshot_support here also","commit_id":"aabe252b27d461cfebed780d88b5fde3a075674e"}]}
