)]}'
{"manila/share/drivers/glusterfs.py":[{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"f8d7cda3284b2d6b06fc2ece96b912933ef68780","unresolved":false,"context_lines":[{"line_number":163,"context_line":"            if o \u003d\u003d option:"},{"line_number":164,"context_line":"                return v"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    def gluster_version(self, minvers\u003dNone):"},{"line_number":167,"context_line":"        \"\"\"Retrieve and check GlusterFS version."},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"        :param minvers: (optional) minimum version to require"}],"source_content_type":"text/x-python","patch_set":1,"id":"9aa53dc9_1b3d582b","line":166,"updated":"2015-04-07 17:30:52.000000000","message":"The method name should reflect what it does.  I suggest something like \u0027check_gluster_version\u0027 or \u0027validate_gluster_version\u0027.","commit_id":"1fda883d30d233bca468ddbccf647c8950217fdd"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"f8d7cda3284b2d6b06fc2ece96b912933ef68780","unresolved":false,"context_lines":[{"line_number":164,"context_line":"                return v"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"    def gluster_version(self, minvers\u003dNone):"},{"line_number":167,"context_line":"        \"\"\"Retrieve and check GlusterFS version."},{"line_number":168,"context_line":""},{"line_number":169,"context_line":"        :param minvers: (optional) minimum version to require"},{"line_number":170,"context_line":"                        (given as tuple of integers, example: (3, 6))"}],"source_content_type":"text/x-python","patch_set":1,"id":"9aa53dc9_3bd25c01","line":167,"updated":"2015-04-07 17:30:52.000000000","message":"Purely as a suggestion, ideally a method should do one thing.  In this example, one would write separate methods to retrieve the gluster version and validate it.  You will often find writing unit tests a lot simpler that way.","commit_id":"1fda883d30d233bca468ddbccf647c8950217fdd"},{"author":{"_account_id":7652,"name":"Luis Pabón","email":"lpabon@gmail.com","username":"lpabon"},"change_message_id":"234fa7826f07e307b32278fdab24893972b5a575","unresolved":false,"context_lines":[{"line_number":200,"context_line":"                        \"Unsupported GlusterFS version %(version)s on server \""},{"line_number":201,"context_line":"                        \"%(server)s\") % {"},{"line_number":202,"context_line":"                        \u0027server\u0027: self.host,"},{"line_number":203,"context_line":"                        \u0027version\u0027: \u0027.\u0027.join(vers)})"},{"line_number":204,"context_line":"        return vers"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_abc61947","line":203,"updated":"2015-04-07 19:18:09.000000000","message":"The code should log which is the minimum version supported.","commit_id":"708ba9ce45fe3857c3c6d90bace613abbd5c4d68"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"6e7a3d13208d3d1fbfa275ee084666113005c6bf","unresolved":false,"context_lines":[{"line_number":200,"context_line":"                        \"Unsupported GlusterFS version %(version)s on server \""},{"line_number":201,"context_line":"                        \"%(server)s\") % {"},{"line_number":202,"context_line":"                        \u0027server\u0027: self.host,"},{"line_number":203,"context_line":"                        \u0027version\u0027: \u0027.\u0027.join(vers)})"},{"line_number":204,"context_line":"        return vers"},{"line_number":205,"context_line":""},{"line_number":206,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_99f3a69e","line":203,"in_reply_to":"9aa53dc9_abc61947","updated":"2015-04-07 22:27:03.000000000","message":"Done","commit_id":"708ba9ce45fe3857c3c6d90bace613abbd5c4d68"},{"author":{"_account_id":2417,"name":"Ben Swartzlander","email":"ben@swartzlander.org","username":"bswartz"},"change_message_id":"19ef012584b9ca733cc2ba8fbaa491d265b7fb84","unresolved":false,"context_lines":[{"line_number":164,"context_line":"            if o \u003d\u003d option:"},{"line_number":165,"context_line":"                return v"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"    def gluster_version(self, minvers\u003dNone):"},{"line_number":168,"context_line":"        \"\"\"Retrieve and check GlusterFS version."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"        :param minvers: (optional) minimum version to require"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_efb0a445","line":167,"updated":"2015-04-07 23:17:57.000000000","message":"I agree with the earlier comment. This method name should be check_gluster_version() or something with a descriptive verb.","commit_id":"1e68d499217af10348f6640bdc4d6aab5b18e42d"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"5af5eae87bc95b86ea8d18745dac95eb3af2c7d7","unresolved":false,"context_lines":[{"line_number":164,"context_line":"            if o \u003d\u003d option:"},{"line_number":165,"context_line":"                return v"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"    def gluster_version(self, minvers\u003dNone):"},{"line_number":168,"context_line":"        \"\"\"Retrieve and check GlusterFS version."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"        :param minvers: (optional) minimum version to require"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_e51b041a","line":167,"in_reply_to":"9aa53dc9_35bdb168","updated":"2015-04-08 16:44:14.000000000","message":"Csaba, a method should never serve two purposes.  So yes, please split it into a get method and a check method.  Of course, the check method could call the get method, but other code could call just one or the other as needed, and the method names will clearly indicate what they do.","commit_id":"1e68d499217af10348f6640bdc4d6aab5b18e42d"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"aad519e45eb52f7b17d1016ff1008763613dfff1","unresolved":false,"context_lines":[{"line_number":164,"context_line":"            if o \u003d\u003d option:"},{"line_number":165,"context_line":"                return v"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"    def gluster_version(self, minvers\u003dNone):"},{"line_number":168,"context_line":"        \"\"\"Retrieve and check GlusterFS version."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"        :param minvers: (optional) minimum version to require"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_49c9cb77","line":167,"in_reply_to":"9aa53dc9_c55a6150","updated":"2015-04-08 01:46:05.000000000","message":"+1","commit_id":"1e68d499217af10348f6640bdc4d6aab5b18e42d"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"f372cf14453b79b0077e26040896732926f04761","unresolved":false,"context_lines":[{"line_number":164,"context_line":"            if o \u003d\u003d option:"},{"line_number":165,"context_line":"                return v"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"    def gluster_version(self, minvers\u003dNone):"},{"line_number":168,"context_line":"        \"\"\"Retrieve and check GlusterFS version."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"        :param minvers: (optional) minimum version to require"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_35bdb168","line":167,"in_reply_to":"9aa53dc9_c55a6150","updated":"2015-04-08 12:59:03.000000000","message":"The method serves two purposes:\n\n- Just to retrieve version info without any version enforcement. That happens when you call it without arguments.\n- Retrieve version info _and_ perform a version check. That\u0027s when you call it with a minvers argument.\n\nSo:\n\n- I would not call the function \"check_gluster_version\" as it would not be appropriate for the retrieve only operation.\n- Having minvers default to something other than None would break the retrieve only mode.\n- In particular, I refrain from hard-wiring GLUSTERFS_VERSION_MIN to GlusterManager, as this class is also used in the glusterfs_native driver where the version requirement differs. There is no reason to distinguish the use case of this class in this driver at the expense of the use case in the other driver.\n\nWhat do you suggest?\nShould I split this function in two according to the two modes? Or just a more comprehensive docstring would do the job? Wrt. usage of the GlusterManager class in multiple drivers, probably the class could be moved out to some utils-kinda module, but then probably it\u0027s better to do in a later commit -- now I\u0027d like to keep the impact minimal.","commit_id":"1e68d499217af10348f6640bdc4d6aab5b18e42d"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"67dafebfbd1698f4123ca305ccbc5103104cf236","unresolved":false,"context_lines":[{"line_number":164,"context_line":"            if o \u003d\u003d option:"},{"line_number":165,"context_line":"                return v"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"    def gluster_version(self, minvers\u003dNone):"},{"line_number":168,"context_line":"        \"\"\"Retrieve and check GlusterFS version."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"        :param minvers: (optional) minimum version to require"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_08f6fdd6","line":167,"in_reply_to":"9aa53dc9_e51b041a","updated":"2015-04-08 16:59:36.000000000","message":"Done","commit_id":"1e68d499217af10348f6640bdc4d6aab5b18e42d"},{"author":{"_account_id":6116,"name":"li,chen","email":"shchenli@cn.ibm.com","username":"chen-li"},"change_message_id":"ba05d2a7ab67acfc4dfbe9111c2cbb016438180f","unresolved":false,"context_lines":[{"line_number":164,"context_line":"            if o \u003d\u003d option:"},{"line_number":165,"context_line":"                return v"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"    def gluster_version(self, minvers\u003dNone):"},{"line_number":168,"context_line":"        \"\"\"Retrieve and check GlusterFS version."},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"        :param minvers: (optional) minimum version to require"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_c55a6150","line":167,"in_reply_to":"9aa53dc9_efb0a445","updated":"2015-04-08 01:26:27.000000000","message":"+1\n\n\nOne question:\n\nWhy not let the default value for minvers \u003d\u003d GLUSTERFS_VERSION_MIN ? Any special concerns for that ?","commit_id":"1e68d499217af10348f6640bdc4d6aab5b18e42d"},{"author":{"_account_id":8056,"name":"Ramana Raja","email":"rraja@redhat.com","username":"Ram_Raja"},"change_message_id":"a15a4b0d08ab030a7e57ecfbe7d9b6869f921a8e","unresolved":false,"context_lines":[{"line_number":176,"context_line":"        except exception.ProcessExecutionError as exc:"},{"line_number":177,"context_line":"            raise exception.GlusterfsException("},{"line_number":178,"context_line":"                _(\"\u0027gluster version\u0027 failed on server \""},{"line_number":179,"context_line":"                  \"%(server)s: %(message)\"),"},{"line_number":180,"context_line":"                {\u0027server\u0027: self.host, \u0027message\u0027: exc.message})"},{"line_number":181,"context_line":"        try:"},{"line_number":182,"context_line":"            owords \u003d out.split()"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_d8bd9fd8","line":179,"updated":"2015-04-08 09:39:00.000000000","message":"Use % instead of ,","commit_id":"1e68d499217af10348f6640bdc4d6aab5b18e42d"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"67dafebfbd1698f4123ca305ccbc5103104cf236","unresolved":false,"context_lines":[{"line_number":176,"context_line":"        except exception.ProcessExecutionError as exc:"},{"line_number":177,"context_line":"            raise exception.GlusterfsException("},{"line_number":178,"context_line":"                _(\"\u0027gluster version\u0027 failed on server \""},{"line_number":179,"context_line":"                  \"%(server)s: %(message)\"),"},{"line_number":180,"context_line":"                {\u0027server\u0027: self.host, \u0027message\u0027: exc.message})"},{"line_number":181,"context_line":"        try:"},{"line_number":182,"context_line":"            owords \u003d out.split()"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_48b885e5","line":179,"in_reply_to":"9aa53dc9_d8bd9fd8","updated":"2015-04-08 16:59:36.000000000","message":"Done","commit_id":"1e68d499217af10348f6640bdc4d6aab5b18e42d"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"aad519e45eb52f7b17d1016ff1008763613dfff1","unresolved":false,"context_lines":[{"line_number":188,"context_line":"            else:"},{"line_number":189,"context_line":"                subverslen \u003d 2"},{"line_number":190,"context_line":"            for i in range(subverslen):"},{"line_number":191,"context_line":"                int(vers[i])"},{"line_number":192,"context_line":"        except Exception:"},{"line_number":193,"context_line":"            raise exception.GlusterfsException("},{"line_number":194,"context_line":"                _(\"Cannot parse version info obtained from server \""}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_29a9e77b","line":191,"updated":"2015-04-08 01:46:05.000000000","message":"What purpose does this for loop serve?  It seems to have no effect.","commit_id":"1e68d499217af10348f6640bdc4d6aab5b18e42d"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"f372cf14453b79b0077e26040896732926f04761","unresolved":false,"context_lines":[{"line_number":188,"context_line":"            else:"},{"line_number":189,"context_line":"                subverslen \u003d 2"},{"line_number":190,"context_line":"            for i in range(subverslen):"},{"line_number":191,"context_line":"                int(vers[i])"},{"line_number":192,"context_line":"        except Exception:"},{"line_number":193,"context_line":"            raise exception.GlusterfsException("},{"line_number":194,"context_line":"                _(\"Cannot parse version info obtained from server \""}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_95211db7","line":191,"in_reply_to":"9aa53dc9_29a9e77b","updated":"2015-04-08 12:59:03.000000000","message":"It\u0027s a format check. It does have an effect, as int() is not a pure function -- might raise a ValueError if the format is not appropriate (ie. sequence of digits).\n\nI do want an exception raised here on improper format, so I used this instead of the non-side-effecty vers[i].isdigit().\n\nIn case you\u0027d wonder about it, I also give rational for using exceptions as a means to flow control: the core/stdlib functions/methods/constructs used in parsing the incoming raw strings are subject to throwing exceptions on unexpected input, so I think the easiest approach is just to lump them all under a \"try\" clause, have them raise whatever exception they want to raise, and handle the exception by re-raising it as GlusterfsException. It\u0027s easier -- and actually, less error prone by virtue of being less redundant -- than manually do format check on the data in each step and manually raise exceptions if the format check fails. (Also, we don\u0027t want to bother with distinguishing the various possible format issues.)","commit_id":"1e68d499217af10348f6640bdc4d6aab5b18e42d"},{"author":{"_account_id":8056,"name":"Ramana Raja","email":"rraja@redhat.com","username":"Ram_Raja"},"change_message_id":"a15a4b0d08ab030a7e57ecfbe7d9b6869f921a8e","unresolved":false,"context_lines":[{"line_number":193,"context_line":"            raise exception.GlusterfsException("},{"line_number":194,"context_line":"                _(\"Cannot parse version info obtained from server \""},{"line_number":195,"context_line":"                  \"%(server)s with minimum version required: %(minvers)s, \""},{"line_number":196,"context_line":"                  \"version info: %(info)s\"),"},{"line_number":197,"context_line":"                {\u0027server\u0027: self.host, \u0027minvers\u0027: minvers, \u0027info\u0027: out})"},{"line_number":198,"context_line":"        if minvers and self.numreduct(vers) \u003c minvers:"},{"line_number":199,"context_line":"            raise exception.GlusterfsException(_("}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_e3d3185e","line":196,"updated":"2015-04-08 09:39:00.000000000","message":"Use \u0027 %\u0027 instead of \u0027,\u0027 here.","commit_id":"1e68d499217af10348f6640bdc4d6aab5b18e42d"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"67dafebfbd1698f4123ca305ccbc5103104cf236","unresolved":false,"context_lines":[{"line_number":193,"context_line":"            raise exception.GlusterfsException("},{"line_number":194,"context_line":"                _(\"Cannot parse version info obtained from server \""},{"line_number":195,"context_line":"                  \"%(server)s with minimum version required: %(minvers)s, \""},{"line_number":196,"context_line":"                  \"version info: %(info)s\"),"},{"line_number":197,"context_line":"                {\u0027server\u0027: self.host, \u0027minvers\u0027: minvers, \u0027info\u0027: out})"},{"line_number":198,"context_line":"        if minvers and self.numreduct(vers) \u003c minvers:"},{"line_number":199,"context_line":"            raise exception.GlusterfsException(_("}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_6827c964","line":196,"in_reply_to":"9aa53dc9_e3d3185e","updated":"2015-04-08 16:59:36.000000000","message":"Done","commit_id":"1e68d499217af10348f6640bdc4d6aab5b18e42d"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"aad519e45eb52f7b17d1016ff1008763613dfff1","unresolved":false,"context_lines":[{"line_number":209,"context_line":"        \"\"\"The numeric reduct of a tuple of strings."},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"        That is, applying an integer conversion map on the longest"},{"line_number":212,"context_line":"        initial segment of vers which consists of numerals."},{"line_number":213,"context_line":"        \"\"\""},{"line_number":214,"context_line":"        numvers \u003d []"},{"line_number":215,"context_line":"        for c in vers:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_4921cbfa","line":212,"updated":"2015-04-08 01:46:05.000000000","message":"Is the \"initial segment\" qualifier really necessary in your case?  If not, you could replace this whole method with a simple comprehension:\n\ntuple(int(i) for i in vers if i.isdigit())","commit_id":"1e68d499217af10348f6640bdc4d6aab5b18e42d"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"67dafebfbd1698f4123ca305ccbc5103104cf236","unresolved":false,"context_lines":[{"line_number":209,"context_line":"        \"\"\"The numeric reduct of a tuple of strings."},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"        That is, applying an integer conversion map on the longest"},{"line_number":212,"context_line":"        initial segment of vers which consists of numerals."},{"line_number":213,"context_line":"        \"\"\""},{"line_number":214,"context_line":"        numvers \u003d []"},{"line_number":215,"context_line":"        for c in vers:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_482ac52d","line":212,"in_reply_to":"9aa53dc9_13f3e0d7","updated":"2015-04-08 16:59:36.000000000","message":"Done","commit_id":"1e68d499217af10348f6640bdc4d6aab5b18e42d"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"f372cf14453b79b0077e26040896732926f04761","unresolved":false,"context_lines":[{"line_number":209,"context_line":"        \"\"\"The numeric reduct of a tuple of strings."},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"        That is, applying an integer conversion map on the longest"},{"line_number":212,"context_line":"        initial segment of vers which consists of numerals."},{"line_number":213,"context_line":"        \"\"\""},{"line_number":214,"context_line":"        numvers \u003d []"},{"line_number":215,"context_line":"        for c in vers:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_13f3e0d7","line":212,"in_reply_to":"9aa53dc9_4921cbfa","updated":"2015-04-08 12:59:03.000000000","message":"Yes, it\u0027s necessary. In comparing two sequences of version qualifiers, I\u0027d like to compare only up to the point where we have pure numeric data.\n\nEg. if the version string were \"3.6.3beta.5\" -- parsed into (\u00273\u0027, \u00276\u0027, \u00273beta\u0027, \u00275\u0027) -- then the method you suggest would lose a digit by reducing it to (3, 6, 5) which would be considered greater than \"3.6.4\" (parsed/reduced to: (\u00273\u0027, \u00276\u0027, \u00274\u0027), (3, 6, 4)).\n\nWe could have a logic to separate stuff like \"3beta\" into a numeric part and a qualifier, and if latter is present, then decrease the numeric value and count it as, say, 2.9 -- but I did not want to go that far; I think it suffices to take the numeric values from the beginning, as long as they are unambiguous.","commit_id":"1e68d499217af10348f6640bdc4d6aab5b18e42d"},{"author":{"_account_id":6116,"name":"li,chen","email":"shchenli@cn.ibm.com","username":"chen-li"},"change_message_id":"ba05d2a7ab67acfc4dfbe9111c2cbb016438180f","unresolved":false,"context_lines":[{"line_number":246,"context_line":"            self.configuration.glusterfs_path_to_private_key,"},{"line_number":247,"context_line":"            self.configuration.glusterfs_server_password,"},{"line_number":248,"context_line":"        )"},{"line_number":249,"context_line":"        self.gluster_manager.gluster_version(minvers\u003dGLUSTERFS_VERSION_MIN)"},{"line_number":250,"context_line":"        try:"},{"line_number":251,"context_line":"            self._execute(\u0027mount.glusterfs\u0027, check_exit_code\u003dFalse)"},{"line_number":252,"context_line":"        except OSError as exc:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_496d4b97","line":249,"updated":"2015-04-08 01:26:27.000000000","message":"why not let \n\n    self.glusterfs_versions \u003d self.gluster_manager.gluster_version()\n\nSame as glusterfs_native.py.\n\n\n\nQuestions:\nI\u0027m a little confused here about class GlusterManager  and class GlusterfsShareDriver \u0026 GlusterfsNativeShareDriver.\n\nIn line 167 for GlusterfsNativeShareDriver:\n\n    glusterfs_versions[srvaddr] \u003d gluster_mgr.gluster_version()\n\nSo, both GlusterfsxxDriver would use and call \"GlusterManager\", why not put the glusterfs_versions in GlusterManager ?\n\nWhy not make \"GlusterManager\" a base class for  “GlusterfsShareDriver” \u0026 ”GlusterfsNativeShareDriver“  ?","commit_id":"1e68d499217af10348f6640bdc4d6aab5b18e42d"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"f372cf14453b79b0077e26040896732926f04761","unresolved":false,"context_lines":[{"line_number":246,"context_line":"            self.configuration.glusterfs_path_to_private_key,"},{"line_number":247,"context_line":"            self.configuration.glusterfs_server_password,"},{"line_number":248,"context_line":"        )"},{"line_number":249,"context_line":"        self.gluster_manager.gluster_version(minvers\u003dGLUSTERFS_VERSION_MIN)"},{"line_number":250,"context_line":"        try:"},{"line_number":251,"context_line":"            self._execute(\u0027mount.glusterfs\u0027, check_exit_code\u003dFalse)"},{"line_number":252,"context_line":"        except OSError as exc:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_7cb8b9e5","line":249,"in_reply_to":"9aa53dc9_496d4b97","updated":"2015-04-08 12:59:03.000000000","message":"We are not interested in storing the GlusterFS version, as it has no significance here beyond of a single point decision whether we can go on with it or not.\n\nAs the minvers param is provided for gluster_version, it does the required format check internally. We perform this call only for the possible side effect (raising a GlusterfsException), the return value can be discarded.\n\nAs of the GlusterfsNativeShareDriver case: there the driver deals a dynamic set of gluster servers. How that would be part of GlusterManager?\nThe glusterfs_versions you refer to is a dict specific to the driver instance to keep track of the versions of the individual servers (which data is made use of in create_snapshot).\n\nAs of class structure: GlusterManager is a resource class, that provides methods and uitilites to interact with a gluster server. Glusterfs{,Native}ShareDriver are driver classes that implement the Manila storage driver callbacks. These I see inherently different type of things, so I don\u0027t see the point of trying to merge them. Also note that the relation between GlusterfsShareDriver and GlusterManager instances are one-to-one, but between GlusterfsNativeShareDriver and GlusterManager instances are one-to-many. Regarding future directions: we plan to introduce a \"share layout\" abstraction which could be a matter of choice in the gluster driver family (ie. the above said association schemes between drivers and manager instances would not be bound to the driver, rather would be determined by configuration). In that effort the driver and manager instances will be indeed more detached from each other than they are now.","commit_id":"1e68d499217af10348f6640bdc4d6aab5b18e42d"},{"author":{"_account_id":6116,"name":"li,chen","email":"shchenli@cn.ibm.com","username":"chen-li"},"change_message_id":"42643008103763091a5a132f64a004ef206635c9","unresolved":false,"context_lines":[{"line_number":246,"context_line":"            self.configuration.glusterfs_path_to_private_key,"},{"line_number":247,"context_line":"            self.configuration.glusterfs_server_password,"},{"line_number":248,"context_line":"        )"},{"line_number":249,"context_line":"        self.gluster_manager.gluster_version(minvers\u003dGLUSTERFS_VERSION_MIN)"},{"line_number":250,"context_line":"        try:"},{"line_number":251,"context_line":"            self._execute(\u0027mount.glusterfs\u0027, check_exit_code\u003dFalse)"},{"line_number":252,"context_line":"        except OSError as exc:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_e8a71ebb","line":249,"in_reply_to":"9aa53dc9_7cb8b9e5","updated":"2015-04-09 23:55:57.000000000","message":"Thanks very much for the explaination!","commit_id":"1e68d499217af10348f6640bdc4d6aab5b18e42d"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"37f27bbf501041ec4fd793aaede933cae7f1688d","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        except exception.ProcessExecutionError as exc:"},{"line_number":175,"context_line":"            raise exception.GlusterfsException("},{"line_number":176,"context_line":"                _(\"\u0027gluster version\u0027 failed on server \""},{"line_number":177,"context_line":"                  \"%(server)s: %(message)\") %"},{"line_number":178,"context_line":"                {\u0027server\u0027: self.host, \u0027message\u0027: exc.message})"},{"line_number":179,"context_line":"        try:"},{"line_number":180,"context_line":"            owords \u003d out.split()"}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_d5953c87","line":177,"updated":"2015-04-09 03:20:30.000000000","message":"%(message)s\n\nThis bug points to a gap in unit test coverage.  This except block isn\u0027t covered.  Please add a unit test for it.","commit_id":"834918ca32e8a81fee76ecb901e93f79ca3d51e2"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"a50d74fb9b1feac5ff9142ec13dbc650b64e5350","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        except exception.ProcessExecutionError as exc:"},{"line_number":175,"context_line":"            raise exception.GlusterfsException("},{"line_number":176,"context_line":"                _(\"\u0027gluster version\u0027 failed on server \""},{"line_number":177,"context_line":"                  \"%(server)s: %(message)\") %"},{"line_number":178,"context_line":"                {\u0027server\u0027: self.host, \u0027message\u0027: exc.message})"},{"line_number":179,"context_line":"        try:"},{"line_number":180,"context_line":"            owords \u003d out.split()"}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_9bbd91b9","line":177,"in_reply_to":"9aa53dc9_d5953c87","updated":"2015-04-09 13:55:00.000000000","message":"Clinton, you are absolutely correct about coverage; however, this formatting mistake would not be caught by unit tests, as excess keys in the substitution dict are tolerated.\n\nDone.","commit_id":"834918ca32e8a81fee76ecb901e93f79ca3d51e2"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"37f27bbf501041ec4fd793aaede933cae7f1688d","unresolved":false,"context_lines":[{"line_number":204,"context_line":"                \"%(server)s, minimum requirement: %(minvers)s\") % {"},{"line_number":205,"context_line":"                \u0027server\u0027: self.host,"},{"line_number":206,"context_line":"                \u0027version\u0027: \u0027.\u0027.join(vers),"},{"line_number":207,"context_line":"                \u0027minvers\u0027: \u0027.\u0027.join(str(c) for c in minvers)})"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"    @staticmethod"},{"line_number":210,"context_line":"    def numreduct(vers):"}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_b5e51839","line":207,"updated":"2015-04-09 03:20:30.000000000","message":"Please use six.text_type instead of str","commit_id":"834918ca32e8a81fee76ecb901e93f79ca3d51e2"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"a50d74fb9b1feac5ff9142ec13dbc650b64e5350","unresolved":false,"context_lines":[{"line_number":204,"context_line":"                \"%(server)s, minimum requirement: %(minvers)s\") % {"},{"line_number":205,"context_line":"                \u0027server\u0027: self.host,"},{"line_number":206,"context_line":"                \u0027version\u0027: \u0027.\u0027.join(vers),"},{"line_number":207,"context_line":"                \u0027minvers\u0027: \u0027.\u0027.join(str(c) for c in minvers)})"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"    @staticmethod"},{"line_number":210,"context_line":"    def numreduct(vers):"}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_aa32455d","line":207,"in_reply_to":"9aa53dc9_b5e51839","updated":"2015-04-09 13:55:00.000000000","message":"Done","commit_id":"834918ca32e8a81fee76ecb901e93f79ca3d51e2"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"37f27bbf501041ec4fd793aaede933cae7f1688d","unresolved":false,"context_lines":[{"line_number":217,"context_line":"        for c in vers:"},{"line_number":218,"context_line":"            try:"},{"line_number":219,"context_line":"                numvers.append(int(c))"},{"line_number":220,"context_line":"            except ValueError:"},{"line_number":221,"context_line":"                break"},{"line_number":222,"context_line":"        return tuple(numvers)"},{"line_number":223,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_b5c63866","line":220,"updated":"2015-04-09 03:20:30.000000000","message":"This except block isn\u0027t hit by any of your unit tests.  Please add more data to existing tests or a separate unit test for this method.","commit_id":"834918ca32e8a81fee76ecb901e93f79ca3d51e2"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"a50d74fb9b1feac5ff9142ec13dbc650b64e5350","unresolved":false,"context_lines":[{"line_number":217,"context_line":"        for c in vers:"},{"line_number":218,"context_line":"            try:"},{"line_number":219,"context_line":"                numvers.append(int(c))"},{"line_number":220,"context_line":"            except ValueError:"},{"line_number":221,"context_line":"                break"},{"line_number":222,"context_line":"        return tuple(numvers)"},{"line_number":223,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_f5bcae07","line":220,"in_reply_to":"9aa53dc9_b5c63866","updated":"2015-04-09 13:55:00.000000000","message":"Done","commit_id":"834918ca32e8a81fee76ecb901e93f79ca3d51e2"}],"manila/share/drivers/glusterfs_native.py":[{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"f8d7cda3284b2d6b06fc2ece96b912933ef68780","unresolved":false,"context_lines":[{"line_number":621,"context_line":"        if opret \u003d\u003d -1:"},{"line_number":622,"context_line":"            vers \u003d self.glusterfs_versions[vol]"},{"line_number":623,"context_line":"            if vers[0] \u003d\u003d \u00273\u0027 and int(vers[1]) \u003e 6:"},{"line_number":624,"context_line":"                # This logic has not yet been implemented in GlusterFS 3.6"},{"line_number":625,"context_line":"                if operrno \u003d\u003d 0:"},{"line_number":626,"context_line":"                    self.gluster_nosnap_vols_dict[vol] \u003d operrstr"},{"line_number":627,"context_line":"                    msg \u003d _(\"Share %(share_id)s does not support snapshots: \""}],"source_content_type":"text/x-python","patch_set":1,"id":"9aa53dc9_9b360802","line":624,"updated":"2015-04-07 17:30:52.000000000","message":"The comment says not in 3.6, but the code says higher than 3.6.  What are you trying to do here?\n\nAlso, you can use Python tuple comparison of integer tuples.  Then your logic wouldn\u0027t break with 4.0 or later versions.","commit_id":"1fda883d30d233bca468ddbccf647c8950217fdd"},{"author":{"_account_id":7652,"name":"Luis Pabón","email":"lpabon@gmail.com","username":"lpabon"},"change_message_id":"234fa7826f07e307b32278fdab24893972b5a575","unresolved":false,"context_lines":[{"line_number":175,"context_line":"                \u0027,\u0027.join(exceptions.keys())))"},{"line_number":176,"context_line":"        notsupp_servers \u003d []"},{"line_number":177,"context_line":"        for srvaddr, vers in six.iteritems(glusterfs_versions):"},{"line_number":178,"context_line":"            if int(vers[0]) \u003c 3 or int(vers[1]) \u003c 6:"},{"line_number":179,"context_line":"                notsupp_servers.append(srvaddr)"},{"line_number":180,"context_line":"        if notsupp_servers:"},{"line_number":181,"context_line":"            for srvaddr in notsupp_servers:"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_2b1689a7","line":178,"updated":"2015-04-07 19:18:09.000000000","message":"These values should probably be very easy to find. For example, make them globals: GLUSTERFS_VERSION_MAJOR and GLUSTER_VERSION_MINOR, then have a GLUSTERFS_VERSION \u003d (GLUSTERFS_VERSION_MAJOR, GLUSTERFS_MAJOR_MINOR).","commit_id":"708ba9ce45fe3857c3c6d90bace613abbd5c4d68"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"6e7a3d13208d3d1fbfa275ee084666113005c6bf","unresolved":false,"context_lines":[{"line_number":175,"context_line":"                \u0027,\u0027.join(exceptions.keys())))"},{"line_number":176,"context_line":"        notsupp_servers \u003d []"},{"line_number":177,"context_line":"        for srvaddr, vers in six.iteritems(glusterfs_versions):"},{"line_number":178,"context_line":"            if int(vers[0]) \u003c 3 or int(vers[1]) \u003c 6:"},{"line_number":179,"context_line":"                notsupp_servers.append(srvaddr)"},{"line_number":180,"context_line":"        if notsupp_servers:"},{"line_number":181,"context_line":"            for srvaddr in notsupp_servers:"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_7916a2f2","line":178,"in_reply_to":"9aa53dc9_2b1689a7","updated":"2015-04-07 22:27:03.000000000","message":"Done","commit_id":"708ba9ce45fe3857c3c6d90bace613abbd5c4d68"},{"author":{"_account_id":7652,"name":"Luis Pabón","email":"lpabon@gmail.com","username":"lpabon"},"change_message_id":"234fa7826f07e307b32278fdab24893972b5a575","unresolved":false,"context_lines":[{"line_number":180,"context_line":"        if notsupp_servers:"},{"line_number":181,"context_line":"            for srvaddr in notsupp_servers:"},{"line_number":182,"context_line":"                LOG.error(_LE(\"GlusterFS version %(version)s on server \""},{"line_number":183,"context_line":"                              \"%(server)s is not supported\"),"},{"line_number":184,"context_line":"                          {\u0027server\u0027: srvaddr,"},{"line_number":185,"context_line":"                           \u0027version\u0027: \u0027.\u0027.join(glusterfs_versions[srvaddr])})"},{"line_number":186,"context_line":"            raise exception.GlusterfsException(_("}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_0b0d0590","line":183,"updated":"2015-04-07 19:18:09.000000000","message":"Show which version they should have as minimum.","commit_id":"708ba9ce45fe3857c3c6d90bace613abbd5c4d68"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"6e7a3d13208d3d1fbfa275ee084666113005c6bf","unresolved":false,"context_lines":[{"line_number":180,"context_line":"        if notsupp_servers:"},{"line_number":181,"context_line":"            for srvaddr in notsupp_servers:"},{"line_number":182,"context_line":"                LOG.error(_LE(\"GlusterFS version %(version)s on server \""},{"line_number":183,"context_line":"                              \"%(server)s is not supported\"),"},{"line_number":184,"context_line":"                          {\u0027server\u0027: srvaddr,"},{"line_number":185,"context_line":"                           \u0027version\u0027: \u0027.\u0027.join(glusterfs_versions[srvaddr])})"},{"line_number":186,"context_line":"            raise exception.GlusterfsException(_("}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_59d4fe1e","line":183,"in_reply_to":"9aa53dc9_0b0d0590","updated":"2015-04-07 22:27:03.000000000","message":"Done","commit_id":"708ba9ce45fe3857c3c6d90bace613abbd5c4d68"},{"author":{"_account_id":7652,"name":"Luis Pabón","email":"lpabon@gmail.com","username":"lpabon"},"change_message_id":"234fa7826f07e307b32278fdab24893972b5a575","unresolved":false,"context_lines":[{"line_number":621,"context_line":""},{"line_number":622,"context_line":"        if opret \u003d\u003d -1:"},{"line_number":623,"context_line":"            vers \u003d self.glusterfs_versions[vol]"},{"line_number":624,"context_line":"            if vers[0] \u003d\u003d \u00273\u0027 and int(vers[1]) \u003e 6:"},{"line_number":625,"context_line":"                # This logic has not yet been implemented in GlusterFS 3.6"},{"line_number":626,"context_line":"                if operrno \u003d\u003d 0:"},{"line_number":627,"context_line":"                    self.gluster_nosnap_vols_dict[vol] \u003d operrstr"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_eb0f8186","line":624,"updated":"2015-04-07 19:18:09.000000000","message":"Same here.","commit_id":"708ba9ce45fe3857c3c6d90bace613abbd5c4d68"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"6e7a3d13208d3d1fbfa275ee084666113005c6bf","unresolved":false,"context_lines":[{"line_number":621,"context_line":""},{"line_number":622,"context_line":"        if opret \u003d\u003d -1:"},{"line_number":623,"context_line":"            vers \u003d self.glusterfs_versions[vol]"},{"line_number":624,"context_line":"            if vers[0] \u003d\u003d \u00273\u0027 and int(vers[1]) \u003e 6:"},{"line_number":625,"context_line":"                # This logic has not yet been implemented in GlusterFS 3.6"},{"line_number":626,"context_line":"                if operrno \u003d\u003d 0:"},{"line_number":627,"context_line":"                    self.gluster_nosnap_vols_dict[vol] \u003d operrstr"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_19e8b6b3","line":624,"in_reply_to":"9aa53dc9_eb0f8186","updated":"2015-04-07 22:27:03.000000000","message":"I switched to an aux routine in the comparison to make it visually less challenging.\n\nHowever, I still stick with using a numeric literal in the comparison, as it presents a condition specific to this feature, independent of the overall version requirement (even if the same value appears).","commit_id":"708ba9ce45fe3857c3c6d90bace613abbd5c4d68"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"37f27bbf501041ec4fd793aaede933cae7f1688d","unresolved":false,"context_lines":[{"line_number":166,"context_line":"        for srvaddr, gluster_mgr in six.iteritems(self.glusterfs_servers):"},{"line_number":167,"context_line":"            try:"},{"line_number":168,"context_line":"                glusterfs_versions[srvaddr] \u003d gluster_mgr.get_gluster_version()"},{"line_number":169,"context_line":"            except exception.GlusterfsException as exc:"},{"line_number":170,"context_line":"                exceptions[srvaddr] \u003d exc.message"},{"line_number":171,"context_line":"        if exceptions:"},{"line_number":172,"context_line":"            for srvaddr, excmsg in six.iteritems(exceptions):"}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_3597c83b","line":169,"updated":"2015-04-09 03:20:30.000000000","message":"This except block is not hit by unit tests because get_gluster_version is not mocked to raise an exception.  This also causes the next several lines to be missed by unit tests, which would have exposed the below substitution bugs.  Please ensure full coverage for this method.","commit_id":"834918ca32e8a81fee76ecb901e93f79ca3d51e2"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"a50d74fb9b1feac5ff9142ec13dbc650b64e5350","unresolved":false,"context_lines":[{"line_number":166,"context_line":"        for srvaddr, gluster_mgr in six.iteritems(self.glusterfs_servers):"},{"line_number":167,"context_line":"            try:"},{"line_number":168,"context_line":"                glusterfs_versions[srvaddr] \u003d gluster_mgr.get_gluster_version()"},{"line_number":169,"context_line":"            except exception.GlusterfsException as exc:"},{"line_number":170,"context_line":"                exceptions[srvaddr] \u003d exc.message"},{"line_number":171,"context_line":"        if exceptions:"},{"line_number":172,"context_line":"            for srvaddr, excmsg in six.iteritems(exceptions):"}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_9be471e1","line":169,"in_reply_to":"9aa53dc9_3597c83b","updated":"2015-04-09 13:55:00.000000000","message":"Done","commit_id":"834918ca32e8a81fee76ecb901e93f79ca3d51e2"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"37f27bbf501041ec4fd793aaede933cae7f1688d","unresolved":false,"context_lines":[{"line_number":171,"context_line":"        if exceptions:"},{"line_number":172,"context_line":"            for srvaddr, excmsg in six.iteritems(exceptions):"},{"line_number":173,"context_line":"                LOG.error(_LE(\"\u0027gluster version\u0027 failed on server \""},{"line_number":174,"context_line":"                              \"%(server)s with %(exception)s: %(message)\"),"},{"line_number":175,"context_line":"                          {\u0027server\u0027: srvaddr, \u0027message\u0027: excmsg})"},{"line_number":176,"context_line":"            raise exception.GlusterfsException(_("},{"line_number":177,"context_line":"                \"\u0027gluster version\u0027 failed on servers %s\") % ("}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_553ecc8c","line":174,"updated":"2015-04-09 03:20:30.000000000","message":"\u0027exception\u0027 is missing from your substitution dictionary.\n\nAlso: %(message)s","commit_id":"834918ca32e8a81fee76ecb901e93f79ca3d51e2"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"a50d74fb9b1feac5ff9142ec13dbc650b64e5350","unresolved":false,"context_lines":[{"line_number":171,"context_line":"        if exceptions:"},{"line_number":172,"context_line":"            for srvaddr, excmsg in six.iteritems(exceptions):"},{"line_number":173,"context_line":"                LOG.error(_LE(\"\u0027gluster version\u0027 failed on server \""},{"line_number":174,"context_line":"                              \"%(server)s with %(exception)s: %(message)\"),"},{"line_number":175,"context_line":"                          {\u0027server\u0027: srvaddr, \u0027message\u0027: excmsg})"},{"line_number":176,"context_line":"            raise exception.GlusterfsException(_("},{"line_number":177,"context_line":"                \"\u0027gluster version\u0027 failed on servers %s\") % ("}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_7be52dda","line":174,"in_reply_to":"9aa53dc9_553ecc8c","updated":"2015-04-09 13:55:00.000000000","message":"Done","commit_id":"834918ca32e8a81fee76ecb901e93f79ca3d51e2"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"37f27bbf501041ec4fd793aaede933cae7f1688d","unresolved":false,"context_lines":[{"line_number":183,"context_line":"                notsupp_servers.append(srvaddr)"},{"line_number":184,"context_line":"        if notsupp_servers:"},{"line_number":185,"context_line":"            gluster_version_min_str \u003d \u0027.\u0027.join("},{"line_number":186,"context_line":"                str(c) for c in GLUSTERFS_VERSION_MIN)"},{"line_number":187,"context_line":"            for srvaddr in notsupp_servers:"},{"line_number":188,"context_line":"                LOG.error(_LE(\"GlusterFS version %(version)s on server \""},{"line_number":189,"context_line":"                              \"%(server)s is not supported, \""}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_d54adc25","line":186,"updated":"2015-04-09 03:20:30.000000000","message":"six.text_type","commit_id":"834918ca32e8a81fee76ecb901e93f79ca3d51e2"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"a50d74fb9b1feac5ff9142ec13dbc650b64e5350","unresolved":false,"context_lines":[{"line_number":183,"context_line":"                notsupp_servers.append(srvaddr)"},{"line_number":184,"context_line":"        if notsupp_servers:"},{"line_number":185,"context_line":"            gluster_version_min_str \u003d \u0027.\u0027.join("},{"line_number":186,"context_line":"                str(c) for c in GLUSTERFS_VERSION_MIN)"},{"line_number":187,"context_line":"            for srvaddr in notsupp_servers:"},{"line_number":188,"context_line":"                LOG.error(_LE(\"GlusterFS version %(version)s on server \""},{"line_number":189,"context_line":"                              \"%(server)s is not supported, \""}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa53dc9_d5676ab5","line":186,"in_reply_to":"9aa53dc9_d54adc25","updated":"2015-04-09 13:55:00.000000000","message":"Done","commit_id":"834918ca32e8a81fee76ecb901e93f79ca3d51e2"},{"author":{"_account_id":2417,"name":"Ben Swartzlander","email":"ben@swartzlander.org","username":"bswartz"},"change_message_id":"ec7ef93912ac520502cd2c69cc5bca5e0261f715","unresolved":false,"context_lines":[{"line_number":171,"context_line":"        if exceptions:"},{"line_number":172,"context_line":"            for srvaddr, excmsg in six.iteritems(exceptions):"},{"line_number":173,"context_line":"                LOG.error(_LE(\"\u0027gluster version\u0027 failed on server \""},{"line_number":174,"context_line":"                              \"%(server)s with: %(message)\"),"},{"line_number":175,"context_line":"                          {\u0027server\u0027: srvaddr, \u0027message\u0027: excmsg})"},{"line_number":176,"context_line":"            raise exception.GlusterfsException(_("},{"line_number":177,"context_line":"                \"\u0027gluster version\u0027 failed on servers %s\") % ("}],"source_content_type":"text/x-python","patch_set":5,"id":"9aa53dc9_cdda3e4c","line":174,"updated":"2015-04-09 14:51:43.000000000","message":"%(message)s","commit_id":"fdaf516658554fc69da7f9db47dc0dda254ee2e3"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"1504a65ffbbd604c9988c203f8114fcf34c944a4","unresolved":false,"context_lines":[{"line_number":171,"context_line":"        if exceptions:"},{"line_number":172,"context_line":"            for srvaddr, excmsg in six.iteritems(exceptions):"},{"line_number":173,"context_line":"                LOG.error(_LE(\"\u0027gluster version\u0027 failed on server \""},{"line_number":174,"context_line":"                              \"%(server)s with: %(message)\"),"},{"line_number":175,"context_line":"                          {\u0027server\u0027: srvaddr, \u0027message\u0027: excmsg})"},{"line_number":176,"context_line":"            raise exception.GlusterfsException(_("},{"line_number":177,"context_line":"                \"\u0027gluster version\u0027 failed on servers %s\") % ("}],"source_content_type":"text/x-python","patch_set":5,"id":"9aa53dc9_20f1b195","line":174,"in_reply_to":"9aa53dc9_cdda3e4c","updated":"2015-04-09 15:12:07.000000000","message":"Done","commit_id":"fdaf516658554fc69da7f9db47dc0dda254ee2e3"}]}
