)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"8ae1521dcb17ddf5683f5725ef2f3a05c02d0129","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Julia Varlamova \u003cjvarlamova@mirantis.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2014-11-24 12:39:57 +0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Mode selection for Manila drivers"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"The addition of driver modes allows the administrator to tell Manila"},{"line_number":10,"context_line":"how each driver should operate."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5a890539_0752aedd","line":7,"updated":"2014-11-24 10:01:49.000000000","message":"Topic of commit is unclear. Indeed, you add driver modes AND change generic driver.","commit_id":"20ec67af4e8bae99661c3767536ad4d38b77df46"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"8ae1521dcb17ddf5683f5725ef2f3a05c02d0129","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Add \u0027mode\u0027 attribute to generic driver (only \u0027managed_multi_svm\u0027 mode is available now)."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Implements bp driver-modes"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Change-Id: I2744cccfbe2c09c3d942822f902793493cd9befb"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5a890539_676452b9","line":16,"updated":"2014-11-24 10:01:49.000000000","message":"It is partial implementation. Because it does not implement third mode, that does not exist yet.\n\nbp: https://blueprints.launchpad.net/manila/+spec/driver-modes\n\n\"flat network multi share server (NEW)\"","commit_id":"20ec67af4e8bae99661c3767536ad4d38b77df46"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"ee85ed5aef6b51ced5a2ecd2684bdee89b468482","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Add \u0027modes\u0027 attribute to generic share driver (for generic driver only \u0027multi_svm\u0027"},{"line_number":16,"context_line":"mode is available now)."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Partially Implements bp driver-modes"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: I2744cccfbe2c09c3d942822f902793493cd9befb"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"3a961159_036f32fe","line":18,"updated":"2014-12-10 15:30:17.000000000","message":"The blueprint proposed 3 modes, but this patch only introduced 2 modes.  Is there a plan to add the 3rd mode in a future patch?  If so, please clarify that in the commit message.","commit_id":"34f35a35a52624426bc2b38959ba62a1741ebe8a"},{"author":{"_account_id":2417,"name":"Ben Swartzlander","email":"ben@swartzlander.org","username":"bswartz"},"change_message_id":"f681df024e24342823159777b61f1b15d0ac0327","unresolved":false,"context_lines":[{"line_number":15,"context_line":"Add \u0027modes\u0027 attribute to generic share driver (for generic driver only \u0027multi_svm\u0027"},{"line_number":16,"context_line":"mode is available now)."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Partially Implements bp driver-modes"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: I2744cccfbe2c09c3d942822f902793493cd9befb"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"3a961159_9fdfe70c","line":18,"in_reply_to":"3a961159_036f32fe","updated":"2014-12-10 21:49:30.000000000","message":"Based on recent discussions, we started thinking that maybe the flat_multi_svm can be treated as a special case of managed_multi_svm. If we\u0027re able to make that work then we should update the BP to alleviate that confusion.","commit_id":"34f35a35a52624426bc2b38959ba62a1741ebe8a"}],"manila/common/constants.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"841fab4c20c31e8cd700bbfb02ced830ab5638a9","unresolved":false,"context_lines":[{"line_number":55,"context_line":"SINGLE_SVM_MODE \u003d \u0027single_svm\u0027"},{"line_number":56,"context_line":"MANAGED_MULTI_SVM_MODE \u003d \u0027managed_multi_svm\u0027"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"VALID_DRIVER_MODES \u003d ("},{"line_number":59,"context_line":"    SINGLE_SVM_MODE,"},{"line_number":60,"context_line":"    MANAGED_MULTI_SVM_MODE,"},{"line_number":61,"context_line":")"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a890539_17d9d756","line":58,"updated":"2014-11-25 11:45:55.000000000","message":"VALID_SHARE_DRIVER_MODES?","commit_id":"1c27a80c63e694c5a9c7d71701f7cc5681d0b357"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"9355e8b8ea41c37064e0b80d15c6e56c490de975","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    CIFS_PORTS + NFS_PORTS + SSH_PORTS + PING_PORTS)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"SINGLE_SVM_MODE \u003d \u0027single_svm\u0027"},{"line_number":56,"context_line":"MANAGED_MULTI_SVM_MODE \u003d \u0027managed_multi_svm\u0027"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"VALID_SHARE_DRIVER_MODES \u003d ("},{"line_number":59,"context_line":"    SINGLE_SVM_MODE,"}],"source_content_type":"text/x-python","patch_set":9,"id":"3a961159_0d589f55","line":56,"updated":"2014-12-08 10:22:47.000000000","message":"I am not sure that it is good naming - \"managed_multi_svm\".\n\nThere are expected only two of driver modes: \"single\" and \"multi\" in Manila. - Whether driver creates VMs or not.\n\nSo, I propose to call them as following:\n\n\"single_svm\"\n\n\"multi_svm\".","commit_id":"34a260caa30771706c8c3f3d09f17b67ef155bb2"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"ee85ed5aef6b51ced5a2ecd2684bdee89b468482","unresolved":false,"context_lines":[{"line_number":57,"context_line":""},{"line_number":58,"context_line":"VALID_SHARE_DRIVER_MODES \u003d ("},{"line_number":59,"context_line":"    SINGLE_SVM_MODE,"},{"line_number":60,"context_line":"    MULTI_SVM_MODE,"},{"line_number":61,"context_line":")"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_438a1ac0","line":60,"updated":"2014-12-10 15:30:17.000000000","message":"The blueprint was proposing 3 modes, but only 2 are introduced here?","commit_id":"34f35a35a52624426bc2b38959ba62a1741ebe8a"},{"author":{"_account_id":11878,"name":"Rushil Chugh","email":"rushil.chugh@gmail.com","username":"rushil"},"change_message_id":"5d8450e7cd0c255db4b2de60b328d7ae7aac3926","unresolved":false,"context_lines":[{"line_number":57,"context_line":""},{"line_number":58,"context_line":"VALID_SHARE_DRIVER_MODES \u003d ("},{"line_number":59,"context_line":"    SINGLE_SVM_MODE,"},{"line_number":60,"context_line":"    MULTI_SVM_MODE,"},{"line_number":61,"context_line":")"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_edad419c","line":60,"in_reply_to":"3a961159_438a1ac0","updated":"2014-12-15 00:04:49.000000000","message":"flat_multi_svm mode has been truncated as a special case of managed_multi_svm.","commit_id":"34f35a35a52624426bc2b38959ba62a1741ebe8a"}],"manila/share/driver.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"4bc01b5844ff5ead47f7a6d2c26c5b59cd6f9d60","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"VALID_DRIVER_MODES \u003d [\u0027single_svm\u0027, \u0027managed_multi_svm\u0027]"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"share_opts \u003d ["},{"line_number":35,"context_line":"    # NOTE(rushiagr): Reasonable to define this option at only one place."}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_67537217","line":32,"updated":"2014-11-24 09:58:03.000000000","message":"Better to do it as \u0027tuple\u0027. Also, this should be in common module with all \u0027constants\u0027.\n\nAlso, I recommend to use \u0027personal\u0027 names to use it everywhere for conditions, etc... Because we know how many of them will be.","commit_id":"20ec67af4e8bae99661c3767536ad4d38b77df46"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"4bc01b5844ff5ead47f7a6d2c26c5b59cd6f9d60","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    cfg.StrOpt(\u0027mode\u0027,"},{"line_number":47,"context_line":"               default\u003dVALID_DRIVER_MODES[1],"},{"line_number":48,"context_line":"               choices\u003dVALID_DRIVER_MODES,"},{"line_number":49,"context_line":"               help\u003d\"Strategy of creating share server and ensuring \""},{"line_number":50,"context_line":"                    \"connectivity between the share servers and the \""},{"line_number":51,"context_line":"                    \"tenant\u0027s share network.\"),"},{"line_number":52,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_a7a71a0a","line":49,"updated":"2014-11-24 09:58:03.000000000","message":"Not proper description. There is one mode that disallows share server creation in manila - single_svm.\n\nAlso name \u0027mode\u0027 is totally unclear, need to rename it, for example to \u0027share_driver_mode\u0027.\n\nAlso, we should allow more than one at a time.","commit_id":"20ec67af4e8bae99661c3767536ad4d38b77df46"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"841fab4c20c31e8cd700bbfb02ced830ab5638a9","unresolved":false,"context_lines":[{"line_number":43,"context_line":"               default\u003dNone,"},{"line_number":44,"context_line":"               help\u003d\u0027The backend name for a given driver implementation.\u0027),"},{"line_number":45,"context_line":"    cfg.StrOpt(\u0027share_driver_mode\u0027,"},{"line_number":46,"context_line":"               default\u003dconstants.MANAGED_MULTI_SVM_MODE,"},{"line_number":47,"context_line":"               choices\u003dconstants.VALID_DRIVER_MODES,"},{"line_number":48,"context_line":"               help\u003d\"Share driver mode determine if share server for share \""},{"line_number":49,"context_line":"                    \"would be created and if connectivity between the share \""}],"source_content_type":"text/x-python","patch_set":2,"id":"5a890539_b7c64366","line":46,"updated":"2014-11-25 11:45:55.000000000","message":"I propose to leave it None here - in driver interface. And set appropriate default value within each driver if it is set to None here.","commit_id":"1c27a80c63e694c5a9c7d71701f7cc5681d0b357"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"841fab4c20c31e8cd700bbfb02ced830ab5638a9","unresolved":false,"context_lines":[{"line_number":64,"context_line":"        if self.configuration:"},{"line_number":65,"context_line":"            self.configuration.append_config_values(share_opts)"},{"line_number":66,"context_line":"        self.set_execute(kwargs.pop(\u0027execute\u0027, utils.execute))"},{"line_number":67,"context_line":"        self.mode \u003d self.configuration.safe_get(\u0027share_driver_mode\u0027)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    def set_execute(self, execute):"},{"line_number":70,"context_line":"        self._execute \u003d execute"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a890539_d7982f77","line":67,"updated":"2014-11-25 11:45:55.000000000","message":"Why in Mixin? This Mixin is related only to \"execute\" stuff.","commit_id":"1c27a80c63e694c5a9c7d71701f7cc5681d0b357"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"841fab4c20c31e8cd700bbfb02ced830ab5638a9","unresolved":false,"context_lines":[{"line_number":93,"context_line":"    def __init__(self, *args, **kwargs):"},{"line_number":94,"context_line":"        super(ShareDriver, self).__init__()"},{"line_number":95,"context_line":"        self.configuration \u003d kwargs.get(\u0027configuration\u0027, None)"},{"line_number":96,"context_line":"        if self.configuration:"},{"line_number":97,"context_line":"            self.configuration.append_config_values(share_opts)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def create_share(self, context, share, share_server\u003dNone):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a890539_f78a8b19","line":96,"updated":"2014-11-25 11:45:55.000000000","message":"Mode set should be here.","commit_id":"1c27a80c63e694c5a9c7d71701f7cc5681d0b357"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"14419cb66944359f4d34f1c23d8e82b1ddc86d1d","unresolved":false,"context_lines":[{"line_number":47,"context_line":"CONF.register_opts(share_opts)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"class ExecuteMixin(object):"},{"line_number":51,"context_line":"    \"\"\"Provides an executable functionality to a driver class.\"\"\""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    def __init__(self, *args, **kwargs):"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a890539_4417f9a2","side":"PARENT","line":50,"updated":"2014-11-26 14:23:03.000000000","message":"Why do you need to update this class at all?\n\nI think its functionality should be moved to ShareDriver instead of making just another class.\n\nThere were some plans to remove it before in community.","commit_id":"01ab5c312975a5af2b6b986df8185dd12beb9bbe"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"14419cb66944359f4d34f1c23d8e82b1ddc86d1d","unresolved":false,"context_lines":[{"line_number":41,"context_line":"    cfg.StrOpt(\u0027share_backend_name\u0027,"},{"line_number":42,"context_line":"               default\u003dNone,"},{"line_number":43,"context_line":"               help\u003d\u0027The backend name for a given driver implementation.\u0027),"},{"line_number":44,"context_line":"    cfg.ListOpt(\u0027share_driver_mode\u0027,"},{"line_number":45,"context_line":"                default\u003dNone,"},{"line_number":46,"context_line":"                help\u003d\"Share driver mode determine if share server for share \""},{"line_number":47,"context_line":"                     \"would be created and if connectivity between the share \""}],"source_content_type":"text/x-python","patch_set":3,"id":"5a890539_24a3cdb2","line":44,"updated":"2014-11-26 14:23:03.000000000","message":"Since we expect here list maybe it should be renamed to plural one?","commit_id":"c9757a90980bb39f14312043a1ebcdf16b20267a"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"14419cb66944359f4d34f1c23d8e82b1ddc86d1d","unresolved":false,"context_lines":[{"line_number":43,"context_line":"               help\u003d\u0027The backend name for a given driver implementation.\u0027),"},{"line_number":44,"context_line":"    cfg.ListOpt(\u0027share_driver_mode\u0027,"},{"line_number":45,"context_line":"                default\u003dNone,"},{"line_number":46,"context_line":"                help\u003d\"Share driver mode determine if share server for share \""},{"line_number":47,"context_line":"                     \"would be created and if connectivity between the share \""},{"line_number":48,"context_line":"                     \"server and the tenant\u0027s share network would be ensured.\""},{"line_number":49,"context_line":"                ),"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a890539_84de413c","line":46,"updated":"2014-11-26 14:23:03.000000000","message":"s/determine/determines/","commit_id":"c9757a90980bb39f14312043a1ebcdf16b20267a"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"14419cb66944359f4d34f1c23d8e82b1ddc86d1d","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        self.configuration \u003d kwargs.get(\u0027configuration\u0027, None)"},{"line_number":62,"context_line":"        if self.configuration:"},{"line_number":63,"context_line":"            self.configuration.append_config_values(share_opts)"},{"line_number":64,"context_line":"            self.mode \u003d self.configuration.safe_get(\u0027share_driver_mode\u0027)"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    def create_share(self, context, share, share_server\u003dNone):"},{"line_number":67,"context_line":"        \"\"\"Is called to create share.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"5a890539_04989173","line":64,"updated":"2014-11-26 14:23:03.000000000","message":"same here, make it plural?","commit_id":"c9757a90980bb39f14312043a1ebcdf16b20267a"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"6e08e4b10f509e244a7129664a03e910190067b4","unresolved":false,"context_lines":[{"line_number":45,"context_line":"                default\u003dNone,"},{"line_number":46,"context_line":"                help\u003d\"Share driver mode determines if share server for share \""},{"line_number":47,"context_line":"                     \"would be created and if connectivity between the share \""},{"line_number":48,"context_line":"                     \"server and the tenant\u0027s share network would be ensured.\""},{"line_number":49,"context_line":"                ),"},{"line_number":50,"context_line":"]"},{"line_number":51,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_8da2eff9","line":48,"updated":"2014-12-04 18:32:57.000000000","message":"It is unclear what will be by default. Clarification about default behavior should be added in help.","commit_id":"25b660af5a275dbbfb27d21fa1e802284bb384bb"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"c2e29c5408ab312833918df22e3bbd929f452792","unresolved":false,"context_lines":[{"line_number":46,"context_line":"                help\u003d\"Share driver mode determines if share server for share \""},{"line_number":47,"context_line":"                     \"would be created and if connectivity between the share \""},{"line_number":48,"context_line":"                     \"server and the tenant\u0027s share network would be ensured. \""},{"line_number":49,"context_line":"                     \"Default mode is managed_multi_svm - creating new share \""},{"line_number":50,"context_line":"                     \"server for each tenant and share network.\""},{"line_number":51,"context_line":"                ),"},{"line_number":52,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":7,"id":"5a890539_62e4dce0","line":49,"updated":"2014-12-05 08:01:10.000000000","message":"THIS is driver interface and it does know nothing about \u0027managed_multi_svm\u0027.\n\nInfo about default behaviour is valid for generic driver itself. Information for this module is not correct.","commit_id":"560c80642b328d2b14261b1378b844b93c658e76"},{"author":{"_account_id":7534,"name":"Yulia Portnova","email":"yportnova@mirantis.com","username":"yportnova"},"change_message_id":"3a6692561808d65769110edd64ebe5a50aade0cd","unresolved":false,"context_lines":[{"line_number":50,"context_line":"                     \"each tenant and share network and to ensure \""},{"line_number":51,"context_line":"                     \"connectivity between server and tenant\u0027s share \""},{"line_number":52,"context_line":"                     \"network for generic, NetApp and EMC drivers or to use \""},{"line_number":53,"context_line":"                     \"the existing one for GlusterFS and IBM drivers.\""},{"line_number":54,"context_line":"                ),"},{"line_number":55,"context_line":"]"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5a890539_00aa2b71","line":53,"updated":"2014-12-05 11:39:16.000000000","message":"IMHO the description is too long and difficult to understand.\nI do not understand from this what modes I can set here.\nAs there could be lots of modes that differs from driver to driver I suggest to have here the link to documentation where modes are described.\n\nHere is my example\n\n\"Specific mode for driver to use. See full specification of available modes http://somedoc.com/. If None - default will be used\"","commit_id":"ca436031a23bd070505ca4d625728b50ae39219d"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"0f1b5bd88821310566bd804297fda0fbec156d69","unresolved":false,"context_lines":[{"line_number":50,"context_line":"                     \"each tenant and share network and to ensure \""},{"line_number":51,"context_line":"                     \"connectivity between server and tenant\u0027s share \""},{"line_number":52,"context_line":"                     \"network for generic, NetApp and EMC drivers or to use \""},{"line_number":53,"context_line":"                     \"the existing one for GlusterFS and IBM drivers.\""},{"line_number":54,"context_line":"                ),"},{"line_number":55,"context_line":"]"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5a890539_00906bec","line":53,"in_reply_to":"5a890539_00aa2b71","updated":"2014-12-05 11:52:45.000000000","message":"Or as following:\n\nimport six\n\nfrom manila.common import constants\n\n\"Specific mode for driver to use. Available values: %(values)s. What modes are supported and can be used is up to driver. If set None then default will be used.\" % {\u0027values\u0027: six.text_type(constants.VALID_SHARE_DRIVER_MODES)}","commit_id":"ca436031a23bd070505ca4d625728b50ae39219d"},{"author":{"_account_id":2417,"name":"Ben Swartzlander","email":"ben@swartzlander.org","username":"bswartz"},"change_message_id":"f681df024e24342823159777b61f1b15d0ac0327","unresolved":false,"context_lines":[{"line_number":44,"context_line":"    cfg.StrOpt(\u0027share_backend_name\u0027,"},{"line_number":45,"context_line":"               default\u003dNone,"},{"line_number":46,"context_line":"               help\u003d\u0027The backend name for a given driver implementation.\u0027),"},{"line_number":47,"context_line":"    cfg.ListOpt(\u0027share_driver_modes\u0027,"},{"line_number":48,"context_line":"                default\u003dNone,"},{"line_number":49,"context_line":"                help\u003d\"Specific mode for driver to use. Available values: \""},{"line_number":50,"context_line":"                     \"%s. What modes are supported and can be used is \""}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_dfe5efdc","line":47,"updated":"2014-12-10 21:49:30.000000000","message":"share_driver_mode (no s at the end)","commit_id":"34f35a35a52624426bc2b38959ba62a1741ebe8a"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"bdea04d8183c8b6bdaf3497a592195af7fc01c3d","unresolved":false,"context_lines":[{"line_number":44,"context_line":"    cfg.StrOpt(\u0027share_backend_name\u0027,"},{"line_number":45,"context_line":"               default\u003dNone,"},{"line_number":46,"context_line":"               help\u003d\u0027The backend name for a given driver implementation.\u0027),"},{"line_number":47,"context_line":"    cfg.ListOpt(\u0027share_driver_modes\u0027,"},{"line_number":48,"context_line":"                default\u003dNone,"},{"line_number":49,"context_line":"                help\u003d\"Specific mode for driver to use. Available values: \""},{"line_number":50,"context_line":"                     \"%s. What modes are supported and can be used is \""}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_849baf16","line":47,"in_reply_to":"3a961159_dfe5efdc","updated":"2014-12-15 09:37:11.000000000","message":"It\u0027s a ListOpt so the \u0027s\u0027 is fine. Depends on the decision if we want to support multiple modes in parallel.","commit_id":"34f35a35a52624426bc2b38959ba62a1741ebe8a"},{"author":{"_account_id":2417,"name":"Ben Swartzlander","email":"ben@swartzlander.org","username":"bswartz"},"change_message_id":"f681df024e24342823159777b61f1b15d0ac0327","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        if self.configuration:"},{"line_number":80,"context_line":"            self.configuration.append_config_values(share_opts)"},{"line_number":81,"context_line":"            self.configuration.append_config_values(ssh_opts)"},{"line_number":82,"context_line":"            self.modes \u003d self.configuration.safe_get(\u0027share_driver_modes\u0027)"},{"line_number":83,"context_line":"        self.set_execute(kwargs.pop(\u0027execute\u0027, utils.execute))"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"    def set_execute(self, execute):"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_bf9ca310","line":82,"updated":"2014-12-10 21:49:30.000000000","message":"Should be self.mode. There can only be one mode enabled.","commit_id":"34f35a35a52624426bc2b38959ba62a1741ebe8a"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"1cfd9ff6fa21d77265eaaf6972be11e205eaf066","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        if self.configuration:"},{"line_number":80,"context_line":"            self.configuration.append_config_values(share_opts)"},{"line_number":81,"context_line":"            self.configuration.append_config_values(ssh_opts)"},{"line_number":82,"context_line":"            self.modes \u003d self.configuration.safe_get(\u0027share_driver_modes\u0027)"},{"line_number":83,"context_line":"        self.set_execute(kwargs.pop(\u0027execute\u0027, utils.execute))"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"    def set_execute(self, execute):"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_3287fdd8","line":82,"in_reply_to":"3a961159_bf9ca310","updated":"2014-12-11 07:02:24.000000000","message":"Why only one? It is possible to use more than one in parallel.","commit_id":"34f35a35a52624426bc2b38959ba62a1741ebe8a"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"eedda54ea6c5627b40291196b7fcfa4ca38c6b68","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        if self.configuration:"},{"line_number":80,"context_line":"            self.configuration.append_config_values(share_opts)"},{"line_number":81,"context_line":"            self.configuration.append_config_values(ssh_opts)"},{"line_number":82,"context_line":"            self.mode \u003d self.configuration.safe_get(\u0027share_driver_mode\u0027)"},{"line_number":83,"context_line":"        self.set_execute(kwargs.pop(\u0027execute\u0027, utils.execute))"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"    def set_execute(self, execute):"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a961159_ffc2d951","line":82,"updated":"2014-12-17 19:07:34.000000000","message":"if self.configuration:\n\n    self.mode \u003d self.configuration.safe_get(\u0027share_driver_mode\u0027)\n\nelse:\n\n    self.mode \u003d CONF.share_driver_mode\n\n\nWithout else clause you will get error configuring one driver within \"DEFAULT\" config group.","commit_id":"000240be6f6574267a3fe798bf9a5cf2573ac76e"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"eedda54ea6c5627b40291196b7fcfa4ca38c6b68","unresolved":false,"context_lines":[{"line_number":183,"context_line":"        self._stats \u003d data"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"    def select_supported_driver_mode(self, supported_driver_modes):"},{"line_number":186,"context_line":"        \"\"\"Check if driver mode is supported by current driver.\"\"\""},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        if self.mode:"},{"line_number":189,"context_line":"            if self.mode not in supported_driver_modes:"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a961159_bf393141","line":186,"updated":"2014-12-17 19:07:34.000000000","message":"Docstring does not fit name of method.\n\nI propose name it \"get_driver_mode\" and make following docstring:\n\n\"\"\"Verify and return driver mode.\"\"\"","commit_id":"000240be6f6574267a3fe798bf9a5cf2573ac76e"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"eedda54ea6c5627b40291196b7fcfa4ca38c6b68","unresolved":false,"context_lines":[{"line_number":185,"context_line":"    def select_supported_driver_mode(self, supported_driver_modes):"},{"line_number":186,"context_line":"        \"\"\"Check if driver mode is supported by current driver.\"\"\""},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        if self.mode:"},{"line_number":189,"context_line":"            if self.mode not in supported_driver_modes:"},{"line_number":190,"context_line":"                msg \u003d _(\"Driver doesn\u0027t support %(mode)s mode. \""},{"line_number":191,"context_line":"                        \"Valid modes are: %(valid_modes)s.\")"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a961159_df9efd62","line":188,"updated":"2014-12-17 19:07:34.000000000","message":"When backend configured within DEFAULT config group, this opt won\u0027t be set. So, potential AtributeError.","commit_id":"000240be6f6574267a3fe798bf9a5cf2573ac76e"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"eedda54ea6c5627b40291196b7fcfa4ca38c6b68","unresolved":false,"context_lines":[{"line_number":200,"context_line":"            raise exception.InvalidParameterValue(msg % {"},{"line_number":201,"context_line":"                \u0027valid_modes\u0027: supported_driver_modes"},{"line_number":202,"context_line":"            })"},{"line_number":203,"context_line":"        return supported_driver_modes[0]"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a961159_7faee999","line":203,"updated":"2014-12-17 19:07:34.000000000","message":"Potential keyError when self.mode is not set and empty list is provided. So, need add validation for empty list in param.","commit_id":"000240be6f6574267a3fe798bf9a5cf2573ac76e"}],"manila/share/drivers/generic.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"4bc01b5844ff5ead47f7a6d2c26c5b59cd6f9d60","unresolved":false,"context_lines":[{"line_number":122,"context_line":"        if self.mode not in self.generic_driver_modes:"},{"line_number":123,"context_line":"            msg \u003d _(\"Generic driver doesn\u0027t support %(mode)s mode. \""},{"line_number":124,"context_line":"                    \"Valid modes are: %(valid_modes)s.\")"},{"line_number":125,"context_line":"            raise cfg.ConfigFileValueError(msg % {"},{"line_number":126,"context_line":"                \u0027mode\u0027: self.mode,"},{"line_number":127,"context_line":"                \u0027valid_modes\u0027: self.generic_driver_modes"},{"line_number":128,"context_line":"            })"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_e793e2a0","line":125,"updated":"2014-11-24 09:58:03.000000000","message":"We should not raise config exceptions. Use manila exception.","commit_id":"20ec67af4e8bae99661c3767536ad4d38b77df46"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"100592005447eb69b2d403b485d887d2e92fc14f","unresolved":false,"context_lines":[{"line_number":118,"context_line":"            service_instance.ServiceInstanceManager("},{"line_number":119,"context_line":"                self.db, driver_config\u003dself.configuration))"},{"line_number":120,"context_line":"        self.default_driver_modes \u003d [const.MANAGED_MULTI_SVM_MODE, ]"},{"line_number":121,"context_line":"        self.valid_driver_modes \u003d self.default_driver_modes"},{"line_number":122,"context_line":"        if self.modes:"},{"line_number":123,"context_line":"            for mode in self.modes:"},{"line_number":124,"context_line":"                if mode not in self.valid_driver_modes:"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a890539_d67bf626","line":121,"updated":"2014-12-03 11:08:28.000000000","message":"Why do you need both:\n\n\"self.default_driver_modes\" and \"self.valid_driver_modes\"?\n\nLooks like it would be useful to have only one with following name:\n\n\"self.supported_driver_modes\"","commit_id":"747de3c7fe67c0b11a6bfba02a66b7973c9d4025"},{"author":{"_account_id":2417,"name":"Ben Swartzlander","email":"ben@swartzlander.org","username":"bswartz"},"change_message_id":"f681df024e24342823159777b61f1b15d0ac0327","unresolved":false,"context_lines":[{"line_number":122,"context_line":"            service_instance.ServiceInstanceManager("},{"line_number":123,"context_line":"                self.db, driver_config\u003dself.configuration))"},{"line_number":124,"context_line":"        self.supported_driver_modes \u003d [const.MULTI_SVM_MODE, ]"},{"line_number":125,"context_line":"        if self.modes:"},{"line_number":126,"context_line":"            for mode in self.modes:"},{"line_number":127,"context_line":"                if mode not in self.supported_driver_modes:"},{"line_number":128,"context_line":"                    msg \u003d _(\"Generic driver doesn\u0027t support %(mode)s mode. \""}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_dfcfaf27","line":125,"updated":"2014-12-10 21:49:30.000000000","message":"It seems like this check should be in the parent class because every driver will end up needing a similar check.","commit_id":"34f35a35a52624426bc2b38959ba62a1741ebe8a"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"f56507fd78fb3bf5c03dc118aabfb51296a11a6f","unresolved":false,"context_lines":[{"line_number":122,"context_line":"            service_instance.ServiceInstanceManager("},{"line_number":123,"context_line":"                self.db, driver_config\u003dself.configuration))"},{"line_number":124,"context_line":"        self.supported_driver_modes \u003d [const.MULTI_SVM_MODE, ]"},{"line_number":125,"context_line":"        if self.modes:"},{"line_number":126,"context_line":"            for mode in self.modes:"},{"line_number":127,"context_line":"                if mode not in self.supported_driver_modes:"},{"line_number":128,"context_line":"                    msg \u003d _(\"Generic driver doesn\u0027t support %(mode)s mode. \""}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_49b3c9e8","line":125,"in_reply_to":"3a961159_dfcfaf27","updated":"2014-12-12 16:05:19.000000000","message":"Agree. \n\nneed add new method to parent class, that will expect one param - supported driver modes and do same logic.\n\nAll drivers than will be able just to call it.","commit_id":"34f35a35a52624426bc2b38959ba62a1741ebe8a"},{"author":{"_account_id":2417,"name":"Ben Swartzlander","email":"ben@swartzlander.org","username":"bswartz"},"change_message_id":"f681df024e24342823159777b61f1b15d0ac0327","unresolved":false,"context_lines":[{"line_number":131,"context_line":"                        \u0027mode\u0027: mode,"},{"line_number":132,"context_line":"                        \u0027valid_modes\u0027: self.supported_driver_modes"},{"line_number":133,"context_line":"                    })"},{"line_number":134,"context_line":"        else:"},{"line_number":135,"context_line":"            self.modes \u003d self.supported_driver_modes"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    def _ssh_exec(self, server, command):"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_1fb21794","line":134,"updated":"2014-12-10 21:49:30.000000000","message":"This should be an error if the driver supports more than 1 mode. If the drivers supports only one mode, then defaulting to that mode is probably acceptable.","commit_id":"34f35a35a52624426bc2b38959ba62a1741ebe8a"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"1cfd9ff6fa21d77265eaaf6972be11e205eaf066","unresolved":false,"context_lines":[{"line_number":131,"context_line":"                        \u0027mode\u0027: mode,"},{"line_number":132,"context_line":"                        \u0027valid_modes\u0027: self.supported_driver_modes"},{"line_number":133,"context_line":"                    })"},{"line_number":134,"context_line":"        else:"},{"line_number":135,"context_line":"            self.modes \u003d self.supported_driver_modes"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    def _ssh_exec(self, server, command):"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_1259218e","line":134,"in_reply_to":"3a961159_1fb21794","updated":"2014-12-11 07:02:24.000000000","message":"Why only one? - It is restriction of possibility, IMHO.","commit_id":"34f35a35a52624426bc2b38959ba62a1741ebe8a"}],"manila/share/manager.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"4bc01b5844ff5ead47f7a6d2c26c5b59cd6f9d60","unresolved":false,"context_lines":[{"line_number":220,"context_line":"                              parent_share_server_id)"},{"line_number":221,"context_line":"                    self.db.share_update(context, share_id,"},{"line_number":222,"context_line":"                                         {\u0027status\u0027: \u0027error\u0027})"},{"line_number":223,"context_line":"        elif share_network_id and self.driver.mode !\u003d \u0027single_svm\u0027:"},{"line_number":224,"context_line":"            try:"},{"line_number":225,"context_line":"                share_server, share_ref \u003d self._provide_share_server_for_share("},{"line_number":226,"context_line":"                    context, share_network_id, share_id)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_a7f55aee","line":223,"updated":"2014-11-24 09:58:03.000000000","message":"you defined constant in another module, use it from there.","commit_id":"20ec67af4e8bae99661c3767536ad4d38b77df46"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"841fab4c20c31e8cd700bbfb02ced830ab5638a9","unresolved":false,"context_lines":[{"line_number":221,"context_line":"                    self.db.share_update(context, share_id,"},{"line_number":222,"context_line":"                                         {\u0027status\u0027: \u0027error\u0027})"},{"line_number":223,"context_line":"        elif (share_network_id and"},{"line_number":224,"context_line":"              self.driver.mode !\u003d constants.SINGLE_SVM_MODE):"},{"line_number":225,"context_line":"            try:"},{"line_number":226,"context_line":"                share_server, share_ref \u003d self._provide_share_server_for_share("},{"line_number":227,"context_line":"                    context, share_network_id, share_id)"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a890539_37e6d3e8","line":224,"updated":"2014-11-25 11:45:55.000000000","message":"In case of \"single svm mode\" we may expect here exception. How do you think? At least warning in logs, I think.","commit_id":"1c27a80c63e694c5a9c7d71701f7cc5681d0b357"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"14419cb66944359f4d34f1c23d8e82b1ddc86d1d","unresolved":false,"context_lines":[{"line_number":221,"context_line":"                    self.db.share_update(context, share_id,"},{"line_number":222,"context_line":"                                         {\u0027status\u0027: \u0027error\u0027})"},{"line_number":223,"context_line":"        elif (share_network_id and"},{"line_number":224,"context_line":"              constants.MANAGED_MULTI_SVM_MODE in self.driver.mode):"},{"line_number":225,"context_line":"            try:"},{"line_number":226,"context_line":"                share_server, share_ref \u003d self._provide_share_server_for_share("},{"line_number":227,"context_line":"                    context, share_network_id, share_id)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a890539_646b15f1","line":224,"updated":"2014-11-26 14:23:03.000000000","message":"You do not verify value of self.driver.mode here. In case of unchanged drivers that require share network will be failures without setting of this value. We should not force all other to set new option, with update for this change.\n\nLets assume this functionality as disabled by default within driver interface. Let to change it by driver itself and by configuration.\n\nHow do you think?","commit_id":"c9757a90980bb39f14312043a1ebcdf16b20267a"}],"manila/tests/fake_driver.py":[{"author":{"_account_id":2417,"name":"Ben Swartzlander","email":"ben@swartzlander.org","username":"bswartz"},"change_message_id":"f681df024e24342823159777b61f1b15d0ac0327","unresolved":false,"context_lines":[{"line_number":29,"context_line":"        super(FakeShareDriver, self).__init__(execute\u003dself.fake_execute,"},{"line_number":30,"context_line":"                                              *args, **kwargs)"},{"line_number":31,"context_line":"        self.db \u003d mock.Mock()"},{"line_number":32,"context_line":"        self.mode \u003d [constants.MULTI_SVM_MODE, ]"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"        def share_network_update(*args, **kwargs):"},{"line_number":35,"context_line":"            pass"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_7fa5db45","line":32,"updated":"2014-12-10 21:49:30.000000000","message":"mode should not be a list, it should be a single value","commit_id":"34f35a35a52624426bc2b38959ba62a1741ebe8a"}],"manila/tests/share/drivers/test_generic.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"100592005447eb69b2d403b485d887d2e92fc14f","unresolved":false,"context_lines":[{"line_number":826,"context_line":"        self.assertEqual(ssh_output, result)"},{"line_number":827,"context_line":""},{"line_number":828,"context_line":"    @mock.patch.object(generic.service_instance, \u0027ServiceInstanceManager\u0027,"},{"line_number":829,"context_line":"                       mock.Mock())"},{"line_number":830,"context_line":"    def test_driver_mode(self):"},{"line_number":831,"context_line":"        modes \u003d [const.MANAGED_MULTI_SVM_MODE, ]"},{"line_number":832,"context_line":"        CONF.set_override(\u0027share_driver_modes\u0027, modes)"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a890539_36bd1ab2","line":829,"updated":"2014-12-03 11:08:28.000000000","message":"If you mock something, it is preferred that its call is verified. Same for other occurrences.","commit_id":"747de3c7fe67c0b11a6bfba02a66b7973c9d4025"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"f989dcded6d382897bc50e920041140136d9dda3","unresolved":false,"context_lines":[{"line_number":828,"context_line":"        )"},{"line_number":829,"context_line":"        self.assertEqual(ssh_output, result)"},{"line_number":830,"context_line":""},{"line_number":831,"context_line":"    @mock.patch.object(generic.service_instance, \u0027ServiceInstanceManager\u0027,"},{"line_number":832,"context_line":"                       mock.Mock())"},{"line_number":833,"context_line":"    def test_driver_mode(self):"},{"line_number":834,"context_line":"        modes \u003d [const.MULTI_SVM_MODE, ]"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_a2f21198","line":831,"updated":"2014-12-09 08:12:17.000000000","message":"This is already mocked on line 166.","commit_id":"14f03e0da2e3b9668cfd818d3ae16d92f54a28bf"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"ce302649b07f56570fc560c40c4ae31b7b3fd861","unresolved":false,"context_lines":[{"line_number":828,"context_line":"        )"},{"line_number":829,"context_line":"        self.assertEqual(ssh_output, result)"},{"line_number":830,"context_line":""},{"line_number":831,"context_line":"    @mock.patch.object(generic.service_instance, \u0027ServiceInstanceManager\u0027,"},{"line_number":832,"context_line":"                       mock.Mock())"},{"line_number":833,"context_line":"    def test_driver_mode(self):"},{"line_number":834,"context_line":"        modes \u003d [const.MULTI_SVM_MODE, ]"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_dd4a9e82","line":831,"in_reply_to":"3a961159_3de3a208","updated":"2014-12-09 09:03:27.000000000","message":"Ok, thanks.","commit_id":"14f03e0da2e3b9668cfd818d3ae16d92f54a28bf"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"1b74706a1d15cfde154360a57ff3cde802136863","unresolved":false,"context_lines":[{"line_number":828,"context_line":"        )"},{"line_number":829,"context_line":"        self.assertEqual(ssh_output, result)"},{"line_number":830,"context_line":""},{"line_number":831,"context_line":"    @mock.patch.object(generic.service_instance, \u0027ServiceInstanceManager\u0027,"},{"line_number":832,"context_line":"                       mock.Mock())"},{"line_number":833,"context_line":"    def test_driver_mode(self):"},{"line_number":834,"context_line":"        modes \u003d [const.MULTI_SVM_MODE, ]"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_bdbb120d","line":831,"in_reply_to":"3a961159_42732de9","updated":"2014-12-09 08:38:32.000000000","message":"Why do you needto create new instance? You can it verify using existing one without problems.","commit_id":"14f03e0da2e3b9668cfd818d3ae16d92f54a28bf"},{"author":{"_account_id":7331,"name":"Julia Varlamova","email":"jvarlamova@mirantis.com","username":"jvarlamova"},"change_message_id":"0f6675c1a2c574d4b1fab2b1d51ffa14754fcf55","unresolved":false,"context_lines":[{"line_number":828,"context_line":"        )"},{"line_number":829,"context_line":"        self.assertEqual(ssh_output, result)"},{"line_number":830,"context_line":""},{"line_number":831,"context_line":"    @mock.patch.object(generic.service_instance, \u0027ServiceInstanceManager\u0027,"},{"line_number":832,"context_line":"                       mock.Mock())"},{"line_number":833,"context_line":"    def test_driver_mode(self):"},{"line_number":834,"context_line":"        modes \u003d [const.MULTI_SVM_MODE, ]"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_42732de9","line":831,"in_reply_to":"3a961159_a2f21198","updated":"2014-12-09 08:30:48.000000000","message":"I see there is there is \"with mock...\" construction which wraps creation of GenericShareDriver instance in setUp method. But If we want to create new driver instance in test case we need to mock generic.service_instance.ServiceInstanceManager here again.","commit_id":"14f03e0da2e3b9668cfd818d3ae16d92f54a28bf"},{"author":{"_account_id":7331,"name":"Julia Varlamova","email":"jvarlamova@mirantis.com","username":"jvarlamova"},"change_message_id":"4b89346dfbf349f15a443b3c5692f5d124653085","unresolved":false,"context_lines":[{"line_number":828,"context_line":"        )"},{"line_number":829,"context_line":"        self.assertEqual(ssh_output, result)"},{"line_number":830,"context_line":""},{"line_number":831,"context_line":"    @mock.patch.object(generic.service_instance, \u0027ServiceInstanceManager\u0027,"},{"line_number":832,"context_line":"                       mock.Mock())"},{"line_number":833,"context_line":"    def test_driver_mode(self):"},{"line_number":834,"context_line":"        modes \u003d [const.MULTI_SVM_MODE, ]"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_3de3a208","line":831,"in_reply_to":"3a961159_bdbb120d","updated":"2014-12-09 08:45:43.000000000","message":"We create new instance to see how GenericShareDriver would pass with different share_driver_modes config values. The existing one was created with share_driver_modes\u003dNone value. but we want to check what will happen if set share_driver_mode \u003d multi_svm etc.","commit_id":"14f03e0da2e3b9668cfd818d3ae16d92f54a28bf"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"be40a387ec2f6062076f84a76e4dcc003ebb133b","unresolved":false,"context_lines":[{"line_number":851,"context_line":"        generic.service_instance.ServiceInstanceManager.\\"},{"line_number":852,"context_line":"            assert_called_once_with(self._db, driver_config\u003dself.fake_conf)"},{"line_number":853,"context_line":""},{"line_number":854,"context_line":"    def test_driver_mode_none(self):"},{"line_number":855,"context_line":"        modes \u003d [const.MULTI_SVM_MODE, ]"},{"line_number":856,"context_line":"        self.assertEqual(modes, self._driver.modes)"},{"line_number":857,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"3a961159_fd683af7","line":854,"updated":"2014-12-09 09:03:33.000000000","message":"Name of test is unclear. None means config opt? If yes then would be useful to update name according to this.","commit_id":"932347989ee446dc5113fd7c1715d323aa481de3"}],"manila/tests/share/test_manager.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"841fab4c20c31e8cd700bbfb02ced830ab5638a9","unresolved":false,"context_lines":[{"line_number":585,"context_line":"        shr \u003d db.share_get(self.context, share_id)"},{"line_number":586,"context_line":"        self.assertEqual(some_data, shr[\u0027export_location\u0027])"},{"line_number":587,"context_line":""},{"line_number":588,"context_line":"    def test_create_share_with_sn_id_single_svm_mode(self):"},{"line_number":589,"context_line":"        self.share_manager.driver.mode \u003d \u0027single_svm\u0027"},{"line_number":590,"context_line":"        share_net \u003d self._create_share_network()"},{"line_number":591,"context_line":"        share \u003d self._create_share(share_network_id\u003dshare_net[\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a890539_77413ba8","line":588,"updated":"2014-11-25 11:45:55.000000000","message":"See comment for manager file according to tested behavior here.","commit_id":"1c27a80c63e694c5a9c7d71701f7cc5681d0b357"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"100592005447eb69b2d403b485d887d2e92fc14f","unresolved":false,"context_lines":[{"line_number":630,"context_line":"            mock.ANY, share_ref, share_server\u003dshare_srv)"},{"line_number":631,"context_line":"        db.share_update.assert_has_called(mock.ANY, share[\u0027id\u0027],"},{"line_number":632,"context_line":"                                          export_location)"},{"line_number":633,"context_line":""},{"line_number":634,"context_line":"    def test_create_share_with_server_created(self):"},{"line_number":635,"context_line":"        \"\"\"Test share can be created and share server is created.\"\"\""},{"line_number":636,"context_line":"        share_net \u003d self._create_share_network()"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a890539_76096294","line":633,"updated":"2014-12-03 11:08:28.000000000","message":"Tests for:\n-  both modes\n- some fake mode","commit_id":"747de3c7fe67c0b11a6bfba02a66b7973c9d4025"},{"author":{"_account_id":7331,"name":"Julia Varlamova","email":"jvarlamova@mirantis.com","username":"jvarlamova"},"change_message_id":"a98dfbf152e3154b496b786edfa5ba9de40a8ae6","unresolved":false,"context_lines":[{"line_number":630,"context_line":"            mock.ANY, share_ref, share_server\u003dshare_srv)"},{"line_number":631,"context_line":"        db.share_update.assert_has_called(mock.ANY, share[\u0027id\u0027],"},{"line_number":632,"context_line":"                                          export_location)"},{"line_number":633,"context_line":""},{"line_number":634,"context_line":"    def test_create_share_with_server_created(self):"},{"line_number":635,"context_line":"        \"\"\"Test share can be created and share server is created.\"\"\""},{"line_number":636,"context_line":"        share_net \u003d self._create_share_network()"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a890539_9b2c0095","line":633,"in_reply_to":"5a890539_76096294","updated":"2014-12-04 08:49:47.000000000","message":"Seems that these tests have to be added later, with implementation of single_svm_mode. Now generic driver act the same way as before, because we still have only managed_multi_svm_mode.","commit_id":"747de3c7fe67c0b11a6bfba02a66b7973c9d4025"}]}
