)]}'
{"cinder/tests/unit/volume/drivers/hitachi/test_hitachi_hnas_nfs.py":[{"author":{"_account_id":9171,"name":"Vipin Balachandran","email":"vipin.bl@gmail.com","username":"vbala"},"change_message_id":"a5bcc0245ba1f322474b21aa0388120b57c04d8b","unresolved":false,"context_lines":[{"line_number":324,"context_line":"        expected_out \u003d {\u0027provider_location\u0027: \u0027hnas\u0027}"},{"line_number":325,"context_line":""},{"line_number":326,"context_line":"        self.mock_object(self.driver, \u0027_file_not_present\u0027,"},{"line_number":327,"context_line":"                         mock.Mock(return_value\u003dFalse))"},{"line_number":328,"context_line":"        self.mock_object(backend.HNASSSHBackend, \u0027file_clone\u0027)"},{"line_number":329,"context_line":"        result \u003d self.driver.create_volume_from_snapshot(self.volume,"},{"line_number":330,"context_line":"                                                         self.snapshot)"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a57fde8_60f8c9e6","line":327,"range":{"start_line":327,"start_character":35,"end_line":327,"end_character":53},"updated":"2017-01-12 16:23:55.000000000","message":"We also need to test with True for verifying the legacy snapshot code path.","commit_id":"fcc466c1428dc91b2e40e9747474f5345998c2e4"},{"author":{"_account_id":14865,"name":"Adriano Freires Rosso","email":"adriano.rosso@fit-tecnologia.org.br","username":"adriano_rosso"},"change_message_id":"c0bc423b3e4e7b9d62935826fca72b88285eebe8","unresolved":false,"context_lines":[{"line_number":324,"context_line":"        expected_out \u003d {\u0027provider_location\u0027: \u0027hnas\u0027}"},{"line_number":325,"context_line":""},{"line_number":326,"context_line":"        self.mock_object(self.driver, \u0027_file_not_present\u0027,"},{"line_number":327,"context_line":"                         mock.Mock(return_value\u003dFalse))"},{"line_number":328,"context_line":"        self.mock_object(backend.HNASSSHBackend, \u0027file_clone\u0027)"},{"line_number":329,"context_line":"        result \u003d self.driver.create_volume_from_snapshot(self.volume,"},{"line_number":330,"context_line":"                                                         self.snapshot)"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a57fde8_4344af73","line":327,"range":{"start_line":327,"start_character":35,"end_line":327,"end_character":53},"in_reply_to":"9a57fde8_60f8c9e6","updated":"2017-01-12 17:41:09.000000000","message":"Done","commit_id":"fcc466c1428dc91b2e40e9747474f5345998c2e4"}],"cinder/volume/drivers/hitachi/hnas_nfs.py":[{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"1870da0bf5d6af0031d1205a38cbf0859ceda438","unresolved":false,"context_lines":[{"line_number":206,"context_line":"                     {\u0027vol\u0027: volume.name, \u0027snap\u0027: snapshot.name})"},{"line_number":207,"context_line":"            self._clone_volume(snapshot.volume, volume.name, snapshot.name)"},{"line_number":208,"context_line":"        else:"},{"line_number":209,"context_line":"            self._clone_volume(snapshot.volume, volume.name, snapshot_name)"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"        return {\u0027provider_location\u0027: nfs_mount}"},{"line_number":212,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"ba5201f7_7c09fb2b","line":209,"range":{"start_line":209,"start_character":61,"end_line":209,"end_character":74},"updated":"2017-01-11 10:38:56.000000000","message":"It took me a moment to realize the difference between lines 207 and 209. Can you simply always use snapshot_name, and do a conditional when assigning value to that var?","commit_id":"fcc466c1428dc91b2e40e9747474f5345998c2e4"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"043d85c272f9737d94247a5fcf9503d3c966b27a","unresolved":false,"context_lines":[{"line_number":206,"context_line":"                     {\u0027vol\u0027: volume.name, \u0027snap\u0027: snapshot.name})"},{"line_number":207,"context_line":"            self._clone_volume(snapshot.volume, volume.name, snapshot.name)"},{"line_number":208,"context_line":"        else:"},{"line_number":209,"context_line":"            self._clone_volume(snapshot.volume, volume.name, snapshot_name)"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"        return {\u0027provider_location\u0027: nfs_mount}"},{"line_number":212,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"ba5201f7_76181dd4","line":209,"range":{"start_line":209,"start_character":61,"end_line":209,"end_character":74},"in_reply_to":"ba5201f7_7c09fb2b","updated":"2017-01-11 18:01:10.000000000","message":"+1.  I read these two lines several times too before I realized they are different.","commit_id":"fcc466c1428dc91b2e40e9747474f5345998c2e4"},{"author":{"_account_id":14865,"name":"Adriano Freires Rosso","email":"adriano.rosso@fit-tecnologia.org.br","username":"adriano_rosso"},"change_message_id":"c0bc423b3e4e7b9d62935826fca72b88285eebe8","unresolved":false,"context_lines":[{"line_number":206,"context_line":"                     {\u0027vol\u0027: volume.name, \u0027snap\u0027: snapshot.name})"},{"line_number":207,"context_line":"            self._clone_volume(snapshot.volume, volume.name, snapshot.name)"},{"line_number":208,"context_line":"        else:"},{"line_number":209,"context_line":"            self._clone_volume(snapshot.volume, volume.name, snapshot_name)"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"        return {\u0027provider_location\u0027: nfs_mount}"},{"line_number":212,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"ba5201f7_fd74f0fe","line":209,"range":{"start_line":209,"start_character":61,"end_line":209,"end_character":74},"in_reply_to":"ba5201f7_7c09fb2b","updated":"2017-01-12 17:41:09.000000000","message":"Sure. It is a clearer way to do this indeed.","commit_id":"fcc466c1428dc91b2e40e9747474f5345998c2e4"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"1870da0bf5d6af0031d1205a38cbf0859ceda438","unresolved":false,"context_lines":[{"line_number":240,"context_line":"                self._file_not_present(nfs_mount, snapshot.name)):"},{"line_number":241,"context_line":"            return"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"        try:"},{"line_number":244,"context_line":"            self._execute(\u0027rm\u0027, self._get_file_path("},{"line_number":245,"context_line":"                nfs_mount, snapshot_name), run_as_root\u003dTrue)"},{"line_number":246,"context_line":"        except processutils.ProcessExecutionError as e:"},{"line_number":247,"context_line":"            if \u0027No such file or directory\u0027 in e.stderr:"},{"line_number":248,"context_line":"                LOG.info(_LI(\"Deleting legacy snapshot %(snap)s\"),"},{"line_number":249,"context_line":"                         {\u0027snap\u0027: snapshot.name})"},{"line_number":250,"context_line":"                self._execute(\u0027rm\u0027, self._get_file_path("},{"line_number":251,"context_line":"                    nfs_mount, snapshot.name), run_as_root\u003dTrue)"},{"line_number":252,"context_line":"            else:"},{"line_number":253,"context_line":"                raise"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"    def _file_not_present(self, nfs_mount, volume_name):"},{"line_number":256,"context_line":"        \"\"\"Check if file does not exist."}],"source_content_type":"text/x-python","patch_set":4,"id":"ba5201f7_fc340bdf","line":253,"range":{"start_line":243,"start_character":0,"end_line":253,"end_character":21},"updated":"2017-01-11 10:38:56.000000000","message":"Couldn\u0027t you check for existence of both files and then decide which one to remove (if any)? If you\u0027re already calling _file_not_present two times, there\u0027s no need to call rm two times as well.","commit_id":"fcc466c1428dc91b2e40e9747474f5345998c2e4"},{"author":{"_account_id":9171,"name":"Vipin Balachandran","email":"vipin.bl@gmail.com","username":"vbala"},"change_message_id":"a5bcc0245ba1f322474b21aa0388120b57c04d8b","unresolved":false,"context_lines":[{"line_number":240,"context_line":"                self._file_not_present(nfs_mount, snapshot.name)):"},{"line_number":241,"context_line":"            return"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"        try:"},{"line_number":244,"context_line":"            self._execute(\u0027rm\u0027, self._get_file_path("},{"line_number":245,"context_line":"                nfs_mount, snapshot_name), run_as_root\u003dTrue)"},{"line_number":246,"context_line":"        except processutils.ProcessExecutionError as e:"},{"line_number":247,"context_line":"            if \u0027No such file or directory\u0027 in e.stderr:"},{"line_number":248,"context_line":"                LOG.info(_LI(\"Deleting legacy snapshot %(snap)s\"),"},{"line_number":249,"context_line":"                         {\u0027snap\u0027: snapshot.name})"},{"line_number":250,"context_line":"                self._execute(\u0027rm\u0027, self._get_file_path("},{"line_number":251,"context_line":"                    nfs_mount, snapshot.name), run_as_root\u003dTrue)"},{"line_number":252,"context_line":"            else:"},{"line_number":253,"context_line":"                raise"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"    def _file_not_present(self, nfs_mount, volume_name):"},{"line_number":256,"context_line":"        \"\"\"Check if file does not exist."}],"source_content_type":"text/x-python","patch_set":4,"id":"9a57fde8_6d40c257","line":253,"range":{"start_line":243,"start_character":0,"end_line":253,"end_character":21},"in_reply_to":"ba5201f7_fc340bdf","updated":"2017-01-12 16:23:55.000000000","message":"+1","commit_id":"fcc466c1428dc91b2e40e9747474f5345998c2e4"},{"author":{"_account_id":14865,"name":"Adriano Freires Rosso","email":"adriano.rosso@fit-tecnologia.org.br","username":"adriano_rosso"},"change_message_id":"c0bc423b3e4e7b9d62935826fca72b88285eebe8","unresolved":false,"context_lines":[{"line_number":240,"context_line":"                self._file_not_present(nfs_mount, snapshot.name)):"},{"line_number":241,"context_line":"            return"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"        try:"},{"line_number":244,"context_line":"            self._execute(\u0027rm\u0027, self._get_file_path("},{"line_number":245,"context_line":"                nfs_mount, snapshot_name), run_as_root\u003dTrue)"},{"line_number":246,"context_line":"        except processutils.ProcessExecutionError as e:"},{"line_number":247,"context_line":"            if \u0027No such file or directory\u0027 in e.stderr:"},{"line_number":248,"context_line":"                LOG.info(_LI(\"Deleting legacy snapshot %(snap)s\"),"},{"line_number":249,"context_line":"                         {\u0027snap\u0027: snapshot.name})"},{"line_number":250,"context_line":"                self._execute(\u0027rm\u0027, self._get_file_path("},{"line_number":251,"context_line":"                    nfs_mount, snapshot.name), run_as_root\u003dTrue)"},{"line_number":252,"context_line":"            else:"},{"line_number":253,"context_line":"                raise"},{"line_number":254,"context_line":""},{"line_number":255,"context_line":"    def _file_not_present(self, nfs_mount, volume_name):"},{"line_number":256,"context_line":"        \"\"\"Check if file does not exist."}],"source_content_type":"text/x-python","patch_set":4,"id":"ba5201f7_51008301","line":253,"range":{"start_line":243,"start_character":0,"end_line":253,"end_character":21},"in_reply_to":"ba5201f7_fc340bdf","updated":"2017-01-12 17:41:09.000000000","message":"Done","commit_id":"fcc466c1428dc91b2e40e9747474f5345998c2e4"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"c78f74f2ccbc027902cf3a18d20a6692bc17e2a7","unresolved":false,"context_lines":[{"line_number":240,"context_line":"            # for a file with legacy name will be done."},{"line_number":241,"context_line":"            snapshot_name \u003d snapshot.name"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"        if self._file_not_present(nfs_mount, snapshot_name):"},{"line_number":244,"context_line":"            # The file does not exist. Nothing to do."},{"line_number":245,"context_line":"            return"},{"line_number":246,"context_line":""},{"line_number":247,"context_line":"        try:"},{"line_number":248,"context_line":"            self._execute(\u0027rm\u0027, self._get_file_path("}],"source_content_type":"text/x-python","patch_set":5,"id":"7a3c09a3_a3dab776","line":245,"range":{"start_line":243,"start_character":0,"end_line":245,"end_character":18},"updated":"2017-01-13 10:20:34.000000000","message":"This should be indented one more level. Otherwise you\u0027re checking for the same thing two times.","commit_id":"fa7cd5a6789ead77601eb10b5b6df390395bd218"},{"author":{"_account_id":14865,"name":"Adriano Freires Rosso","email":"adriano.rosso@fit-tecnologia.org.br","username":"adriano_rosso"},"change_message_id":"0845d2a7c963496012eb5b4753e74cbfec1dbea5","unresolved":false,"context_lines":[{"line_number":240,"context_line":"            # for a file with legacy name will be done."},{"line_number":241,"context_line":"            snapshot_name \u003d snapshot.name"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"        if self._file_not_present(nfs_mount, snapshot_name):"},{"line_number":244,"context_line":"            # The file does not exist. Nothing to do."},{"line_number":245,"context_line":"            return"},{"line_number":246,"context_line":""},{"line_number":247,"context_line":"        try:"},{"line_number":248,"context_line":"            self._execute(\u0027rm\u0027, self._get_file_path("}],"source_content_type":"text/x-python","patch_set":5,"id":"7a3c09a3_5ccf34b0","line":245,"range":{"start_line":243,"start_character":0,"end_line":245,"end_character":18},"in_reply_to":"7a3c09a3_a3dab776","updated":"2017-01-13 11:31:40.000000000","message":"Done","commit_id":"fa7cd5a6789ead77601eb10b5b6df390395bd218"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"c78f74f2ccbc027902cf3a18d20a6692bc17e2a7","unresolved":false,"context_lines":[{"line_number":247,"context_line":"        try:"},{"line_number":248,"context_line":"            self._execute(\u0027rm\u0027, self._get_file_path("},{"line_number":249,"context_line":"                nfs_mount, snapshot_name), run_as_root\u003dTrue)"},{"line_number":250,"context_line":"        except Exception:"},{"line_number":251,"context_line":"            raise"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"    def _file_not_present(self, nfs_mount, volume_name):"},{"line_number":254,"context_line":"        \"\"\"Check if file does not exist."}],"source_content_type":"text/x-python","patch_set":5,"id":"7a3c09a3_71225cbb","line":251,"range":{"start_line":250,"start_character":0,"end_line":251,"end_character":17},"updated":"2017-01-13 10:20:34.000000000","message":"Do you need this try-except clause now?","commit_id":"fa7cd5a6789ead77601eb10b5b6df390395bd218"},{"author":{"_account_id":14865,"name":"Adriano Freires Rosso","email":"adriano.rosso@fit-tecnologia.org.br","username":"adriano_rosso"},"change_message_id":"0845d2a7c963496012eb5b4753e74cbfec1dbea5","unresolved":false,"context_lines":[{"line_number":247,"context_line":"        try:"},{"line_number":248,"context_line":"            self._execute(\u0027rm\u0027, self._get_file_path("},{"line_number":249,"context_line":"                nfs_mount, snapshot_name), run_as_root\u003dTrue)"},{"line_number":250,"context_line":"        except Exception:"},{"line_number":251,"context_line":"            raise"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"    def _file_not_present(self, nfs_mount, volume_name):"},{"line_number":254,"context_line":"        \"\"\"Check if file does not exist."}],"source_content_type":"text/x-python","patch_set":5,"id":"7a3c09a3_9cc19c83","line":251,"range":{"start_line":250,"start_character":0,"end_line":251,"end_character":17},"in_reply_to":"7a3c09a3_71225cbb","updated":"2017-01-13 11:31:40.000000000","message":"Not really :)","commit_id":"fa7cd5a6789ead77601eb10b5b6df390395bd218"}],"releasenotes/notes/hnas-change-snapshot-names-8153b043eb7e99fc.yaml":[{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"1870da0bf5d6af0031d1205a38cbf0859ceda438","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"deprecations:"},{"line_number":3,"context_line":"  - Support for snapshots named in the backend as ``snapshot-\u003csnapshot-id\u003e``"},{"line_number":4,"context_line":"    is deprecated. Snapshots are now named in the backend as"},{"line_number":5,"context_line":"    ``\u003cvolume-name\u003e.\u003csnapshot-id\u003e``."},{"line_number":6,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"ba5201f7_1ce38f34","line":4,"range":{"start_line":4,"start_character":7,"end_line":4,"end_character":17},"updated":"2017-01-11 10:38:56.000000000","message":"Does it mean that one day you\u0027ll stop supporting legacy snapshot names? If that\u0027s the case you need to provide some transition procedure.","commit_id":"fcc466c1428dc91b2e40e9747474f5345998c2e4"},{"author":{"_account_id":14865,"name":"Adriano Freires Rosso","email":"adriano.rosso@fit-tecnologia.org.br","username":"adriano_rosso"},"change_message_id":"c0bc423b3e4e7b9d62935826fca72b88285eebe8","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"deprecations:"},{"line_number":3,"context_line":"  - Support for snapshots named in the backend as ``snapshot-\u003csnapshot-id\u003e``"},{"line_number":4,"context_line":"    is deprecated. Snapshots are now named in the backend as"},{"line_number":5,"context_line":"    ``\u003cvolume-name\u003e.\u003csnapshot-id\u003e``."},{"line_number":6,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":4,"id":"9a57fde8_71342bde","line":4,"range":{"start_line":4,"start_character":7,"end_line":4,"end_character":17},"in_reply_to":"ba5201f7_1ce38f34","updated":"2017-01-12 17:41:09.000000000","message":"Probably we will, but I don\u0027t think it would be soon. We still need to validate the impacts and discuss the best way to do that with customers.","commit_id":"fcc466c1428dc91b2e40e9747474f5345998c2e4"}]}
