)]}'
{"cinder/tests/unit/test_hplefthand.py":[{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"222d9ba9fe40a4fd3e69ae5e3cfe76ab051cb7bc","unresolved":false,"context_lines":[{"line_number":2132,"context_line":"            self.assertEqual(\u0027deleting\u0027, cg[\u0027status\u0027])"},{"line_number":2133,"context_line":""},{"line_number":2134,"context_line":"    @mock.patch(\u0027hplefthandclient.version\u0027, \"1.0.6\")"},{"line_number":2135,"context_line":"    def test_update_consistencygroup_add_vol_delete_cg(self):"},{"line_number":2136,"context_line":"        class fake_consitencygroup_object(object):"},{"line_number":2137,"context_line":"            volume_type_id \u003d \u0027371c64d5-b92a-488c-bc14-1e63cef40e08\u0027"},{"line_number":2138,"context_line":"            name \u003d \u0027cg_name\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_a745f417","line":2135,"updated":"2015-08-19 04:12:01.000000000","message":"You didn\u0027t really implement update_consistencygroup, so tests should also be removed.","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"4937a3bbfd9d46ab313bba56829d46820d3ed548","unresolved":false,"context_lines":[{"line_number":2132,"context_line":"            self.assertEqual(\u0027deleting\u0027, cg[\u0027status\u0027])"},{"line_number":2133,"context_line":""},{"line_number":2134,"context_line":"    @mock.patch(\u0027hplefthandclient.version\u0027, \"1.0.6\")"},{"line_number":2135,"context_line":"    def test_update_consistencygroup_add_vol_delete_cg(self):"},{"line_number":2136,"context_line":"        class fake_consitencygroup_object(object):"},{"line_number":2137,"context_line":"            volume_type_id \u003d \u0027371c64d5-b92a-488c-bc14-1e63cef40e08\u0027"},{"line_number":2138,"context_line":"            name \u003d \u0027cg_name\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_5db7f2d7","line":2135,"in_reply_to":"fa1b9901_a745f417","updated":"2015-08-19 14:40:51.000000000","message":"See proxy and iscsi","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"222d9ba9fe40a4fd3e69ae5e3cfe76ab051cb7bc","unresolved":false,"context_lines":[{"line_number":2170,"context_line":"            self.assertEqual(\u0027deleting\u0027, cg[\u0027status\u0027])"},{"line_number":2171,"context_line":""},{"line_number":2172,"context_line":"    @mock.patch(\u0027hplefthandclient.version\u0027, \"1.0.6\")"},{"line_number":2173,"context_line":"    def test_update_consistencygroup_remove_vol_delete_cg(self):"},{"line_number":2174,"context_line":"        class fake_consitencygroup_object(object):"},{"line_number":2175,"context_line":"            volume_type_id \u003d \u0027371c64d5-b92a-488c-bc14-1e63cef40e08\u0027"},{"line_number":2176,"context_line":"            name \u003d \u0027cg_name\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_67483c2e","line":2173,"updated":"2015-08-19 04:12:01.000000000","message":"Same with this one.","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"4937a3bbfd9d46ab313bba56829d46820d3ed548","unresolved":false,"context_lines":[{"line_number":2170,"context_line":"            self.assertEqual(\u0027deleting\u0027, cg[\u0027status\u0027])"},{"line_number":2171,"context_line":""},{"line_number":2172,"context_line":"    @mock.patch(\u0027hplefthandclient.version\u0027, \"1.0.6\")"},{"line_number":2173,"context_line":"    def test_update_consistencygroup_remove_vol_delete_cg(self):"},{"line_number":2174,"context_line":"        class fake_consitencygroup_object(object):"},{"line_number":2175,"context_line":"            volume_type_id \u003d \u0027371c64d5-b92a-488c-bc14-1e63cef40e08\u0027"},{"line_number":2176,"context_line":"            name \u003d \u0027cg_name\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_7dbaf6c1","line":2173,"in_reply_to":"fa1b9901_67483c2e","updated":"2015-08-19 14:40:51.000000000","message":"See proxy and iscsi","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"}],"cinder/volume/drivers/san/hp/hp_lefthand_iscsi.py":[{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"222d9ba9fe40a4fd3e69ae5e3cfe76ab051cb7bc","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        \"\"\"Creates a consistency group from a source\"\"\""},{"line_number":128,"context_line":"        return self.proxy.create_consistencygroup_from_src("},{"line_number":129,"context_line":"            context, group, volumes, cgsnapshot, snapshots, source_cg,"},{"line_number":130,"context_line":"            source_vols)"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"    def delete_consistencygroup(self, context, group):"},{"line_number":133,"context_line":"        \"\"\"Deletes a consistency group.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_87cb10a5","line":130,"updated":"2015-08-19 04:12:01.000000000","message":"This function should be removed as you didn\u0027t implement it in the proxy.","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"4937a3bbfd9d46ab313bba56829d46820d3ed548","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        \"\"\"Creates a consistency group from a source\"\"\""},{"line_number":128,"context_line":"        return self.proxy.create_consistencygroup_from_src("},{"line_number":129,"context_line":"            context, group, volumes, cgsnapshot, snapshots, source_cg,"},{"line_number":130,"context_line":"            source_vols)"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"    def delete_consistencygroup(self, context, group):"},{"line_number":133,"context_line":"        \"\"\"Deletes a consistency group.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_7d8c3635","line":130,"in_reply_to":"fa1b9901_87cb10a5","updated":"2015-08-19 14:40:51.000000000","message":"If I remove it entirely I get an attribute error as I listed below. I did it as such because I wanted to raise NotImplementedError in order to make it clear why creating the cg failed.","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"222d9ba9fe40a4fd3e69ae5e3cfe76ab051cb7bc","unresolved":false,"context_lines":[{"line_number":137,"context_line":"                                add_volumes\u003dNone, remove_volumes\u003dNone):"},{"line_number":138,"context_line":"        \"\"\"Updates a consistency group.\"\"\""},{"line_number":139,"context_line":"        return self.proxy.update_consistencygroup(context, group, add_volumes,"},{"line_number":140,"context_line":"                                                  remove_volumes)"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    def create_cgsnapshot(self, context, cgsnapshot):"},{"line_number":143,"context_line":"        \"\"\"Creates a consistency group snapshot.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_07c0607a","line":140,"updated":"2015-08-19 04:12:01.000000000","message":"This should be removed as you didn\u0027t implement it.","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"4937a3bbfd9d46ab313bba56829d46820d3ed548","unresolved":false,"context_lines":[{"line_number":137,"context_line":"                                add_volumes\u003dNone, remove_volumes\u003dNone):"},{"line_number":138,"context_line":"        \"\"\"Updates a consistency group.\"\"\""},{"line_number":139,"context_line":"        return self.proxy.update_consistencygroup(context, group, add_volumes,"},{"line_number":140,"context_line":"                                                  remove_volumes)"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"    def create_cgsnapshot(self, context, cgsnapshot):"},{"line_number":143,"context_line":"        \"\"\"Creates a consistency group snapshot.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_bd196e7b","line":140,"in_reply_to":"fa1b9901_07c0607a","updated":"2015-08-19 14:40:51.000000000","message":"If I remove the functions from the proxy and ISCSI I get error messages and updating a CG does not work:\n\nAttributeError: \u0027HPLeftHandISCSIDriver\u0027 object has no attribute \u0027update_consistencygroup\u0027","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"}],"cinder/volume/drivers/san/hp/hp_lefthand_rest_proxy.py":[{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"222d9ba9fe40a4fd3e69ae5e3cfe76ab051cb7bc","unresolved":false,"context_lines":[{"line_number":261,"context_line":"                                         cgsnapshot\u003dNone, snapshots\u003dNone,"},{"line_number":262,"context_line":"                                         source_cg\u003dNone, source_vols\u003dNone):"},{"line_number":263,"context_line":"        \"\"\"Creates a consistency group from a source\"\"\""},{"line_number":264,"context_line":"        raise NotImplementedError()"},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"    def delete_consistencygroup(self, context, group):"},{"line_number":267,"context_line":"        \"\"\"Deletes a consistency group.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_8758f033","line":264,"updated":"2015-08-19 04:12:01.000000000","message":"This one should be removed as it is not implemented.","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"4937a3bbfd9d46ab313bba56829d46820d3ed548","unresolved":false,"context_lines":[{"line_number":261,"context_line":"                                         cgsnapshot\u003dNone, snapshots\u003dNone,"},{"line_number":262,"context_line":"                                         source_cg\u003dNone, source_vols\u003dNone):"},{"line_number":263,"context_line":"        \"\"\"Creates a consistency group from a source\"\"\""},{"line_number":264,"context_line":"        raise NotImplementedError()"},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"    def delete_consistencygroup(self, context, group):"},{"line_number":267,"context_line":"        \"\"\"Deletes a consistency group.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_9d04aac0","line":264,"in_reply_to":"fa1b9901_8758f033","updated":"2015-08-19 14:40:51.000000000","message":"If I remove it entirely I get an attribute error as I listed below. I did it as such because I wanted to raise NotImplementedError in order to make it clear why creating the cg failed.","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"222d9ba9fe40a4fd3e69ae5e3cfe76ab051cb7bc","unresolved":false,"context_lines":[{"line_number":277,"context_line":"    def update_consistencygroup(self, context, group,"},{"line_number":278,"context_line":"                                add_volumes\u003dNone, remove_volumes\u003dNone):"},{"line_number":279,"context_line":"        \"\"\"Updates a consistency group.\"\"\""},{"line_number":280,"context_line":"        return None, None, None"},{"line_number":281,"context_line":""},{"line_number":282,"context_line":"    def create_cgsnapshot(self, context, cgsnapshot):"},{"line_number":283,"context_line":"        \"\"\"Creates a consistency group snapshot.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_c79ca8c2","line":280,"updated":"2015-08-19 04:12:01.000000000","message":"This one should also be removed as it is not doing anything.","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"4937a3bbfd9d46ab313bba56829d46820d3ed548","unresolved":false,"context_lines":[{"line_number":277,"context_line":"    def update_consistencygroup(self, context, group,"},{"line_number":278,"context_line":"                                add_volumes\u003dNone, remove_volumes\u003dNone):"},{"line_number":279,"context_line":"        \"\"\"Updates a consistency group.\"\"\""},{"line_number":280,"context_line":"        return None, None, None"},{"line_number":281,"context_line":""},{"line_number":282,"context_line":"    def create_cgsnapshot(self, context, cgsnapshot):"},{"line_number":283,"context_line":"        \"\"\"Creates a consistency group snapshot.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_42486d87","line":280,"in_reply_to":"fa1b9901_c79ca8c2","updated":"2015-08-19 14:40:51.000000000","message":"If I remove the functions from the proxy and ISCSI I get error messages and updating a CG does not work:\n\nAttributeError: \u0027HPLeftHandISCSIDriver\u0027 object has no attribute \u0027update_consistencygroup\u0027","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"222d9ba9fe40a4fd3e69ae5e3cfe76ab051cb7bc","unresolved":false,"context_lines":[{"line_number":308,"context_line":"        try:"},{"line_number":309,"context_line":"            client.createSnapshotSet(source_volume_id, snap_set, optional)"},{"line_number":310,"context_line":"        except Exception as ex:"},{"line_number":311,"context_line":"            raise exception.VolumeBackendAPIException(ex)"},{"line_number":312,"context_line":"        finally:"},{"line_number":313,"context_line":"            self._logout(client)"},{"line_number":314,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_47b17846","line":311,"updated":"2015-08-19 04:12:01.000000000","message":"VolumeBackendAPIException(data\u003dsix.text_type(ex))","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"4937a3bbfd9d46ab313bba56829d46820d3ed548","unresolved":false,"context_lines":[{"line_number":308,"context_line":"        try:"},{"line_number":309,"context_line":"            client.createSnapshotSet(source_volume_id, snap_set, optional)"},{"line_number":310,"context_line":"        except Exception as ex:"},{"line_number":311,"context_line":"            raise exception.VolumeBackendAPIException(ex)"},{"line_number":312,"context_line":"        finally:"},{"line_number":313,"context_line":"            self._logout(client)"},{"line_number":314,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_22d219d3","line":311,"in_reply_to":"fa1b9901_47b17846","updated":"2015-08-19 14:40:51.000000000","message":"Done","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"222d9ba9fe40a4fd3e69ae5e3cfe76ab051cb7bc","unresolved":false,"context_lines":[{"line_number":336,"context_line":"            except hpexceptions.HTTPServerError as ex:"},{"line_number":337,"context_line":"                in_use_msg \u003d \u0027cannot be deleted because it is a clone point\u0027"},{"line_number":338,"context_line":"                if in_use_msg in ex.get_description():"},{"line_number":339,"context_line":"                    raise exception.SnapshotIsBusy(ex)"},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"                raise exception.VolumeBackendAPIException(ex)"},{"line_number":342,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_67935ca4","line":339,"updated":"2015-08-19 04:12:01.000000000","message":"SnapshotIsBusy(snapshot_name\u003dsnap_name)","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"4937a3bbfd9d46ab313bba56829d46820d3ed548","unresolved":false,"context_lines":[{"line_number":336,"context_line":"            except hpexceptions.HTTPServerError as ex:"},{"line_number":337,"context_line":"                in_use_msg \u003d \u0027cannot be deleted because it is a clone point\u0027"},{"line_number":338,"context_line":"                if in_use_msg in ex.get_description():"},{"line_number":339,"context_line":"                    raise exception.SnapshotIsBusy(ex)"},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"                raise exception.VolumeBackendAPIException(ex)"},{"line_number":342,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_42d5cdb6","line":339,"in_reply_to":"fa1b9901_67935ca4","updated":"2015-08-19 14:40:51.000000000","message":"Done","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"222d9ba9fe40a4fd3e69ae5e3cfe76ab051cb7bc","unresolved":false,"context_lines":[{"line_number":338,"context_line":"                if in_use_msg in ex.get_description():"},{"line_number":339,"context_line":"                    raise exception.SnapshotIsBusy(ex)"},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"                raise exception.VolumeBackendAPIException(ex)"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"            except Exception as ex:"},{"line_number":344,"context_line":"                raise exception.VolumeBackendAPIException(ex)"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_278d647b","line":341,"updated":"2015-08-19 04:12:01.000000000","message":"See previous comment.","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"4937a3bbfd9d46ab313bba56829d46820d3ed548","unresolved":false,"context_lines":[{"line_number":338,"context_line":"                if in_use_msg in ex.get_description():"},{"line_number":339,"context_line":"                    raise exception.SnapshotIsBusy(ex)"},{"line_number":340,"context_line":""},{"line_number":341,"context_line":"                raise exception.VolumeBackendAPIException(ex)"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"            except Exception as ex:"},{"line_number":344,"context_line":"                raise exception.VolumeBackendAPIException(ex)"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_02d835ee","line":341,"in_reply_to":"fa1b9901_278d647b","updated":"2015-08-19 14:40:51.000000000","message":"Done","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"222d9ba9fe40a4fd3e69ae5e3cfe76ab051cb7bc","unresolved":false,"context_lines":[{"line_number":341,"context_line":"                raise exception.VolumeBackendAPIException(ex)"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"            except Exception as ex:"},{"line_number":344,"context_line":"                raise exception.VolumeBackendAPIException(ex)"},{"line_number":345,"context_line":"            finally:"},{"line_number":346,"context_line":"                self._logout(client)"},{"line_number":347,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_c7ea680f","line":344,"updated":"2015-08-19 04:12:01.000000000","message":"Same","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"4937a3bbfd9d46ab313bba56829d46820d3ed548","unresolved":false,"context_lines":[{"line_number":341,"context_line":"                raise exception.VolumeBackendAPIException(ex)"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"            except Exception as ex:"},{"line_number":344,"context_line":"                raise exception.VolumeBackendAPIException(ex)"},{"line_number":345,"context_line":"            finally:"},{"line_number":346,"context_line":"                self._logout(client)"},{"line_number":347,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_62efb187","line":344,"in_reply_to":"fa1b9901_c7ea680f","updated":"2015-08-19 14:40:51.000000000","message":"Done","commit_id":"e2fb4da5b5432a1ad80fe387f1e2775d2d42e401"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"dc937243ae48ac2972b74e8687a1ba12345580e9","unresolved":false,"context_lines":[{"line_number":277,"context_line":"    def update_consistencygroup(self, context, group,"},{"line_number":278,"context_line":"                                add_volumes\u003dNone, remove_volumes\u003dNone):"},{"line_number":279,"context_line":"        \"\"\"Updates a consistency group.\"\"\""},{"line_number":280,"context_line":"        return None, None, None"},{"line_number":281,"context_line":""},{"line_number":282,"context_line":"    def create_cgsnapshot(self, context, cgsnapshot):"},{"line_number":283,"context_line":"        \"\"\"Creates a consistency group snapshot.\"\"\""}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_e9d11324","line":280,"updated":"2015-08-21 02:00:52.000000000","message":"This should raise not implemented error, otherwise user will think this is working but it is not.","commit_id":"dbacf1bb3c0ae83e4f557cef88e58ffd05d6a2d2"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"d243b0b9b3b2a6ef1b6a0e1445da60f84e4c486b","unresolved":false,"context_lines":[{"line_number":277,"context_line":"    def update_consistencygroup(self, context, group,"},{"line_number":278,"context_line":"                                add_volumes\u003dNone, remove_volumes\u003dNone):"},{"line_number":279,"context_line":"        \"\"\"Updates a consistency group.\"\"\""},{"line_number":280,"context_line":"        return None, None, None"},{"line_number":281,"context_line":""},{"line_number":282,"context_line":"    def create_cgsnapshot(self, context, cgsnapshot):"},{"line_number":283,"context_line":"        \"\"\"Creates a consistency group snapshot.\"\"\""}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_7602b70b","line":280,"in_reply_to":"fa1b9901_e9d11324","updated":"2015-08-21 04:07:31.000000000","message":"Updating a cg is supported. With our LeftHand implementation, there are no client calls that need to be made, cinder is maintaining all relationships. As far as I can tell, I do not need to return anything for model_update, add_volumes_update, or remove_volumes_update, so I just returned None in order for it to execute properly. But we do want to support updating a cg in cinder without raising an exception, which it currently is supported. Is there something I need to return/do here?","commit_id":"dbacf1bb3c0ae83e4f557cef88e58ffd05d6a2d2"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"dc937243ae48ac2972b74e8687a1ba12345580e9","unresolved":false,"context_lines":[{"line_number":288,"context_line":"        snap_set \u003d []"},{"line_number":289,"context_line":"        snapshot_base_name \u003d \"snapshot-\" + cgsnapshot[\u0027id\u0027]"},{"line_number":290,"context_line":"        for i, snapshot in enumerate(snapshots):"},{"line_number":291,"context_line":"            volume \u003d snapshot[\u0027volume\u0027]"},{"line_number":292,"context_line":"            volume_name \u003d volume[\u0027name\u0027]"},{"line_number":293,"context_line":"            volume_info \u003d client.getVolumeByName(volume_name)"},{"line_number":294,"context_line":"            volume_id \u003d volume_info[\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_675c477d","line":291,"updated":"2015-08-21 02:00:52.000000000","message":"snapshot.volume","commit_id":"dbacf1bb3c0ae83e4f557cef88e58ffd05d6a2d2"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"d243b0b9b3b2a6ef1b6a0e1445da60f84e4c486b","unresolved":false,"context_lines":[{"line_number":288,"context_line":"        snap_set \u003d []"},{"line_number":289,"context_line":"        snapshot_base_name \u003d \"snapshot-\" + cgsnapshot[\u0027id\u0027]"},{"line_number":290,"context_line":"        for i, snapshot in enumerate(snapshots):"},{"line_number":291,"context_line":"            volume \u003d snapshot[\u0027volume\u0027]"},{"line_number":292,"context_line":"            volume_name \u003d volume[\u0027name\u0027]"},{"line_number":293,"context_line":"            volume_info \u003d client.getVolumeByName(volume_name)"},{"line_number":294,"context_line":"            volume_id \u003d volume_info[\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_fb4eb239","line":291,"in_reply_to":"fa1b9901_675c477d","updated":"2015-08-21 04:07:31.000000000","message":"Done","commit_id":"dbacf1bb3c0ae83e4f557cef88e58ffd05d6a2d2"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"dc937243ae48ac2972b74e8687a1ba12345580e9","unresolved":false,"context_lines":[{"line_number":519,"context_line":"        client \u003d self._login()"},{"line_number":520,"context_line":"        try:"},{"line_number":521,"context_line":"            if not snap_name:"},{"line_number":522,"context_line":"                snap_name \u003d snapshot[\u0027name\u0027]"},{"line_number":523,"context_line":"            snap_info \u003d client.getSnapshotByName(snap_name)"},{"line_number":524,"context_line":"            volume_info \u003d client.cloneSnapshot("},{"line_number":525,"context_line":"                volume[\u0027name\u0027],"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_c7e433ad","line":522,"updated":"2015-08-21 02:00:52.000000000","message":"snapshot.name\n\nWhenever you are making a change involving snapshot, please use objects.  Eventually everything should be using objects.","commit_id":"dbacf1bb3c0ae83e4f557cef88e58ffd05d6a2d2"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"d243b0b9b3b2a6ef1b6a0e1445da60f84e4c486b","unresolved":false,"context_lines":[{"line_number":519,"context_line":"        client \u003d self._login()"},{"line_number":520,"context_line":"        try:"},{"line_number":521,"context_line":"            if not snap_name:"},{"line_number":522,"context_line":"                snap_name \u003d snapshot[\u0027name\u0027]"},{"line_number":523,"context_line":"            snap_info \u003d client.getSnapshotByName(snap_name)"},{"line_number":524,"context_line":"            volume_info \u003d client.cloneSnapshot("},{"line_number":525,"context_line":"                volume[\u0027name\u0027],"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa1b9901_9b3d3691","line":522,"in_reply_to":"fa1b9901_c7e433ad","updated":"2015-08-21 04:07:31.000000000","message":"This actually shouldn\u0027t be in here anymore because I backed out create_consistencygroup_from_src. I have removed it until it is implemented.","commit_id":"dbacf1bb3c0ae83e4f557cef88e58ffd05d6a2d2"},{"author":{"_account_id":16708,"name":"Kendall Nelson","display_name":"Kendall (diablo_rojo)","email":"kennelson11@gmail.com","username":"kjnelson"},"change_message_id":"a0c11e32e87ab3fe9ad6980ebc631b8956ad0386","unresolved":false,"context_lines":[{"line_number":332,"context_line":"                client.deleteSnapshot(snap_info[\u0027id\u0027])"},{"line_number":333,"context_line":"            except hpexceptions.HTTPNotFound:"},{"line_number":334,"context_line":"                LOG.error(_LE(\"Snapshot did not exist. It will not be \""},{"line_number":335,"context_line":"                              \"deleted\"))"},{"line_number":336,"context_line":"            except hpexceptions.HTTPServerError as ex:"},{"line_number":337,"context_line":"                in_use_msg \u003d \u0027cannot be deleted because it is a clone point\u0027"},{"line_number":338,"context_line":"                if in_use_msg in ex.get_description():"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa1b9901_f98d3e31","line":335,"updated":"2015-08-21 14:14:29.000000000","message":"\".\" at EOL","commit_id":"1e62f638356f41cf1f5fd71315aaace11c139d37"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"6ea14958d712bea721e919d8748f27b7d8fbf55f","unresolved":false,"context_lines":[{"line_number":332,"context_line":"                client.deleteSnapshot(snap_info[\u0027id\u0027])"},{"line_number":333,"context_line":"            except hpexceptions.HTTPNotFound:"},{"line_number":334,"context_line":"                LOG.error(_LE(\"Snapshot did not exist. It will not be \""},{"line_number":335,"context_line":"                              \"deleted\"))"},{"line_number":336,"context_line":"            except hpexceptions.HTTPServerError as ex:"},{"line_number":337,"context_line":"                in_use_msg \u003d \u0027cannot be deleted because it is a clone point\u0027"},{"line_number":338,"context_line":"                if in_use_msg in ex.get_description():"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa1b9901_b736ed4e","line":335,"in_reply_to":"fa1b9901_f98d3e31","updated":"2015-08-21 14:43:31.000000000","message":"I can change this.","commit_id":"1e62f638356f41cf1f5fd71315aaace11c139d37"},{"author":{"_account_id":16708,"name":"Kendall Nelson","display_name":"Kendall (diablo_rojo)","email":"kennelson11@gmail.com","username":"kjnelson"},"change_message_id":"a0c11e32e87ab3fe9ad6980ebc631b8956ad0386","unresolved":false,"context_lines":[{"line_number":334,"context_line":"                LOG.error(_LE(\"Snapshot did not exist. It will not be \""},{"line_number":335,"context_line":"                              \"deleted\"))"},{"line_number":336,"context_line":"            except hpexceptions.HTTPServerError as ex:"},{"line_number":337,"context_line":"                in_use_msg \u003d \u0027cannot be deleted because it is a clone point\u0027"},{"line_number":338,"context_line":"                if in_use_msg in ex.get_description():"},{"line_number":339,"context_line":"                    raise exception.SnapshotIsBusy(snapshot_name\u003dsnap_name)"},{"line_number":340,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"fa1b9901_3970963f","line":337,"updated":"2015-08-21 14:14:29.000000000","message":"cannot -\u003e Cannot \n\".\" at EOL","commit_id":"1e62f638356f41cf1f5fd71315aaace11c139d37"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"6ea14958d712bea721e919d8748f27b7d8fbf55f","unresolved":false,"context_lines":[{"line_number":334,"context_line":"                LOG.error(_LE(\"Snapshot did not exist. It will not be \""},{"line_number":335,"context_line":"                              \"deleted\"))"},{"line_number":336,"context_line":"            except hpexceptions.HTTPServerError as ex:"},{"line_number":337,"context_line":"                in_use_msg \u003d \u0027cannot be deleted because it is a clone point\u0027"},{"line_number":338,"context_line":"                if in_use_msg in ex.get_description():"},{"line_number":339,"context_line":"                    raise exception.SnapshotIsBusy(snapshot_name\u003dsnap_name)"},{"line_number":340,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"fa1b9901_b784add2","line":337,"in_reply_to":"fa1b9901_3970963f","updated":"2015-08-21 14:43:31.000000000","message":"This is not an error message that is being logged.","commit_id":"1e62f638356f41cf1f5fd71315aaace11c139d37"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"aeef437794d588ddc4431c5aa4125fba2d287875","unresolved":false,"context_lines":[{"line_number":265,"context_line":""},{"line_number":266,"context_line":"    def delete_consistencygroup(self, context, group):"},{"line_number":267,"context_line":"        \"\"\"Deletes a consistency group.\"\"\""},{"line_number":268,"context_line":"        volumes \u003d self.db.volume_get_all_by_group(context, group.id)"},{"line_number":269,"context_line":"        for volume in volumes:"},{"line_number":270,"context_line":"            self.delete_volume(volume)"},{"line_number":271,"context_line":"            volume.status \u003d \u0027deleted\u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_84c20ae8","line":268,"updated":"2015-08-25 15:27:06.000000000","message":"We really shouldn\u0027t be forced to talk to the Database from inside the driver.   If this is a requirement of CG support, then this is bad and needs to be changed.   No drivers should be talking to the database.","commit_id":"c883549f41ac28d57eb41044470c58bee33b2050"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"17e81f6ae494edba3cc51cce1f4559ff361b7ecd","unresolved":false,"context_lines":[{"line_number":265,"context_line":""},{"line_number":266,"context_line":"    def delete_consistencygroup(self, context, group):"},{"line_number":267,"context_line":"        \"\"\"Deletes a consistency group.\"\"\""},{"line_number":268,"context_line":"        volumes \u003d self.db.volume_get_all_by_group(context, group.id)"},{"line_number":269,"context_line":"        for volume in volumes:"},{"line_number":270,"context_line":"            self.delete_volume(volume)"},{"line_number":271,"context_line":"            volume.status \u003d \u0027deleted\u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_7fa743bd","line":268,"in_reply_to":"fa1b9901_84c20ae8","updated":"2015-08-25 15:35:19.000000000","message":"I have looked at other drivers implementations and they seems to do this as well","commit_id":"c883549f41ac28d57eb41044470c58bee33b2050"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"3f299560f5696d9a45e0c31c99286cbdff2844b2","unresolved":false,"context_lines":[{"line_number":277,"context_line":"    def update_consistencygroup(self, context, group,"},{"line_number":278,"context_line":"                                add_volumes\u003dNone, remove_volumes\u003dNone):"},{"line_number":279,"context_line":"        \"\"\"Updates a consistency group.\"\"\""},{"line_number":280,"context_line":"        return None, None, None"},{"line_number":281,"context_line":""},{"line_number":282,"context_line":"    def create_cgsnapshot(self, context, cgsnapshot):"},{"line_number":283,"context_line":"        \"\"\"Creates a consistency group snapshot.\"\"\""}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_a469cb27","line":280,"updated":"2015-08-21 19:22:03.000000000","message":"I don\u0027t understand how this can work without communicating with the backend?","commit_id":"c883549f41ac28d57eb41044470c58bee33b2050"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"3dff736a79b23e53f79ccc316f24aa742c156bb3","unresolved":false,"context_lines":[{"line_number":277,"context_line":"    def update_consistencygroup(self, context, group,"},{"line_number":278,"context_line":"                                add_volumes\u003dNone, remove_volumes\u003dNone):"},{"line_number":279,"context_line":"        \"\"\"Updates a consistency group.\"\"\""},{"line_number":280,"context_line":"        return None, None, None"},{"line_number":281,"context_line":""},{"line_number":282,"context_line":"    def create_cgsnapshot(self, context, cgsnapshot):"},{"line_number":283,"context_line":"        \"\"\"Creates a consistency group snapshot.\"\"\""}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_9ad742bf","line":280,"in_reply_to":"fa1b9901_a469cb27","updated":"2015-08-21 20:15:37.000000000","message":"With LeftHand, we are using cinder to maintain all consistency group/volume relationships. There is not necessarily a volume \u0027grouping\u0027 concept on the backend. Everything aside from the actual snapshotting stays in cinder.\n\nWhen we create a cgsnapshot, cinder will give a list of snapshots by calling get_all_for_cgsnapshot. Each snapshot object has the volume it originated from. I use that volume information to pass which volumes should be snapshotted to the backend. That is how the backend knows which volumes belong to which cg. It then snapshots the volumes together (to maintain consistency) and names them after the cgsnapshot_id, which we can then find again when deleting a cgsnaphot and eventually creating a cg from source.","commit_id":"c883549f41ac28d57eb41044470c58bee33b2050"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"aeef437794d588ddc4431c5aa4125fba2d287875","unresolved":false,"context_lines":[{"line_number":281,"context_line":""},{"line_number":282,"context_line":"    def create_cgsnapshot(self, context, cgsnapshot):"},{"line_number":283,"context_line":"        \"\"\"Creates a consistency group snapshot.\"\"\""},{"line_number":284,"context_line":"        client \u003d self._login()"},{"line_number":285,"context_line":"        snapshots \u003d objects.SnapshotList().get_all_for_cgsnapshot("},{"line_number":286,"context_line":"            context, cgsnapshot[\u0027id\u0027])"},{"line_number":287,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_0424bac2","line":284,"updated":"2015-08-25 15:27:06.000000000","message":"If we have any exception between here and like 306, we will leave stale connections/sessions to the backend, because the finally: logout will not be called.","commit_id":"c883549f41ac28d57eb41044470c58bee33b2050"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"17e81f6ae494edba3cc51cce1f4559ff361b7ecd","unresolved":false,"context_lines":[{"line_number":281,"context_line":""},{"line_number":282,"context_line":"    def create_cgsnapshot(self, context, cgsnapshot):"},{"line_number":283,"context_line":"        \"\"\"Creates a consistency group snapshot.\"\"\""},{"line_number":284,"context_line":"        client \u003d self._login()"},{"line_number":285,"context_line":"        snapshots \u003d objects.SnapshotList().get_all_for_cgsnapshot("},{"line_number":286,"context_line":"            context, cgsnapshot[\u0027id\u0027])"},{"line_number":287,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_3f5c6b7c","line":284,"in_reply_to":"fa1b9901_0424bac2","updated":"2015-08-25 15:35:19.000000000","message":"I will look into this","commit_id":"c883549f41ac28d57eb41044470c58bee33b2050"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"aeef437794d588ddc4431c5aa4125fba2d287875","unresolved":false,"context_lines":[{"line_number":283,"context_line":"        \"\"\"Creates a consistency group snapshot.\"\"\""},{"line_number":284,"context_line":"        client \u003d self._login()"},{"line_number":285,"context_line":"        snapshots \u003d objects.SnapshotList().get_all_for_cgsnapshot("},{"line_number":286,"context_line":"            context, cgsnapshot[\u0027id\u0027])"},{"line_number":287,"context_line":""},{"line_number":288,"context_line":"        snap_set \u003d []"},{"line_number":289,"context_line":"        snapshot_base_name \u003d \"snapshot-\" + cgsnapshot[\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_8469aafb","line":286,"updated":"2015-08-25 15:27:06.000000000","message":"again this is talking to the database.   Why isn\u0027t this passed in as a param if we have to fetch this?","commit_id":"c883549f41ac28d57eb41044470c58bee33b2050"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"17e81f6ae494edba3cc51cce1f4559ff361b7ecd","unresolved":false,"context_lines":[{"line_number":283,"context_line":"        \"\"\"Creates a consistency group snapshot.\"\"\""},{"line_number":284,"context_line":"        client \u003d self._login()"},{"line_number":285,"context_line":"        snapshots \u003d objects.SnapshotList().get_all_for_cgsnapshot("},{"line_number":286,"context_line":"            context, cgsnapshot[\u0027id\u0027])"},{"line_number":287,"context_line":""},{"line_number":288,"context_line":"        snap_set \u003d []"},{"line_number":289,"context_line":"        snapshot_base_name \u003d \"snapshot-\" + cgsnapshot[\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_ff527366","line":286,"in_reply_to":"fa1b9901_8469aafb","updated":"2015-08-25 15:35:19.000000000","message":"same","commit_id":"c883549f41ac28d57eb41044470c58bee33b2050"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"3f299560f5696d9a45e0c31c99286cbdff2844b2","unresolved":false,"context_lines":[{"line_number":306,"context_line":"            optional[\u0027description\u0027] \u003d description"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"        try:"},{"line_number":309,"context_line":"            client.createSnapshotSet(source_volume_id, snap_set, optional)"},{"line_number":310,"context_line":"        except Exception as ex:"},{"line_number":311,"context_line":"            raise exception.VolumeBackendAPIException(data\u003dsix.text_type(ex))"},{"line_number":312,"context_line":"        finally:"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_2435bbf6","line":309,"updated":"2015-08-21 19:22:03.000000000","message":"So here you only need to provide the first volume id?  How does the backend know what belongs to a CG, by looking at snapshot_name?","commit_id":"c883549f41ac28d57eb41044470c58bee33b2050"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"6209cae3beb2c1510bbe859cc2338aac18a96341","unresolved":false,"context_lines":[{"line_number":306,"context_line":"            optional[\u0027description\u0027] \u003d description"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"        try:"},{"line_number":309,"context_line":"            client.createSnapshotSet(source_volume_id, snap_set, optional)"},{"line_number":310,"context_line":"        except Exception as ex:"},{"line_number":311,"context_line":"            raise exception.VolumeBackendAPIException(data\u003dsix.text_type(ex))"},{"line_number":312,"context_line":"        finally:"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_90a2c199","line":309,"in_reply_to":"fa1b9901_1511c3af","updated":"2015-08-21 20:56:34.000000000","message":"Yes, because it uses the cgsnapshot_id as the base name, which is unique for every cgsnapshot that is created. So every time I do a cgsnapshot of the same cg, the cgsnaphot id will be different.","commit_id":"c883549f41ac28d57eb41044470c58bee33b2050"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"b687c87677dfd3ff742869a9c03403cfecb044fa","unresolved":false,"context_lines":[{"line_number":306,"context_line":"            optional[\u0027description\u0027] \u003d description"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"        try:"},{"line_number":309,"context_line":"            client.createSnapshotSet(source_volume_id, snap_set, optional)"},{"line_number":310,"context_line":"        except Exception as ex:"},{"line_number":311,"context_line":"            raise exception.VolumeBackendAPIException(data\u003dsix.text_type(ex))"},{"line_number":312,"context_line":"        finally:"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_1511c3af","line":309,"in_reply_to":"fa1b9901_1a6252ae","updated":"2015-08-21 20:32:13.000000000","message":"If you take multiple cgsnapshots of the same cg, can you differentiate them?  You have the same base name for all of them, correct?  Maybe there\u0027s a timestamp on the array to tell you the difference?  So when you choose one of cgsnapshots, how do you know you are getting the right one on the backend?","commit_id":"c883549f41ac28d57eb41044470c58bee33b2050"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"3dff736a79b23e53f79ccc316f24aa742c156bb3","unresolved":false,"context_lines":[{"line_number":306,"context_line":"            optional[\u0027description\u0027] \u003d description"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"        try:"},{"line_number":309,"context_line":"            client.createSnapshotSet(source_volume_id, snap_set, optional)"},{"line_number":310,"context_line":"        except Exception as ex:"},{"line_number":311,"context_line":"            raise exception.VolumeBackendAPIException(data\u003dsix.text_type(ex))"},{"line_number":312,"context_line":"        finally:"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_1a6252ae","line":309,"in_reply_to":"fa1b9901_2435bbf6","updated":"2015-08-21 20:15:37.000000000","message":"The snap_set parameter is an array that contains the volume name, volume id, and the snapshot name (which is what the snapshot will be called) of all volumes to be snapshotted (all in the cg). The source_volume_id can be any id that will be in the set, but must be the id of whatever the first set member is. The API takes a list of volumes and creates a snapshot set out of those. The names of each snapshot will have the same base name, one that is represented by the cgsnapshot_id in cinder.","commit_id":"c883549f41ac28d57eb41044470c58bee33b2050"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"0a6f6af380d8d78cada6f3068ebada33083f3d7b","unresolved":false,"context_lines":[{"line_number":306,"context_line":"            optional[\u0027description\u0027] \u003d description"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"        try:"},{"line_number":309,"context_line":"            client.createSnapshotSet(source_volume_id, snap_set, optional)"},{"line_number":310,"context_line":"        except Exception as ex:"},{"line_number":311,"context_line":"            raise exception.VolumeBackendAPIException(data\u003dsix.text_type(ex))"},{"line_number":312,"context_line":"        finally:"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_2bbee6d4","line":309,"in_reply_to":"fa1b9901_90a2c199","updated":"2015-08-21 21:25:06.000000000","message":"Ok.  That makes sense.","commit_id":"c883549f41ac28d57eb41044470c58bee33b2050"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"aeef437794d588ddc4431c5aa4125fba2d287875","unresolved":false,"context_lines":[{"line_number":325,"context_line":"            context, cgsnapshot[\u0027id\u0027])"},{"line_number":326,"context_line":""},{"line_number":327,"context_line":"        for i, snapshot in enumerate(snapshots):"},{"line_number":328,"context_line":"            client \u003d self._login()"},{"line_number":329,"context_line":"            try:"},{"line_number":330,"context_line":"                snap_name \u003d snap_name_base + \"-\" + six.text_type(i)"},{"line_number":331,"context_line":"                snap_info \u003d client.getSnapshotByName(snap_name)"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_4414f24b","line":328,"updated":"2015-08-25 15:27:06.000000000","message":"We are we logging in and logging out inside a loop here?","commit_id":"c883549f41ac28d57eb41044470c58bee33b2050"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"17e81f6ae494edba3cc51cce1f4559ff361b7ecd","unresolved":false,"context_lines":[{"line_number":325,"context_line":"            context, cgsnapshot[\u0027id\u0027])"},{"line_number":326,"context_line":""},{"line_number":327,"context_line":"        for i, snapshot in enumerate(snapshots):"},{"line_number":328,"context_line":"            client \u003d self._login()"},{"line_number":329,"context_line":"            try:"},{"line_number":330,"context_line":"                snap_name \u003d snap_name_base + \"-\" + six.text_type(i)"},{"line_number":331,"context_line":"                snap_info \u003d client.getSnapshotByName(snap_name)"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa1b9901_9f4b37b1","line":328,"in_reply_to":"fa1b9901_4414f24b","updated":"2015-08-25 15:35:19.000000000","message":"we don\u0027t really need to, I can fix this.","commit_id":"c883549f41ac28d57eb41044470c58bee33b2050"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"ecee998c2da1aecd2f3844f83ccb55163025f1a8","unresolved":false,"context_lines":[{"line_number":311,"context_line":"                optional[\u0027description\u0027] \u003d description"},{"line_number":312,"context_line":""},{"line_number":313,"context_line":"            client.createSnapshotSet(source_volume_id, snap_set, optional)"},{"line_number":314,"context_line":"        except Exception as ex:"},{"line_number":315,"context_line":"            raise exception.VolumeBackendAPIException(data\u003dsix.text_type(ex))"},{"line_number":316,"context_line":"        finally:"},{"line_number":317,"context_line":"            self._logout(client)"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_1b6734ea","line":314,"updated":"2015-08-25 17:36:11.000000000","message":"This is catching a lot of exceptions and not logging anything meaningful to the log file.  We can\u0027t rely upon the volume manager to log exceptions for us.  So, lets try and catch any exceptions around the client calls and then log something for them if we get raised.","commit_id":"9f982f6e547cd96cc3967900b71941710c9be2e4"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"dea265070a7a1a9acfb609751e1f27f072563291","unresolved":false,"context_lines":[{"line_number":311,"context_line":"                optional[\u0027description\u0027] \u003d description"},{"line_number":312,"context_line":""},{"line_number":313,"context_line":"            client.createSnapshotSet(source_volume_id, snap_set, optional)"},{"line_number":314,"context_line":"        except Exception as ex:"},{"line_number":315,"context_line":"            raise exception.VolumeBackendAPIException(data\u003dsix.text_type(ex))"},{"line_number":316,"context_line":"        finally:"},{"line_number":317,"context_line":"            self._logout(client)"}],"source_content_type":"text/x-python","patch_set":7,"id":"fa1b9901_96531917","line":314,"in_reply_to":"fa1b9901_1b6734ea","updated":"2015-08-25 17:58:43.000000000","message":"Done","commit_id":"9f982f6e547cd96cc3967900b71941710c9be2e4"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"0f9559f7482b448f4ca0c7a8e5fff93d8a8fee57","unresolved":false,"context_lines":[{"line_number":301,"context_line":"                    LOG.error(_LE(\"Could not find volume with name %(name)s. \""},{"line_number":302,"context_line":"                                  \"Error: %(error)s\"),"},{"line_number":303,"context_line":"                              {\u0027name\u0027: volume_name,"},{"line_number":304,"context_line":"                               \u0027error\u0027: six.text_type(ex)})"},{"line_number":305,"context_line":"                    raise exception.VolumeBackendAPIException("},{"line_number":306,"context_line":"                        data\u003dsix.text_type(ex))"},{"line_number":307,"context_line":"                volume_id \u003d volume_info[\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":8,"id":"da20952f_4c6b081f","line":304,"updated":"2015-08-27 13:51:42.000000000","message":"There are a few spots where you are calling six.text_type(ex) multiple times in the same block. It would be more efficient to do it once and assign it to a variable, then use that variable in place of the current calls.","commit_id":"411be56226415d3de58af613443fc55873735866"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"502874a0db445bbc51c0c27faf7b91b0112f3764","unresolved":false,"context_lines":[{"line_number":301,"context_line":"                    LOG.error(_LE(\"Could not find volume with name %(name)s. \""},{"line_number":302,"context_line":"                                  \"Error: %(error)s\"),"},{"line_number":303,"context_line":"                              {\u0027name\u0027: volume_name,"},{"line_number":304,"context_line":"                               \u0027error\u0027: six.text_type(ex)})"},{"line_number":305,"context_line":"                    raise exception.VolumeBackendAPIException("},{"line_number":306,"context_line":"                        data\u003dsix.text_type(ex))"},{"line_number":307,"context_line":"                volume_id \u003d volume_info[\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":8,"id":"da20952f_d66243d8","line":304,"in_reply_to":"da20952f_4c6b081f","updated":"2015-08-27 15:18:21.000000000","message":"Done","commit_id":"411be56226415d3de58af613443fc55873735866"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"0f9559f7482b448f4ca0c7a8e5fff93d8a8fee57","unresolved":false,"context_lines":[{"line_number":321,"context_line":"            try:"},{"line_number":322,"context_line":"                client.createSnapshotSet(source_volume_id, snap_set, optional)"},{"line_number":323,"context_line":"            except Exception as ex:"},{"line_number":324,"context_line":"                LOG.error(_LE(\"Could not create snapshot set. Error: \u0027%s\u0027\") %"},{"line_number":325,"context_line":"                          six.text_type(ex))"},{"line_number":326,"context_line":"                raise exception.VolumeBackendAPIException("},{"line_number":327,"context_line":"                    data\u003dsix.text_type(ex))"}],"source_content_type":"text/x-python","patch_set":8,"id":"da20952f_ac2bc4ea","line":324,"updated":"2015-08-27 13:51:42.000000000","message":"% \u003d\u003e ,","commit_id":"411be56226415d3de58af613443fc55873735866"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"502874a0db445bbc51c0c27faf7b91b0112f3764","unresolved":false,"context_lines":[{"line_number":321,"context_line":"            try:"},{"line_number":322,"context_line":"                client.createSnapshotSet(source_volume_id, snap_set, optional)"},{"line_number":323,"context_line":"            except Exception as ex:"},{"line_number":324,"context_line":"                LOG.error(_LE(\"Could not create snapshot set. Error: \u0027%s\u0027\") %"},{"line_number":325,"context_line":"                          six.text_type(ex))"},{"line_number":326,"context_line":"                raise exception.VolumeBackendAPIException("},{"line_number":327,"context_line":"                    data\u003dsix.text_type(ex))"}],"source_content_type":"text/x-python","patch_set":8,"id":"da20952f_f65f470c","line":324,"in_reply_to":"da20952f_ac2bc4ea","updated":"2015-08-27 15:18:21.000000000","message":"Done","commit_id":"411be56226415d3de58af613443fc55873735866"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"89ebbf52dcc194e60ad7d2f50f2d4867db7eef1a","unresolved":false,"context_lines":[{"line_number":124,"context_line":"        # blank is the only invalid character for cluster names"},{"line_number":125,"context_line":"        # so we need to use it as a separator"},{"line_number":126,"context_line":"        self.DRIVER_LOCATION \u003d self.__class__.__name__ + \u0027 %(cluster)s %(vip)s\u0027"},{"line_number":127,"context_line":"        self.db \u003d importutils.import_module(\u0027cinder.db\u0027)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    def _login(self):"},{"line_number":130,"context_line":"        client \u003d self.do_setup(None)"}],"source_content_type":"text/x-python","patch_set":9,"id":"da20952f_db5a6350","line":127,"updated":"2015-08-27 17:53:58.000000000","message":"I don\u0027t think this is the right thing to do here.\n\nWhen the volume manager starts, it passes in the db object as a kwarg here:\nhttps://github.com/openstack/cinder/blob/master/cinder/volume/manager.py#L221-L224\n\nAlso:\nhttps://github.com/openstack/cinder/blob/master/cinder/volume/driver.py#L314\n\nI\u0027m afraid doing it this way is going to create yet another connection to the DB just for this driver.","commit_id":"3d1bde9673405b24e6161c6a726d01bbea9f6d3b"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"6672555d22c0ece154cd98cd7c997ace215f66d6","unresolved":false,"context_lines":[{"line_number":124,"context_line":"        # blank is the only invalid character for cluster names"},{"line_number":125,"context_line":"        # so we need to use it as a separator"},{"line_number":126,"context_line":"        self.DRIVER_LOCATION \u003d self.__class__.__name__ + \u0027 %(cluster)s %(vip)s\u0027"},{"line_number":127,"context_line":"        self.db \u003d importutils.import_module(\u0027cinder.db\u0027)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    def _login(self):"},{"line_number":130,"context_line":"        client \u003d self.do_setup(None)"}],"source_content_type":"text/x-python","patch_set":9,"id":"da20952f_364b7689","line":127,"in_reply_to":"da20952f_db5a6350","updated":"2015-08-27 18:15:05.000000000","message":"Done","commit_id":"3d1bde9673405b24e6161c6a726d01bbea9f6d3b"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"41fc5d059434977059da5571bdccc06d55a878e9","unresolved":false,"context_lines":[{"line_number":260,"context_line":"    def create_consistencygroup_from_src(self, context, group, volumes,"},{"line_number":261,"context_line":"                                         cgsnapshot\u003dNone, snapshots\u003dNone,"},{"line_number":262,"context_line":"                                         source_cg\u003dNone, source_vols\u003dNone):"},{"line_number":263,"context_line":"        \"\"\"Creates a consistency group from a source\"\"\""},{"line_number":264,"context_line":"        raise NotImplementedError()"},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"    def delete_consistencygroup(self, context, group):"}],"source_content_type":"text/x-python","patch_set":9,"id":"da20952f_361376ba","line":263,"updated":"2015-08-27 18:15:59.000000000","message":"Maybe we should log something here to say why?","commit_id":"3d1bde9673405b24e6161c6a726d01bbea9f6d3b"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"a1fccc42b2ceddb54716047f9257c0bcdd86206e","unresolved":false,"context_lines":[{"line_number":260,"context_line":"    def create_consistencygroup_from_src(self, context, group, volumes,"},{"line_number":261,"context_line":"                                         cgsnapshot\u003dNone, snapshots\u003dNone,"},{"line_number":262,"context_line":"                                         source_cg\u003dNone, source_vols\u003dNone):"},{"line_number":263,"context_line":"        \"\"\"Creates a consistency group from a source\"\"\""},{"line_number":264,"context_line":"        raise NotImplementedError()"},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"    def delete_consistencygroup(self, context, group):"}],"source_content_type":"text/x-python","patch_set":9,"id":"da20952f_8aab321d","line":263,"in_reply_to":"da20952f_361376ba","updated":"2015-08-27 18:36:26.000000000","message":"Done","commit_id":"3d1bde9673405b24e6161c6a726d01bbea9f6d3b"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"41fc5d059434977059da5571bdccc06d55a878e9","unresolved":false,"context_lines":[{"line_number":278,"context_line":""},{"line_number":279,"context_line":"    def update_consistencygroup(self, context, group,"},{"line_number":280,"context_line":"                                add_volumes\u003dNone, remove_volumes\u003dNone):"},{"line_number":281,"context_line":"        \"\"\"Updates a consistency group.\"\"\""},{"line_number":282,"context_line":"        return None, None, None"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"    def create_cgsnapshot(self, context, cgsnapshot):"}],"source_content_type":"text/x-python","patch_set":9,"id":"da20952f_b6030642","line":281,"updated":"2015-08-27 18:15:59.000000000","message":"I know it was explained in a previous comment, but maybe it\u0027s worth noting in the method docblock why we are just doing a return here?","commit_id":"3d1bde9673405b24e6161c6a726d01bbea9f6d3b"},{"author":{"_account_id":16917,"name":"Alex O\u0027Rourke","email":"alex.orourke@hpe.com","username":"aorourke"},"change_message_id":"a1fccc42b2ceddb54716047f9257c0bcdd86206e","unresolved":false,"context_lines":[{"line_number":278,"context_line":""},{"line_number":279,"context_line":"    def update_consistencygroup(self, context, group,"},{"line_number":280,"context_line":"                                add_volumes\u003dNone, remove_volumes\u003dNone):"},{"line_number":281,"context_line":"        \"\"\"Updates a consistency group.\"\"\""},{"line_number":282,"context_line":"        return None, None, None"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"    def create_cgsnapshot(self, context, cgsnapshot):"}],"source_content_type":"text/x-python","patch_set":9,"id":"da20952f_4a643a21","line":281,"in_reply_to":"da20952f_b6030642","updated":"2015-08-27 18:36:26.000000000","message":"Done","commit_id":"3d1bde9673405b24e6161c6a726d01bbea9f6d3b"}]}
