)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":17444,"name":"Jay.Shen","email":"shenhong09@huawei.com","username":"Jay.Shen"},"change_message_id":"9201bbd15a5b3eba8610aed8d4d9865b3408f353","unresolved":false,"context_lines":[{"line_number":20,"context_line":"which will allow the manila node to mount the share after added permission"},{"line_number":21,"context_line":"through allow-access API command."},{"line_number":22,"context_line":"- For driver migration, the method migrate_share in driver base class"},{"line_number":23,"context_line":"should be overriden."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Change-Id: I8dde892cb7c0180b2b56d8c7d680dfe2320c2ec7"},{"line_number":26,"context_line":"Implements: blueprint share-migration"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":21,"id":"1a4dcd0f_7e539239","line":23,"updated":"2015-08-06 14:19:41.000000000","message":"S/overriden/overridden","commit_id":"adaf6b408a1a5d504fa6982736276772fb4886fd"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"541136d95332459b8214795187655ca4c313d141","unresolved":false,"context_lines":[{"line_number":20,"context_line":"which will allow the manila node to mount the share after added permission"},{"line_number":21,"context_line":"through allow-access API command."},{"line_number":22,"context_line":"- For driver migration, the method migrate_share in driver base class"},{"line_number":23,"context_line":"should be overriden."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Change-Id: I8dde892cb7c0180b2b56d8c7d680dfe2320c2ec7"},{"line_number":26,"context_line":"Implements: blueprint share-migration"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":21,"id":"1a4dcd0f_551c2cc1","line":23,"in_reply_to":"1a4dcd0f_7e539239","updated":"2015-08-21 19:24:31.000000000","message":"done","commit_id":"adaf6b408a1a5d504fa6982736276772fb4886fd"}],"manila/api/contrib/admin_actions.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        except KeyError:"},{"line_number":128,"context_line":"            raise exc.HTTPBadRequest(explanation\u003d_(\"Must specify \u0027host\u0027\"))"},{"line_number":129,"context_line":"        force_host_copy \u003d params.get(\u0027force_host_copy\u0027, False)"},{"line_number":130,"context_line":"        if isinstance(force_host_copy, basestring):"},{"line_number":131,"context_line":"            try:"},{"line_number":132,"context_line":"                force_host_copy \u003d strutils.bool_from_string(force_host_copy,"},{"line_number":133,"context_line":"                                                            strict\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_f1b8a1e7","line":130,"updated":"2015-05-12 15:33:31.000000000","message":"s/basestring/six.string_types/","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fedbc5621c78a16adc7d23f896c541702d3e8850","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        except KeyError:"},{"line_number":128,"context_line":"            raise exc.HTTPBadRequest(explanation\u003d_(\"Must specify \u0027host\u0027\"))"},{"line_number":129,"context_line":"        force_host_copy \u003d params.get(\u0027force_host_copy\u0027, False)"},{"line_number":130,"context_line":"        if isinstance(force_host_copy, basestring):"},{"line_number":131,"context_line":"            try:"},{"line_number":132,"context_line":"                force_host_copy \u003d strutils.bool_from_string(force_host_copy,"},{"line_number":133,"context_line":"                                                            strict\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_0a862465","line":130,"in_reply_to":"9a0c5dc1_f1b8a1e7","updated":"2015-05-13 17:58:56.000000000","message":"Thanks. Done!","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":139,"context_line":"                    explanation\u003d_(\"Bad value for \u0027force_host_copy\u0027\"))"},{"line_number":140,"context_line":"        elif not isinstance(force_host_copy, bool):"},{"line_number":141,"context_line":"            raise exc.HTTPBadRequest("},{"line_number":142,"context_line":"                explanation\u003d_(\"\u0027force_host_copy\u0027 not string or bool\"))"},{"line_number":143,"context_line":"        self.share_api.migrate_share(context, share, host, force_host_copy)"},{"line_number":144,"context_line":"        return webob.Response(status_int\u003d202)"},{"line_number":145,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_4e96b195","line":142,"updated":"2015-07-06 16:02:35.000000000","message":"If \"force_host_copy\" is set and it is not a string or boolean then we get unexpected behaviour. So, need to add \"else\" clause to raise error for all other types.\n\nFrom other side, I would remove condition and just leave try-block from lines 134-139.","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":139,"context_line":"                    explanation\u003d_(\"Bad value for \u0027force_host_copy\u0027\"))"},{"line_number":140,"context_line":"        elif not isinstance(force_host_copy, bool):"},{"line_number":141,"context_line":"            raise exc.HTTPBadRequest("},{"line_number":142,"context_line":"                explanation\u003d_(\"\u0027force_host_copy\u0027 not string or bool\"))"},{"line_number":143,"context_line":"        self.share_api.migrate_share(context, share, host, force_host_copy)"},{"line_number":144,"context_line":"        return webob.Response(status_int\u003d202)"},{"line_number":145,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_a82acd2a","line":142,"in_reply_to":"ba3cc151_4e96b195","updated":"2015-07-06 17:19:00.000000000","message":"removing the condition will simplify things, the try-except block should do the work! Thanks!","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"a5085a4eb65a58b39f0ccaab1a92f5083bf01d7e","unresolved":false,"context_lines":[{"line_number":124,"context_line":"            share \u003d self._get(context, id)"},{"line_number":125,"context_line":"        except exception.NotFound:"},{"line_number":126,"context_line":"            raise exc.HTTPNotFound()"},{"line_number":127,"context_line":"        params \u003d body[\u0027os-migrate_share\u0027]"},{"line_number":128,"context_line":"        try:"},{"line_number":129,"context_line":"            host \u003d params[\u0027host\u0027]"},{"line_number":130,"context_line":"        except KeyError:"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_708e982f","line":127,"updated":"2015-08-25 14:40:14.000000000","message":"You can get AttributeError here, so body should be validated.","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ed573db154c468aefb20f8fb98321f1965cea93b","unresolved":false,"context_lines":[{"line_number":124,"context_line":"            share \u003d self._get(context, id)"},{"line_number":125,"context_line":"        except exception.NotFound:"},{"line_number":126,"context_line":"            raise exc.HTTPNotFound()"},{"line_number":127,"context_line":"        params \u003d body[\u0027os-migrate_share\u0027]"},{"line_number":128,"context_line":"        try:"},{"line_number":129,"context_line":"            host \u003d params[\u0027host\u0027]"},{"line_number":130,"context_line":"        except KeyError:"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_dbac328a","line":127,"in_reply_to":"fa1b9901_708e982f","updated":"2015-09-01 01:24:03.000000000","message":"I am having a hard time creating a unit test that fails here. The annotation @wsgi.action(\u0027os-migrate_share\u0027) ensures that only bodies that contain \"os-migrate_share\" field fit, else it throws exception before starting this function.","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"}],"manila/api/openstack/api_version_request.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"e2efb7e0908a4cfb3d43974290846a461a62eb0a","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    * 1.1 - Versions API updated to reflect beginning of microversions epoch."},{"line_number":49,"context_line":"    * 1.2 - Share create() doesn\u0027t ignore availability_zone field of share."},{"line_number":50,"context_line":"    * 1.3 - Snapshots become optional feature."},{"line_number":51,"context_line":"    * 1.5 - Share Migration admin API"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"\"\"\""},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_a6e6fd12","line":51,"updated":"2015-08-31 11:27:23.000000000","message":"where is 1.4?","commit_id":"2b4a50bada41446594d8ce9d5c98a5c200b40a63"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ae5b1886a2f2b209693ad9b1b961207e86e05cb4","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    * 1.1 - Versions API updated to reflect beginning of microversions epoch."},{"line_number":49,"context_line":"    * 1.2 - Share create() doesn\u0027t ignore availability_zone field of share."},{"line_number":50,"context_line":"    * 1.3 - Snapshots become optional feature."},{"line_number":51,"context_line":"    * 1.5 - Share Migration admin API"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"\"\"\""},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_50a1b6f6","line":51,"in_reply_to":"da20952f_a6e6fd12","updated":"2015-09-01 01:22:27.000000000","message":"Share Instances bumped version to 1.4, so I believe this patch would bump to 1.5. Or should this also be 1.4?\n\nhttps://review.openstack.org/#/c/209487/16/manila/api/openstack/api_version_request.py","commit_id":"2b4a50bada41446594d8ce9d5c98a5c200b40a63"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"53e8f7b272ff051aaf3ef1d2da8f1bde32979e5a","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    * 1.1 - Versions API updated to reflect beginning of microversions epoch."},{"line_number":49,"context_line":"    * 1.2 - Share create() doesn\u0027t ignore availability_zone field of share."},{"line_number":50,"context_line":"    * 1.3 - Snapshots become optional feature."},{"line_number":51,"context_line":"\u003c\u003c\u003c\u003c\u003c\u003c\u003c HEAD"},{"line_number":52,"context_line":"    * 1.4 - Share instances admin API"},{"line_number":53,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":54,"context_line":"    * 1.5 - Share Migration admin API"}],"source_content_type":"text/x-python","patch_set":29,"id":"da20952f_c1b2c805","line":51,"updated":"2015-09-01 09:33:39.000000000","message":"Master level of rebase \u003d)","commit_id":"3afa74e671ba3e4466361225949dad0761a33e90"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"26ff9b664e5378a591ac9f98a1755ec637c180fd","unresolved":false,"context_lines":[{"line_number":48,"context_line":"    * 1.1 - Versions API updated to reflect beginning of microversions epoch."},{"line_number":49,"context_line":"    * 1.2 - Share create() doesn\u0027t ignore availability_zone field of share."},{"line_number":50,"context_line":"    * 1.3 - Snapshots become optional feature."},{"line_number":51,"context_line":"\u003c\u003c\u003c\u003c\u003c\u003c\u003c HEAD"},{"line_number":52,"context_line":"    * 1.4 - Share instances admin API"},{"line_number":53,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":54,"context_line":"    * 1.5 - Share Migration admin API"}],"source_content_type":"text/x-python","patch_set":29,"id":"da20952f_10c0084f","line":51,"in_reply_to":"da20952f_c1b2c805","updated":"2015-09-01 11:52:59.000000000","message":"Thanks, that one slipped.","commit_id":"3afa74e671ba3e4466361225949dad0761a33e90"}],"manila/api/v1/shares.py":[{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"0b85201f9f81304f8349cfb3aa58e0d09fd90795","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        try:"},{"line_number":82,"context_line":"            share \u003d self.share_api.get(context, id)"},{"line_number":83,"context_line":"        except exception.NotFound:"},{"line_number":84,"context_line":"            raise exc.HTTPNotFound()"},{"line_number":85,"context_line":"        params \u003d body[\u0027os-migrate_share\u0027]"},{"line_number":86,"context_line":"        try:"},{"line_number":87,"context_line":"            host \u003d params[\u0027host\u0027]"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_c0ee7021","line":84,"updated":"2015-09-05 23:06:07.000000000","message":"Can you add a message to the exception? Something like this:\n\n           msg \u003d _(\"Share %s not found.\") % id\n            raise exc.HTTPNotFound(explanation\u003dmsg)","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"0c564d68f55deee697b8199741114517f539f1a0","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        try:"},{"line_number":82,"context_line":"            share \u003d self.share_api.get(context, id)"},{"line_number":83,"context_line":"        except exception.NotFound:"},{"line_number":84,"context_line":"            raise exc.HTTPNotFound()"},{"line_number":85,"context_line":"        params \u003d body[\u0027os-migrate_share\u0027]"},{"line_number":86,"context_line":"        try:"},{"line_number":87,"context_line":"            host \u003d params[\u0027host\u0027]"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_c0099096","line":84,"in_reply_to":"da20952f_c0ee7021","updated":"2015-09-05 23:47:56.000000000","message":"Done","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"}],"manila/common/constants.py":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"7e8521c931340b57f269b88d3ea8747d4fc08ff7","unresolved":false,"context_lines":[{"line_number":44,"context_line":"TRANSITIONAL_STATUSES \u003d ("},{"line_number":45,"context_line":"    STATUS_CREATING, STATUS_DELETING,"},{"line_number":46,"context_line":"    STATUS_MANAGING, STATUS_UNMANAGING,"},{"line_number":47,"context_line":"    STATUS_EXTENDING, STATUS_SHRINKING,"},{"line_number":48,"context_line":")"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"SUPPORTED_SHARE_PROTOCOLS \u003d ("}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_275db8ec","line":47,"updated":"2015-09-01 18:57:13.000000000","message":"What about migration?  Can we allow unmanage during a migration?","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":44,"context_line":"TRANSITIONAL_STATUSES \u003d ("},{"line_number":45,"context_line":"    STATUS_CREATING, STATUS_DELETING,"},{"line_number":46,"context_line":"    STATUS_MANAGING, STATUS_UNMANAGING,"},{"line_number":47,"context_line":"    STATUS_EXTENDING, STATUS_SHRINKING,"},{"line_number":48,"context_line":")"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"SUPPORTED_SHARE_PROTOCOLS \u003d ("}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_350e34e6","line":47,"in_reply_to":"da20952f_275db8ec","updated":"2015-09-02 16:57:45.000000000","message":"Good point. I believe one of the best ways of handling this is through statuses... but migration status is handled through Task_state field right now, and API unmanage code is not currently checking for any statuses, so I added task_state check on it, please see new patch.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"}],"manila/db/migrations/alembic/versions/323840a08dc4_add_shares_migration_status.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2012 OpenStack LLC."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_118335ce","line":1,"updated":"2015-05-12 15:33:31.000000000","message":"s/2012/2015/","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"def upgrade():"},{"line_number":32,"context_line":"    op.add_column(\u0027shares\u0027,"},{"line_number":33,"context_line":"                  sa.Column(\u0027migration_status\u0027, sa.VARCHAR(255)))"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"def downgrade():"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_b1790932","line":33,"updated":"2015-05-12 15:33:31.000000000","message":"Why do you need 255 chars for \"status\"?\n\nAlso, I guess, would be better to add common \"Task State\" instead of \"migration status\". Same already exist in Nova.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fedbc5621c78a16adc7d23f896c541702d3e8850","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"def upgrade():"},{"line_number":32,"context_line":"    op.add_column(\u0027shares\u0027,"},{"line_number":33,"context_line":"                  sa.Column(\u0027migration_status\u0027, sa.VARCHAR(255)))"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"def downgrade():"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_6a912099","line":33,"in_reply_to":"9a0c5dc1_b1790932","updated":"2015-05-13 17:58:56.000000000","message":"Hello, I followed the number of chars for other fields, such as \"status\".\n\nI also changed migration_status to task_state, coming in the next patch!","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"}],"manila/db/migrations/alembic/versions/323840a08dc4_add_shares_task_state.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"53e8f7b272ff051aaf3ef1d2da8f1bde32979e5a","unresolved":false,"context_lines":[{"line_number":15,"context_line":"\"\"\"Add shares.task_state"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Revision ID: 323840a08dc4"},{"line_number":18,"context_line":"Revises: 55761e5f59c5"},{"line_number":19,"context_line":"Create Date: 2015-04-30 07:58:45.175790"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"\"\"\""}],"source_content_type":"text/x-python","patch_set":29,"id":"da20952f_012e80fa","line":18,"updated":"2015-09-01 09:33:39.000000000","message":"Parent revision is incorrect. It is not latest one.","commit_id":"3afa74e671ba3e4466361225949dad0761a33e90"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"c562eadfef5472d0ea80e17c6ac0955c90b6c507","unresolved":false,"context_lines":[{"line_number":15,"context_line":"\"\"\"Add shares.task_state"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Revision ID: 323840a08dc4"},{"line_number":18,"context_line":"Revises: 55761e5f59c5"},{"line_number":19,"context_line":"Create Date: 2015-04-30 07:58:45.175790"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"\"\"\""}],"source_content_type":"text/x-python","patch_set":29,"id":"da20952f_84ccd989","line":18,"in_reply_to":"da20952f_012e80fa","updated":"2015-09-01 11:27:58.000000000","message":"it is ok, nevermind.","commit_id":"3afa74e671ba3e4466361225949dad0761a33e90"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"0b85201f9f81304f8349cfb3aa58e0d09fd90795","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OpenStack LLC."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_80f4f8f0","line":1,"updated":"2015-09-05 23:06:07.000000000","message":"This should be your company instead of OpenStack here.","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"0c564d68f55deee697b8199741114517f539f1a0","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015 OpenStack LLC."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":4,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_60fc4472","line":1,"in_reply_to":"da20952f_80f4f8f0","updated":"2015-09-05 23:47:56.000000000","message":"Done","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"}],"manila/db/sqlalchemy/api.py":[{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"c4d3ee81da6aa5b36b644aec0b55c7fc2ce054a7","unresolved":false,"context_lines":[{"line_number":1327,"context_line":""},{"line_number":1328,"context_line":"@require_admin_context"},{"line_number":1329,"context_line":"def finish_share_migration(context, src_shr_id, dest_shr_id):"},{"line_number":1330,"context_line":"    \"\"\"Copy almost all columns from dest to source.\"\"\""},{"line_number":1331,"context_line":"    session \u003d get_session()"},{"line_number":1332,"context_line":"    with session.begin():"},{"line_number":1333,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3acd31a7_d5facb42","line":1330,"updated":"2015-05-05 08:32:20.000000000","message":"\u0027almost\u0027 is fuzzy description.","commit_id":"700c1f9161b22e8f585aa27f8d8c989e0a7cf104"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"c4d3ee81da6aa5b36b644aec0b55c7fc2ce054a7","unresolved":false,"context_lines":[{"line_number":1332,"context_line":"    with session.begin():"},{"line_number":1333,"context_line":""},{"line_number":1334,"context_line":"        src_exports_ref \u003d _share_export_locations_get("},{"line_number":1335,"context_line":"            context, src_shr_id, session\u003dsession)"},{"line_number":1336,"context_line":""},{"line_number":1337,"context_line":"        dest_exports_ref \u003d _share_export_locations_get("},{"line_number":1338,"context_line":"            context, dest_shr_id, session\u003dsession)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3acd31a7_95be9363","line":1335,"updated":"2015-05-05 08:32:20.000000000","message":"\u0027src_exports_ref\u0027 is assigned to but never used.\nPlease fix all pep8 error.","commit_id":"700c1f9161b22e8f585aa27f8d8c989e0a7cf104"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"c4d3ee81da6aa5b36b644aec0b55c7fc2ce054a7","unresolved":false,"context_lines":[{"line_number":1334,"context_line":"        src_exports_ref \u003d _share_export_locations_get("},{"line_number":1335,"context_line":"            context, src_shr_id, session\u003dsession)"},{"line_number":1336,"context_line":""},{"line_number":1337,"context_line":"        dest_exports_ref \u003d _share_export_locations_get("},{"line_number":1338,"context_line":"            context, dest_shr_id, session\u003dsession)"},{"line_number":1339,"context_line":""},{"line_number":1340,"context_line":"        src_shr_ref \u003d share_get(context, src_shr_id, session\u003dsession)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3acd31a7_15b3a399","line":1337,"updated":"2015-05-05 08:32:20.000000000","message":"local variable \u0027dest_exports_ref\u0027 is assigned to but never used.","commit_id":"700c1f9161b22e8f585aa27f8d8c989e0a7cf104"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":1326,"context_line":""},{"line_number":1327,"context_line":""},{"line_number":1328,"context_line":"@require_admin_context"},{"line_number":1329,"context_line":"def finish_share_migration(context, src_shr_id, dest_shr_id):"},{"line_number":1330,"context_line":"    \"\"\"Copy columns from dest to source.\"\"\""},{"line_number":1331,"context_line":"    session \u003d get_session()"},{"line_number":1332,"context_line":"    with session.begin():"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_d10c7d44","line":1329,"updated":"2015-05-12 15:33:31.000000000","message":"I am not sure we need this function at all. Migrated share should be same share in DB, and \"data\" of that share will be migrated indeed.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fedbc5621c78a16adc7d23f896c541702d3e8850","unresolved":false,"context_lines":[{"line_number":1326,"context_line":""},{"line_number":1327,"context_line":""},{"line_number":1328,"context_line":"@require_admin_context"},{"line_number":1329,"context_line":"def finish_share_migration(context, src_shr_id, dest_shr_id):"},{"line_number":1330,"context_line":"    \"\"\"Copy columns from dest to source.\"\"\""},{"line_number":1331,"context_line":"    session \u003d get_session()"},{"line_number":1332,"context_line":"    with session.begin():"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_eacab0a0","line":1329,"in_reply_to":"9a0c5dc1_d10c7d44","updated":"2015-05-13 17:58:56.000000000","message":"I will investigate this approach when integrating with Private Share Storage, in a later patch.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":1339,"context_line":""},{"line_number":1340,"context_line":"        # not sure if share_type should also be skipped,"},{"line_number":1341,"context_line":"        # possibly, because it is a reference"},{"line_number":1342,"context_line":"        for key, value in dest_shr_ref.iteritems():"},{"line_number":1343,"context_line":"            if key \u003d\u003d \u0027id\u0027 or not is_column(dest_shr_ref, key):"},{"line_number":1344,"context_line":"                continue"},{"line_number":1345,"context_line":"            elif key \u003d\u003d \u0027migration_status\u0027:"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_91fcc53f","line":1342,"updated":"2015-05-12 15:33:31.000000000","message":"s/dest_shr_ref.iteritems()/six.iteritems(dest_shr_ref)/","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fedbc5621c78a16adc7d23f896c541702d3e8850","unresolved":false,"context_lines":[{"line_number":1339,"context_line":""},{"line_number":1340,"context_line":"        # not sure if share_type should also be skipped,"},{"line_number":1341,"context_line":"        # possibly, because it is a reference"},{"line_number":1342,"context_line":"        for key, value in dest_shr_ref.iteritems():"},{"line_number":1343,"context_line":"            if key \u003d\u003d \u0027id\u0027 or not is_column(dest_shr_ref, key):"},{"line_number":1344,"context_line":"                continue"},{"line_number":1345,"context_line":"            elif key \u003d\u003d \u0027migration_status\u0027:"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_2aea0810","line":1342,"in_reply_to":"9a0c5dc1_91fcc53f","updated":"2015-05-13 17:58:56.000000000","message":"Thanks. Done!","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":1327,"context_line":""},{"line_number":1328,"context_line":""},{"line_number":1329,"context_line":"@require_admin_context"},{"line_number":1330,"context_line":"def finish_share_migration(context, src_shr_id, dest_shr_id):"},{"line_number":1331,"context_line":"    \"\"\"Copy columns from dest to source.\"\"\""},{"line_number":1332,"context_line":"    session \u003d get_session()"},{"line_number":1333,"context_line":"    with session.begin():"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_aeb41dd1","line":1330,"updated":"2015-07-06 16:02:35.000000000","message":"\"finish_share_migration\"? Where, then, \"start_share_migration\"? I guess it should be renamed.","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":1327,"context_line":""},{"line_number":1328,"context_line":""},{"line_number":1329,"context_line":"@require_admin_context"},{"line_number":1330,"context_line":"def finish_share_migration(context, src_shr_id, dest_shr_id):"},{"line_number":1331,"context_line":"    \"\"\"Copy columns from dest to source.\"\"\""},{"line_number":1332,"context_line":"    session \u003d get_session()"},{"line_number":1333,"context_line":"    with session.begin():"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_480c6142","line":1330,"in_reply_to":"ba3cc151_aeb41dd1","updated":"2015-07-06 17:19:00.000000000","message":"This is something that may be removed after we decide the ID approach. There is no \"start_share_migration\" because no specific action in DB is required when starting share migration.","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":1340,"context_line":""},{"line_number":1341,"context_line":"        # not sure if share_type should also be skipped,"},{"line_number":1342,"context_line":"        # possibly, because it is a DB reference"},{"line_number":1343,"context_line":"        for key, value in six.iteritems(dest_shr_ref):"},{"line_number":1344,"context_line":"            if key \u003d\u003d \u0027id\u0027 or key \u003d\u003d \u0027task_state\u0027 or \\"},{"line_number":1345,"context_line":"                    not is_column(dest_shr_ref, key):"},{"line_number":1346,"context_line":"                continue"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_6e3cd52f","line":1343,"updated":"2015-07-06 16:02:35.000000000","message":"No need to use \"six.iteritems\". Can be used \"dest_shr_ref.items()\".","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":1340,"context_line":""},{"line_number":1341,"context_line":"        # not sure if share_type should also be skipped,"},{"line_number":1342,"context_line":"        # possibly, because it is a DB reference"},{"line_number":1343,"context_line":"        for key, value in six.iteritems(dest_shr_ref):"},{"line_number":1344,"context_line":"            if key \u003d\u003d \u0027id\u0027 or key \u003d\u003d \u0027task_state\u0027 or \\"},{"line_number":1345,"context_line":"                    not is_column(dest_shr_ref, key):"},{"line_number":1346,"context_line":"                continue"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_485ea146","line":1343,"in_reply_to":"ba3cc151_6e3cd52f","updated":"2015-07-06 17:19:00.000000000","message":"Thanks, I will try that!","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":1341,"context_line":"        # not sure if share_type should also be skipped,"},{"line_number":1342,"context_line":"        # possibly, because it is a DB reference"},{"line_number":1343,"context_line":"        for key, value in six.iteritems(dest_shr_ref):"},{"line_number":1344,"context_line":"            if key \u003d\u003d \u0027id\u0027 or key \u003d\u003d \u0027task_state\u0027 or \\"},{"line_number":1345,"context_line":"                    not is_column(dest_shr_ref, key):"},{"line_number":1346,"context_line":"                continue"},{"line_number":1347,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_8e8279c7","line":1344,"updated":"2015-07-06 16:02:35.000000000","message":"Please, use parenthesis for all such cases.\n\nAlso:\n\n\"\"\"\n\nif key in (\"id\", \"task_state\") or not is_column(dest_shr_ref, key):\n\n\"\"\"","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":1341,"context_line":"        # not sure if share_type should also be skipped,"},{"line_number":1342,"context_line":"        # possibly, because it is a DB reference"},{"line_number":1343,"context_line":"        for key, value in six.iteritems(dest_shr_ref):"},{"line_number":1344,"context_line":"            if key \u003d\u003d \u0027id\u0027 or key \u003d\u003d \u0027task_state\u0027 or \\"},{"line_number":1345,"context_line":"                    not is_column(dest_shr_ref, key):"},{"line_number":1346,"context_line":"                continue"},{"line_number":1347,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_28555d1c","line":1344,"in_reply_to":"ba3cc151_8e8279c7","updated":"2015-07-06 17:19:00.000000000","message":"Thanks for the tip!","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"}],"manila/db/sqlalchemy/models.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    @property"},{"line_number":169,"context_line":"    def name(self):"},{"line_number":170,"context_line":"        if self.export_location:"},{"line_number":171,"context_line":"            return CONF.share_name_template % (self.export_location.split("},{"line_number":172,"context_line":"                CONF.share_name_template % \"\")[1])"},{"line_number":173,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_8c34acde","line":170,"updated":"2015-05-12 15:33:31.000000000","message":"Why do you need this change?","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fedbc5621c78a16adc7d23f896c541702d3e8850","unresolved":false,"context_lines":[{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    @property"},{"line_number":169,"context_line":"    def name(self):"},{"line_number":170,"context_line":"        if self.export_location:"},{"line_number":171,"context_line":"            return CONF.share_name_template % (self.export_location.split("},{"line_number":172,"context_line":"                CONF.share_name_template % \"\")[1])"},{"line_number":173,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_6abfe0fb","line":170,"in_reply_to":"9a0c5dc1_8c34acde","updated":"2015-05-13 17:58:56.000000000","message":"Sorry, forgot to add comments. It will be included in the next patch.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"ef84389d78669ef4426ce179b918cf466388ec11","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        # so we are going to use it"},{"line_number":175,"context_line":"        if self.export_location:"},{"line_number":176,"context_line":"            return CONF.share_name_template % (self.export_location.split("},{"line_number":177,"context_line":"                CONF.share_name_template % \"\")[1])"},{"line_number":178,"context_line":"        else:"},{"line_number":179,"context_line":"            return CONF.share_name_template % self.id"},{"line_number":180,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"3afb71cf_aae94782","line":177,"updated":"2015-06-08 17:16:19.000000000","message":"our CI is getting \"IndexError: list index out of range\" here. \n\nhttp://dcf901611175aa43f968-c54047c910227e27e1d6f03bb1796fd7.r95.cf5.rackcdn.com/90/179790/8/check/manila-cDOT-no-ss/aa3cb3a/screen-m-api.txt","commit_id":"f3a5f81db86af2211c5844e6128b2b774a6639ec"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"0a6c202adf1cbc8da9080970e1e93243090c277c","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        # so we are going to use it"},{"line_number":175,"context_line":"        if self.export_location:"},{"line_number":176,"context_line":"            return CONF.share_name_template % (self.export_location.split("},{"line_number":177,"context_line":"                CONF.share_name_template % \"\")[1])"},{"line_number":178,"context_line":"        else:"},{"line_number":179,"context_line":"            return CONF.share_name_template % self.id"},{"line_number":180,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"3afb71cf_a542980e","line":177,"in_reply_to":"3afb71cf_6a0eaf3c","updated":"2015-06-08 17:24:18.000000000","message":"Rodrigo, the issue is that you are assuming that the share name, as embodied in the share_name_template, is always going to be present in the export location.  But that isn\u0027t true, the drivers are free to return whatever export location works for them.  In the cDOT case, an example export location is 10.0.0.100:/share_e6546d33_fe8e_4f04_b187_0f4841ed72e8\n\nKudos to the NetApp CI team (ameade \u0026 akerr) for catching a valid regression.","commit_id":"f3a5f81db86af2211c5844e6128b2b774a6639ec"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"36cb3fc39a1403bd5a2a73de78ae1531e2c05252","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        # so we are going to use it"},{"line_number":175,"context_line":"        if self.export_location:"},{"line_number":176,"context_line":"            return CONF.share_name_template % (self.export_location.split("},{"line_number":177,"context_line":"                CONF.share_name_template % \"\")[1])"},{"line_number":178,"context_line":"        else:"},{"line_number":179,"context_line":"            return CONF.share_name_template % self.id"},{"line_number":180,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"3afb71cf_6a0eaf3c","line":177,"in_reply_to":"3afb71cf_aae94782","updated":"2015-06-08 17:19:46.000000000","message":"Thanks for the heads up! This code will go away as I finish integration with private driver storage.","commit_id":"f3a5f81db86af2211c5844e6128b2b774a6639ec"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"a5085a4eb65a58b39f0ccaab1a92f5083bf01d7e","unresolved":false,"context_lines":[{"line_number":185,"context_line":""},{"line_number":186,"context_line":"    @property"},{"line_number":187,"context_line":"    def export_location(self):"},{"line_number":188,"context_line":"        if len(self.instances) \u003e 0:"},{"line_number":189,"context_line":"            return self.instance.export_location"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"    @property"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_7018d8d3","line":188,"updated":"2015-08-25 14:40:14.000000000","message":"Why do you need this change? Looks like unrelated to this commit.","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ed573db154c468aefb20f8fb98321f1965cea93b","unresolved":false,"context_lines":[{"line_number":185,"context_line":""},{"line_number":186,"context_line":"    @property"},{"line_number":187,"context_line":"    def export_location(self):"},{"line_number":188,"context_line":"        if len(self.instances) \u003e 0:"},{"line_number":189,"context_line":"            return self.instance.export_location"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"    @property"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_5befc2b0","line":188,"in_reply_to":"fa1b9901_7018d8d3","updated":"2015-09-01 01:24:03.000000000","message":"This change is needed in order to not display migrating shares\u0027 export locations. The below change complements this.","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"a5085a4eb65a58b39f0ccaab1a92f5083bf01d7e","unresolved":false,"context_lines":[{"line_number":223,"context_line":"        # NOTE(ganso): We prefer instances with AVAILABLE status,"},{"line_number":224,"context_line":"        # and we also prefer to show any other status than CREATING"},{"line_number":225,"context_line":"        if len(self.instances) \u003e 0:"},{"line_number":226,"context_line":"            result \u003d next((x for x in self.instances"},{"line_number":227,"context_line":"                           if x.status \u003d\u003d constants.STATUS_AVAILABLE), None)"},{"line_number":228,"context_line":"            if result is None:"},{"line_number":229,"context_line":"                result \u003d next((x for x in self.instances"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_504b5487","line":226,"updated":"2015-08-25 14:40:14.000000000","message":"Please rewrite this code with a single \"plain\" cycle. It will increase readability and performance.","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ed573db154c468aefb20f8fb98321f1965cea93b","unresolved":false,"context_lines":[{"line_number":223,"context_line":"        # NOTE(ganso): We prefer instances with AVAILABLE status,"},{"line_number":224,"context_line":"        # and we also prefer to show any other status than CREATING"},{"line_number":225,"context_line":"        if len(self.instances) \u003e 0:"},{"line_number":226,"context_line":"            result \u003d next((x for x in self.instances"},{"line_number":227,"context_line":"                           if x.status \u003d\u003d constants.STATUS_AVAILABLE), None)"},{"line_number":228,"context_line":"            if result is None:"},{"line_number":229,"context_line":"                result \u003d next((x for x in self.instances"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_fe100402","line":226,"in_reply_to":"fa1b9901_504b5487","updated":"2015-09-01 01:24:03.000000000","message":"Done","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"c5dd6ce54faa1be27a792488f2f0d984c38a2dc9","unresolved":false,"context_lines":[{"line_number":241,"context_line":"                if instance.status \u003d\u003d constants.STATUS_AVAILABLE:"},{"line_number":242,"context_line":"                    return instance"},{"line_number":243,"context_line":"                elif instance.status \u003d\u003d constants.STATUS_CREATING:"},{"line_number":244,"context_line":"                    result \u003d instance"},{"line_number":245,"context_line":"                elif result is None:"},{"line_number":246,"context_line":"                    result \u003d instance"},{"line_number":247,"context_line":"        return result"}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_c6577158","line":244,"updated":"2015-08-31 11:40:40.000000000","message":"Lines 244 and 246 are the same, so their conditions should be combined.","commit_id":"2b4a50bada41446594d8ce9d5c98a5c200b40a63"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ae5b1886a2f2b209693ad9b1b961207e86e05cb4","unresolved":false,"context_lines":[{"line_number":241,"context_line":"                if instance.status \u003d\u003d constants.STATUS_AVAILABLE:"},{"line_number":242,"context_line":"                    return instance"},{"line_number":243,"context_line":"                elif instance.status \u003d\u003d constants.STATUS_CREATING:"},{"line_number":244,"context_line":"                    result \u003d instance"},{"line_number":245,"context_line":"                elif result is None:"},{"line_number":246,"context_line":"                    result \u003d instance"},{"line_number":247,"context_line":"        return result"}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_90666eb9","line":244,"in_reply_to":"da20952f_c6577158","updated":"2015-09-01 01:22:27.000000000","message":"Done. Thanks a lot for spotting this.","commit_id":"2b4a50bada41446594d8ce9d5c98a5c200b40a63"}],"manila/exception.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":195,"context_line":""},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"class ShareMigrationFailed(ManilaException):"},{"line_number":198,"context_line":"    message \u003d _(\"Share migration failed: %(reason)s\")"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"class ShareServerNotCreated(ManilaException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_0c579c03","line":198,"updated":"2015-05-12 15:33:31.000000000","message":"share_id?","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fedbc5621c78a16adc7d23f896c541702d3e8850","unresolved":false,"context_lines":[{"line_number":195,"context_line":""},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"class ShareMigrationFailed(ManilaException):"},{"line_number":198,"context_line":"    message \u003d _(\"Share migration failed: %(reason)s\")"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":""},{"line_number":201,"context_line":"class ShareServerNotCreated(ManilaException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_0a3bc49d","line":198,"in_reply_to":"9a0c5dc1_0c579c03","updated":"2015-05-13 17:58:56.000000000","message":"I suppose the one that throws the exception will format a string that includes the share_id and pass it as reason\u003d\"%(share_id)s migration failed!\" for instance.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"}],"manila/scheduler/manager.py":[{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"c4d3ee81da6aa5b36b644aec0b55c7fc2ce054a7","unresolved":false,"context_lines":[{"line_number":83,"context_line":"                                              filter_properties)"},{"line_number":84,"context_line":"        except exception.NoValidHost as ex:"},{"line_number":85,"context_line":"            self._set_share_state_and_notify(\u0027create_share\u0027,"},{"line_number":86,"context_line":"                                             {\u0027status\u0027: \u0027error\u0027},"},{"line_number":87,"context_line":"                                                   context, ex, request_spec)"},{"line_number":88,"context_line":"        except Exception as ex:"},{"line_number":89,"context_line":"            with excutils.save_and_reraise_exception():"}],"source_content_type":"text/x-python","patch_set":1,"id":"3acd31a7_b57cefb5","line":86,"updated":"2015-05-05 08:32:20.000000000","message":"continuation line over-indented for visual indent.","commit_id":"700c1f9161b22e8f585aa27f8d8c989e0a7cf104"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"c4d3ee81da6aa5b36b644aec0b55c7fc2ce054a7","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        except Exception as ex:"},{"line_number":89,"context_line":"            with excutils.save_and_reraise_exception():"},{"line_number":90,"context_line":"                self._set_share_state_and_notify(\u0027create_share\u0027,"},{"line_number":91,"context_line":"                                                 {\u0027status\u0027: \u0027error\u0027},"},{"line_number":92,"context_line":"                                                       context, ex,"},{"line_number":93,"context_line":"                                                       request_spec)"},{"line_number":94,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3acd31a7_954c539f","line":91,"updated":"2015-05-05 08:32:20.000000000","message":"continuation line over-indented for visual indent.","commit_id":"700c1f9161b22e8f585aa27f8d8c989e0a7cf104"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        def _migrate_share_set_error(self, context, ex, request_spec):"},{"line_number":105,"context_line":"            self._set_share_state_and_notify(\u0027migrate_share_to_host\u0027,"},{"line_number":106,"context_line":"                                             {\u0027migration_status\u0027: None},"},{"line_number":107,"context_line":"                                             context, ex, request_spec)"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_8cbeecfd","line":106,"updated":"2015-05-12 15:33:31.000000000","message":"Why status \"None\", and not, for example, \"migration_started\"?","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fedbc5621c78a16adc7d23f896c541702d3e8850","unresolved":false,"context_lines":[{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        def _migrate_share_set_error(self, context, ex, request_spec):"},{"line_number":105,"context_line":"            self._set_share_state_and_notify(\u0027migrate_share_to_host\u0027,"},{"line_number":106,"context_line":"                                             {\u0027migration_status\u0027: None},"},{"line_number":107,"context_line":"                                             context, ex, request_spec)"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_0a0984dd","line":106,"in_reply_to":"9a0c5dc1_8cbeecfd","updated":"2015-05-13 17:58:56.000000000","message":"Because in case there is an error in scheduler, we reset the the migration_status to None, so subsequent \"migrate\" calls can be accepted. The API sets migration_status to \"starting\" (upcoming patch), and will not accepted \"migrate\" calls if the status is not None.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":83,"context_line":"                                              filter_properties)"},{"line_number":84,"context_line":"        except exception.NoValidHost as ex:"},{"line_number":85,"context_line":"            self._set_share_state_and_notify(\u0027create_share\u0027,"},{"line_number":86,"context_line":"                                             {\u0027status\u0027: \u0027error\u0027},"},{"line_number":87,"context_line":"                                             context, ex, request_spec)"},{"line_number":88,"context_line":"        except Exception as ex:"},{"line_number":89,"context_line":"            with excutils.save_and_reraise_exception():"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_54687eba","line":86,"updated":"2015-07-06 16:02:35.000000000","message":"Statuses should be used from common place - https://github.com/openstack/manila/blob/master/manila/common/constants.py","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":83,"context_line":"                                              filter_properties)"},{"line_number":84,"context_line":"        except exception.NoValidHost as ex:"},{"line_number":85,"context_line":"            self._set_share_state_and_notify(\u0027create_share\u0027,"},{"line_number":86,"context_line":"                                             {\u0027status\u0027: \u0027error\u0027},"},{"line_number":87,"context_line":"                                             context, ex, request_spec)"},{"line_number":88,"context_line":"        except Exception as ex:"},{"line_number":89,"context_line":"            with excutils.save_and_reraise_exception():"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_83080a2a","line":86,"in_reply_to":"ba3cc151_54687eba","updated":"2015-07-06 17:19:00.000000000","message":"Thanks for the tip!","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"c5dd6ce54faa1be27a792488f2f0d984c38a2dc9","unresolved":false,"context_lines":[{"line_number":98,"context_line":"        \"\"\"Get active pools from the scheduler\u0027s cache.\"\"\""},{"line_number":99,"context_line":"        return self.driver.get_pools(context, filters)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    # At first it included the parameter \"topic\", but it was not being used,"},{"line_number":102,"context_line":"    # same as create_share method"},{"line_number":103,"context_line":"    def migrate_share_to_host(self, context, share_id, host,"},{"line_number":104,"context_line":"                              force_host_copy, request_spec,"}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_c66a11ed","line":101,"updated":"2015-08-31 11:40:40.000000000","message":"Redundant comment.","commit_id":"2b4a50bada41446594d8ce9d5c98a5c200b40a63"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ae5b1886a2f2b209693ad9b1b961207e86e05cb4","unresolved":false,"context_lines":[{"line_number":98,"context_line":"        \"\"\"Get active pools from the scheduler\u0027s cache.\"\"\""},{"line_number":99,"context_line":"        return self.driver.get_pools(context, filters)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    # At first it included the parameter \"topic\", but it was not being used,"},{"line_number":102,"context_line":"    # same as create_share method"},{"line_number":103,"context_line":"    def migrate_share_to_host(self, context, share_id, host,"},{"line_number":104,"context_line":"                              force_host_copy, request_spec,"}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_1011fe03","line":101,"in_reply_to":"da20952f_c66a11ed","updated":"2015-09-01 01:22:27.000000000","message":"Done","commit_id":"2b4a50bada41446594d8ce9d5c98a5c200b40a63"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"7e8521c931340b57f269b88d3ea8747d4fc08ff7","unresolved":false,"context_lines":[{"line_number":130,"context_line":"                    _migrate_share_set_error(self, context, ex, request_spec)"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"    def _set_share_state_and_notify(self, method, state, context, ex,"},{"line_number":133,"context_line":"                                    request_spec, msg\u003dNone):"},{"line_number":134,"context_line":"        if not msg:"},{"line_number":135,"context_line":"            LOG.error(_LE(\"Failed to schedule_%(method)s: %(ex)s\"),"},{"line_number":136,"context_line":"                      {\"method\": method, \"ex\": ex})"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_2afedd05","line":133,"updated":"2015-09-01 18:57:13.000000000","message":"is msg used?","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":130,"context_line":"                    _migrate_share_set_error(self, context, ex, request_spec)"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"    def _set_share_state_and_notify(self, method, state, context, ex,"},{"line_number":133,"context_line":"                                    request_spec, msg\u003dNone):"},{"line_number":134,"context_line":"        if not msg:"},{"line_number":135,"context_line":"            LOG.error(_LE(\"Failed to schedule_%(method)s: %(ex)s\"),"},{"line_number":136,"context_line":"                      {\"method\": method, \"ex\": ex})"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_76e36034","line":133,"in_reply_to":"da20952f_2afedd05","updated":"2015-09-02 16:57:45.000000000","message":"Well observed. Removed it until someone needs it. Thanks!","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"7e8521c931340b57f269b88d3ea8747d4fc08ff7","unresolved":false,"context_lines":[{"line_number":132,"context_line":"    def _set_share_state_and_notify(self, method, state, context, ex,"},{"line_number":133,"context_line":"                                    request_spec, msg\u003dNone):"},{"line_number":134,"context_line":"        if not msg:"},{"line_number":135,"context_line":"            LOG.error(_LE(\"Failed to schedule_%(method)s: %(ex)s\"),"},{"line_number":136,"context_line":"                      {\"method\": method, \"ex\": ex})"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        properties \u003d request_spec.get(\u0027share_properties\u0027, {})"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_8a5e0911","line":135,"updated":"2015-09-01 18:57:13.000000000","message":"s/schedule_/schedule /","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":132,"context_line":"    def _set_share_state_and_notify(self, method, state, context, ex,"},{"line_number":133,"context_line":"                                    request_spec, msg\u003dNone):"},{"line_number":134,"context_line":"        if not msg:"},{"line_number":135,"context_line":"            LOG.error(_LE(\"Failed to schedule_%(method)s: %(ex)s\"),"},{"line_number":136,"context_line":"                      {\"method\": method, \"ex\": ex})"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        properties \u003d request_spec.get(\u0027share_properties\u0027, {})"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_96dcf475","line":135,"in_reply_to":"da20952f_8a5e0911","updated":"2015-09-02 16:57:45.000000000","message":"Done","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"7e8521c931340b57f269b88d3ea8747d4fc08ff7","unresolved":false,"context_lines":[{"line_number":133,"context_line":"                                    request_spec, msg\u003dNone):"},{"line_number":134,"context_line":"        if not msg:"},{"line_number":135,"context_line":"            LOG.error(_LE(\"Failed to schedule_%(method)s: %(ex)s\"),"},{"line_number":136,"context_line":"                      {\"method\": method, \"ex\": ex})"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        properties \u003d request_spec.get(\u0027share_properties\u0027, {})"},{"line_number":139,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_0a5bd92f","line":136,"updated":"2015-09-01 18:57:13.000000000","message":"six.text_type(ex)","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":133,"context_line":"                                    request_spec, msg\u003dNone):"},{"line_number":134,"context_line":"        if not msg:"},{"line_number":135,"context_line":"            LOG.error(_LE(\"Failed to schedule_%(method)s: %(ex)s\"),"},{"line_number":136,"context_line":"                      {\"method\": method, \"ex\": ex})"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"        properties \u003d request_spec.get(\u0027share_properties\u0027, {})"},{"line_number":139,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_56e65c45","line":136,"in_reply_to":"da20952f_0a5bd92f","updated":"2015-09-02 16:57:45.000000000","message":"Done","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"}],"manila/scheduler/rpcapi.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":77,"context_line":"                              force_host_copy\u003dFalse, request_spec\u003dNone,"},{"line_number":78,"context_line":"                              filter_properties\u003dNone):"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.1\u0027)"},{"line_number":81,"context_line":"        request_spec_p \u003d jsonutils.to_primitive(request_spec)"},{"line_number":82,"context_line":"        return cctxt.cast(ctxt, \u0027migrate_share_to_host\u0027,"},{"line_number":83,"context_line":"                          topic\u003dtopic,"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_cc72a47c","line":80,"updated":"2015-05-12 15:33:31.000000000","message":"Version should be updated as new feature appears.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fedbc5621c78a16adc7d23f896c541702d3e8850","unresolved":false,"context_lines":[{"line_number":77,"context_line":"                              force_host_copy\u003dFalse, request_spec\u003dNone,"},{"line_number":78,"context_line":"                              filter_properties\u003dNone):"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.1\u0027)"},{"line_number":81,"context_line":"        request_spec_p \u003d jsonutils.to_primitive(request_spec)"},{"line_number":82,"context_line":"        return cctxt.cast(ctxt, \u0027migrate_share_to_host\u0027,"},{"line_number":83,"context_line":"                          topic\u003dtopic,"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_aafa78bb","line":80,"in_reply_to":"9a0c5dc1_cc72a47c","updated":"2015-05-13 17:58:56.000000000","message":"I intend to upgrade the version in a later patch. Thanks for pointing out.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":31,"context_line":"    API version history:"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"        1.0 - Initial version."},{"line_number":34,"context_line":"        1.1 - Add get_pools method"},{"line_number":35,"context_line":"    \u0027\u0027\u0027"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    RPC_API_VERSION \u003d \u00271.1\u0027"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_b4f78af4","line":34,"updated":"2015-07-06 16:02:35.000000000","message":"Add\n\n\"\"\"\n\n1.2 - Add migrate_share_to_host method\n\n\"\"\"","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":31,"context_line":"    API version history:"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"        1.0 - Initial version."},{"line_number":34,"context_line":"        1.1 - Add get_pools method"},{"line_number":35,"context_line":"    \u0027\u0027\u0027"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    RPC_API_VERSION \u003d \u00271.1\u0027"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_031dda65","line":34,"in_reply_to":"ba3cc151_b4f78af4","updated":"2015-07-06 17:19:00.000000000","message":"Thanks! will do!","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":77,"context_line":"                              force_host_copy\u003dFalse, request_spec\u003dNone,"},{"line_number":78,"context_line":"                              filter_properties\u003dNone):"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.1\u0027)"},{"line_number":81,"context_line":"        request_spec_p \u003d jsonutils.to_primitive(request_spec)"},{"line_number":82,"context_line":"        return cctxt.cast(ctxt, \u0027migrate_share_to_host\u0027,"},{"line_number":83,"context_line":"                          share_id\u003dshare_id,"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_34e4da39","line":80,"updated":"2015-07-06 16:02:35.000000000","message":"version should be greater than 1.1","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":77,"context_line":"                              force_host_copy\u003dFalse, request_spec\u003dNone,"},{"line_number":78,"context_line":"                              filter_properties\u003dNone):"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.1\u0027)"},{"line_number":81,"context_line":"        request_spec_p \u003d jsonutils.to_primitive(request_spec)"},{"line_number":82,"context_line":"        return cctxt.cast(ctxt, \u0027migrate_share_to_host\u0027,"},{"line_number":83,"context_line":"                          share_id\u003dshare_id,"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_a3242eaf","line":80,"in_reply_to":"ba3cc151_34e4da39","updated":"2015-07-06 17:19:00.000000000","message":"Thanks!","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"}],"manila/share/api.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":419,"context_line":"        \"\"\"Migrates share to a new host.\"\"\""},{"line_number":420,"context_line":""},{"line_number":421,"context_line":"        # We only handle \"available\" share for now"},{"line_number":422,"context_line":"        if share[\u0027status\u0027] not in [\u0027available\u0027]:"},{"line_number":423,"context_line":"            msg \u003d _(\u0027Share %(share_id)s status must be available, \u0027"},{"line_number":424,"context_line":"                    \u0027but current status is: \u0027"},{"line_number":425,"context_line":"                    \u0027%(share_status)s.\u0027) % {\u0027share_id\u0027: share[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_f40992de","line":422,"updated":"2015-07-06 16:02:35.000000000","message":"No need to use list here. Also, please use it from common place - https://github.com/openstack/manila/blob/master/manila/common/constants.py","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":419,"context_line":"        \"\"\"Migrates share to a new host.\"\"\""},{"line_number":420,"context_line":""},{"line_number":421,"context_line":"        # We only handle \"available\" share for now"},{"line_number":422,"context_line":"        if share[\u0027status\u0027] not in [\u0027available\u0027]:"},{"line_number":423,"context_line":"            msg \u003d _(\u0027Share %(share_id)s status must be available, \u0027"},{"line_number":424,"context_line":"                    \u0027but current status is: \u0027"},{"line_number":425,"context_line":"                    \u0027%(share_status)s.\u0027) % {\u0027share_id\u0027: share[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_c39a92c5","line":422,"in_reply_to":"ba3cc151_f40992de","updated":"2015-07-06 17:19:00.000000000","message":"Thanks!","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":428,"context_line":"            raise exception.InvalidShare(reason\u003dmsg)"},{"line_number":429,"context_line":""},{"line_number":430,"context_line":"        # Make sure share is not part of a migration"},{"line_number":431,"context_line":"        if share[\u0027task_state\u0027] not in (None, \"migration_error\","},{"line_number":432,"context_line":"                                       \"migration_success\"):"},{"line_number":433,"context_line":"            msg \u003d _(\"Share %s is busy as part of an active \""},{"line_number":434,"context_line":"                    \"task.\") % share[\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_9425a65d","line":431,"updated":"2015-07-06 16:02:35.000000000","message":"https://github.com/openstack/manila/blob/master/manila/common/constants.py","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":428,"context_line":"            raise exception.InvalidShare(reason\u003dmsg)"},{"line_number":429,"context_line":""},{"line_number":430,"context_line":"        # Make sure share is not part of a migration"},{"line_number":431,"context_line":"        if share[\u0027task_state\u0027] not in (None, \"migration_error\","},{"line_number":432,"context_line":"                                       \"migration_success\"):"},{"line_number":433,"context_line":"            msg \u003d _(\"Share %s is busy as part of an active \""},{"line_number":434,"context_line":"                    \"task.\") % share[\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_a372eeab","line":431,"in_reply_to":"ba3cc151_9425a65d","updated":"2015-07-06 17:19:00.000000000","message":"Thanks! I will add the migration statuses to common place constants.","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":451,"context_line":"        for service in services:"},{"line_number":452,"context_line":"            svc_host \u003d share_utils.extract_host(host, \u0027backend\u0027)"},{"line_number":453,"context_line":"            if utils.service_is_up(service) and service[\u0027host\u0027] \u003d\u003d svc_host:"},{"line_number":454,"context_line":"                found \u003d True"},{"line_number":455,"context_line":"        if not found:"},{"line_number":456,"context_line":"            msg \u003d _(\u0027No available service named %s\u0027) % host"},{"line_number":457,"context_line":"            LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_54ce3e84","line":454,"updated":"2015-07-06 16:02:35.000000000","message":"Need to break loop here","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":451,"context_line":"        for service in services:"},{"line_number":452,"context_line":"            svc_host \u003d share_utils.extract_host(host, \u0027backend\u0027)"},{"line_number":453,"context_line":"            if utils.service_is_up(service) and service[\u0027host\u0027] \u003d\u003d svc_host:"},{"line_number":454,"context_line":"                found \u003d True"},{"line_number":455,"context_line":"        if not found:"},{"line_number":456,"context_line":"            msg \u003d _(\u0027No available service named %s\u0027) % host"},{"line_number":457,"context_line":"            LOG.error(msg)"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_e36236ad","line":454,"in_reply_to":"ba3cc151_54ce3e84","updated":"2015-07-06 17:19:00.000000000","message":"thanks for the tip!","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":460,"context_line":"        # Make sure the destination host is different than the current one"},{"line_number":461,"context_line":"        if host \u003d\u003d share[\u0027host\u0027]:"},{"line_number":462,"context_line":"            msg \u003d _(\u0027Destination host must be different \u0027"},{"line_number":463,"context_line":"                    \u0027than the current host.\u0027)"},{"line_number":464,"context_line":"            LOG.error(msg)"},{"line_number":465,"context_line":"            raise exception.InvalidHost(reason\u003dmsg)"},{"line_number":466,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_f48c3237","line":463,"updated":"2015-07-06 16:02:35.000000000","message":"Need to specify names of both.","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":460,"context_line":"        # Make sure the destination host is different than the current one"},{"line_number":461,"context_line":"        if host \u003d\u003d share[\u0027host\u0027]:"},{"line_number":462,"context_line":"            msg \u003d _(\u0027Destination host must be different \u0027"},{"line_number":463,"context_line":"                    \u0027than the current host.\u0027)"},{"line_number":464,"context_line":"            LOG.error(msg)"},{"line_number":465,"context_line":"            raise exception.InvalidHost(reason\u003dmsg)"},{"line_number":466,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_03907a94","line":463,"in_reply_to":"ba3cc151_f48c3237","updated":"2015-07-06 17:19:00.000000000","message":"Thanks for the tip! Better logging.","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":464,"context_line":"            LOG.error(msg)"},{"line_number":465,"context_line":"            raise exception.InvalidHost(reason\u003dmsg)"},{"line_number":466,"context_line":""},{"line_number":467,"context_line":"        self.update(context, share, {\u0027task_state\u0027: \u0027migration_starting\u0027})"},{"line_number":468,"context_line":""},{"line_number":469,"context_line":"        share_type \u003d {}"},{"line_number":470,"context_line":"        share_type_id \u003d share[\u0027share_type_id\u0027]"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_7479022f","line":467,"updated":"2015-07-06 16:02:35.000000000","message":"Need to use common place for all statuses/states, etc... - https://github.com/openstack/manila/blob/master/manila/common/constants.py","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":464,"context_line":"            LOG.error(msg)"},{"line_number":465,"context_line":"            raise exception.InvalidHost(reason\u003dmsg)"},{"line_number":466,"context_line":""},{"line_number":467,"context_line":"        self.update(context, share, {\u0027task_state\u0027: \u0027migration_starting\u0027})"},{"line_number":468,"context_line":""},{"line_number":469,"context_line":"        share_type \u003d {}"},{"line_number":470,"context_line":"        share_type_id \u003d share[\u0027share_type_id\u0027]"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_036cfa9a","line":467,"in_reply_to":"ba3cc151_7479022f","updated":"2015-07-06 17:19:00.000000000","message":"Thanks! I will add the migration statuses to common place constants.","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"a5085a4eb65a58b39f0ccaab1a92f5083bf01d7e","unresolved":false,"context_lines":[{"line_number":334,"context_line":""},{"line_number":335,"context_line":"        # Make sure share is not part of a migration"},{"line_number":336,"context_line":"        if share[\u0027task_state\u0027] not in ("},{"line_number":337,"context_line":"                None, constants.STATUS_TASK_STATE_MIGRATION_ERROR,"},{"line_number":338,"context_line":"                constants.STATUS_TASK_STATE_MIGRATION_SUCCESS):"},{"line_number":339,"context_line":"            msg \u003d _(\"Share %s is busy as part of an active \""},{"line_number":340,"context_line":"                    \"task.\") % share[\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_b3e19a2c","line":337,"updated":"2015-08-25 14:40:14.000000000","message":"Why do you need \u0027None\u0027 here?","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ed573db154c468aefb20f8fb98321f1965cea93b","unresolved":false,"context_lines":[{"line_number":334,"context_line":""},{"line_number":335,"context_line":"        # Make sure share is not part of a migration"},{"line_number":336,"context_line":"        if share[\u0027task_state\u0027] not in ("},{"line_number":337,"context_line":"                None, constants.STATUS_TASK_STATE_MIGRATION_ERROR,"},{"line_number":338,"context_line":"                constants.STATUS_TASK_STATE_MIGRATION_SUCCESS):"},{"line_number":339,"context_line":"            msg \u003d _(\"Share %s is busy as part of an active \""},{"line_number":340,"context_line":"                    \"task.\") % share[\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_5ec57059","line":337,"in_reply_to":"fa1b9901_b3e19a2c","updated":"2015-09-01 01:24:03.000000000","message":"Because migration can be started when task_state is:\n\nNone: no migration ever performed;\nMigration_error: last migration failed;\nMigration_success: last migration succeeded.\n\nIt should only be blocked if it is busy performing a migration.","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"a5085a4eb65a58b39f0ccaab1a92f5083bf01d7e","unresolved":false,"context_lines":[{"line_number":505,"context_line":"        topic \u003d CONF.share_topic"},{"line_number":506,"context_line":"        services \u003d self.db.service_get_all_by_topic(elevated, topic)"},{"line_number":507,"context_line":""},{"line_number":508,"context_line":"        found \u003d False"},{"line_number":509,"context_line":"        for service in services:"},{"line_number":510,"context_line":"            svc_host \u003d share_utils.extract_host(host, \u0027backend\u0027)"},{"line_number":511,"context_line":"            if utils.service_is_up(service) and service[\u0027host\u0027] \u003d\u003d svc_host:"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_3337ca4e","line":508,"updated":"2015-08-25 14:40:14.000000000","message":"You should use validate_service_host() method from manila/utils.py instead of this code.","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ed573db154c468aefb20f8fb98321f1965cea93b","unresolved":false,"context_lines":[{"line_number":505,"context_line":"        topic \u003d CONF.share_topic"},{"line_number":506,"context_line":"        services \u003d self.db.service_get_all_by_topic(elevated, topic)"},{"line_number":507,"context_line":""},{"line_number":508,"context_line":"        found \u003d False"},{"line_number":509,"context_line":"        for service in services:"},{"line_number":510,"context_line":"            svc_host \u003d share_utils.extract_host(host, \u0027backend\u0027)"},{"line_number":511,"context_line":"            if utils.service_is_up(service) and service[\u0027host\u0027] \u003d\u003d svc_host:"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_de40a061","line":508,"in_reply_to":"fa1b9901_3337ca4e","updated":"2015-09-01 01:24:03.000000000","message":"Done","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"a5085a4eb65a58b39f0ccaab1a92f5083bf01d7e","unresolved":false,"context_lines":[{"line_number":517,"context_line":"            raise exception.InvalidHost(reason\u003dmsg)"},{"line_number":518,"context_line":""},{"line_number":519,"context_line":"        # Make sure the destination host is different than the current one"},{"line_number":520,"context_line":"        if host \u003d\u003d share_instance[\u0027host\u0027]:"},{"line_number":521,"context_line":"            msg \u003d _(\u0027Destination host %(host_src)s must be different \u0027"},{"line_number":522,"context_line":"                    \u0027than the current host %(host_dst)s.\u0027) % {"},{"line_number":523,"context_line":"                \u0027host_src\u0027: host,"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_934b36b1","line":520,"updated":"2015-08-25 14:40:14.000000000","message":"Move this check to line 494 to prevent unwanted computations in case of invalid host.","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ed573db154c468aefb20f8fb98321f1965cea93b","unresolved":false,"context_lines":[{"line_number":517,"context_line":"            raise exception.InvalidHost(reason\u003dmsg)"},{"line_number":518,"context_line":""},{"line_number":519,"context_line":"        # Make sure the destination host is different than the current one"},{"line_number":520,"context_line":"        if host \u003d\u003d share_instance[\u0027host\u0027]:"},{"line_number":521,"context_line":"            msg \u003d _(\u0027Destination host %(host_src)s must be different \u0027"},{"line_number":522,"context_line":"                    \u0027than the current host %(host_dst)s.\u0027) % {"},{"line_number":523,"context_line":"                \u0027host_src\u0027: host,"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_9e5f8840","line":520,"in_reply_to":"fa1b9901_934b36b1","updated":"2015-09-01 01:24:03.000000000","message":"Done","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"2b3d21f8ae907df0e8d9d738c69aad7e29a6c259","unresolved":false,"context_lines":[{"line_number":328,"context_line":"        share_id \u003d share[\u0027id\u0027]"},{"line_number":329,"context_line":""},{"line_number":330,"context_line":"        statuses \u003d (constants.STATUS_AVAILABLE, constants.STATUS_ERROR,"},{"line_number":331,"context_line":"                    constants.STATUS_INACTIVE)"},{"line_number":332,"context_line":"        if not (force or share[\u0027status\u0027] in statuses):"},{"line_number":333,"context_line":"            msg \u003d _(\"Share status must be one of %(statuses)s\") % {"},{"line_number":334,"context_line":"                \"statuses\": statuses}"}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_a60b5d29","line":331,"updated":"2015-08-31 11:46:26.000000000","message":"Why do you need addon of \"constants.STATUS_INACTIVE\"?","commit_id":"2b4a50bada41446594d8ce9d5c98a5c200b40a63"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ae5b1886a2f2b209693ad9b1b961207e86e05cb4","unresolved":false,"context_lines":[{"line_number":328,"context_line":"        share_id \u003d share[\u0027id\u0027]"},{"line_number":329,"context_line":""},{"line_number":330,"context_line":"        statuses \u003d (constants.STATUS_AVAILABLE, constants.STATUS_ERROR,"},{"line_number":331,"context_line":"                    constants.STATUS_INACTIVE)"},{"line_number":332,"context_line":"        if not (force or share[\u0027status\u0027] in statuses):"},{"line_number":333,"context_line":"            msg \u003d _(\"Share status must be one of %(statuses)s\") % {"},{"line_number":334,"context_line":"                \"statuses\": statuses}"}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_50a776bc","line":331,"in_reply_to":"da20952f_a60b5d29","updated":"2015-09-01 01:22:27.000000000","message":"In the workflow of migration, an instance created for migration, but not completed should be in status inactive until migration is complete. This line of code is changed so this instance can be deleted later by admin in case of failed migration.","commit_id":"2b4a50bada41446594d8ce9d5c98a5c200b40a63"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"2b3d21f8ae907df0e8d9d738c69aad7e29a6c259","unresolved":false,"context_lines":[{"line_number":373,"context_line":"        policy.check_policy(context, \u0027share\u0027, \u0027delete\u0027)"},{"line_number":374,"context_line":""},{"line_number":375,"context_line":"        statuses \u003d (constants.STATUS_AVAILABLE, constants.STATUS_ERROR,"},{"line_number":376,"context_line":"                    constants.STATUS_INACTIVE)"},{"line_number":377,"context_line":"        if not (force or share_instance[\u0027status\u0027] in statuses):"},{"line_number":378,"context_line":"            msg \u003d _(\"Share instance status must be one of %(statuses)s\") % {"},{"line_number":379,"context_line":"                \"statuses\": statuses}"}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_e1229fa2","line":376,"updated":"2015-08-31 11:46:26.000000000","message":"same here.","commit_id":"2b4a50bada41446594d8ce9d5c98a5c200b40a63"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ae5b1886a2f2b209693ad9b1b961207e86e05cb4","unresolved":false,"context_lines":[{"line_number":373,"context_line":"        policy.check_policy(context, \u0027share\u0027, \u0027delete\u0027)"},{"line_number":374,"context_line":""},{"line_number":375,"context_line":"        statuses \u003d (constants.STATUS_AVAILABLE, constants.STATUS_ERROR,"},{"line_number":376,"context_line":"                    constants.STATUS_INACTIVE)"},{"line_number":377,"context_line":"        if not (force or share_instance[\u0027status\u0027] in statuses):"},{"line_number":378,"context_line":"            msg \u003d _(\"Share instance status must be one of %(statuses)s\") % {"},{"line_number":379,"context_line":"                \"statuses\": statuses}"}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_10ad7e9a","line":376,"in_reply_to":"da20952f_e1229fa2","updated":"2015-09-01 01:22:27.000000000","message":"Please see above.","commit_id":"2b4a50bada41446594d8ce9d5c98a5c200b40a63"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"2b3d21f8ae907df0e8d9d738c69aad7e29a6c259","unresolved":false,"context_lines":[{"line_number":720,"context_line":"        access \u003d self.db.share_access_create(ctx, values)"},{"line_number":721,"context_line":""},{"line_number":722,"context_line":"        for share_instance in share.instances:"},{"line_number":723,"context_line":"                self.allow_access_to_instance(ctx, share_instance, access)"},{"line_number":724,"context_line":"        return access"},{"line_number":725,"context_line":""},{"line_number":726,"context_line":"    def allow_access_to_instance(self, context, share_instance, access):"}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_61468f50","line":723,"updated":"2015-08-31 11:46:26.000000000","message":"I guess it is false change.","commit_id":"2b4a50bada41446594d8ce9d5c98a5c200b40a63"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ae5b1886a2f2b209693ad9b1b961207e86e05cb4","unresolved":false,"context_lines":[{"line_number":720,"context_line":"        access \u003d self.db.share_access_create(ctx, values)"},{"line_number":721,"context_line":""},{"line_number":722,"context_line":"        for share_instance in share.instances:"},{"line_number":723,"context_line":"                self.allow_access_to_instance(ctx, share_instance, access)"},{"line_number":724,"context_line":"        return access"},{"line_number":725,"context_line":""},{"line_number":726,"context_line":"    def allow_access_to_instance(self, context, share_instance, access):"}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_90142ee9","line":723,"in_reply_to":"da20952f_61468f50","updated":"2015-09-01 01:22:27.000000000","message":"Yes, keyboard miss-press, thanks!","commit_id":"2b4a50bada41446594d8ce9d5c98a5c200b40a63"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"7e8521c931340b57f269b88d3ea8747d4fc08ff7","unresolved":false,"context_lines":[{"line_number":302,"context_line":""},{"line_number":303,"context_line":"        self.share_rpcapi.manage_share(context, share, driver_options)"},{"line_number":304,"context_line":"        return self.db.share_get(context, share[\u0027id\u0027])"},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"    def unmanage(self, context, share):"},{"line_number":307,"context_line":"        policy.check_policy(context, \u0027share\u0027, \u0027unmanage\u0027)"},{"line_number":308,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_aacd0d88","line":305,"updated":"2015-09-01 18:57:13.000000000","message":"Is it OK to unmanage a share that is in the middle of migration?","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":302,"context_line":""},{"line_number":303,"context_line":"        self.share_rpcapi.manage_share(context, share, driver_options)"},{"line_number":304,"context_line":"        return self.db.share_get(context, share[\u0027id\u0027])"},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"    def unmanage(self, context, share):"},{"line_number":307,"context_line":"        policy.check_policy(context, \u0027share\u0027, \u0027unmanage\u0027)"},{"line_number":308,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_15f690d7","line":305,"in_reply_to":"da20952f_aacd0d88","updated":"2015-09-02 16:57:45.000000000","message":"Added task_state field check in new patch. I believe this method should have been checking for statuses prior to migration.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":507,"context_line":"            msg \u003d _(\u0027Destination host %(host_src)s must be different \u0027"},{"line_number":508,"context_line":"                    \u0027than the current host %(host_dst)s.\u0027) % {"},{"line_number":509,"context_line":"                \u0027host_src\u0027: host,"},{"line_number":510,"context_line":"                \u0027host_dst\u0027: share_instance[\u0027host\u0027]}"},{"line_number":511,"context_line":"            LOG.error(msg)"},{"line_number":512,"context_line":"            raise exception.InvalidHost(reason\u003dmsg)"},{"line_number":513,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_a1e69014","line":510,"updated":"2015-09-01 23:22:31.000000000","message":"Destination \u003d host_src?  I think your message is correct, but for readability you should flip the names in both the format string and the dict.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":507,"context_line":"            msg \u003d _(\u0027Destination host %(host_src)s must be different \u0027"},{"line_number":508,"context_line":"                    \u0027than the current host %(host_dst)s.\u0027) % {"},{"line_number":509,"context_line":"                \u0027host_src\u0027: host,"},{"line_number":510,"context_line":"                \u0027host_dst\u0027: share_instance[\u0027host\u0027]}"},{"line_number":511,"context_line":"            LOG.error(msg)"},{"line_number":512,"context_line":"            raise exception.InvalidHost(reason\u003dmsg)"},{"line_number":513,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_35b3940c","line":510,"in_reply_to":"da20952f_a1e69014","updated":"2015-09-02 16:57:45.000000000","message":"Done","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"}],"manila/share/driver.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":234,"context_line":"                 \u0027allowed\u0027: driver_handles_share_servers})"},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"    def migrate_share(self, context, share_ref, host):"},{"line_number":237,"context_line":"        return None, None"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"    def get_migration_info(self, context, share, share_server):"},{"line_number":240,"context_line":"        \"\"\"Is called to provide necessary migration logic.\"\"\""}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_6c9cd869","line":237,"updated":"2015-05-12 15:33:31.000000000","message":"Description of returned values?","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fedbc5621c78a16adc7d23f896c541702d3e8850","unresolved":false,"context_lines":[{"line_number":234,"context_line":"                 \u0027allowed\u0027: driver_handles_share_servers})"},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"    def migrate_share(self, context, share_ref, host):"},{"line_number":237,"context_line":"        return None, None"},{"line_number":238,"context_line":""},{"line_number":239,"context_line":"    def get_migration_info(self, context, share, share_server):"},{"line_number":240,"context_line":"        \"\"\"Is called to provide necessary migration logic.\"\"\""}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_0a30649d","line":237,"in_reply_to":"9a0c5dc1_6c9cd869","updated":"2015-05-13 17:58:56.000000000","message":"Added description in upcoming patch. Thanks!","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":281,"context_line":"            self.allow_access(context, share, migration_info_local[\u0027access\u0027],"},{"line_number":282,"context_line":"                              share_server\u003dshare_server)"},{"line_number":283,"context_line":"        except exception.ShareAccessExists:"},{"line_number":284,"context_line":"            LOG.debug(\"Access IP already allowed.\")"},{"line_number":285,"context_line":""},{"line_number":286,"context_line":"        new_access_ref \u003d None"},{"line_number":287,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_ec02086f","line":284,"updated":"2015-05-12 15:33:31.000000000","message":"Why do you mention here \"IP\"? It is interface class and it is abstracted from implementations. So, it could be \"user\" or \"cert\" as well.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fedbc5621c78a16adc7d23f896c541702d3e8850","unresolved":false,"context_lines":[{"line_number":281,"context_line":"            self.allow_access(context, share, migration_info_local[\u0027access\u0027],"},{"line_number":282,"context_line":"                              share_server\u003dshare_server)"},{"line_number":283,"context_line":"        except exception.ShareAccessExists:"},{"line_number":284,"context_line":"            LOG.debug(\"Access IP already allowed.\")"},{"line_number":285,"context_line":""},{"line_number":286,"context_line":"        new_access_ref \u003d None"},{"line_number":287,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_8a1c5414","line":284,"in_reply_to":"9a0c5dc1_ec02086f","updated":"2015-05-13 17:58:56.000000000","message":"Thanks for pointing out, changed from \"IP\" to \"rule\".","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":290,"context_line":"        try:"},{"line_number":291,"context_line":"            # Maybe should not do it this way, but I need an access_id,"},{"line_number":292,"context_line":"            # maybe create a new rpcapi allow_access method?"},{"line_number":293,"context_line":"            new_access_ref \u003d api.API().allow_access(context, new_share,"},{"line_number":294,"context_line":"                                                    new_access[\u0027access_type\u0027],"},{"line_number":295,"context_line":"                                                    new_access[\u0027access_to\u0027])"},{"line_number":296,"context_line":"        # Treated below"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_cc54e455","line":293,"updated":"2015-05-12 15:33:31.000000000","message":"You use \"api.API()\" three times. Should be created instance and reused.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fedbc5621c78a16adc7d23f896c541702d3e8850","unresolved":false,"context_lines":[{"line_number":290,"context_line":"        try:"},{"line_number":291,"context_line":"            # Maybe should not do it this way, but I need an access_id,"},{"line_number":292,"context_line":"            # maybe create a new rpcapi allow_access method?"},{"line_number":293,"context_line":"            new_access_ref \u003d api.API().allow_access(context, new_share,"},{"line_number":294,"context_line":"                                                    new_access[\u0027access_type\u0027],"},{"line_number":295,"context_line":"                                                    new_access[\u0027access_to\u0027])"},{"line_number":296,"context_line":"        # Treated below"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_4a165cf2","line":293,"in_reply_to":"9a0c5dc1_cc54e455","updated":"2015-05-13 17:58:56.000000000","message":"Thanks. Done!","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":295,"context_line":"                                                    new_access[\u0027access_to\u0027])"},{"line_number":296,"context_line":"        # Treated below"},{"line_number":297,"context_line":"        except exception.ShareAccessExists:"},{"line_number":298,"context_line":"            LOG.debug(\"Access IP already allowed.\")"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"        self._prepare_share(context, share, share_server)"},{"line_number":301,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_0c355c45","line":298,"updated":"2015-05-12 15:33:31.000000000","message":"ditto","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fedbc5621c78a16adc7d23f896c541702d3e8850","unresolved":false,"context_lines":[{"line_number":295,"context_line":"                                                    new_access[\u0027access_to\u0027])"},{"line_number":296,"context_line":"        # Treated below"},{"line_number":297,"context_line":"        except exception.ShareAccessExists:"},{"line_number":298,"context_line":"            LOG.debug(\"Access IP already allowed.\")"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"        self._prepare_share(context, share, share_server)"},{"line_number":301,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_6a1b601c","line":298,"in_reply_to":"9a0c5dc1_0c355c45","updated":"2015-05-13 17:58:56.000000000","message":"same as above.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":245,"context_line":"        :return boolean value indicating if driver migration succeeded."},{"line_number":246,"context_line":"        :return dictionary containing a model update."},{"line_number":247,"context_line":"        \"\"\""},{"line_number":248,"context_line":"        return None, None"},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"    def get_migration_info(self, context, share, share_server):"},{"line_number":251,"context_line":"        \"\"\"Is called to provide necessary migration logic.\"\"\""}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_54cabe50","line":248,"updated":"2015-07-06 16:02:35.000000000","message":"Why not \"NotImplementedError\"?","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":245,"context_line":"        :return boolean value indicating if driver migration succeeded."},{"line_number":246,"context_line":"        :return dictionary containing a model update."},{"line_number":247,"context_line":"        \"\"\""},{"line_number":248,"context_line":"        return None, None"},{"line_number":249,"context_line":""},{"line_number":250,"context_line":"    def get_migration_info(self, context, share, share_server):"},{"line_number":251,"context_line":"        \"\"\"Is called to provide necessary migration logic.\"\"\""}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_03f15acd","line":248,"in_reply_to":"ba3cc151_54cabe50","updated":"2015-07-06 17:19:00.000000000","message":"Because then by default the generic migration (fallback migration) would be used, the drivers would not need to return \"None, None\" just to show that they have not implement driver migration.","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":343,"context_line":"        time.sleep(1)"},{"line_number":344,"context_line":""},{"line_number":345,"context_line":"        try:"},{"line_number":346,"context_line":"            stdout, stderr \u003d utils.execute(\u0027rsync\u0027, \u0027-vza\u0027,"},{"line_number":347,"context_line":"                                           mount_path + share[\u0027id\u0027] + \u0027/.\u0027,"},{"line_number":348,"context_line":"                                           mount_path + new_share[\u0027id\u0027] + \u0027/\u0027,"},{"line_number":349,"context_line":"                                           run_as_root\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_f42f52f4","line":346,"updated":"2015-07-06 16:02:35.000000000","message":"it is good candidate for config option.","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":343,"context_line":"        time.sleep(1)"},{"line_number":344,"context_line":""},{"line_number":345,"context_line":"        try:"},{"line_number":346,"context_line":"            stdout, stderr \u003d utils.execute(\u0027rsync\u0027, \u0027-vza\u0027,"},{"line_number":347,"context_line":"                                           mount_path + share[\u0027id\u0027] + \u0027/.\u0027,"},{"line_number":348,"context_line":"                                           mount_path + new_share[\u0027id\u0027] + \u0027/\u0027,"},{"line_number":349,"context_line":"                                           run_as_root\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_6392a659","line":346,"in_reply_to":"ba3cc151_f42f52f4","updated":"2015-07-06 17:19:00.000000000","message":"This is going to be changed in the next patch, a big change is coming, this command seems to be unstable","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":349,"context_line":"                                           run_as_root\u003dTrue,"},{"line_number":350,"context_line":"                                           check_exit_code\u003dFalse)"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"            LOG.info(_LI(\"Migration copy completed, output: %s\") % str(stdout))"},{"line_number":353,"context_line":"            if len(str(stderr)) \u003e 0:"},{"line_number":354,"context_line":"                LOG.info(_LW(\"Migration copy stderr: %s\") % str(stderr))"},{"line_number":355,"context_line":"        except Exception:"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_34461ac0","line":352,"updated":"2015-07-06 16:02:35.000000000","message":"six.text_type","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":349,"context_line":"                                           run_as_root\u003dTrue,"},{"line_number":350,"context_line":"                                           check_exit_code\u003dFalse)"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"            LOG.info(_LI(\"Migration copy completed, output: %s\") % str(stdout))"},{"line_number":353,"context_line":"            if len(str(stderr)) \u003e 0:"},{"line_number":354,"context_line":"                LOG.info(_LW(\"Migration copy stderr: %s\") % str(stderr))"},{"line_number":355,"context_line":"        except Exception:"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_e3ba36c0","line":352,"in_reply_to":"ba3cc151_34461ac0","updated":"2015-07-06 17:19:00.000000000","message":"Thanks! I did not know about this.","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":351,"context_line":""},{"line_number":352,"context_line":"            LOG.info(_LI(\"Migration copy completed, output: %s\") % str(stdout))"},{"line_number":353,"context_line":"            if len(str(stderr)) \u003e 0:"},{"line_number":354,"context_line":"                LOG.info(_LW(\"Migration copy stderr: %s\") % str(stderr))"},{"line_number":355,"context_line":"        except Exception:"},{"line_number":356,"context_line":"            LOG.error(_LE(\"Failed to copy files for \""},{"line_number":357,"context_line":"                          \"migration of share %(share_id)s to \""}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_f41672a6","line":354,"updated":"2015-07-06 16:02:35.000000000","message":"ditto","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":17444,"name":"Jay.Shen","email":"shenhong09@huawei.com","username":"Jay.Shen"},"change_message_id":"9201bbd15a5b3eba8610aed8d4d9865b3408f353","unresolved":false,"context_lines":[{"line_number":603,"context_line":"                raise exception.ShareMigrationFailed(reason\u003dmsg)"},{"line_number":604,"context_line":""},{"line_number":605,"context_line":"        LOG.debug(\"Copying completed in migration\""},{"line_number":606,"context_line":"                  \" for share %s!\" % share[\u0027id\u0027])"},{"line_number":607,"context_line":""},{"line_number":608,"context_line":"    def create_share(self, context, share, share_server\u003dNone):"},{"line_number":609,"context_line":"        \"\"\"Is called to create share.\"\"\""}],"source_content_type":"text/x-python","patch_set":21,"id":"1a4dcd0f_595350e2","line":606,"updated":"2015-08-06 14:19:41.000000000","message":"Keep \u0027.\u0027 or \u0027!\u0027 consistent","commit_id":"adaf6b408a1a5d504fa6982736276772fb4886fd"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"541136d95332459b8214795187655ca4c313d141","unresolved":false,"context_lines":[{"line_number":603,"context_line":"                raise exception.ShareMigrationFailed(reason\u003dmsg)"},{"line_number":604,"context_line":""},{"line_number":605,"context_line":"        LOG.debug(\"Copying completed in migration\""},{"line_number":606,"context_line":"                  \" for share %s!\" % share[\u0027id\u0027])"},{"line_number":607,"context_line":""},{"line_number":608,"context_line":"    def create_share(self, context, share, share_server\u003dNone):"},{"line_number":609,"context_line":"        \"\"\"Is called to create share.\"\"\""}],"source_content_type":"text/x-python","patch_set":21,"id":"1a4dcd0f_b581f0c5","line":606,"in_reply_to":"1a4dcd0f_595350e2","updated":"2015-08-21 19:24:31.000000000","message":"done","commit_id":"adaf6b408a1a5d504fa6982736276772fb4886fd"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"79a8d7c9f4e6fc96c74e437612ccfd82090d7936","unresolved":false,"context_lines":[{"line_number":293,"context_line":"        \"\"\""},{"line_number":294,"context_line":"        return None, None"},{"line_number":295,"context_line":""},{"line_number":296,"context_line":"    def get_migration_info(self, context, share_instance, share_server):"},{"line_number":297,"context_line":"        \"\"\"Is called to provide necessary migration logic.\"\"\""},{"line_number":298,"context_line":""},{"line_number":299,"context_line":"        mount_cmd \u003d self._mount_share(context, share_instance, share_server)"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_047b5a29","line":296,"updated":"2015-08-25 15:33:49.000000000","message":"A driver should return Name and Version in this dictionary. Also driver should be able to return some driver specific information which will be consumed by source driver(which performs migration).","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ed573db154c468aefb20f8fb98321f1965cea93b","unresolved":false,"context_lines":[{"line_number":293,"context_line":"        \"\"\""},{"line_number":294,"context_line":"        return None, None"},{"line_number":295,"context_line":""},{"line_number":296,"context_line":"    def get_migration_info(self, context, share_instance, share_server):"},{"line_number":297,"context_line":"        \"\"\"Is called to provide necessary migration logic.\"\"\""},{"line_number":298,"context_line":""},{"line_number":299,"context_line":"        mount_cmd \u003d self._mount_share(context, share_instance, share_server)"}],"source_content_type":"text/x-python","patch_set":24,"id":"da20952f_aad2bbfe","line":296,"in_reply_to":"fa1b9901_047b5a29","updated":"2015-09-01 01:24:03.000000000","message":"This information is already included in host[\u0027capabilities\u0027], for generic migration that information is not used. I added \"get_driver_migration_info\" which driver can implement to supply whatever information, additional to host[\u0027capabilities\u0027]","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"79a8d7c9f4e6fc96c74e437612ccfd82090d7936","unresolved":false,"context_lines":[{"line_number":365,"context_line":"        # migration between backends, but allows the driver to use it on its"},{"line_number":366,"context_line":"        # own implementation if it wants to."},{"line_number":367,"context_line":""},{"line_number":368,"context_line":"        api \u003d share_api.API()"},{"line_number":369,"context_line":"        rpcapi \u003d share_rpcapi.ShareAPI()"},{"line_number":370,"context_line":""},{"line_number":371,"context_line":"        migrated \u003d False"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_5fd4bf1e","line":368,"updated":"2015-08-25 15:33:49.000000000","message":"I think that direct usage of share API and share rpc API in the driver is a bad idea.\n\nAt the minimum API objects should be provided by Share Manager through method parameters.\n\nAt the maximum rpcapi.get_migration_info() should be executed in Share Manager and result passed to this method as a parameter. And all actions related to the Share API should be encapsulated in additional helper class (let\u0027s call it ShareMigrationHelper)","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ed573db154c468aefb20f8fb98321f1965cea93b","unresolved":false,"context_lines":[{"line_number":365,"context_line":"        # migration between backends, but allows the driver to use it on its"},{"line_number":366,"context_line":"        # own implementation if it wants to."},{"line_number":367,"context_line":""},{"line_number":368,"context_line":"        api \u003d share_api.API()"},{"line_number":369,"context_line":"        rpcapi \u003d share_rpcapi.ShareAPI()"},{"line_number":370,"context_line":""},{"line_number":371,"context_line":"        migrated \u003d False"}],"source_content_type":"text/x-python","patch_set":24,"id":"da20952f_cacdaf5e","line":368,"in_reply_to":"fa1b9901_5fd4bf1e","updated":"2015-09-01 01:24:03.000000000","message":"Done","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"79a8d7c9f4e6fc96c74e437612ccfd82090d7936","unresolved":false,"context_lines":[{"line_number":381,"context_line":"        local_access \u003d migration_info_local[\u0027access\u0027]"},{"line_number":382,"context_line":"        remote_access \u003d migration_info_remote[\u0027access\u0027]"},{"line_number":383,"context_line":""},{"line_number":384,"context_line":"        def _wait_for_allow_access(access_ref):"},{"line_number":385,"context_line":""},{"line_number":386,"context_line":"            starttime \u003d time.time()"},{"line_number":387,"context_line":"            deadline \u003d starttime + self.configuration.safe_get("}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_dfcbef51","line":384,"updated":"2015-08-25 15:33:49.000000000","message":"With bunch of this inline functions it\u0027s impossible to cleanly override this method in drivers. That\u0027s why most of this functions should be moved to ShareMigrationHelper class or this method should be moved to Share Manager.","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ed573db154c468aefb20f8fb98321f1965cea93b","unresolved":false,"context_lines":[{"line_number":381,"context_line":"        local_access \u003d migration_info_local[\u0027access\u0027]"},{"line_number":382,"context_line":"        remote_access \u003d migration_info_remote[\u0027access\u0027]"},{"line_number":383,"context_line":""},{"line_number":384,"context_line":"        def _wait_for_allow_access(access_ref):"},{"line_number":385,"context_line":""},{"line_number":386,"context_line":"            starttime \u003d time.time()"},{"line_number":387,"context_line":"            deadline \u003d starttime + self.configuration.safe_get("}],"source_content_type":"text/x-python","patch_set":24,"id":"da20952f_2a054b79","line":384,"in_reply_to":"fa1b9901_dfcbef51","updated":"2015-09-01 01:24:03.000000000","message":"Done","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"59932c85e66f5a1a3a13c8c78c67fd965d1e953d","unresolved":false,"context_lines":[{"line_number":777,"context_line":"        return []"},{"line_number":778,"context_line":""},{"line_number":779,"context_line":""},{"line_number":780,"context_line":"class Copy():"},{"line_number":781,"context_line":""},{"line_number":782,"context_line":"    def __init__(self, src, dest, ignore_list):"},{"line_number":783,"context_line":"        self.src \u003d src"}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_a17b4727","line":780,"updated":"2015-08-31 12:02:17.000000000","message":"All classes should be created using new class definition style:\n\n\"\"\"\n\nclass Copy(object):\n\n\"\"\"","commit_id":"2b4a50bada41446594d8ce9d5c98a5c200b40a63"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ae5b1886a2f2b209693ad9b1b961207e86e05cb4","unresolved":false,"context_lines":[{"line_number":777,"context_line":"        return []"},{"line_number":778,"context_line":""},{"line_number":779,"context_line":""},{"line_number":780,"context_line":"class Copy():"},{"line_number":781,"context_line":""},{"line_number":782,"context_line":"    def __init__(self, src, dest, ignore_list):"},{"line_number":783,"context_line":"        self.src \u003d src"}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_308be220","line":780,"in_reply_to":"da20952f_a17b4727","updated":"2015-09-01 01:22:27.000000000","message":"Done. Thanks!","commit_id":"2b4a50bada41446594d8ce9d5c98a5c200b40a63"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        \u0027migration_wait_access_rules_timeout\u0027,"},{"line_number":90,"context_line":"        default\u003d30,"},{"line_number":91,"context_line":"        help\u003d\"Time to wait for access rules to be allowed/denied on backends \""},{"line_number":92,"context_line":"             \"when migrating shares using generic approach.\"),"},{"line_number":93,"context_line":"    cfg.IntOpt("},{"line_number":94,"context_line":"        \u0027migration_create_delete_share_timeout_secs\u0027,"},{"line_number":95,"context_line":"        default\u003d300,"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_7c681f88","line":92,"updated":"2015-09-01 23:22:31.000000000","message":"add (seconds) like you did below.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        \u0027migration_wait_access_rules_timeout\u0027,"},{"line_number":90,"context_line":"        default\u003d30,"},{"line_number":91,"context_line":"        help\u003d\"Time to wait for access rules to be allowed/denied on backends \""},{"line_number":92,"context_line":"             \"when migrating shares using generic approach.\"),"},{"line_number":93,"context_line":"    cfg.IntOpt("},{"line_number":94,"context_line":"        \u0027migration_create_delete_share_timeout_secs\u0027,"},{"line_number":95,"context_line":"        default\u003d300,"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_3559548f","line":92,"in_reply_to":"da20952f_7c681f88","updated":"2015-09-02 16:57:45.000000000","message":"Done","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        help\u003d\"Time to wait for access rules to be allowed/denied on backends \""},{"line_number":92,"context_line":"             \"when migrating shares using generic approach.\"),"},{"line_number":93,"context_line":"    cfg.IntOpt("},{"line_number":94,"context_line":"        \u0027migration_create_delete_share_timeout_secs\u0027,"},{"line_number":95,"context_line":"        default\u003d300,"},{"line_number":96,"context_line":"        help\u003d\u0027Timeout for creating and deleting share instances \u0027"},{"line_number":97,"context_line":"             \u0027when performing share migration (seconds)\u0027),"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_1c0483c4","line":94,"updated":"2015-09-01 23:22:31.000000000","message":"Should be consistent on use of _secs (or not).  I think you should remove _secs here.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        help\u003d\"Time to wait for access rules to be allowed/denied on backends \""},{"line_number":92,"context_line":"             \"when migrating shares using generic approach.\"),"},{"line_number":93,"context_line":"    cfg.IntOpt("},{"line_number":94,"context_line":"        \u0027migration_create_delete_share_timeout_secs\u0027,"},{"line_number":95,"context_line":"        default\u003d300,"},{"line_number":96,"context_line":"        help\u003d\u0027Timeout for creating and deleting share instances \u0027"},{"line_number":97,"context_line":"             \u0027when performing share migration (seconds)\u0027),"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_b5fb2447","line":94,"in_reply_to":"da20952f_1c0483c4","updated":"2015-09-02 16:57:45.000000000","message":"I prefer _secs because the admin can be sure while only reading manila.conf, but I don\u0027t mind.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        \u0027migration_create_delete_share_timeout_secs\u0027,"},{"line_number":95,"context_line":"        default\u003d300,"},{"line_number":96,"context_line":"        help\u003d\u0027Timeout for creating and deleting share instances \u0027"},{"line_number":97,"context_line":"             \u0027when performing share migration (seconds)\u0027),"},{"line_number":98,"context_line":"    cfg.StrOpt("},{"line_number":99,"context_line":"        \u0027migration_mounting_backend_ip\u0027,"},{"line_number":100,"context_line":"        default\u003dNone,"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_1c2b2335","line":97,"updated":"2015-09-01 23:22:31.000000000","message":"end with period","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        \u0027migration_create_delete_share_timeout_secs\u0027,"},{"line_number":95,"context_line":"        default\u003d300,"},{"line_number":96,"context_line":"        help\u003d\u0027Timeout for creating and deleting share instances \u0027"},{"line_number":97,"context_line":"             \u0027when performing share migration (seconds)\u0027),"},{"line_number":98,"context_line":"    cfg.StrOpt("},{"line_number":99,"context_line":"        \u0027migration_mounting_backend_ip\u0027,"},{"line_number":100,"context_line":"        default\u003dNone,"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_f553dc6a","line":97,"in_reply_to":"da20952f_1c2b2335","updated":"2015-09-02 16:57:45.000000000","message":"Done","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":295,"context_line":"        :param host: Destination host and its capabilities."},{"line_number":296,"context_line":"        :param dest_driver_migration_info: Migration information provided by"},{"line_number":297,"context_line":"        destination host."},{"line_number":298,"context_line":"        :returns: Boolean value indicating if driver migration succeeded."},{"line_number":299,"context_line":"        :returns: Dictionary containing a model update."},{"line_number":300,"context_line":"        \"\"\""},{"line_number":301,"context_line":"        return None, None"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_bc21d7b6","line":298,"updated":"2015-09-01 23:22:31.000000000","message":"Can you clarify the difference between a driver choosing not to handle this migration vs trying and not succeeding?  Is it False for \"won\u0027t try\" and Exception thrown for error?","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":295,"context_line":"        :param host: Destination host and its capabilities."},{"line_number":296,"context_line":"        :param dest_driver_migration_info: Migration information provided by"},{"line_number":297,"context_line":"        destination host."},{"line_number":298,"context_line":"        :returns: Boolean value indicating if driver migration succeeded."},{"line_number":299,"context_line":"        :returns: Dictionary containing a model update."},{"line_number":300,"context_line":"        \"\"\""},{"line_number":301,"context_line":"        return None, None"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_ef1c61c3","line":298,"in_reply_to":"da20952f_bc21d7b6","updated":"2015-09-02 16:57:45.000000000","message":"In practice, the result is the same. A driver that returns false says it will not migrate (or could not) because such migration parameters are not appropriate for optimized migration (example: migration between different vendors) or it does not have an optimized migration implementation. Trying and throwing exception produces the same result, because in the end, it could not or is not able to perform optimized migration, so it falls back to generic migration approach (see manager.py code).\n\nDo you think it is best to follow \"raise NotImplementedError()\" approach? Manager code will catch and proceed with generic approach either way. The only difference is that, as you can see in manager code, the driver is allowed to perform a model update even though it does not migrate. I don\u0027t know if this is useful, I am just not preventing it.\n\nIf use \"raise NotImplementedError()\", I need an additional catch with NotImplementedError, since it is not derived from ManilaException.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":317,"context_line":"                \u0027umount\u0027: umount_cmd,"},{"line_number":318,"context_line":"                \u0027access\u0027: access}"},{"line_number":319,"context_line":""},{"line_number":320,"context_line":"    def _mount_share(self, context, share_instance, share_server):"},{"line_number":321,"context_line":"        \"\"\"Is called to delegate mounting share logic.\"\"\""},{"line_number":322,"context_line":"        mount_cmd \u003d self._get_mount_command(share_instance, share_server)"},{"line_number":323,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_305c0bed","line":320,"updated":"2015-09-01 23:22:31.000000000","message":"Since this doesn\u0027t actually mount the share I\u0027d like to see it renamed.  Maybe this is _get_mount_command and _get_mount_command becomes _get_migration_protocol_mount_command.  Not a big deal but _mount_share looks like it would mount a share.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":317,"context_line":"                \u0027umount\u0027: umount_cmd,"},{"line_number":318,"context_line":"                \u0027access\u0027: access}"},{"line_number":319,"context_line":""},{"line_number":320,"context_line":"    def _mount_share(self, context, share_instance, share_server):"},{"line_number":321,"context_line":"        \"\"\"Is called to delegate mounting share logic.\"\"\""},{"line_number":322,"context_line":"        mount_cmd \u003d self._get_mount_command(share_instance, share_server)"},{"line_number":323,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_efe1c19b","line":320,"in_reply_to":"da20952f_305c0bed","updated":"2015-09-02 16:57:45.000000000","message":"Done","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":344,"context_line":"        mount_ip \u003d self.configuration.safe_get(\u0027migration_mounting_backend_ip\u0027)"},{"line_number":345,"context_line":"        old_ip \u003d share_instance[\u0027export_locations\u0027][0][\u0027path\u0027]"},{"line_number":346,"context_line":"        if mount_ip:"},{"line_number":347,"context_line":"            # NOTE(ganso): Does not currently work with hostnames."},{"line_number":348,"context_line":"            p \u003d re.compile(\"\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}\")"},{"line_number":349,"context_line":"            new_ip \u003d p.sub(mount_ip, old_ip)"},{"line_number":350,"context_line":"            return new_ip"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_50e89f16","line":347,"updated":"2015-09-01 23:22:31.000000000","message":"# or ipv6","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":344,"context_line":"        mount_ip \u003d self.configuration.safe_get(\u0027migration_mounting_backend_ip\u0027)"},{"line_number":345,"context_line":"        old_ip \u003d share_instance[\u0027export_locations\u0027][0][\u0027path\u0027]"},{"line_number":346,"context_line":"        if mount_ip:"},{"line_number":347,"context_line":"            # NOTE(ganso): Does not currently work with hostnames."},{"line_number":348,"context_line":"            p \u003d re.compile(\"\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}\")"},{"line_number":349,"context_line":"            new_ip \u003d p.sub(mount_ip, old_ip)"},{"line_number":350,"context_line":"            return new_ip"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_8feda590","line":347,"in_reply_to":"da20952f_50e89f16","updated":"2015-09-02 16:57:45.000000000","message":"Done","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":351,"context_line":"        else:"},{"line_number":352,"context_line":"            return old_ip"},{"line_number":353,"context_line":""},{"line_number":354,"context_line":"    def _umount_share(self, context, share_instance, share_server):"},{"line_number":355,"context_line":"        return [\u0027umount\u0027,"},{"line_number":356,"context_line":"                self.configuration.safe_get(\u0027migration_tmp_location\u0027)"},{"line_number":357,"context_line":"                + share_instance[\u0027id\u0027]]"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_30af2b96","line":354,"updated":"2015-09-01 23:22:31.000000000","message":"_get_umount_command","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":351,"context_line":"        else:"},{"line_number":352,"context_line":"            return old_ip"},{"line_number":353,"context_line":""},{"line_number":354,"context_line":"    def _umount_share(self, context, share_instance, share_server):"},{"line_number":355,"context_line":"        return [\u0027umount\u0027,"},{"line_number":356,"context_line":"                self.configuration.safe_get(\u0027migration_tmp_location\u0027)"},{"line_number":357,"context_line":"                + share_instance[\u0027id\u0027]]"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_aff2e96d","line":354,"in_reply_to":"da20952f_30af2b96","updated":"2015-09-02 16:57:45.000000000","message":"Done","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":369,"context_line":""},{"line_number":370,"context_line":"    def copy_share_data(self, context, helper, share, share_instance,"},{"line_number":371,"context_line":"                        share_server, new_share_instance, new_share_server,"},{"line_number":372,"context_line":"                        migration_info_local, migration_info_remote):"},{"line_number":373,"context_line":""},{"line_number":374,"context_line":"        # NOTE(ganso): This method is here because it is debatable if it can"},{"line_number":375,"context_line":"        # be overridden by a driver or not. Personally I think it should not,"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_30bacb6f","line":372,"updated":"2015-09-01 23:22:31.000000000","message":"change local/remote to src/dest?","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":369,"context_line":""},{"line_number":370,"context_line":"    def copy_share_data(self, context, helper, share, share_instance,"},{"line_number":371,"context_line":"                        share_server, new_share_instance, new_share_server,"},{"line_number":372,"context_line":"                        migration_info_local, migration_info_remote):"},{"line_number":373,"context_line":""},{"line_number":374,"context_line":"        # NOTE(ganso): This method is here because it is debatable if it can"},{"line_number":375,"context_line":"        # be overridden by a driver or not. Personally I think it should not,"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_af998921","line":372,"in_reply_to":"da20952f_30bacb6f","updated":"2015-09-02 16:57:45.000000000","message":"Done","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":431,"context_line":"                    remote_access_ref, remote_access)"},{"line_number":432,"context_line":"                raise"},{"line_number":433,"context_line":""},{"line_number":434,"context_line":"        utils.execute(\u0027mkdir\u0027, \u0027-p\u0027, mount_path + share_instance[\u0027id\u0027])"},{"line_number":435,"context_line":""},{"line_number":436,"context_line":"        time.sleep(1)"},{"line_number":437,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_33ce55b5","line":434,"updated":"2015-09-01 23:22:31.000000000","message":"You could replace + sting concat with \u0027\u0027.join((a,b))","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":431,"context_line":"                    remote_access_ref, remote_access)"},{"line_number":432,"context_line":"                raise"},{"line_number":433,"context_line":""},{"line_number":434,"context_line":"        utils.execute(\u0027mkdir\u0027, \u0027-p\u0027, mount_path + share_instance[\u0027id\u0027])"},{"line_number":435,"context_line":""},{"line_number":436,"context_line":"        time.sleep(1)"},{"line_number":437,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_2f5b3956","line":434,"in_reply_to":"da20952f_33ce55b5","updated":"2015-09-02 16:57:45.000000000","message":"Done","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":433,"context_line":""},{"line_number":434,"context_line":"        utils.execute(\u0027mkdir\u0027, \u0027-p\u0027, mount_path + share_instance[\u0027id\u0027])"},{"line_number":435,"context_line":""},{"line_number":436,"context_line":"        time.sleep(1)"},{"line_number":437,"context_line":""},{"line_number":438,"context_line":"        try:"},{"line_number":439,"context_line":"            _mount_for_migration(migration_info_local)"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_73628daf","line":436,"updated":"2015-09-01 23:22:31.000000000","message":"If you have a useful \"NOTE\" for why this sleep is necessary it might be helpful later.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":433,"context_line":""},{"line_number":434,"context_line":"        utils.execute(\u0027mkdir\u0027, \u0027-p\u0027, mount_path + share_instance[\u0027id\u0027])"},{"line_number":435,"context_line":""},{"line_number":436,"context_line":"        time.sleep(1)"},{"line_number":437,"context_line":""},{"line_number":438,"context_line":"        try:"},{"line_number":439,"context_line":"            _mount_for_migration(migration_info_local)"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_ef546122","line":436,"in_reply_to":"da20952f_73628daf","updated":"2015-09-02 16:57:45.000000000","message":"Done","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":439,"context_line":"            _mount_for_migration(migration_info_local)"},{"line_number":440,"context_line":"        except Exception as mel:"},{"line_number":441,"context_line":"            msg \u003d six.text_type(mel)"},{"line_number":442,"context_line":"            LOG.exception(msg)"},{"line_number":443,"context_line":"            helper.cleanup_temp_folder(share_instance, mount_path)"},{"line_number":444,"context_line":"            raise exception.ShareMigrationFailed(reason\u003dmsg)"},{"line_number":445,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_532bc933","line":442,"updated":"2015-09-01 23:22:31.000000000","message":"I haven\u0027t seen the log, but I would think this is a place where you\u0027d want the message to mention that it was trying to do the local mount.  The \"mel\" might be really ambiguous.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":439,"context_line":"            _mount_for_migration(migration_info_local)"},{"line_number":440,"context_line":"        except Exception as mel:"},{"line_number":441,"context_line":"            msg \u003d six.text_type(mel)"},{"line_number":442,"context_line":"            LOG.exception(msg)"},{"line_number":443,"context_line":"            helper.cleanup_temp_folder(share_instance, mount_path)"},{"line_number":444,"context_line":"            raise exception.ShareMigrationFailed(reason\u003dmsg)"},{"line_number":445,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_4a577bca","line":442,"in_reply_to":"da20952f_532bc933","updated":"2015-09-02 16:57:45.000000000","message":"Since I am capturing \"Exception\" I prefer to just print the exception message, but I can add a LOG.error for each situation that fails.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":443,"context_line":"            helper.cleanup_temp_folder(share_instance, mount_path)"},{"line_number":444,"context_line":"            raise exception.ShareMigrationFailed(reason\u003dmsg)"},{"line_number":445,"context_line":""},{"line_number":446,"context_line":"        utils.execute(\u0027mkdir\u0027, \u0027-p\u0027, mount_path + new_share_instance[\u0027id\u0027])"},{"line_number":447,"context_line":"        time.sleep(1)"},{"line_number":448,"context_line":""},{"line_number":449,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_d3c35989","line":446,"updated":"2015-09-01 23:22:31.000000000","message":"same here","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":443,"context_line":"            helper.cleanup_temp_folder(share_instance, mount_path)"},{"line_number":444,"context_line":"            raise exception.ShareMigrationFailed(reason\u003dmsg)"},{"line_number":445,"context_line":""},{"line_number":446,"context_line":"        utils.execute(\u0027mkdir\u0027, \u0027-p\u0027, mount_path + new_share_instance[\u0027id\u0027])"},{"line_number":447,"context_line":"        time.sleep(1)"},{"line_number":448,"context_line":""},{"line_number":449,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_6a5cbfed","line":446,"in_reply_to":"da20952f_d3c35989","updated":"2015-09-02 16:57:45.000000000","message":"Done","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":444,"context_line":"            raise exception.ShareMigrationFailed(reason\u003dmsg)"},{"line_number":445,"context_line":""},{"line_number":446,"context_line":"        utils.execute(\u0027mkdir\u0027, \u0027-p\u0027, mount_path + new_share_instance[\u0027id\u0027])"},{"line_number":447,"context_line":"        time.sleep(1)"},{"line_number":448,"context_line":""},{"line_number":449,"context_line":"        try:"},{"line_number":450,"context_line":"            _mount_for_migration(migration_info_remote)"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_1398f169","line":447,"updated":"2015-09-01 23:22:31.000000000","message":"Maybe do the dirs first and sleep to fail-fast if they don\u0027t work and also would that get rid of 1 sleep?","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":444,"context_line":"            raise exception.ShareMigrationFailed(reason\u003dmsg)"},{"line_number":445,"context_line":""},{"line_number":446,"context_line":"        utils.execute(\u0027mkdir\u0027, \u0027-p\u0027, mount_path + new_share_instance[\u0027id\u0027])"},{"line_number":447,"context_line":"        time.sleep(1)"},{"line_number":448,"context_line":""},{"line_number":449,"context_line":"        try:"},{"line_number":450,"context_line":"            _mount_for_migration(migration_info_remote)"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_0a72e37c","line":447,"in_reply_to":"da20952f_1398f169","updated":"2015-09-02 16:57:45.000000000","message":"mkdir with -p parameter is very unlikely to fail. If I create both folders first, I always have to cleanup both as well.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":450,"context_line":"            _mount_for_migration(migration_info_remote)"},{"line_number":451,"context_line":"        except Exception as mer:"},{"line_number":452,"context_line":"            msg \u003d six.text_type(mer)"},{"line_number":453,"context_line":"            LOG.exception(msg)"},{"line_number":454,"context_line":"            helper.cleanup_unmount_temp_folder(share_instance,"},{"line_number":455,"context_line":"                                               migration_info_local)"},{"line_number":456,"context_line":"            helper.cleanup_temp_folder(share_instance, mount_path)"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_f3c69d48","line":453,"updated":"2015-09-01 23:22:31.000000000","message":"same here.  A clue about what we were trying to do when the \"mer\" happened.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":450,"context_line":"            _mount_for_migration(migration_info_remote)"},{"line_number":451,"context_line":"        except Exception as mer:"},{"line_number":452,"context_line":"            msg \u003d six.text_type(mer)"},{"line_number":453,"context_line":"            LOG.exception(msg)"},{"line_number":454,"context_line":"            helper.cleanup_unmount_temp_folder(share_instance,"},{"line_number":455,"context_line":"                                               migration_info_local)"},{"line_number":456,"context_line":"            helper.cleanup_temp_folder(share_instance, mount_path)"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_2f02463f","line":453,"in_reply_to":"da20952f_f3c69d48","updated":"2015-09-02 16:57:45.000000000","message":"Done","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":485,"context_line":"        utils.execute(*migration_info_remote[\u0027umount\u0027], run_as_root\u003dTrue)"},{"line_number":486,"context_line":""},{"line_number":487,"context_line":"        utils.execute(\u0027rmdir\u0027, mount_path + share_instance[\u0027id\u0027],"},{"line_number":488,"context_line":"                      check_exit_code\u003dFalse)"},{"line_number":489,"context_line":"        utils.execute(\u0027rmdir\u0027, mount_path + new_share_instance[\u0027id\u0027],"},{"line_number":490,"context_line":"                      check_exit_code\u003dFalse)"},{"line_number":491,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_337175e1","line":488,"updated":"2015-09-01 23:22:31.000000000","message":"could use \u0027\u0027.join above and below.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":485,"context_line":"        utils.execute(*migration_info_remote[\u0027umount\u0027], run_as_root\u003dTrue)"},{"line_number":486,"context_line":""},{"line_number":487,"context_line":"        utils.execute(\u0027rmdir\u0027, mount_path + share_instance[\u0027id\u0027],"},{"line_number":488,"context_line":"                      check_exit_code\u003dFalse)"},{"line_number":489,"context_line":"        utils.execute(\u0027rmdir\u0027, mount_path + new_share_instance[\u0027id\u0027],"},{"line_number":490,"context_line":"                      check_exit_code\u003dFalse)"},{"line_number":491,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_8fa3524f","line":488,"in_reply_to":"da20952f_337175e1","updated":"2015-09-02 16:57:45.000000000","message":"Done","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":499,"context_line":"                       \u0027new_instance_id\u0027: new_share_instance[\u0027id\u0027]})"},{"line_number":500,"context_line":"            raise exception.ShareMigrationFailed(reason\u003dmsg)"},{"line_number":501,"context_line":""},{"line_number":502,"context_line":"        LOG.debug(\"Copying completed in migration\""},{"line_number":503,"context_line":"                  \" for share %s.\" % share[\u0027id\u0027])"},{"line_number":504,"context_line":""},{"line_number":505,"context_line":"    def create_share(self, context, share, share_server\u003dNone):"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_7335adf5","line":502,"updated":"2015-09-01 23:22:31.000000000","message":"fits on one line","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":499,"context_line":"                       \u0027new_instance_id\u0027: new_share_instance[\u0027id\u0027]})"},{"line_number":500,"context_line":"            raise exception.ShareMigrationFailed(reason\u003dmsg)"},{"line_number":501,"context_line":""},{"line_number":502,"context_line":"        LOG.debug(\"Copying completed in migration\""},{"line_number":503,"context_line":"                  \" for share %s.\" % share[\u0027id\u0027])"},{"line_number":504,"context_line":""},{"line_number":505,"context_line":"    def create_share(self, context, share, share_server\u003dNone):"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_afbbb674","line":502,"in_reply_to":"da20952f_7335adf5","updated":"2015-09-02 16:57:45.000000000","message":"Done","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":777,"context_line":"        return []"},{"line_number":778,"context_line":""},{"line_number":779,"context_line":""},{"line_number":780,"context_line":"class Copy(object):"},{"line_number":781,"context_line":""},{"line_number":782,"context_line":"    def __init__(self, src, dest, ignore_list):"},{"line_number":783,"context_line":"        self.src \u003d src"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_a602210a","line":780,"updated":"2015-09-01 23:22:31.000000000","message":"Does this require no_root_squash to be able to copy files/dirs that have been chown/chmod in an unfriendly way?  I hope not, but if we have ACL issues then it is something to doc and perhaps we need to ask the driver to verify root access(?).","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":777,"context_line":"        return []"},{"line_number":778,"context_line":""},{"line_number":779,"context_line":""},{"line_number":780,"context_line":"class Copy(object):"},{"line_number":781,"context_line":""},{"line_number":782,"context_line":"    def __init__(self, src, dest, ignore_list):"},{"line_number":783,"context_line":"        self.src \u003d src"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_e2b8e52c","line":780,"in_reply_to":"da20952f_a602210a","updated":"2015-09-02 16:57:45.000000000","message":"It is not using root, and it could possibly fail under certain chrown/chmod configuration variances. The purpose is to have the admin fix those problems in order to proceed with migration.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":801,"context_line":"                size \u003d 0"},{"line_number":802,"context_line":""},{"line_number":803,"context_line":"            return {\u0027total_progress\u0027:"},{"line_number":804,"context_line":"                    self.currentSize * 100 / self.totalSize,"},{"line_number":805,"context_line":"                    \u0027current_file_path\u0027:"},{"line_number":806,"context_line":"                    str(self.currentCopy[\u0027file_path\u0027]),"},{"line_number":807,"context_line":"                    \u0027current_file_progress\u0027:"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_66e169d0","line":804,"updated":"2015-09-01 23:22:31.000000000","message":"protect against divide by zero","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":801,"context_line":"                size \u003d 0"},{"line_number":802,"context_line":""},{"line_number":803,"context_line":"            return {\u0027total_progress\u0027:"},{"line_number":804,"context_line":"                    self.currentSize * 100 / self.totalSize,"},{"line_number":805,"context_line":"                    \u0027current_file_path\u0027:"},{"line_number":806,"context_line":"                    str(self.currentCopy[\u0027file_path\u0027]),"},{"line_number":807,"context_line":"                    \u0027current_file_progress\u0027:"}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_2289fdca","line":804,"in_reply_to":"da20952f_66e169d0","updated":"2015-09-02 16:57:45.000000000","message":"Done","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":805,"context_line":"                    \u0027current_file_path\u0027:"},{"line_number":806,"context_line":"                    str(self.currentCopy[\u0027file_path\u0027]),"},{"line_number":807,"context_line":"                    \u0027current_file_progress\u0027:"},{"line_number":808,"context_line":"                    size * 100 / self.currentCopy[\u0027size\u0027]}"},{"line_number":809,"context_line":"        else:"},{"line_number":810,"context_line":"            return {\u0027total_progress\u0027: 100}"},{"line_number":811,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_e69fb94e","line":808,"updated":"2015-09-01 23:22:31.000000000","message":"divide by zero possible here if currentCopy is 0 size.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":805,"context_line":"                    \u0027current_file_path\u0027:"},{"line_number":806,"context_line":"                    str(self.currentCopy[\u0027file_path\u0027]),"},{"line_number":807,"context_line":"                    \u0027current_file_progress\u0027:"},{"line_number":808,"context_line":"                    size * 100 / self.currentCopy[\u0027size\u0027]}"},{"line_number":809,"context_line":"        else:"},{"line_number":810,"context_line":"            return {\u0027total_progress\u0027: 100}"},{"line_number":811,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_e29225f6","line":808,"in_reply_to":"da20952f_e69fb94e","updated":"2015-09-02 16:57:45.000000000","message":"Done","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":807,"context_line":"                    \u0027current_file_progress\u0027:"},{"line_number":808,"context_line":"                    size * 100 / self.currentCopy[\u0027size\u0027]}"},{"line_number":809,"context_line":"        else:"},{"line_number":810,"context_line":"            return {\u0027total_progress\u0027: 100}"},{"line_number":811,"context_line":""},{"line_number":812,"context_line":"    def run(self):"},{"line_number":813,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_06574dcb","line":810,"updated":"2015-09-01 23:22:31.000000000","message":"currentCopy is only None right after init. Progress could be 0. Or maybe something is missing to clear currentCopy when it is done.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":807,"context_line":"                    \u0027current_file_progress\u0027:"},{"line_number":808,"context_line":"                    size * 100 / self.currentCopy[\u0027size\u0027]}"},{"line_number":809,"context_line":"        else:"},{"line_number":810,"context_line":"            return {\u0027total_progress\u0027: 100}"},{"line_number":811,"context_line":""},{"line_number":812,"context_line":"    def run(self):"},{"line_number":813,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_c267e123","line":810,"in_reply_to":"da20952f_06574dcb","updated":"2015-09-02 16:57:45.000000000","message":"CurrentCopy may be None if Share is empty.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"0d21c63842319af6518b4f36d4bcccf37f95c272","unresolved":false,"context_lines":[{"line_number":450,"context_line":"                raise"},{"line_number":451,"context_line":""},{"line_number":452,"context_line":"        utils.execute(\u0027mkdir\u0027, \u0027-p\u0027,"},{"line_number":453,"context_line":"                      \u0027\u0027.join([mount_path, share_instance[\u0027id\u0027]]))"},{"line_number":454,"context_line":""},{"line_number":455,"context_line":"        utils.execute(\u0027mkdir\u0027, \u0027-p\u0027,"},{"line_number":456,"context_line":"                      \u0027\u0027.join([mount_path, new_share_instance[\u0027id\u0027]]))"}],"source_content_type":"text/x-python","patch_set":31,"id":"da20952f_0dcadca1","line":453,"updated":"2015-09-02 18:22:29.000000000","message":"A tuple would be faster than a list here and below so it would be preferred -- but let\u0027s face it, it shouldn\u0027t be noticeably slow in this case. Something to change when you have time to safely do it.","commit_id":"befc75ae3696582f369be2c67b6511af416a5c4e"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"0d21c63842319af6518b4f36d4bcccf37f95c272","unresolved":false,"context_lines":[{"line_number":512,"context_line":"        utils.execute(*migration_info_dest[\u0027umount\u0027], run_as_root\u003dTrue)"},{"line_number":513,"context_line":""},{"line_number":514,"context_line":"        utils.execute(\u0027rmdir\u0027, \u0027\u0027.join([mount_path, share_instance[\u0027id\u0027]]),"},{"line_number":515,"context_line":"                      check_exit_code\u003dFalse)"},{"line_number":516,"context_line":"        utils.execute(\u0027rmdir\u0027, \u0027\u0027.join([mount_path, new_share_instance[\u0027id\u0027]]),"},{"line_number":517,"context_line":"                      check_exit_code\u003dFalse)"},{"line_number":518,"context_line":""}],"source_content_type":"text/x-python","patch_set":31,"id":"da20952f_8d1a6c16","line":515,"updated":"2015-09-02 18:22:29.000000000","message":"same nit about list vs tuple in lines above and below here","commit_id":"befc75ae3696582f369be2c67b6511af416a5c4e"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"0b85201f9f81304f8349cfb3aa58e0d09fd90795","unresolved":false,"context_lines":[{"line_number":827,"context_line":"        return share_instances"},{"line_number":828,"context_line":""},{"line_number":829,"context_line":""},{"line_number":830,"context_line":"class Copy(object):"},{"line_number":831,"context_line":""},{"line_number":832,"context_line":"    def __init__(self, src, dest, ignore_list):"},{"line_number":833,"context_line":"        self.src \u003d src"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_6080c4f7","line":830,"updated":"2015-09-05 23:06:07.000000000","message":"It\u0027s better to put this class in utils.py than here in the driver.","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"0c564d68f55deee697b8199741114517f539f1a0","unresolved":false,"context_lines":[{"line_number":827,"context_line":"        return share_instances"},{"line_number":828,"context_line":""},{"line_number":829,"context_line":""},{"line_number":830,"context_line":"class Copy(object):"},{"line_number":831,"context_line":""},{"line_number":832,"context_line":"    def __init__(self, src, dest, ignore_list):"},{"line_number":833,"context_line":"        self.src \u003d src"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_2042ccae","line":830,"in_reply_to":"da20952f_6080c4f7","updated":"2015-09-05 23:47:56.000000000","message":"Done","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"}],"manila/share/manager.py":[{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"c4d3ee81da6aa5b36b644aec0b55c7fc2ce054a7","unresolved":false,"context_lines":[{"line_number":271,"context_line":""},{"line_number":272,"context_line":"    def migrate_share(self, ctxt, share_id, host, force_host_copy\u003dFalse):"},{"line_number":273,"context_line":"        \"\"\"Migrates a share from current host to another host\"\"\""},{"line_number":274,"context_line":"        LOG.warning(_LW(\"Entered migrate_share method.\"))"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"        # TODO: Check if driver is initialized"},{"line_number":277,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3acd31a7_b0463d4d","line":274,"updated":"2015-05-05 08:32:20.000000000","message":"LOG.warning? LOG.debug","commit_id":"700c1f9161b22e8f585aa27f8d8c989e0a7cf104"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"c4d3ee81da6aa5b36b644aec0b55c7fc2ce054a7","unresolved":false,"context_lines":[{"line_number":273,"context_line":"        \"\"\"Migrates a share from current host to another host\"\"\""},{"line_number":274,"context_line":"        LOG.warning(_LW(\"Entered migrate_share method.\"))"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"        # TODO: Check if driver is initialized"},{"line_number":277,"context_line":""},{"line_number":278,"context_line":"        share_ref \u003d self.db.share_get(ctxt, share_id)"},{"line_number":279,"context_line":"        moved \u003d False"}],"source_content_type":"text/x-python","patch_set":1,"id":"3acd31a7_506c89cf","line":276,"updated":"2015-05-05 08:32:20.000000000","message":"Use TODO(NAME)","commit_id":"700c1f9161b22e8f585aa27f8d8c989e0a7cf104"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"c4d3ee81da6aa5b36b644aec0b55c7fc2ce054a7","unresolved":false,"context_lines":[{"line_number":603,"context_line":"        share_ref \u003d self.db.share_get(context, share_id)"},{"line_number":604,"context_line":"        share_server \u003d self._get_share_server(context, share_ref)"},{"line_number":605,"context_line":""},{"line_number":606,"context_line":"        migrating \u003d share_ref[\u0027migration_status\u0027]"},{"line_number":607,"context_line":"        migrating_dest \u003d migrating and migrating.startswith(\u0027target:\u0027)"},{"line_number":608,"context_line":""},{"line_number":609,"context_line":"        LOG.warning(_LW(\"Deleting a share that is a migration share.\"))"}],"source_content_type":"text/x-python","patch_set":1,"id":"3acd31a7_b0b4fd34","line":606,"updated":"2015-05-05 08:32:20.000000000","message":"migrating  -\u003e migrate_status","commit_id":"700c1f9161b22e8f585aa27f8d8c989e0a7cf104"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"c4d3ee81da6aa5b36b644aec0b55c7fc2ce054a7","unresolved":false,"context_lines":[{"line_number":606,"context_line":"        migrating \u003d share_ref[\u0027migration_status\u0027]"},{"line_number":607,"context_line":"        migrating_dest \u003d migrating and migrating.startswith(\u0027target:\u0027)"},{"line_number":608,"context_line":""},{"line_number":609,"context_line":"        LOG.warning(_LW(\"Deleting a share that is a migration share.\"))"},{"line_number":610,"context_line":""},{"line_number":611,"context_line":"        if context.project_id !\u003d share_ref[\u0027project_id\u0027]:"},{"line_number":612,"context_line":"            project_id \u003d share_ref[\u0027project_id\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"3acd31a7_d08e5978","line":609,"updated":"2015-05-05 08:32:20.000000000","message":"LOG.Debug","commit_id":"700c1f9161b22e8f585aa27f8d8c989e0a7cf104"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":56,"context_line":"                default\u003dFalse,"},{"line_number":57,"context_line":"                help\u003d\u0027Whether share servers will \u0027"},{"line_number":58,"context_line":"                     \u0027be deleted on deletion of the last share.\u0027),"},{"line_number":59,"context_line":"    cfg.IntOpt(\u0027migration_create_share_timeout_secs\u0027,"},{"line_number":60,"context_line":"               default\u003d300,"},{"line_number":61,"context_line":"               help\u003d\u0027Timeout for creating the share to migrate to \u0027"},{"line_number":62,"context_line":"                    \u0027when performing share migration (seconds)\u0027),"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_acff7033","line":59,"updated":"2015-05-12 15:33:31.000000000","message":"\"migration\" is migration and not \"create\" share. So, it current naming is confusing.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fedbc5621c78a16adc7d23f896c541702d3e8850","unresolved":false,"context_lines":[{"line_number":56,"context_line":"                default\u003dFalse,"},{"line_number":57,"context_line":"                help\u003d\u0027Whether share servers will \u0027"},{"line_number":58,"context_line":"                     \u0027be deleted on deletion of the last share.\u0027),"},{"line_number":59,"context_line":"    cfg.IntOpt(\u0027migration_create_share_timeout_secs\u0027,"},{"line_number":60,"context_line":"               default\u003d300,"},{"line_number":61,"context_line":"               help\u003d\u0027Timeout for creating the share to migrate to \u0027"},{"line_number":62,"context_line":"                    \u0027when performing share migration (seconds)\u0027),"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_4aa9bc7a","line":59,"in_reply_to":"9a0c5dc1_acff7033","updated":"2015-05-13 17:58:56.000000000","message":"That is in fact the timeout for when we create the new physical share in the destination backend, we loop checking if the share is available, if it takes more than the specified time then the migration fails.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":272,"context_line":""},{"line_number":273,"context_line":"    def migrate_share(self, ctxt, share_id, host, force_host_copy\u003dFalse):"},{"line_number":274,"context_line":"        \"\"\"Migrates a share from current host to another host.\"\"\""},{"line_number":275,"context_line":"        LOG.debug(\"Entered migrate_share method for share %(share_id)s.\")"},{"line_number":276,"context_line":""},{"line_number":277,"context_line":"        # TODO(ganso): Check if driver is initialized"},{"line_number":278,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_ac8650b7","line":275,"updated":"2015-05-12 15:33:31.000000000","message":"Substitution is expected but absent.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fedbc5621c78a16adc7d23f896c541702d3e8850","unresolved":false,"context_lines":[{"line_number":272,"context_line":""},{"line_number":273,"context_line":"    def migrate_share(self, ctxt, share_id, host, force_host_copy\u003dFalse):"},{"line_number":274,"context_line":"        \"\"\"Migrates a share from current host to another host.\"\"\""},{"line_number":275,"context_line":"        LOG.debug(\"Entered migrate_share method for share %(share_id)s.\")"},{"line_number":276,"context_line":""},{"line_number":277,"context_line":"        # TODO(ganso): Check if driver is initialized"},{"line_number":278,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_8ac69447","line":275,"in_reply_to":"9a0c5dc1_ac8650b7","updated":"2015-05-13 17:58:56.000000000","message":"I believe it reads from scope variable share_id.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":311,"context_line":"        for k, v in share.iteritems():"},{"line_number":312,"context_line":"            new_shr_values[k] \u003d v"},{"line_number":313,"context_line":""},{"line_number":314,"context_line":"        del new_shr_values[\u0027id\u0027]"},{"line_number":315,"context_line":"        del new_shr_values[\u0027share_type\u0027]"},{"line_number":316,"context_line":"        del new_shr_values[\u0027export_locations\u0027]"},{"line_number":317,"context_line":"        del new_shr_values[\u0027share_server_id\u0027]"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_acad3033","line":314,"updated":"2015-05-12 15:33:31.000000000","message":"Lines 314-317 should be loop elements.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ffb2933abc82cf16e99f379668e72f6d8dd23cfc","unresolved":false,"context_lines":[{"line_number":311,"context_line":"        for k, v in share.iteritems():"},{"line_number":312,"context_line":"            new_shr_values[k] \u003d v"},{"line_number":313,"context_line":""},{"line_number":314,"context_line":"        del new_shr_values[\u0027id\u0027]"},{"line_number":315,"context_line":"        del new_shr_values[\u0027share_type\u0027]"},{"line_number":316,"context_line":"        del new_shr_values[\u0027export_locations\u0027]"},{"line_number":317,"context_line":"        del new_shr_values[\u0027share_server_id\u0027]"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a016987_eefe576a","line":314,"in_reply_to":"9a0c5dc1_6adc8012","updated":"2015-05-15 12:17:57.000000000","message":"\"\"\"\n\nfor s in (\u0027share_type\u0027, \u0027export_locations\u0027, \u0027share_server_id\u0027):\n\n    new_shr_values.pop(s, None)\n\n\"\"\"","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fedbc5621c78a16adc7d23f896c541702d3e8850","unresolved":false,"context_lines":[{"line_number":311,"context_line":"        for k, v in share.iteritems():"},{"line_number":312,"context_line":"            new_shr_values[k] \u003d v"},{"line_number":313,"context_line":""},{"line_number":314,"context_line":"        del new_shr_values[\u0027id\u0027]"},{"line_number":315,"context_line":"        del new_shr_values[\u0027share_type\u0027]"},{"line_number":316,"context_line":"        del new_shr_values[\u0027export_locations\u0027]"},{"line_number":317,"context_line":"        del new_shr_values[\u0027share_server_id\u0027]"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_6adc8012","line":314,"in_reply_to":"9a0c5dc1_acad3033","updated":"2015-05-13 17:58:56.000000000","message":"They shouldn\u0027t. There is only one new dictionary variable \"new_shr_values\", we loop above copying all properties from the original share, then we just remove specific fields, no need to loop because we have only 1 dictionary object with several fields, the ones we want to remove among them, so we remove them directly below.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":380,"context_line":"            context, share_id, export_locations, delete\u003dTrue)"},{"line_number":381,"context_line":""},{"line_number":382,"context_line":"        # delete temp DB entry"},{"line_number":383,"context_line":"        self.db.share_delete(context, new_share_id)"},{"line_number":384,"context_line":""},{"line_number":385,"context_line":"        # db.finish_share_migration already does this"},{"line_number":386,"context_line":"        # self.db.share_update(context, share_id, {\u0027migration_status\u0027: None})"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_c796ff93","line":383,"updated":"2015-05-12 15:33:31.000000000","message":"As mentioned in other files, usage of \"temp\" share is redundant. Presense of \"task state\" should be enough.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fedbc5621c78a16adc7d23f896c541702d3e8850","unresolved":false,"context_lines":[{"line_number":380,"context_line":"            context, share_id, export_locations, delete\u003dTrue)"},{"line_number":381,"context_line":""},{"line_number":382,"context_line":"        # delete temp DB entry"},{"line_number":383,"context_line":"        self.db.share_delete(context, new_share_id)"},{"line_number":384,"context_line":""},{"line_number":385,"context_line":"        # db.finish_share_migration already does this"},{"line_number":386,"context_line":"        # self.db.share_update(context, share_id, {\u0027migration_status\u0027: None})"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_aa55d850","line":383,"in_reply_to":"9a0c5dc1_c796ff93","updated":"2015-05-13 17:58:56.000000000","message":"I will study this approach when integrating with Private Share Storage. The \"target:%s\" value in previous \"migration_status\" field could be used to help not needing the temp DB entry, but the implementation should be cleaner when we have integrated with Private Share Storage.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":608,"context_line":"        share_ref \u003d self.db.share_get(context, share_id)"},{"line_number":609,"context_line":"        share_server \u003d self._get_share_server(context, share_ref)"},{"line_number":610,"context_line":""},{"line_number":611,"context_line":"        migrating \u003d share_ref[\u0027migration_status\u0027]"},{"line_number":612,"context_line":"        migrating_dest \u003d migrating and migrating.startswith(\u0027target:\u0027)"},{"line_number":613,"context_line":""},{"line_number":614,"context_line":"        LOG.debug(\"Deleting a share that is a migration share\""}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_c7dddf71","line":611,"updated":"2015-05-12 15:33:31.000000000","message":"With absence of \"temp\" share, it is redundant, right?","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fedbc5621c78a16adc7d23f896c541702d3e8850","unresolved":false,"context_lines":[{"line_number":608,"context_line":"        share_ref \u003d self.db.share_get(context, share_id)"},{"line_number":609,"context_line":"        share_server \u003d self._get_share_server(context, share_ref)"},{"line_number":610,"context_line":""},{"line_number":611,"context_line":"        migrating \u003d share_ref[\u0027migration_status\u0027]"},{"line_number":612,"context_line":"        migrating_dest \u003d migrating and migrating.startswith(\u0027target:\u0027)"},{"line_number":613,"context_line":""},{"line_number":614,"context_line":"        LOG.debug(\"Deleting a share that is a migration share\""}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_6a4fe0bd","line":611,"in_reply_to":"9a0c5dc1_c7dddf71","updated":"2015-05-13 17:58:56.000000000","message":"Same as above.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":316,"context_line":""},{"line_number":317,"context_line":"        new_shr_values \u003d {}"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"        for k, v in share.iteritems():"},{"line_number":320,"context_line":"            new_shr_values[k] \u003d v"},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"        del new_shr_values[\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_5402be3f","line":319,"updated":"2015-07-06 16:02:35.000000000","message":"s/share.iteritems/share.items/","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":316,"context_line":""},{"line_number":317,"context_line":"        new_shr_values \u003d {}"},{"line_number":318,"context_line":""},{"line_number":319,"context_line":"        for k, v in share.iteritems():"},{"line_number":320,"context_line":"            new_shr_values[k] \u003d v"},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"        del new_shr_values[\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_63f5c681","line":319,"in_reply_to":"ba3cc151_5402be3f","updated":"2015-07-06 17:19:00.000000000","message":"Thanks! I will try it.","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":319,"context_line":"        for k, v in share.iteritems():"},{"line_number":320,"context_line":"            new_shr_values[k] \u003d v"},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"        del new_shr_values[\u0027id\u0027]"},{"line_number":323,"context_line":"        del new_shr_values[\u0027share_type\u0027]"},{"line_number":324,"context_line":"        del new_shr_values[\u0027export_locations\u0027]"},{"line_number":325,"context_line":"        del new_shr_values[\u0027share_server_id\u0027]"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_d4bb2e74","line":322,"updated":"2015-07-06 16:02:35.000000000","message":"this and below should be steps of a loop.","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":319,"context_line":"        for k, v in share.iteritems():"},{"line_number":320,"context_line":"            new_shr_values[k] \u003d v"},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"        del new_shr_values[\u0027id\u0027]"},{"line_number":323,"context_line":"        del new_shr_values[\u0027share_type\u0027]"},{"line_number":324,"context_line":"        del new_shr_values[\u0027export_locations\u0027]"},{"line_number":325,"context_line":"        del new_shr_values[\u0027share_server_id\u0027]"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_a310aea9","line":322,"in_reply_to":"ba3cc151_d4bb2e74","updated":"2015-07-06 17:19:00.000000000","message":"I am not looping through shares here, it is just several properties of one share, so there is only going to be property of each below.","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":329,"context_line":"        del new_shr_values[\u0027name\u0027]"},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"        new_shr_values[\u0027host\u0027] \u003d host[\u0027host\u0027]"},{"line_number":332,"context_line":"        new_shr_values[\u0027status\u0027] \u003d \u0027creating\u0027"},{"line_number":333,"context_line":"        new_shr_values[\u0027task_state\u0027] \u003d \u0027migration_target:%s\u0027 % share[\u0027id\u0027]"},{"line_number":334,"context_line":""},{"line_number":335,"context_line":"        # Assuming this operation is always safe"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_54b07e8b","line":332,"updated":"2015-07-06 16:02:35.000000000","message":"from common place","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":329,"context_line":"        del new_shr_values[\u0027name\u0027]"},{"line_number":330,"context_line":""},{"line_number":331,"context_line":"        new_shr_values[\u0027host\u0027] \u003d host[\u0027host\u0027]"},{"line_number":332,"context_line":"        new_shr_values[\u0027status\u0027] \u003d \u0027creating\u0027"},{"line_number":333,"context_line":"        new_shr_values[\u0027task_state\u0027] \u003d \u0027migration_target:%s\u0027 % share[\u0027id\u0027]"},{"line_number":334,"context_line":""},{"line_number":335,"context_line":"        # Assuming this operation is always safe"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_e37d56e8","line":332,"in_reply_to":"ba3cc151_54b07e8b","updated":"2015-07-06 17:19:00.000000000","message":"Thanks, I will change to use constants!","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":344,"context_line":"        deadline \u003d starttime + CONF.migration_create_share_timeout_secs"},{"line_number":345,"context_line":"        new_share \u003d self.db.share_get(context, new_share[\u0027id\u0027])"},{"line_number":346,"context_line":"        tries \u003d 0"},{"line_number":347,"context_line":"        while new_share[\u0027status\u0027] !\u003d \u0027available\u0027:"},{"line_number":348,"context_line":"            tries +\u003d 1"},{"line_number":349,"context_line":"            now \u003d time.time()"},{"line_number":350,"context_line":"            if new_share[\u0027status\u0027] \u003d\u003d \u0027error\u0027:"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_946cc609","line":347,"updated":"2015-07-06 16:02:35.000000000","message":"ditto","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":347,"context_line":"        while new_share[\u0027status\u0027] !\u003d \u0027available\u0027:"},{"line_number":348,"context_line":"            tries +\u003d 1"},{"line_number":349,"context_line":"            now \u003d time.time()"},{"line_number":350,"context_line":"            if new_share[\u0027status\u0027] \u003d\u003d \u0027error\u0027:"},{"line_number":351,"context_line":"                msg \u003d _(\"Failed to create new share (from %(share_id)s) on \""},{"line_number":352,"context_line":"                        \"destination host %(host_name)s\") % {"},{"line_number":353,"context_line":"                    \u0027share_id\u0027: share[\u0027id\u0027], \u0027host_name\u0027: host[\u0027host\u0027]}"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_9443666c","line":350,"updated":"2015-07-06 16:02:35.000000000","message":"ditto","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":427,"context_line":"        # assuming this is a safe operation"},{"line_number":428,"context_line":"        self.db.finish_share_migration(context, share_id, new_share_id)"},{"line_number":429,"context_line":""},{"line_number":430,"context_line":"        export_locations \u003d \\"},{"line_number":431,"context_line":"            self.db.share_export_locations_get(context, new_share_id)"},{"line_number":432,"context_line":""},{"line_number":433,"context_line":"        self.db.share_export_locations_update("}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_142f56a2","line":430,"updated":"2015-07-06 16:02:35.000000000","message":"parenthesis","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":427,"context_line":"        # assuming this is a safe operation"},{"line_number":428,"context_line":"        self.db.finish_share_migration(context, share_id, new_share_id)"},{"line_number":429,"context_line":""},{"line_number":430,"context_line":"        export_locations \u003d \\"},{"line_number":431,"context_line":"            self.db.share_export_locations_get(context, new_share_id)"},{"line_number":432,"context_line":""},{"line_number":433,"context_line":"        self.db.share_export_locations_update("}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_03771a03","line":430,"in_reply_to":"ba3cc151_142f56a2","updated":"2015-07-06 17:19:00.000000000","message":"you mean parenthesis instead of \"\\\" ?","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":446,"context_line":"                                 access_ref[\u0027access_to\u0027],"},{"line_number":447,"context_line":"                                 access_ref[\u0027access_level\u0027])"},{"line_number":448,"context_line":"            except Exception as ex:"},{"line_number":449,"context_line":"                LOG.error(_LE(\"Failed to add access rule: %(err)s\"),"},{"line_number":450,"context_line":"                          {\u0027err\u0027: ex}, resource\u003dshare_ref)"},{"line_number":451,"context_line":""},{"line_number":452,"context_line":"        self.db.share_update(context, share_id,"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_d72570ae","line":449,"updated":"2015-07-06 16:02:35.000000000","message":"Do we need to exit after first failure? I think we should try all access rules.","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":446,"context_line":"                                 access_ref[\u0027access_to\u0027],"},{"line_number":447,"context_line":"                                 access_ref[\u0027access_level\u0027])"},{"line_number":448,"context_line":"            except Exception as ex:"},{"line_number":449,"context_line":"                LOG.error(_LE(\"Failed to add access rule: %(err)s\"),"},{"line_number":450,"context_line":"                          {\u0027err\u0027: ex}, resource\u003dshare_ref)"},{"line_number":451,"context_line":""},{"line_number":452,"context_line":"        self.db.share_update(context, share_id,"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_839eca05","line":449,"in_reply_to":"ba3cc151_d72570ae","updated":"2015-07-06 17:19:00.000000000","message":"we are trying all access rules. Try block is inside loop and Catch is only logging an error while looping through all access rules.","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":450,"context_line":"                          {\u0027err\u0027: ex}, resource\u003dshare_ref)"},{"line_number":451,"context_line":""},{"line_number":452,"context_line":"        self.db.share_update(context, share_id,"},{"line_number":453,"context_line":"                             {\u0027task_state\u0027: \"migration_success\"})"},{"line_number":454,"context_line":""},{"line_number":455,"context_line":"        LOG.info(_LI(\"Share Migration for share %s\""},{"line_number":456,"context_line":"                     \" completed successfully!\") % share_id)"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_f72af47d","line":453,"updated":"2015-07-06 16:02:35.000000000","message":"from common place","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":669,"context_line":"        share_server \u003d self._get_share_server(context, share_ref)"},{"line_number":670,"context_line":""},{"line_number":671,"context_line":"        migrating \u003d share_ref[\u0027task_state\u0027]"},{"line_number":672,"context_line":"        migrating_dest \u003d migrating and \\"},{"line_number":673,"context_line":"            migrating.startswith(\u0027migration_target:\u0027)"},{"line_number":674,"context_line":""},{"line_number":675,"context_line":"        LOG.debug(\"Deleting a share that is a migration share\""}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_b7246caf","line":672,"updated":"2015-07-06 16:02:35.000000000","message":"parenthesis","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":701,"context_line":"                reservations \u003d None"},{"line_number":702,"context_line":"                LOG.exception(_LE(\"Failed to update usages deleting share\"))"},{"line_number":703,"context_line":""},{"line_number":704,"context_line":"        if (not migrating) or migrating_dest:"},{"line_number":705,"context_line":"            self.db.share_delete(context, share_id)"},{"line_number":706,"context_line":"            LOG.info(_LI(\"Share %s: deleted successfully.\"), share_ref[\u0027name\u0027])"},{"line_number":707,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_b75b0c2e","line":704,"updated":"2015-07-06 16:02:35.000000000","message":"no need to use parenthesis here","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":705,"context_line":"            self.db.share_delete(context, share_id)"},{"line_number":706,"context_line":"            LOG.info(_LI(\"Share %s: deleted successfully.\"), share_ref[\u0027name\u0027])"},{"line_number":707,"context_line":""},{"line_number":708,"context_line":"        if (not migrating) and reservations:"},{"line_number":709,"context_line":"            QUOTAS.commit(context, reservations, project_id\u003dproject_id)"},{"line_number":710,"context_line":""},{"line_number":711,"context_line":"        if (not migrating) or migrating_dest:"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_57416038","line":708,"updated":"2015-07-06 16:02:35.000000000","message":"ditto","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":708,"context_line":"        if (not migrating) and reservations:"},{"line_number":709,"context_line":"            QUOTAS.commit(context, reservations, project_id\u003dproject_id)"},{"line_number":710,"context_line":""},{"line_number":711,"context_line":"        if (not migrating) or migrating_dest:"},{"line_number":712,"context_line":"            if CONF.delete_share_server_with_last_share:"},{"line_number":713,"context_line":"                share_server \u003d self._get_share_server(context, share_ref)"},{"line_number":714,"context_line":"                if share_server and not share_server.shares:"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_37485c5b","line":711,"updated":"2015-07-06 16:02:35.000000000","message":"ditto + conditions 711 and 712 should be combined.","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":708,"context_line":"        if (not migrating) and reservations:"},{"line_number":709,"context_line":"            QUOTAS.commit(context, reservations, project_id\u003dproject_id)"},{"line_number":710,"context_line":""},{"line_number":711,"context_line":"        if (not migrating) or migrating_dest:"},{"line_number":712,"context_line":"            if CONF.delete_share_server_with_last_share:"},{"line_number":713,"context_line":"                share_server \u003d self._get_share_server(context, share_ref)"},{"line_number":714,"context_line":"                if share_server and not share_server.shares:"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_23901eec","line":711,"in_reply_to":"ba3cc151_37485c5b","updated":"2015-07-06 17:19:00.000000000","message":"thanks!","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"79a8d7c9f4e6fc96c74e437612ccfd82090d7936","unresolved":false,"context_lines":[{"line_number":387,"context_line":"            try:"},{"line_number":388,"context_line":"                LOG.debug(\"Calling driver migration for share %s.\" % share_id)"},{"line_number":389,"context_line":""},{"line_number":390,"context_line":"                moved, model_update \u003d self.driver.migrate_share("},{"line_number":391,"context_line":"                    ctxt, share_instance, host)"},{"line_number":392,"context_line":""},{"line_number":393,"context_line":"                # NOTE(ganso): Here we are allowing the driver to perform"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_84644ab9","line":390,"updated":"2015-08-25 15:33:49.000000000","message":"Share manager should call get_migration_info() method through RPC to target host and pass retrieved information to the driver.","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ed573db154c468aefb20f8fb98321f1965cea93b","unresolved":false,"context_lines":[{"line_number":387,"context_line":"            try:"},{"line_number":388,"context_line":"                LOG.debug(\"Calling driver migration for share %s.\" % share_id)"},{"line_number":389,"context_line":""},{"line_number":390,"context_line":"                moved, model_update \u003d self.driver.migrate_share("},{"line_number":391,"context_line":"                    ctxt, share_instance, host)"},{"line_number":392,"context_line":""},{"line_number":393,"context_line":"                # NOTE(ganso): Here we are allowing the driver to perform"}],"source_content_type":"text/x-python","patch_set":24,"id":"da20952f_caf4cf88","line":390,"in_reply_to":"fa1b9901_84644ab9","updated":"2015-09-01 01:24:03.000000000","message":"added \"get_driver_migration_info\" for driver optimized migration.","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"a511d24547c9822849c911a931d9ebb8ed3e888f","unresolved":false,"context_lines":[{"line_number":504,"context_line":"            {\u0027task_state\u0027: constants.STATUS_TASK_STATE_MIGRATION_COMPLETING})"},{"line_number":505,"context_line":""},{"line_number":506,"context_line":"        self.db.share_instance_update(context, new_share_instance[\u0027id\u0027],"},{"line_number":507,"context_line":"                                      {\u0027status\u0027: constants.STATUS_AVAILABLE})"},{"line_number":508,"context_line":""},{"line_number":509,"context_line":"        helper.revert_access_rules(readonly_support, saved_rules)"},{"line_number":510,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_643ba19d","line":507,"updated":"2015-09-01 23:22:31.000000000","message":"I think it is not available until revert_access_rules (below) runs successfullly.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d115e5581c4427e651af9a1e17760e7b0c08347c","unresolved":false,"context_lines":[{"line_number":504,"context_line":"            {\u0027task_state\u0027: constants.STATUS_TASK_STATE_MIGRATION_COMPLETING})"},{"line_number":505,"context_line":""},{"line_number":506,"context_line":"        self.db.share_instance_update(context, new_share_instance[\u0027id\u0027],"},{"line_number":507,"context_line":"                                      {\u0027status\u0027: constants.STATUS_AVAILABLE})"},{"line_number":508,"context_line":""},{"line_number":509,"context_line":"        helper.revert_access_rules(readonly_support, saved_rules)"},{"line_number":510,"context_line":""}],"source_content_type":"text/x-python","patch_set":30,"id":"da20952f_b54804ce","line":507,"in_reply_to":"da20952f_643ba19d","updated":"2015-09-02 16:57:45.000000000","message":"Done.","commit_id":"429342241f0e54f4d07d614184a04f0aba3d05b8"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"e52574411e4d198d771eadbe027e48cd5cf3d854","unresolved":false,"context_lines":[{"line_number":414,"context_line":""},{"line_number":415,"context_line":"        if not moved:"},{"line_number":416,"context_line":"            try:"},{"line_number":417,"context_line":"                LOG.debug(\"Driver did not migrate, starting generic \""},{"line_number":418,"context_line":"                          \"migration for share %s.\" % share_id)"},{"line_number":419,"context_line":""},{"line_number":420,"context_line":"                moved \u003d self._migrate_share_generic(ctxt, share_ref, host)"}],"source_content_type":"text/x-python","patch_set":33,"id":"da20952f_51062121","line":417,"updated":"2015-09-03 02:52:20.000000000","message":"This is a little misleading, because if force_host_copy is True, the driver is never consulted.","commit_id":"95006b29c0e5b3fffd261d569653689bfd7de0ab"}],"manila/share/migration.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"59932c85e66f5a1a3a13c8c78c67fd965d1e953d","unresolved":false,"context_lines":[{"line_number":30,"context_line":"LOG \u003d log.getLogger(__name__)"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"class ShareMigrationHelper():"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    def __init__(self, context, db, create_delete_timeout, access_rule_timeout,"},{"line_number":36,"context_line":"                 share):"}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_41f02b91","line":33,"updated":"2015-08-31 12:02:17.000000000","message":"Same here:\n\n\"\"\"\n\nclass ShareMigrationHelper(object):\n\n\"\"\"","commit_id":"2b4a50bada41446594d8ce9d5c98a5c200b40a63"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ae5b1886a2f2b209693ad9b1b961207e86e05cb4","unresolved":false,"context_lines":[{"line_number":30,"context_line":"LOG \u003d log.getLogger(__name__)"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"class ShareMigrationHelper():"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    def __init__(self, context, db, create_delete_timeout, access_rule_timeout,"},{"line_number":36,"context_line":"                 share):"}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_d00aa625","line":33,"in_reply_to":"da20952f_41f02b91","updated":"2015-09-01 01:22:27.000000000","message":"Done","commit_id":"2b4a50bada41446594d8ce9d5c98a5c200b40a63"}],"manila/share/rpcapi.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"491284a9cccdf02527ef2bac1d5322fb782e7124","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":"    def migrate_share(self, ctxt, share, dest_host, force_host_copy):"},{"line_number":75,"context_line":"        new_host \u003d utils.extract_host(share[\u0027host\u0027])"},{"line_number":76,"context_line":"        cctxt \u003d self.client.prepare(server\u003dnew_host, version\u003d\u00271.0\u0027)"},{"line_number":77,"context_line":"        host_p \u003d {\u0027host\u0027: dest_host.host,"},{"line_number":78,"context_line":"                  \u0027capabilities\u0027: dest_host.capabilities}"},{"line_number":79,"context_line":"        cctxt.cast(ctxt, \u0027migrate_share\u0027, share_id\u003dshare[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_4737afb0","line":76,"updated":"2015-05-12 15:33:31.000000000","message":"Version should be updated.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"fedbc5621c78a16adc7d23f896c541702d3e8850","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":"    def migrate_share(self, ctxt, share, dest_host, force_host_copy):"},{"line_number":75,"context_line":"        new_host \u003d utils.extract_host(share[\u0027host\u0027])"},{"line_number":76,"context_line":"        cctxt \u003d self.client.prepare(server\u003dnew_host, version\u003d\u00271.0\u0027)"},{"line_number":77,"context_line":"        host_p \u003d {\u0027host\u0027: dest_host.host,"},{"line_number":78,"context_line":"                  \u0027capabilities\u0027: dest_host.capabilities}"},{"line_number":79,"context_line":"        cctxt.cast(ctxt, \u0027migrate_share\u0027, share_id\u003dshare[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a0c5dc1_6a0480bf","line":76,"in_reply_to":"9a0c5dc1_4737afb0","updated":"2015-05-13 17:58:56.000000000","message":"I intend to upgrade the version in a later patch. Thanks for pointing out.","commit_id":"f2753e29c4f1a83ced75a02d0387dca11d55e87c"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def migrate_share(self, ctxt, share, dest_host, force_host_copy):"},{"line_number":77,"context_line":"        new_host \u003d utils.extract_host(share[\u0027host\u0027])"},{"line_number":78,"context_line":"        cctxt \u003d self.client.prepare(server\u003dnew_host, version\u003d\u00271.0\u0027)"},{"line_number":79,"context_line":"        host_p \u003d {\u0027host\u0027: dest_host.host,"},{"line_number":80,"context_line":"                  \u0027capabilities\u0027: dest_host.capabilities}"},{"line_number":81,"context_line":"        cctxt.cast(ctxt, \u0027migrate_share\u0027, share_id\u003dshare[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_375ffc0f","line":78,"updated":"2015-07-06 16:02:35.000000000","message":"1.0?","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"d867c32b37a03df3ce5c67c7807e3aed38a5480c","unresolved":false,"context_lines":[{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def migrate_share(self, ctxt, share, dest_host, force_host_copy):"},{"line_number":77,"context_line":"        new_host \u003d utils.extract_host(share[\u0027host\u0027])"},{"line_number":78,"context_line":"        cctxt \u003d self.client.prepare(server\u003dnew_host, version\u003d\u00271.0\u0027)"},{"line_number":79,"context_line":"        host_p \u003d {\u0027host\u0027: dest_host.host,"},{"line_number":80,"context_line":"                  \u0027capabilities\u0027: dest_host.capabilities}"},{"line_number":81,"context_line":"        cctxt.cast(ctxt, \u0027migrate_share\u0027, share_id\u003dshare[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_43d1a2fa","line":78,"in_reply_to":"ba3cc151_375ffc0f","updated":"2015-07-06 17:19:00.000000000","message":"I will change this in next patch.","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7381c3057b0a8ad54ef2ea6399e5643e4528b3dc","unresolved":false,"context_lines":[{"line_number":83,"context_line":""},{"line_number":84,"context_line":"    def get_migration_info(self, ctxt, share, share_server):"},{"line_number":85,"context_line":"        new_host \u003d utils.extract_host(share[\u0027host\u0027])"},{"line_number":86,"context_line":"        cctxt \u003d self.client.prepare(server\u003dnew_host, version\u003d\u00271.0\u0027)"},{"line_number":87,"context_line":"        return cctxt.call(ctxt, \u0027get_migration_info\u0027, share\u003dshare,"},{"line_number":88,"context_line":"                          share_server\u003dshare_server)"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"ba3cc151_d79a50c5","line":86,"updated":"2015-07-06 16:02:35.000000000","message":"1.0?","commit_id":"e95efab6518f78027b32b92f5bc6c2b1d62e98ae"}],"manila/tests/scheduler/test_filter_scheduler.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"59932c85e66f5a1a3a13c8c78c67fd965d1e953d","unresolved":false,"context_lines":[{"line_number":240,"context_line":"        sched, ctx \u003d self._host_passes_filters_setup("},{"line_number":241,"context_line":"            _mock_service_get_topic)"},{"line_number":242,"context_line":"        request_spec \u003d {\u0027share_id\u0027: 1,"},{"line_number":243,"context_line":"                        \u0027share_type\u0027: {\u0027name\u0027: \u0027LVM_iSCSI\u0027},"},{"line_number":244,"context_line":"                        \u0027share_instance_properties\u0027: {},"},{"line_number":245,"context_line":"                        \u0027share_properties\u0027: {\u0027project_id\u0027: 1,"},{"line_number":246,"context_line":"                                             \u0027size\u0027: 1}}"}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_a16ca735","line":243,"updated":"2015-08-31 12:02:17.000000000","message":"LVM? iSCSI? We have neither.","commit_id":"2b4a50bada41446594d8ce9d5c98a5c200b40a63"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ae5b1886a2f2b209693ad9b1b961207e86e05cb4","unresolved":false,"context_lines":[{"line_number":240,"context_line":"        sched, ctx \u003d self._host_passes_filters_setup("},{"line_number":241,"context_line":"            _mock_service_get_topic)"},{"line_number":242,"context_line":"        request_spec \u003d {\u0027share_id\u0027: 1,"},{"line_number":243,"context_line":"                        \u0027share_type\u0027: {\u0027name\u0027: \u0027LVM_iSCSI\u0027},"},{"line_number":244,"context_line":"                        \u0027share_instance_properties\u0027: {},"},{"line_number":245,"context_line":"                        \u0027share_properties\u0027: {\u0027project_id\u0027: 1,"},{"line_number":246,"context_line":"                                             \u0027size\u0027: 1}}"}],"source_content_type":"text/x-python","patch_set":28,"id":"da20952f_10b25ee5","line":243,"in_reply_to":"da20952f_a16ca735","updated":"2015-09-01 01:22:27.000000000","message":"Done","commit_id":"2b4a50bada41446594d8ce9d5c98a5c200b40a63"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"0b85201f9f81304f8349cfb3aa58e0d09fd90795","unresolved":false,"context_lines":[{"line_number":258,"context_line":"        ret_host \u003d sched.host_passes_filters(ctx, \u0027host1#_pool0\u0027,"},{"line_number":259,"context_line":"                                             request_spec, {})"},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"        self.assertEqual(ret_host.host, \u0027host1#_pool0\u0027)"},{"line_number":262,"context_line":"        self.assertTrue(_mock_service_get_topic.called)"},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"    @mock.patch(\u0027manila.db.service_get_all_by_topic\u0027)"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_0070e83e","line":261,"updated":"2015-09-05 23:06:07.000000000","message":"self.assertEqual(\u0027host1#_pool0\u0027, ret_host.host)","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"0c564d68f55deee697b8199741114517f539f1a0","unresolved":false,"context_lines":[{"line_number":258,"context_line":"        ret_host \u003d sched.host_passes_filters(ctx, \u0027host1#_pool0\u0027,"},{"line_number":259,"context_line":"                                             request_spec, {})"},{"line_number":260,"context_line":""},{"line_number":261,"context_line":"        self.assertEqual(ret_host.host, \u0027host1#_pool0\u0027)"},{"line_number":262,"context_line":"        self.assertTrue(_mock_service_get_topic.called)"},{"line_number":263,"context_line":""},{"line_number":264,"context_line":"    @mock.patch(\u0027manila.db.service_get_all_by_topic\u0027)"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_e047f4b9","line":261,"in_reply_to":"da20952f_0070e83e","updated":"2015-09-05 23:47:56.000000000","message":"Done","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"}],"manila/tests/share/test_api.py":[{"author":{"_account_id":14907,"name":"Alyson","email":"alyson.rodrigues.rosa@gmail.com","username":"Alyson"},"change_message_id":"d7a4cb727320979ed6bfde416d14eb7b52a15ff8","unresolved":false,"context_lines":[{"line_number":1444,"context_line":"        # Asserts"},{"line_number":1445,"context_line":"        self.scheduler_rpcapi.migrate_share_to_host.assert_called_once_with("},{"line_number":1446,"context_line":"            cxt, share[\u0027id\u0027], host, True, request_spec)"},{"line_number":1447,"context_line":""},{"line_number":1448,"context_line":"    def test_migrate_share_status_unavailable(self):"},{"line_number":1449,"context_line":"        host \u003d \u0027fake@backend#platinum\u0027"},{"line_number":1450,"context_line":"        share \u003d db_utils.create_share(host\u003d\u0027fake2@backend\u0027,"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_f00aa825","line":1447,"updated":"2015-08-25 14:29:10.000000000","message":"Add more asserts here to check things.","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ed573db154c468aefb20f8fb98321f1965cea93b","unresolved":false,"context_lines":[{"line_number":1444,"context_line":"        # Asserts"},{"line_number":1445,"context_line":"        self.scheduler_rpcapi.migrate_share_to_host.assert_called_once_with("},{"line_number":1446,"context_line":"            cxt, share[\u0027id\u0027], host, True, request_spec)"},{"line_number":1447,"context_line":""},{"line_number":1448,"context_line":"    def test_migrate_share_status_unavailable(self):"},{"line_number":1449,"context_line":"        host \u003d \u0027fake@backend#platinum\u0027"},{"line_number":1450,"context_line":"        share \u003d db_utils.create_share(host\u003d\u0027fake2@backend\u0027,"}],"source_content_type":"text/x-python","patch_set":24,"id":"da20952f_8aeed7b2","line":1447,"in_reply_to":"fa1b9901_f00aa825","updated":"2015-09-01 01:24:03.000000000","message":"Done","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14907,"name":"Alyson","email":"alyson.rodrigues.rosa@gmail.com","username":"Alyson"},"change_message_id":"d7a4cb727320979ed6bfde416d14eb7b52a15ff8","unresolved":false,"context_lines":[{"line_number":1450,"context_line":"        share \u003d db_utils.create_share(host\u003d\u0027fake2@backend\u0027,"},{"line_number":1451,"context_line":"                                      status\u003dconstants.STATUS_ERROR)"},{"line_number":1452,"context_line":""},{"line_number":1453,"context_line":"        with mock.patch(\u0027manila.share.api.LOG\u0027) as mock_log:"},{"line_number":1454,"context_line":"            self.assertRaises(exception.InvalidShare, self.api.migrate_share,"},{"line_number":1455,"context_line":"                              context, share, host, True)"},{"line_number":1456,"context_line":"            self.assertTrue(mock_log.error.called)"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_50611438","line":1453,"updated":"2015-08-25 14:29:10.000000000","message":"You can continue using mock_object here:\n\nmock_log \u003d self.mock_object(share_api, \u0027LOG\u0027)\n\nSame for others \u0027with\u0027","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ed573db154c468aefb20f8fb98321f1965cea93b","unresolved":false,"context_lines":[{"line_number":1450,"context_line":"        share \u003d db_utils.create_share(host\u003d\u0027fake2@backend\u0027,"},{"line_number":1451,"context_line":"                                      status\u003dconstants.STATUS_ERROR)"},{"line_number":1452,"context_line":""},{"line_number":1453,"context_line":"        with mock.patch(\u0027manila.share.api.LOG\u0027) as mock_log:"},{"line_number":1454,"context_line":"            self.assertRaises(exception.InvalidShare, self.api.migrate_share,"},{"line_number":1455,"context_line":"                              context, share, host, True)"},{"line_number":1456,"context_line":"            self.assertTrue(mock_log.error.called)"}],"source_content_type":"text/x-python","patch_set":24,"id":"da20952f_2a2c6b01","line":1453,"in_reply_to":"fa1b9901_50611438","updated":"2015-09-01 01:24:03.000000000","message":"Done","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"}],"manila/tests/share/test_driver.py":[{"author":{"_account_id":14907,"name":"Alyson","email":"alyson.rodrigues.rosa@gmail.com","username":"Alyson"},"change_message_id":"d7a4cb727320979ed6bfde416d14eb7b52a15ff8","unresolved":false,"context_lines":[{"line_number":305,"context_line":""},{"line_number":306,"context_line":"        return share_driver"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"    @mock.patch(\u0027manila.share.api.API.allow_access\u0027)"},{"line_number":309,"context_line":"    @mock.patch(\u0027manila.share.api.API.deny_access\u0027)"},{"line_number":310,"context_line":"    @mock.patch(\u0027manila.share.api.API.access_get\u0027)"},{"line_number":311,"context_line":"    @mock.patch(\u0027manila.share.api.API.access_get_all\u0027)"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_0a6a8bed","line":308,"updated":"2015-08-25 14:29:10.000000000","message":"It\u0027s better continue using \u0027mock_object\u0027 instead of this decorator. Same for other functions below.","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ed573db154c468aefb20f8fb98321f1965cea93b","unresolved":false,"context_lines":[{"line_number":305,"context_line":""},{"line_number":306,"context_line":"        return share_driver"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":"    @mock.patch(\u0027manila.share.api.API.allow_access\u0027)"},{"line_number":309,"context_line":"    @mock.patch(\u0027manila.share.api.API.deny_access\u0027)"},{"line_number":310,"context_line":"    @mock.patch(\u0027manila.share.api.API.access_get\u0027)"},{"line_number":311,"context_line":"    @mock.patch(\u0027manila.share.api.API.access_get_all\u0027)"}],"source_content_type":"text/x-python","patch_set":24,"id":"da20952f_0a396741","line":308,"in_reply_to":"fa1b9901_0a6a8bed","updated":"2015-09-01 01:24:03.000000000","message":"Done","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14907,"name":"Alyson","email":"alyson.rodrigues.rosa@gmail.com","username":"Alyson"},"change_message_id":"d7a4cb727320979ed6bfde416d14eb7b52a15ff8","unresolved":false,"context_lines":[{"line_number":590,"context_line":"                    \u0027current_file_path\u0027: \u0027/fake/path\u0027,"},{"line_number":591,"context_line":"                    \u0027current_file_progress\u0027: 100}"},{"line_number":592,"context_line":""},{"line_number":593,"context_line":"        with mock.patch.object(os, \u0027stat\u0027) as m_stat:"},{"line_number":594,"context_line":"            m_stat.return_value \u003d self.stat_result"},{"line_number":595,"context_line":"            out \u003d self._copy.get_progress()"},{"line_number":596,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_2da7690c","line":593,"updated":"2015-08-25 14:29:10.000000000","message":"Why not mock_object? Same for another mocks below.","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ed573db154c468aefb20f8fb98321f1965cea93b","unresolved":false,"context_lines":[{"line_number":590,"context_line":"                    \u0027current_file_path\u0027: \u0027/fake/path\u0027,"},{"line_number":591,"context_line":"                    \u0027current_file_progress\u0027: 100}"},{"line_number":592,"context_line":""},{"line_number":593,"context_line":"        with mock.patch.object(os, \u0027stat\u0027) as m_stat:"},{"line_number":594,"context_line":"            m_stat.return_value \u003d self.stat_result"},{"line_number":595,"context_line":"            out \u003d self._copy.get_progress()"},{"line_number":596,"context_line":""}],"source_content_type":"text/x-python","patch_set":24,"id":"da20952f_6a4a63c7","line":593,"in_reply_to":"fa1b9901_2da7690c","updated":"2015-09-01 01:24:03.000000000","message":"Done","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14907,"name":"Alyson","email":"alyson.rodrigues.rosa@gmail.com","username":"Alyson"},"change_message_id":"d7a4cb727320979ed6bfde416d14eb7b52a15ff8","unresolved":false,"context_lines":[{"line_number":630,"context_line":"        with mock.patch(\u0027manila.share.driver.LOG\u0027) as mock_log:"},{"line_number":631,"context_line":"            self._copy.run()"},{"line_number":632,"context_line":""},{"line_number":633,"context_line":"        self.assertTrue(mock_log.info.called)"},{"line_number":634,"context_line":""},{"line_number":635,"context_line":"    def test_copy(self):"},{"line_number":636,"context_line":"        src \u003d \u0027/path/fake/src\u0027"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_4a196387","line":633,"updated":"2015-08-25 14:29:10.000000000","message":"Add more asserts to test things.","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ed573db154c468aefb20f8fb98321f1965cea93b","unresolved":false,"context_lines":[{"line_number":630,"context_line":"        with mock.patch(\u0027manila.share.driver.LOG\u0027) as mock_log:"},{"line_number":631,"context_line":"            self._copy.run()"},{"line_number":632,"context_line":""},{"line_number":633,"context_line":"        self.assertTrue(mock_log.info.called)"},{"line_number":634,"context_line":""},{"line_number":635,"context_line":"    def test_copy(self):"},{"line_number":636,"context_line":"        src \u003d \u0027/path/fake/src\u0027"}],"source_content_type":"text/x-python","patch_set":24,"id":"da20952f_4a167fa8","line":633,"in_reply_to":"fa1b9901_4a196387","updated":"2015-09-01 01:24:03.000000000","message":"Done","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14907,"name":"Alyson","email":"alyson.rodrigues.rosa@gmail.com","username":"Alyson"},"change_message_id":"d7a4cb727320979ed6bfde416d14eb7b52a15ff8","unresolved":false,"context_lines":[{"line_number":644,"context_line":"        with mock.patch(\u0027manila.share.driver.LOG\u0027) as mock_log:"},{"line_number":645,"context_line":"            self._copy.copy(src, dest)"},{"line_number":646,"context_line":""},{"line_number":647,"context_line":"        self.assertTrue(mock_log.info.called)"},{"line_number":648,"context_line":""},{"line_number":649,"context_line":"    def test_explore(self):"},{"line_number":650,"context_line":"        path \u003d \u0027/dirpath1\u0027"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_cd97cd8e","line":647,"updated":"2015-08-25 14:29:10.000000000","message":"Add more asserts to test things.","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ed573db154c468aefb20f8fb98321f1965cea93b","unresolved":false,"context_lines":[{"line_number":644,"context_line":"        with mock.patch(\u0027manila.share.driver.LOG\u0027) as mock_log:"},{"line_number":645,"context_line":"            self._copy.copy(src, dest)"},{"line_number":646,"context_line":""},{"line_number":647,"context_line":"        self.assertTrue(mock_log.info.called)"},{"line_number":648,"context_line":""},{"line_number":649,"context_line":"    def test_explore(self):"},{"line_number":650,"context_line":"        path \u003d \u0027/dirpath1\u0027"}],"source_content_type":"text/x-python","patch_set":24,"id":"da20952f_ea0c3396","line":647,"in_reply_to":"fa1b9901_cd97cd8e","updated":"2015-09-01 01:24:03.000000000","message":"Done","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14907,"name":"Alyson","email":"alyson.rodrigues.rosa@gmail.com","username":"Alyson"},"change_message_id":"d7a4cb727320979ed6bfde416d14eb7b52a15ff8","unresolved":false,"context_lines":[{"line_number":657,"context_line":"        self.mock_object(os, \u0027stat\u0027, mock.Mock(return_value\u003dself.stat_result))"},{"line_number":658,"context_line":"        self.mock_object(os, \u0027walk\u0027, mock.Mock(return_value\u003dos_walk_return))"},{"line_number":659,"context_line":""},{"line_number":660,"context_line":"        self._copy.explore(path)"}],"source_content_type":"text/x-python","patch_set":24,"id":"fa1b9901_6d880172","line":660,"updated":"2015-08-25 14:29:10.000000000","message":"Add asserts.","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ed573db154c468aefb20f8fb98321f1965cea93b","unresolved":false,"context_lines":[{"line_number":657,"context_line":"        self.mock_object(os, \u0027stat\u0027, mock.Mock(return_value\u003dself.stat_result))"},{"line_number":658,"context_line":"        self.mock_object(os, \u0027walk\u0027, mock.Mock(return_value\u003dos_walk_return))"},{"line_number":659,"context_line":""},{"line_number":660,"context_line":"        self._copy.explore(path)"}],"source_content_type":"text/x-python","patch_set":24,"id":"da20952f_0a1087a7","line":660,"in_reply_to":"fa1b9901_6d880172","updated":"2015-09-01 01:24:03.000000000","message":"Done","commit_id":"5908028d1ca3404d468d9494102b658b29b2ca97"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"0b85201f9f81304f8349cfb3aa58e0d09fd90795","unresolved":false,"context_lines":[{"line_number":327,"context_line":"        share_driver \u003d driver.ShareDriver(False)"},{"line_number":328,"context_line":""},{"line_number":329,"context_line":"        self.assertEqual("},{"line_number":330,"context_line":"            share_driver.migrate_share(None, None, None, None), (None, None))"},{"line_number":331,"context_line":""},{"line_number":332,"context_line":"    def test_get_driver_migration_info_default(self):"},{"line_number":333,"context_line":""}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_20a64cae","line":330,"updated":"2015-09-05 23:06:07.000000000","message":"self.assertEqual((None, None), share_driver.migrate_share(None, None, None, None))","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"0c564d68f55deee697b8199741114517f539f1a0","unresolved":false,"context_lines":[{"line_number":327,"context_line":"        share_driver \u003d driver.ShareDriver(False)"},{"line_number":328,"context_line":""},{"line_number":329,"context_line":"        self.assertEqual("},{"line_number":330,"context_line":"            share_driver.migrate_share(None, None, None, None), (None, None))"},{"line_number":331,"context_line":""},{"line_number":332,"context_line":"    def test_get_driver_migration_info_default(self):"},{"line_number":333,"context_line":""}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_a0149c9f","line":330,"in_reply_to":"da20952f_20a64cae","updated":"2015-09-05 23:47:56.000000000","message":"Done","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"0b85201f9f81304f8349cfb3aa58e0d09fd90795","unresolved":false,"context_lines":[{"line_number":335,"context_line":"        share_driver \u003d driver.ShareDriver(False)"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"        self.assertEqual("},{"line_number":338,"context_line":"            share_driver.get_driver_migration_info(None, None, None), None)"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"    def test_get_migration_info_default(self):"},{"line_number":341,"context_line":"        expected \u003d {\u0027mount\u0027: [\u0027mount\u0027, \u0027-t\u0027, \u0027fake_proto\u0027, \u0027/fake/fake_id\u0027,"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_40a10093","line":338,"updated":"2015-09-05 23:06:07.000000000","message":"assertIsNone","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"0c564d68f55deee697b8199741114517f539f1a0","unresolved":false,"context_lines":[{"line_number":335,"context_line":"        share_driver \u003d driver.ShareDriver(False)"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"        self.assertEqual("},{"line_number":338,"context_line":"            share_driver.get_driver_migration_info(None, None, None), None)"},{"line_number":339,"context_line":""},{"line_number":340,"context_line":"    def test_get_migration_info_default(self):"},{"line_number":341,"context_line":"        expected \u003d {\u0027mount\u0027: [\u0027mount\u0027, \u0027-t\u0027, \u0027fake_proto\u0027, \u0027/fake/fake_id\u0027,"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_c01750a1","line":338,"in_reply_to":"da20952f_40a10093","updated":"2015-09-05 23:47:56.000000000","message":"Done","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"0b85201f9f81304f8349cfb3aa58e0d09fd90795","unresolved":false,"context_lines":[{"line_number":727,"context_line":"        self.assertTrue(self.mock_log.info.called)"},{"line_number":728,"context_line":"        os.walk.assert_called_once_with(\u0027/path/fake/src\u0027)"},{"line_number":729,"context_line":"        # os.stats called in explore and get_progress functions"},{"line_number":730,"context_line":"        self.assertEqual(os.stat.call_count, 16)"},{"line_number":731,"context_line":""},{"line_number":732,"context_line":"    def test_copy(self):"},{"line_number":733,"context_line":"        src \u003d \u0027/path/fake/src\u0027"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_e0ab7473","line":730,"updated":"2015-09-05 23:06:07.000000000","message":"self.assertEqual(16, os.stat.call_count)","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"0c564d68f55deee697b8199741114517f539f1a0","unresolved":false,"context_lines":[{"line_number":727,"context_line":"        self.assertTrue(self.mock_log.info.called)"},{"line_number":728,"context_line":"        os.walk.assert_called_once_with(\u0027/path/fake/src\u0027)"},{"line_number":729,"context_line":"        # os.stats called in explore and get_progress functions"},{"line_number":730,"context_line":"        self.assertEqual(os.stat.call_count, 16)"},{"line_number":731,"context_line":""},{"line_number":732,"context_line":"    def test_copy(self):"},{"line_number":733,"context_line":"        src \u003d \u0027/path/fake/src\u0027"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_800dd890","line":730,"in_reply_to":"da20952f_e0ab7473","updated":"2015-09-05 23:47:56.000000000","message":"Done","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"0b85201f9f81304f8349cfb3aa58e0d09fd90795","unresolved":false,"context_lines":[{"line_number":743,"context_line":"        self.assertTrue(self.mock_log.info.called)"},{"line_number":744,"context_line":"        # shutil.copystat should be called 3 times."},{"line_number":745,"context_line":"        # Once for each entry in self._copy.dirs"},{"line_number":746,"context_line":"        self.assertEqual(shutil.copystat.call_count, 3)"},{"line_number":747,"context_line":"        # os.stat should be called 3 times."},{"line_number":748,"context_line":"        # Once for each entry in self._copy.files"},{"line_number":749,"context_line":"        self.assertEqual(os.stat.call_count, 3)"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_00a788a7","line":746,"updated":"2015-09-05 23:06:07.000000000","message":"reversed as well","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"0c564d68f55deee697b8199741114517f539f1a0","unresolved":false,"context_lines":[{"line_number":743,"context_line":"        self.assertTrue(self.mock_log.info.called)"},{"line_number":744,"context_line":"        # shutil.copystat should be called 3 times."},{"line_number":745,"context_line":"        # Once for each entry in self._copy.dirs"},{"line_number":746,"context_line":"        self.assertEqual(shutil.copystat.call_count, 3)"},{"line_number":747,"context_line":"        # os.stat should be called 3 times."},{"line_number":748,"context_line":"        # Once for each entry in self._copy.files"},{"line_number":749,"context_line":"        self.assertEqual(os.stat.call_count, 3)"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_4024a00b","line":746,"in_reply_to":"da20952f_00a788a7","updated":"2015-09-05 23:47:56.000000000","message":"Done","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"0b85201f9f81304f8349cfb3aa58e0d09fd90795","unresolved":false,"context_lines":[{"line_number":746,"context_line":"        self.assertEqual(shutil.copystat.call_count, 3)"},{"line_number":747,"context_line":"        # os.stat should be called 3 times."},{"line_number":748,"context_line":"        # Once for each entry in self._copy.files"},{"line_number":749,"context_line":"        self.assertEqual(os.stat.call_count, 3)"},{"line_number":750,"context_line":"        self.assertEqual(os.mkdir.call_count, 3)"},{"line_number":751,"context_line":""},{"line_number":752,"context_line":"        args \u003d (\u0027/fileA\u0027, \u0027/fileB\u0027, \u0027/fileC\u0027)"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_a0b81cc9","line":749,"updated":"2015-09-05 23:06:07.000000000","message":"Here","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"0c564d68f55deee697b8199741114517f539f1a0","unresolved":false,"context_lines":[{"line_number":746,"context_line":"        self.assertEqual(shutil.copystat.call_count, 3)"},{"line_number":747,"context_line":"        # os.stat should be called 3 times."},{"line_number":748,"context_line":"        # Once for each entry in self._copy.files"},{"line_number":749,"context_line":"        self.assertEqual(os.stat.call_count, 3)"},{"line_number":750,"context_line":"        self.assertEqual(os.mkdir.call_count, 3)"},{"line_number":751,"context_line":""},{"line_number":752,"context_line":"        args \u003d (\u0027/fileA\u0027, \u0027/fileB\u0027, \u0027/fileC\u0027)"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_e01e14ba","line":749,"in_reply_to":"da20952f_a0b81cc9","updated":"2015-09-05 23:47:56.000000000","message":"Done","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"0b85201f9f81304f8349cfb3aa58e0d09fd90795","unresolved":false,"context_lines":[{"line_number":747,"context_line":"        # os.stat should be called 3 times."},{"line_number":748,"context_line":"        # Once for each entry in self._copy.files"},{"line_number":749,"context_line":"        self.assertEqual(os.stat.call_count, 3)"},{"line_number":750,"context_line":"        self.assertEqual(os.mkdir.call_count, 3)"},{"line_number":751,"context_line":""},{"line_number":752,"context_line":"        args \u003d (\u0027/fileA\u0027, \u0027/fileB\u0027, \u0027/fileC\u0027)"},{"line_number":753,"context_line":"        os.stat.assert_has_calls([mock.call(a) for a in args])"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_c0bbd0c2","line":750,"updated":"2015-09-05 23:06:07.000000000","message":"Here","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"0c564d68f55deee697b8199741114517f539f1a0","unresolved":false,"context_lines":[{"line_number":747,"context_line":"        # os.stat should be called 3 times."},{"line_number":748,"context_line":"        # Once for each entry in self._copy.files"},{"line_number":749,"context_line":"        self.assertEqual(os.stat.call_count, 3)"},{"line_number":750,"context_line":"        self.assertEqual(os.mkdir.call_count, 3)"},{"line_number":751,"context_line":""},{"line_number":752,"context_line":"        args \u003d (\u0027/fileA\u0027, \u0027/fileB\u0027, \u0027/fileC\u0027)"},{"line_number":753,"context_line":"        os.stat.assert_has_calls([mock.call(a) for a in args])"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_001a28c6","line":750,"in_reply_to":"da20952f_c0bbd0c2","updated":"2015-09-05 23:47:56.000000000","message":"Done","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"0b85201f9f81304f8349cfb3aa58e0d09fd90795","unresolved":false,"context_lines":[{"line_number":771,"context_line":"        # Function os.stat should be called 8 times."},{"line_number":772,"context_line":"        # 4 times for dirname in dirnames, and 4 times for"},{"line_number":773,"context_line":"        # filename in filenames"},{"line_number":774,"context_line":"        self.assertEqual(os.stat.call_count, 8)"},{"line_number":775,"context_line":""},{"line_number":776,"context_line":"        args \u003d (\u0027/dirpath1/dir1\u0027, \u0027/dirpath1/dir2\u0027, \u0027/dirpath1/file1.txt\u0027,"},{"line_number":777,"context_line":"                \u0027/dirpath1/file2.exe\u0027, \u0027/dirpath1/dir3\u0027, \u0027/dirpath1/dir4\u0027,"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_60ae8482","line":774,"updated":"2015-09-05 23:06:07.000000000","message":"Here","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"0c564d68f55deee697b8199741114517f539f1a0","unresolved":false,"context_lines":[{"line_number":771,"context_line":"        # Function os.stat should be called 8 times."},{"line_number":772,"context_line":"        # 4 times for dirname in dirnames, and 4 times for"},{"line_number":773,"context_line":"        # filename in filenames"},{"line_number":774,"context_line":"        self.assertEqual(os.stat.call_count, 8)"},{"line_number":775,"context_line":""},{"line_number":776,"context_line":"        args \u003d (\u0027/dirpath1/dir1\u0027, \u0027/dirpath1/dir2\u0027, \u0027/dirpath1/file1.txt\u0027,"},{"line_number":777,"context_line":"                \u0027/dirpath1/file2.exe\u0027, \u0027/dirpath1/dir3\u0027, \u0027/dirpath1/dir4\u0027,"}],"source_content_type":"text/x-python","patch_set":39,"id":"da20952f_a07b3cf4","line":774,"in_reply_to":"da20952f_60ae8482","updated":"2015-09-05 23:47:56.000000000","message":"Done","commit_id":"41716138bed3a69f07866ee87a972a9400f2b918"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"8c9574c8c8a944cc8fb69f37265a4161e252b1d9","unresolved":false,"context_lines":[{"line_number":334,"context_line":"        share_driver \u003d driver.ShareDriver(False)"},{"line_number":335,"context_line":""},{"line_number":336,"context_line":"        self.assertIsNone("},{"line_number":337,"context_line":"            share_driver.get_driver_migration_info(None, None, None), None)"},{"line_number":338,"context_line":""},{"line_number":339,"context_line":"    def test_get_migration_info_default(self):"},{"line_number":340,"context_line":"        expected \u003d {\u0027mount\u0027: [\u0027mount\u0027, \u0027-t\u0027, \u0027fake_proto\u0027, \u0027/fake/fake_id\u0027,"}],"source_content_type":"text/x-python","patch_set":40,"id":"da20952f_0b524935","line":337,"updated":"2015-09-06 02:51:51.000000000","message":"assertIsNone(expr, msg\u003dNone) -- You don\u0027t really want to pass in that 2nd arg \"None\". I think it is just leftover from prior assertEqual.","commit_id":"40629be1dacfd6650ba157ad6fdd725ad43d94ea"}]}
