)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"fe2b67e8c92ee822291da1f6a80730b461de4791","unresolved":false,"context_lines":[{"line_number":11,"context_line":"option."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"New behavior: a regexp pattern is to be provided"},{"line_number":14,"context_line":"through the gluster_volume_pattern config option."},{"line_number":15,"context_line":"Upon share creation, grep gluster server\u0027s volumes"},{"line_number":16,"context_line":"with this pattern and create the new share from"},{"line_number":17,"context_line":"one among those."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"9a80dd14_d80bfe28","line":14,"updated":"2015-03-19 23:29:23.000000000","message":"s/gluster/glusterfs/","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"7312afbf680cf349fc47ac9b913e17a9aa9bb35d","unresolved":false,"context_lines":[{"line_number":11,"context_line":"option."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"New behavior: a regexp pattern is to be provided"},{"line_number":14,"context_line":"through the gluster_volume_pattern config option."},{"line_number":15,"context_line":"Upon share creation, grep gluster server\u0027s volumes"},{"line_number":16,"context_line":"with this pattern and create the new share from"},{"line_number":17,"context_line":"one among those."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"da9b358b_a360a236","line":14,"in_reply_to":"9a80dd14_d80bfe28","updated":"2015-03-30 15:17:09.000000000","message":"Done","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"}],"doc/source/devref/glusterfs_native_driver.rst":[{"author":{"_account_id":7652,"name":"Luis Pabón","email":"lpabon@gmail.com","username":"lpabon"},"change_message_id":"9399df756416c82c3750d3d1ffb5218c5af11342","unresolved":false,"context_lines":[{"line_number":105,"context_line":"  to the naming convention encoded by ``glusterfs_volume_pattern``. However,"},{"line_number":106,"context_line":"  the GlusterFS endpoint is allowed to extend this set any time (so demand on"},{"line_number":107,"context_line":"  behalf of Manila can be indicated to and satisfied by GlusterFS endpoint"},{"line_number":108,"context_line":"  out-of-band)."},{"line_number":109,"context_line":"- Certificate setup (aka trust setup) between instance and storage backend is"},{"line_number":110,"context_line":"  out of band of Manila."},{"line_number":111,"context_line":"- Support for \u0027create_share_from_snapshot\u0027 is planned for Liberty release."}],"source_content_type":"text/x-rst","patch_set":5,"id":"baa041b7_9293bafa","line":108,"updated":"2015-04-01 20:14:55.000000000","message":"How is the size of the share taken into account?  For example, if the tenant asked for a 1G share and only 3G shares are available?  You may want to write a small section on how size of the is taken into account.","commit_id":"13ade58fc753dbd1ff232168be0ac0f673199544"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"efca79615c155b53e74f50e4843347ff1a07d663","unresolved":false,"context_lines":[{"line_number":105,"context_line":"  to the naming convention encoded by ``glusterfs_volume_pattern``. However,"},{"line_number":106,"context_line":"  the GlusterFS endpoint is allowed to extend this set any time (so demand on"},{"line_number":107,"context_line":"  behalf of Manila can be indicated to and satisfied by GlusterFS endpoint"},{"line_number":108,"context_line":"  out-of-band)."},{"line_number":109,"context_line":"- Certificate setup (aka trust setup) between instance and storage backend is"},{"line_number":110,"context_line":"  out of band of Manila."},{"line_number":111,"context_line":"- Support for \u0027create_share_from_snapshot\u0027 is planned for Liberty release."}],"source_content_type":"text/x-rst","patch_set":5,"id":"baa041b7_8608c092","line":108,"in_reply_to":"baa041b7_9293bafa","updated":"2015-04-05 10:44:31.000000000","message":"Done","commit_id":"13ade58fc753dbd1ff232168be0ac0f673199544"}],"manila/share/drivers/glusterfs.py":[{"author":{"_account_id":8056,"name":"Ramana Raja","email":"rraja@redhat.com","username":"Ram_Raja"},"change_message_id":"06f87a7ade748e252c0bd35e093d5cafc69a63a5","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        :param address: the Gluster URI (in [\u003cuser\u003e@]\u003chost\u003e:/\u003cvol\u003e format)."},{"line_number":101,"context_line":"        :param execf: executor function for management commands."},{"line_number":102,"context_line":"        :param path_to_private_key: path to private ssh key of remote server."},{"line_number":103,"context_line":"        :param remote_server_password: ssh password for remote server."},{"line_number":104,"context_line":"        \"\"\""},{"line_number":105,"context_line":"        m \u003d self.scheme.search(address)"},{"line_number":106,"context_line":"        if m:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_cdd30f02","line":103,"updated":"2015-03-11 02:24:53.000000000","message":"Please update docstring with the details of \u0027has_volume\u0027 parameter.","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"d80e004256496308a94d2af82709ff38dcb2f7a6","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        :param address: the Gluster URI (in [\u003cuser\u003e@]\u003chost\u003e:/\u003cvol\u003e format)."},{"line_number":101,"context_line":"        :param execf: executor function for management commands."},{"line_number":102,"context_line":"        :param path_to_private_key: path to private ssh key of remote server."},{"line_number":103,"context_line":"        :param remote_server_password: ssh password for remote server."},{"line_number":104,"context_line":"        \"\"\""},{"line_number":105,"context_line":"        m \u003d self.scheme.search(address)"},{"line_number":106,"context_line":"        if m:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_f9766805","line":103,"in_reply_to":"9a80dd14_cdd30f02","updated":"2015-03-12 06:30:15.000000000","message":"Done","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"618add7136b2868cea74c3c7a18829ea80f383ef","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        m \u003d self.scheme.search(address)"},{"line_number":106,"context_line":"        if m:"},{"line_number":107,"context_line":"            self.volume \u003d m.group(\u0027vol\u0027)"},{"line_number":108,"context_line":"            if has_volume is True and not self.volume:"},{"line_number":109,"context_line":"                m \u003d None"},{"line_number":110,"context_line":"            if has_volume is False and self.volume:"},{"line_number":111,"context_line":"                m \u003d None"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_0afc37b7","line":108,"updated":"2015-03-10 01:56:02.000000000","message":"if has_volume and not self.volume:","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"d80e004256496308a94d2af82709ff38dcb2f7a6","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        m \u003d self.scheme.search(address)"},{"line_number":106,"context_line":"        if m:"},{"line_number":107,"context_line":"            self.volume \u003d m.group(\u0027vol\u0027)"},{"line_number":108,"context_line":"            if has_volume is True and not self.volume:"},{"line_number":109,"context_line":"                m \u003d None"},{"line_number":110,"context_line":"            if has_volume is False and self.volume:"},{"line_number":111,"context_line":"                m \u003d None"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_c378f3fa","line":108,"in_reply_to":"9a80dd14_0afc37b7","updated":"2015-03-12 06:30:15.000000000","message":"\u0027has_volume\u0027 has to be checked for exact Trueness, as semantically it\u0027s not Boolean but ternary valued (True, False, None).\n\nIt\u0027s an instruction to the gluster uri parser routine, what do about the presence of the volume part of the url. With has_volume\u003dTrue we require the presence of the volume part; with has_volume\u003dFalse we require its absence; and with has_volume\u003dNone we are fine either way.\n\n(As Ramana notes, this has to be covered by the docstring.)","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"618add7136b2868cea74c3c7a18829ea80f383ef","unresolved":false,"context_lines":[{"line_number":107,"context_line":"            self.volume \u003d m.group(\u0027vol\u0027)"},{"line_number":108,"context_line":"            if has_volume is True and not self.volume:"},{"line_number":109,"context_line":"                m \u003d None"},{"line_number":110,"context_line":"            if has_volume is False and self.volume:"},{"line_number":111,"context_line":"                m \u003d None"},{"line_number":112,"context_line":"        if not m:"},{"line_number":113,"context_line":"            raise exception.GlusterfsException(\u0027invalid gluster address \u0027 +"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_4a19cf20","line":110,"updated":"2015-03-10 01:56:02.000000000","message":"elif not has_volume and self.volume:","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"d80e004256496308a94d2af82709ff38dcb2f7a6","unresolved":false,"context_lines":[{"line_number":107,"context_line":"            self.volume \u003d m.group(\u0027vol\u0027)"},{"line_number":108,"context_line":"            if has_volume is True and not self.volume:"},{"line_number":109,"context_line":"                m \u003d None"},{"line_number":110,"context_line":"            if has_volume is False and self.volume:"},{"line_number":111,"context_line":"                m \u003d None"},{"line_number":112,"context_line":"        if not m:"},{"line_number":113,"context_line":"            raise exception.GlusterfsException(\u0027invalid gluster address \u0027 +"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_2388efe6","line":110,"in_reply_to":"9a80dd14_4a19cf20","updated":"2015-03-12 06:30:15.000000000","message":"ditto","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"618add7136b2868cea74c3c7a18829ea80f383ef","unresolved":false,"context_lines":[{"line_number":110,"context_line":"            if has_volume is False and self.volume:"},{"line_number":111,"context_line":"                m \u003d None"},{"line_number":112,"context_line":"        if not m:"},{"line_number":113,"context_line":"            raise exception.GlusterfsException(\u0027invalid gluster address \u0027 +"},{"line_number":114,"context_line":"                                               address)"},{"line_number":115,"context_line":"        self.remote_user \u003d m.group(\u0027user\u0027)"},{"line_number":116,"context_line":"        self.host \u003d m.group(\u0027host\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_4af0efc8","line":113,"updated":"2015-03-10 01:56:02.000000000","message":"Invalid","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"d80e004256496308a94d2af82709ff38dcb2f7a6","unresolved":false,"context_lines":[{"line_number":110,"context_line":"            if has_volume is False and self.volume:"},{"line_number":111,"context_line":"                m \u003d None"},{"line_number":112,"context_line":"        if not m:"},{"line_number":113,"context_line":"            raise exception.GlusterfsException(\u0027invalid gluster address \u0027 +"},{"line_number":114,"context_line":"                                               address)"},{"line_number":115,"context_line":"        self.remote_user \u003d m.group(\u0027user\u0027)"},{"line_number":116,"context_line":"        self.host \u003d m.group(\u0027host\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_198edcd0","line":113,"in_reply_to":"9a80dd14_4af0efc8","updated":"2015-03-12 06:30:15.000000000","message":"Done","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"1b7ef137a3dec8aef124f7ae2b978f0233d2570e","unresolved":false,"context_lines":[{"line_number":115,"context_line":"                m \u003d None"},{"line_number":116,"context_line":"        if not m:"},{"line_number":117,"context_line":"            raise exception.GlusterfsException("},{"line_number":118,"context_line":"                _(\u0027Invalid gluster address %s.\u0027), address)"},{"line_number":119,"context_line":"        self.remote_user \u003d m.group(\u0027user\u0027)"},{"line_number":120,"context_line":"        self.host \u003d m.group(\u0027host\u0027)"},{"line_number":121,"context_line":"        self.qualified \u003d address"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a80dd14_e0bdbad8","line":118,"updated":"2015-03-12 14:12:53.000000000","message":"Second param is reserved, see:\n\n\nhttps://github.com/openstack/manila/blob/35b3a508/manila/exception.py#L74\n\nSo, you won\u0027t get substitution here.","commit_id":"ef944714327070376140650787ab1a81b5f47241"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"18f1bd5fc24369336ec2eb45417b4906fb647c79","unresolved":false,"context_lines":[{"line_number":115,"context_line":"                m \u003d None"},{"line_number":116,"context_line":"        if not m:"},{"line_number":117,"context_line":"            raise exception.GlusterfsException("},{"line_number":118,"context_line":"                _(\u0027Invalid gluster address %s.\u0027), address)"},{"line_number":119,"context_line":"        self.remote_user \u003d m.group(\u0027user\u0027)"},{"line_number":120,"context_line":"        self.host \u003d m.group(\u0027host\u0027)"},{"line_number":121,"context_line":"        self.qualified \u003d address"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a80dd14_0e497960","line":118,"in_reply_to":"9a80dd14_de582533","updated":"2015-03-19 12:05:12.000000000","message":"Done","commit_id":"ef944714327070376140650787ab1a81b5f47241"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"43b38bb9494595c2479c33531edd886a17619d96","unresolved":false,"context_lines":[{"line_number":115,"context_line":"                m \u003d None"},{"line_number":116,"context_line":"        if not m:"},{"line_number":117,"context_line":"            raise exception.GlusterfsException("},{"line_number":118,"context_line":"                _(\u0027Invalid gluster address %s.\u0027), address)"},{"line_number":119,"context_line":"        self.remote_user \u003d m.group(\u0027user\u0027)"},{"line_number":120,"context_line":"        self.host \u003d m.group(\u0027host\u0027)"},{"line_number":121,"context_line":"        self.qualified \u003d address"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a80dd14_de582533","line":118,"in_reply_to":"9a80dd14_e0bdbad8","updated":"2015-03-16 04:13:48.000000000","message":"+1.  Should use % instead of \",\" here.","commit_id":"ef944714327070376140650787ab1a81b5f47241"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"2fc97efa4d4404faf8b867e44cf89913af9cb8ef","unresolved":false,"context_lines":[{"line_number":92,"context_line":"    scheme \u003d re.compile(\u0027\\A(?:(?P\u003cuser\u003e[^:@/]+)@)?\u0027"},{"line_number":93,"context_line":"                        \u0027(?P\u003chost\u003e[^:@/]+)\u0027"},{"line_number":94,"context_line":"                        \u0027(?::/(?P\u003cvol\u003e.+))?\u0027)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def __init__(self, address, execf, path_to_private_key\u003dNone,"},{"line_number":97,"context_line":"                 remote_server_password\u003dNone, has_volume\u003dTrue):"},{"line_number":98,"context_line":"        \"\"\"Initialize a GaneshaManager instance."}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_396b37f2","line":95,"updated":"2015-03-20 05:32:07.000000000","message":"A comment to help understand what this matches to would help others not to scratch their head looking at the regex","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"7312afbf680cf349fc47ac9b913e17a9aa9bb35d","unresolved":false,"context_lines":[{"line_number":92,"context_line":"    scheme \u003d re.compile(\u0027\\A(?:(?P\u003cuser\u003e[^:@/]+)@)?\u0027"},{"line_number":93,"context_line":"                        \u0027(?P\u003chost\u003e[^:@/]+)\u0027"},{"line_number":94,"context_line":"                        \u0027(?::/(?P\u003cvol\u003e.+))?\u0027)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    def __init__(self, address, execf, path_to_private_key\u003dNone,"},{"line_number":97,"context_line":"                 remote_server_password\u003dNone, has_volume\u003dTrue):"},{"line_number":98,"context_line":"        \"\"\"Initialize a GaneshaManager instance."}],"source_content_type":"text/x-python","patch_set":3,"id":"da9b358b_914bb1b0","line":95,"in_reply_to":"9a80dd14_396b37f2","updated":"2015-03-30 15:17:09.000000000","message":"The named groups should be enough help (as it was discussed at time of adding the regex). This patch does not make a substantial change to the regex. The format of the particular values that are subject to being matched against this regex are hinted at where they are being used (I think of __init__\u0027s address param desc).","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"2fc97efa4d4404faf8b867e44cf89913af9cb8ef","unresolved":false,"context_lines":[{"line_number":96,"context_line":"    def __init__(self, address, execf, path_to_private_key\u003dNone,"},{"line_number":97,"context_line":"                 remote_server_password\u003dNone, has_volume\u003dTrue):"},{"line_number":98,"context_line":"        \"\"\"Initialize a GaneshaManager instance."},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        :param address: the Gluster URI (in [\u003cuser\u003e@]\u003chost\u003e:/\u003cvol\u003e format)."},{"line_number":101,"context_line":"        :param execf: executor function for management commands."},{"line_number":102,"context_line":"        :param path_to_private_key: path to private ssh key of remote server."}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_196833f4","line":99,"updated":"2015-03-20 05:32:07.000000000","message":"GaneshaManager ?","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"7312afbf680cf349fc47ac9b913e17a9aa9bb35d","unresolved":false,"context_lines":[{"line_number":96,"context_line":"    def __init__(self, address, execf, path_to_private_key\u003dNone,"},{"line_number":97,"context_line":"                 remote_server_password\u003dNone, has_volume\u003dTrue):"},{"line_number":98,"context_line":"        \"\"\"Initialize a GaneshaManager instance."},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        :param address: the Gluster URI (in [\u003cuser\u003e@]\u003chost\u003e:/\u003cvol\u003e format)."},{"line_number":101,"context_line":"        :param execf: executor function for management commands."},{"line_number":102,"context_line":"        :param path_to_private_key: path to private ssh key of remote server."}],"source_content_type":"text/x-python","patch_set":3,"id":"da9b358b_71c70d13","line":99,"in_reply_to":"9a80dd14_196833f4","updated":"2015-03-30 15:17:09.000000000","message":"Done","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"5b785a2256043ed1e297b870b751742c213d6f61","unresolved":false,"context_lines":[{"line_number":111,"context_line":"            self.volume \u003d m.group(\u0027vol\u0027)"},{"line_number":112,"context_line":"            if has_volume is True and not self.volume:"},{"line_number":113,"context_line":"                m \u003d None"},{"line_number":114,"context_line":"            if has_volume is False and self.volume:"},{"line_number":115,"context_line":"                m \u003d None"},{"line_number":116,"context_line":"        if not m:"},{"line_number":117,"context_line":"            raise exception.GlusterfsException("}],"source_content_type":"text/x-python","patch_set":8,"id":"9aa53dc9_b3e8e27d","line":114,"updated":"2015-04-07 14:00:59.000000000","message":"1) Conditions on lines 112 and 114 should be mutually exclusive.\n\n2) Conditions on lines 112 and 114 should be combined because they have same body for success.\n\nSo, better to rewrite lines 112-115 to following:\n\n\"\"\"\n\nif ((has_volume is True and not self.volume) or (has_volume is False and self.volume)):\n\n    m \u003d None\n\n\"\"\"","commit_id":"3b2a57ffcefb98941005f7025467579d748f16b8"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"4d5396fafd0d3076fe2461c16675d8d68b277874","unresolved":false,"context_lines":[{"line_number":111,"context_line":"            self.volume \u003d m.group(\u0027vol\u0027)"},{"line_number":112,"context_line":"            if has_volume is True and not self.volume:"},{"line_number":113,"context_line":"                m \u003d None"},{"line_number":114,"context_line":"            if has_volume is False and self.volume:"},{"line_number":115,"context_line":"                m \u003d None"},{"line_number":116,"context_line":"        if not m:"},{"line_number":117,"context_line":"            raise exception.GlusterfsException("}],"source_content_type":"text/x-python","patch_set":8,"id":"9aa53dc9_db46d0be","line":114,"in_reply_to":"9aa53dc9_b3e8e27d","updated":"2015-04-07 17:25:32.000000000","message":"Done","commit_id":"3b2a57ffcefb98941005f7025467579d748f16b8"}],"manila/share/drivers/glusterfs_native.py":[{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"618add7136b2868cea74c3c7a18829ea80f383ef","unresolved":false,"context_lines":[{"line_number":47,"context_line":"LOG \u003d log.getLogger(__name__)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"glusterfs_native_manila_share_opts \u003d ["},{"line_number":50,"context_line":"    cfg.ListOpt(\u0027glusterfs_servers\u0027,"},{"line_number":51,"context_line":"                default\u003d[],"},{"line_number":52,"context_line":"                help\u003d\u0027List of GlusterFS volumes that can be used to create \u0027"},{"line_number":53,"context_line":"                     \u0027shares. Each GlusterFS volume should be of the form \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_6f522536","line":50,"updated":"2015-03-10 01:56:02.000000000","message":"How long has \u0027glusterfs_targets\u0027 been in the codeline?  If anyone is using it, you can use the \u0027deprecated_name\u0027 field to keep from breaking them.","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"d80e004256496308a94d2af82709ff38dcb2f7a6","unresolved":false,"context_lines":[{"line_number":47,"context_line":"LOG \u003d log.getLogger(__name__)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"glusterfs_native_manila_share_opts \u003d ["},{"line_number":50,"context_line":"    cfg.ListOpt(\u0027glusterfs_servers\u0027,"},{"line_number":51,"context_line":"                default\u003d[],"},{"line_number":52,"context_line":"                help\u003d\u0027List of GlusterFS volumes that can be used to create \u0027"},{"line_number":53,"context_line":"                     \u0027shares. Each GlusterFS volume should be of the form \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_c3d2b333","line":50,"in_reply_to":"9a80dd14_6f522536","updated":"2015-03-12 06:30:15.000000000","message":"I doubt anyone would use it. With the original \"glusterfs_targets\" config approach, it\u0027s not suitable to any use beyond demos.","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":8056,"name":"Ramana Raja","email":"rraja@redhat.com","username":"Ram_Raja"},"change_message_id":"06f87a7ade748e252c0bd35e093d5cafc69a63a5","unresolved":false,"context_lines":[{"line_number":49,"context_line":"glusterfs_native_manila_share_opts \u003d ["},{"line_number":50,"context_line":"    cfg.ListOpt(\u0027glusterfs_servers\u0027,"},{"line_number":51,"context_line":"                default\u003d[],"},{"line_number":52,"context_line":"                help\u003d\u0027List of GlusterFS volumes that can be used to create \u0027"},{"line_number":53,"context_line":"                     \u0027shares. Each GlusterFS volume should be of the form \u0027"},{"line_number":54,"context_line":"                     \u0027[remoteuser@]\u003cvolserver\u003e\u0027),"},{"line_number":55,"context_line":"    cfg.StrOpt(\u0027glusterfs_native_server_password\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_0dac478b","line":52,"updated":"2015-03-11 02:24:53.000000000","message":"s/volumes/servers/ . Also please update the rest of the \u0027help\u0027 string.","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"d80e004256496308a94d2af82709ff38dcb2f7a6","unresolved":false,"context_lines":[{"line_number":49,"context_line":"glusterfs_native_manila_share_opts \u003d ["},{"line_number":50,"context_line":"    cfg.ListOpt(\u0027glusterfs_servers\u0027,"},{"line_number":51,"context_line":"                default\u003d[],"},{"line_number":52,"context_line":"                help\u003d\u0027List of GlusterFS volumes that can be used to create \u0027"},{"line_number":53,"context_line":"                     \u0027shares. Each GlusterFS volume should be of the form \u0027"},{"line_number":54,"context_line":"                     \u0027[remoteuser@]\u003cvolserver\u003e\u0027),"},{"line_number":55,"context_line":"    cfg.StrOpt(\u0027glusterfs_native_server_password\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_949c535f","line":52,"in_reply_to":"9a80dd14_0dac478b","updated":"2015-03-12 06:30:15.000000000","message":"Done","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"618add7136b2868cea74c3c7a18829ea80f383ef","unresolved":false,"context_lines":[{"line_number":64,"context_line":"               help\u003d\u0027Path of Manila host\\\u0027s private SSH key file.\u0027),"},{"line_number":65,"context_line":"    cfg.StrOpt(\u0027gluster_volume_pattern\u0027,"},{"line_number":66,"context_line":"               default\u003dNone,"},{"line_number":67,"context_line":"               help\u003d\u0027Regular expression template used to filter\u0027"},{"line_number":68,"context_line":"                    \u0027GlusterFS volumes for share creation.\u0027"},{"line_number":69,"context_line":"                    \u0027The regex template can contain the ${size} \u0027"},{"line_number":70,"context_line":"                    \u0027parameter which matches a number (sequence of \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_8f1bd97f","line":67,"updated":"2015-03-10 01:56:02.000000000","message":"Need a space at the end.","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"d80e004256496308a94d2af82709ff38dcb2f7a6","unresolved":false,"context_lines":[{"line_number":64,"context_line":"               help\u003d\u0027Path of Manila host\\\u0027s private SSH key file.\u0027),"},{"line_number":65,"context_line":"    cfg.StrOpt(\u0027gluster_volume_pattern\u0027,"},{"line_number":66,"context_line":"               default\u003dNone,"},{"line_number":67,"context_line":"               help\u003d\u0027Regular expression template used to filter\u0027"},{"line_number":68,"context_line":"                    \u0027GlusterFS volumes for share creation.\u0027"},{"line_number":69,"context_line":"                    \u0027The regex template can contain the ${size} \u0027"},{"line_number":70,"context_line":"                    \u0027parameter which matches a number (sequence of \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_d48fab2c","line":67,"in_reply_to":"9a80dd14_8f1bd97f","updated":"2015-03-12 06:30:15.000000000","message":"Done","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"618add7136b2868cea74c3c7a18829ea80f383ef","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    cfg.StrOpt(\u0027gluster_volume_pattern\u0027,"},{"line_number":66,"context_line":"               default\u003dNone,"},{"line_number":67,"context_line":"               help\u003d\u0027Regular expression template used to filter\u0027"},{"line_number":68,"context_line":"                    \u0027GlusterFS volumes for share creation.\u0027"},{"line_number":69,"context_line":"                    \u0027The regex template can contain the ${size} \u0027"},{"line_number":70,"context_line":"                    \u0027parameter which matches a number (sequence of \u0027"},{"line_number":71,"context_line":"                    \u0027digits) and the value shall be intepreted as \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_cf11515e","line":68,"updated":"2015-03-10 01:56:02.000000000","message":"Need a space at the end.","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"d80e004256496308a94d2af82709ff38dcb2f7a6","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    cfg.StrOpt(\u0027gluster_volume_pattern\u0027,"},{"line_number":66,"context_line":"               default\u003dNone,"},{"line_number":67,"context_line":"               help\u003d\u0027Regular expression template used to filter\u0027"},{"line_number":68,"context_line":"                    \u0027GlusterFS volumes for share creation.\u0027"},{"line_number":69,"context_line":"                    \u0027The regex template can contain the ${size} \u0027"},{"line_number":70,"context_line":"                    \u0027parameter which matches a number (sequence of \u0027"},{"line_number":71,"context_line":"                    \u0027digits) and the value shall be intepreted as \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_b494f744","line":68,"in_reply_to":"9a80dd14_cf11515e","updated":"2015-03-12 06:30:15.000000000","message":"Done","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"618add7136b2868cea74c3c7a18829ea80f383ef","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                    \u0027The regex template can contain the ${size} \u0027"},{"line_number":70,"context_line":"                    \u0027parameter which matches a number (sequence of \u0027"},{"line_number":71,"context_line":"                    \u0027digits) and the value shall be intepreted as \u0027"},{"line_number":72,"context_line":"                    \u0027size of the volume in Gb.\u0027)"},{"line_number":73,"context_line":"]"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"CONF \u003d cfg.CONF"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_6f29459a","line":72,"updated":"2015-03-10 01:56:02.000000000","message":"s/Gb/GB/\n\nPlease include one or two regex examples.","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"d80e004256496308a94d2af82709ff38dcb2f7a6","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                    \u0027The regex template can contain the ${size} \u0027"},{"line_number":70,"context_line":"                    \u0027parameter which matches a number (sequence of \u0027"},{"line_number":71,"context_line":"                    \u0027digits) and the value shall be intepreted as \u0027"},{"line_number":72,"context_line":"                    \u0027size of the volume in Gb.\u0027)"},{"line_number":73,"context_line":"]"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"CONF \u003d cfg.CONF"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_f49e6f62","line":72,"in_reply_to":"9a80dd14_6f29459a","updated":"2015-03-12 06:30:15.000000000","message":"Done","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"618add7136b2868cea74c3c7a18829ea80f383ef","unresolved":false,"context_lines":[{"line_number":132,"context_line":""},{"line_number":133,"context_line":"        # We don\u0027t use a service mount as its not necessary for us."},{"line_number":134,"context_line":"        # Do some sanity checks."},{"line_number":135,"context_line":"        self.gluster_volumes0 \u003d set(self._fetch_gluster_volumes().keys())"},{"line_number":136,"context_line":"        if not self.gluster_volumes0:"},{"line_number":137,"context_line":"            # No suitable volumes are found on the Gluster end."},{"line_number":138,"context_line":"            # Raise exception."}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_0ac7d796","line":135,"updated":"2015-03-10 01:56:02.000000000","message":".keys() is redundant here.","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"d80e004256496308a94d2af82709ff38dcb2f7a6","unresolved":false,"context_lines":[{"line_number":132,"context_line":""},{"line_number":133,"context_line":"        # We don\u0027t use a service mount as its not necessary for us."},{"line_number":134,"context_line":"        # Do some sanity checks."},{"line_number":135,"context_line":"        self.gluster_volumes0 \u003d set(self._fetch_gluster_volumes().keys())"},{"line_number":136,"context_line":"        if not self.gluster_volumes0:"},{"line_number":137,"context_line":"            # No suitable volumes are found on the Gluster end."},{"line_number":138,"context_line":"            # Raise exception."}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_d4396b40","line":135,"in_reply_to":"9a80dd14_0ac7d796","updated":"2015-03-12 06:30:15.000000000","message":"Done","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"618add7136b2868cea74c3c7a18829ea80f383ef","unresolved":false,"context_lines":[{"line_number":160,"context_line":"        # Update gluster_used_vols_dict by walking through the DB."},{"line_number":161,"context_line":"        self._update_gluster_vols_dict(context)"},{"line_number":162,"context_line":"        unused_vols \u003d self.gluster_volumes0 - set("},{"line_number":163,"context_line":"            self.gluster_used_vols_dict.keys())"},{"line_number":164,"context_line":"        if not unused_vols:"},{"line_number":165,"context_line":"            # No volumes available for use as share. Warn user."},{"line_number":166,"context_line":"            msg \u003d (_(\"No unused gluster volumes available for use as share! \""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_8a3ae796","line":163,"updated":"2015-03-10 01:56:02.000000000","message":".keys() is redundant here.","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"d80e004256496308a94d2af82709ff38dcb2f7a6","unresolved":false,"context_lines":[{"line_number":160,"context_line":"        # Update gluster_used_vols_dict by walking through the DB."},{"line_number":161,"context_line":"        self._update_gluster_vols_dict(context)"},{"line_number":162,"context_line":"        unused_vols \u003d self.gluster_volumes0 - set("},{"line_number":163,"context_line":"            self.gluster_used_vols_dict.keys())"},{"line_number":164,"context_line":"        if not unused_vols:"},{"line_number":165,"context_line":"            # No volumes available for use as share. Warn user."},{"line_number":166,"context_line":"            msg \u003d (_(\"No unused gluster volumes available for use as share! \""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_14c30358","line":163,"in_reply_to":"9a80dd14_8a3ae796","updated":"2015-03-12 06:30:15.000000000","message":"Done","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":8056,"name":"Ramana Raja","email":"rraja@redhat.com","username":"Ram_Raja"},"change_message_id":"06f87a7ade748e252c0bd35e093d5cafc69a63a5","unresolved":false,"context_lines":[{"line_number":166,"context_line":"            msg \u003d (_(\"No unused gluster volumes available for use as share! \""},{"line_number":167,"context_line":"                     \"Create share won\u0027t be supported unless existing shares \""},{"line_number":168,"context_line":"                     \"are deleted or add one or more gluster volumes to work \""},{"line_number":169,"context_line":"                     \"with in the glusterfs_targets configuration parameter.\"))"},{"line_number":170,"context_line":"            LOG.warn(msg)"},{"line_number":171,"context_line":"        else:"},{"line_number":172,"context_line":"            LOG.info(_LI(\"Number of gluster volumes in use:  \""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_6cdcb819","line":169,"updated":"2015-03-11 02:24:53.000000000","message":"\u0027glusterfs_targets\u0027 configuration parameter has been replaced by \u0027glusterfs_servers\u0027 above. Please update the log message accordingly.","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"d80e004256496308a94d2af82709ff38dcb2f7a6","unresolved":false,"context_lines":[{"line_number":166,"context_line":"            msg \u003d (_(\"No unused gluster volumes available for use as share! \""},{"line_number":167,"context_line":"                     \"Create share won\u0027t be supported unless existing shares \""},{"line_number":168,"context_line":"                     \"are deleted or add one or more gluster volumes to work \""},{"line_number":169,"context_line":"                     \"with in the glusterfs_targets configuration parameter.\"))"},{"line_number":170,"context_line":"            LOG.warn(msg)"},{"line_number":171,"context_line":"        else:"},{"line_number":172,"context_line":"            LOG.info(_LI(\"Number of gluster volumes in use:  \""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_d4c88b77","line":169,"in_reply_to":"9a80dd14_6cdcb819","updated":"2015-03-12 06:30:15.000000000","message":"Done","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"618add7136b2868cea74c3c7a18829ea80f383ef","unresolved":false,"context_lines":[{"line_number":223,"context_line":""},{"line_number":224,"context_line":"        for s in shares:"},{"line_number":225,"context_line":"            exp_locn_share \u003d s.get(\u0027export_location\u0027, None)"},{"line_number":226,"context_line":"            gmgr \u003d self._glustermanager(exp_locn_share)"},{"line_number":227,"context_line":"            self.gluster_used_vols_dict[exp_locn_share] \u003d gmgr"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"    def _setup_gluster_vol(self, vol):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_0a4ef73a","line":226,"updated":"2015-03-10 01:56:02.000000000","message":"Can you pick more intuitive names than gmgr and exp_locn_share?","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"d80e004256496308a94d2af82709ff38dcb2f7a6","unresolved":false,"context_lines":[{"line_number":223,"context_line":""},{"line_number":224,"context_line":"        for s in shares:"},{"line_number":225,"context_line":"            exp_locn_share \u003d s.get(\u0027export_location\u0027, None)"},{"line_number":226,"context_line":"            gmgr \u003d self._glustermanager(exp_locn_share)"},{"line_number":227,"context_line":"            self.gluster_used_vols_dict[exp_locn_share] \u003d gmgr"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"    def _setup_gluster_vol(self, vol):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_14ece3f2","line":226,"in_reply_to":"9a80dd14_0a4ef73a","updated":"2015-03-12 06:30:15.000000000","message":"Done","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":8056,"name":"Ramana Raja","email":"rraja@redhat.com","username":"Ram_Raja"},"change_message_id":"06f87a7ade748e252c0bd35e093d5cafc69a63a5","unresolved":false,"context_lines":[{"line_number":234,"context_line":"            try:"},{"line_number":235,"context_line":"                gluster_mgr.gluster_call("},{"line_number":236,"context_line":"                    \u0027volume\u0027, \u0027set\u0027, gluster_mgr.volume,"},{"line_number":237,"context_line":"                    option, \u0027off\u0027)"},{"line_number":238,"context_line":"            except exception.ProcessExecutionError as exc:"},{"line_number":239,"context_line":"                msg \u003d (_(\"Error in gluster volume set during volume setup. \""},{"line_number":240,"context_line":"                         \"Volume: %(volname)s, Option: %(option)s, \""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_29a90024","line":237,"updated":"2015-03-11 02:24:53.000000000","message":"Don\u0027t the CLIENT_SSL and SERVER_SSL options need to be turned on?","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"d80e004256496308a94d2af82709ff38dcb2f7a6","unresolved":false,"context_lines":[{"line_number":234,"context_line":"            try:"},{"line_number":235,"context_line":"                gluster_mgr.gluster_call("},{"line_number":236,"context_line":"                    \u0027volume\u0027, \u0027set\u0027, gluster_mgr.volume,"},{"line_number":237,"context_line":"                    option, \u0027off\u0027)"},{"line_number":238,"context_line":"            except exception.ProcessExecutionError as exc:"},{"line_number":239,"context_line":"                msg \u003d (_(\"Error in gluster volume set during volume setup. \""},{"line_number":240,"context_line":"                         \"Volume: %(volname)s, Option: %(option)s, \""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_f980288d","line":237,"in_reply_to":"9a80dd14_29a90024","updated":"2015-03-12 06:30:15.000000000","message":"Done","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"618add7136b2868cea74c3c7a18829ea80f383ef","unresolved":false,"context_lines":[{"line_number":276,"context_line":"        voldict \u003d self._fetch_gluster_volumes()"},{"line_number":277,"context_line":"        # calculate the set of unused volumes"},{"line_number":278,"context_line":"        set1, set2 \u003d ("},{"line_number":279,"context_line":"            set(d.keys()) for d in (voldict, self.gluster_used_vols_dict)"},{"line_number":280,"context_line":"        )"},{"line_number":281,"context_line":"        unused_vols \u003d set1 - set2"},{"line_number":282,"context_line":"        # if both caller has specified size and \u0027size\u0027 occurs as"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_0a751763","line":279,"updated":"2015-03-10 01:56:02.000000000","message":".keys() is redundant here.","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"d80e004256496308a94d2af82709ff38dcb2f7a6","unresolved":false,"context_lines":[{"line_number":276,"context_line":"        voldict \u003d self._fetch_gluster_volumes()"},{"line_number":277,"context_line":"        # calculate the set of unused volumes"},{"line_number":278,"context_line":"        set1, set2 \u003d ("},{"line_number":279,"context_line":"            set(d.keys()) for d in (voldict, self.gluster_used_vols_dict)"},{"line_number":280,"context_line":"        )"},{"line_number":281,"context_line":"        unused_vols \u003d set1 - set2"},{"line_number":282,"context_line":"        # if both caller has specified size and \u0027size\u0027 occurs as"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_5429fb87","line":279,"in_reply_to":"9a80dd14_0a751763","updated":"2015-03-12 06:30:15.000000000","message":"Done","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":8056,"name":"Ramana Raja","email":"rraja@redhat.com","username":"Ram_Raja"},"change_message_id":"5facf05a65a20ed4e687264c8e94c9c79418e43f","unresolved":false,"context_lines":[{"line_number":301,"context_line":""},{"line_number":302,"context_line":"        if sized_unused_vols:"},{"line_number":303,"context_line":"            sized_unused_vols.sort()"},{"line_number":304,"context_line":"            vol \u003d sized_unused_vols[0]"},{"line_number":305,"context_line":"        elif unsized_unused_vols:"},{"line_number":306,"context_line":"            vol \u003d unsized_unused_vols[0]"},{"line_number":307,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_e0fcf141","line":304,"updated":"2015-03-12 03:48:24.000000000","message":"Here  you assign the list [volsize, vol] to \u0027vol\u0027. You need to extract the volume/export-location information from the list and assign it to \u0027vol\u0027.","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"d80e004256496308a94d2af82709ff38dcb2f7a6","unresolved":false,"context_lines":[{"line_number":301,"context_line":""},{"line_number":302,"context_line":"        if sized_unused_vols:"},{"line_number":303,"context_line":"            sized_unused_vols.sort()"},{"line_number":304,"context_line":"            vol \u003d sized_unused_vols[0]"},{"line_number":305,"context_line":"        elif unsized_unused_vols:"},{"line_number":306,"context_line":"            vol \u003d unsized_unused_vols[0]"},{"line_number":307,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_7420bf9b","line":304,"in_reply_to":"9a80dd14_e0fcf141","updated":"2015-03-12 06:30:15.000000000","message":"Done","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":8056,"name":"Ramana Raja","email":"rraja@redhat.com","username":"Ram_Raja"},"change_message_id":"5facf05a65a20ed4e687264c8e94c9c79418e43f","unresolved":false,"context_lines":[{"line_number":309,"context_line":"            LOG.error(msg)"},{"line_number":310,"context_line":"            raise exception.GlusterfsException(msg)"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"        if vol not in self.gluster_volumes0:"},{"line_number":313,"context_line":"            self._setup_gluster_vol(vol)"},{"line_number":314,"context_line":"        self.gluster_used_vols_dict[vol] \u003d self._glustermanager[vol]"},{"line_number":315,"context_line":"        return vol"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_20d609f2","line":312,"updated":"2015-03-12 03:48:24.000000000","message":"It\u0027s not easy to figure out why you setup gluster volumes here. Please add a comment explaining why.","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"d80e004256496308a94d2af82709ff38dcb2f7a6","unresolved":false,"context_lines":[{"line_number":309,"context_line":"            LOG.error(msg)"},{"line_number":310,"context_line":"            raise exception.GlusterfsException(msg)"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"        if vol not in self.gluster_volumes0:"},{"line_number":313,"context_line":"            self._setup_gluster_vol(vol)"},{"line_number":314,"context_line":"        self.gluster_used_vols_dict[vol] \u003d self._glustermanager[vol]"},{"line_number":315,"context_line":"        return vol"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_547c9beb","line":312,"in_reply_to":"9a80dd14_20d609f2","updated":"2015-03-12 06:30:15.000000000","message":"Actually it\u0027s not strange to setup volumes here, what might get one puzzled is the condition used to decide whether to set up.\n\nI\u0027m changing this to do the volume setup here unconditionally.","commit_id":"826a5b7ad7d9e6ab0e5186aa683e927e61da9539"},{"author":{"_account_id":8056,"name":"Ramana Raja","email":"rraja@redhat.com","username":"Ram_Raja"},"change_message_id":"ada5357f9015eb5a7139f4732f35b3220e3d909f","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                    \u0027The regex template can contain the ${size} \u0027"},{"line_number":70,"context_line":"                    \u0027parameter which matches a number (sequence of \u0027"},{"line_number":71,"context_line":"                    \u0027digits) and the value shall be intepreted as \u0027"},{"line_number":72,"context_line":"                    \u0027size of the volume in GB.\u0027)"},{"line_number":73,"context_line":"]"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"CONF \u003d cfg.CONF"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a80dd14_06063d86","line":72,"updated":"2015-03-13 08:02:08.000000000","message":"Csaba, you\u0027ve yet to include one or two regex examples as suggested by Clinton.","commit_id":"ef944714327070376140650787ab1a81b5f47241"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"18f1bd5fc24369336ec2eb45417b4906fb647c79","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                    \u0027The regex template can contain the ${size} \u0027"},{"line_number":70,"context_line":"                    \u0027parameter which matches a number (sequence of \u0027"},{"line_number":71,"context_line":"                    \u0027digits) and the value shall be intepreted as \u0027"},{"line_number":72,"context_line":"                    \u0027size of the volume in GB.\u0027)"},{"line_number":73,"context_line":"]"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"CONF \u003d cfg.CONF"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a80dd14_ae5a2d28","line":72,"in_reply_to":"9a80dd14_06063d86","updated":"2015-03-19 12:05:12.000000000","message":"Done","commit_id":"ef944714327070376140650787ab1a81b5f47241"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"87d0c3ad388df0be69b011d31c1d8a574a311e33","unresolved":false,"context_lines":[{"line_number":53,"context_line":"                help\u003d\u0027List of GlusterFS servers that can be used to create \u0027"},{"line_number":54,"context_line":"                     \u0027shares. Each GlusterFS server should be of the form \u0027"},{"line_number":55,"context_line":"                     \u0027[remoteuser@]\u003cvolserver\u003e, and they are assumed to \u0027"},{"line_number":56,"context_line":"                     \u0027belong to distinct Gluster clusters.\u0027),"},{"line_number":57,"context_line":"    cfg.StrOpt(\u0027glusterfs_native_server_password\u0027,"},{"line_number":58,"context_line":"               default\u003dNone,"},{"line_number":59,"context_line":"               secret\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_c9120358","line":56,"updated":"2015-03-23 09:05:06.000000000","message":"A gluster cluster can have 1 or more hosts, so having to specify just 1 host per cluster is limiting and also limits the driver\u0027s capability to work with gluster volumes when the specified host is down/un-available for some reason, but the cluster/volumes are available","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"7312afbf680cf349fc47ac9b913e17a9aa9bb35d","unresolved":false,"context_lines":[{"line_number":53,"context_line":"                help\u003d\u0027List of GlusterFS servers that can be used to create \u0027"},{"line_number":54,"context_line":"                     \u0027shares. Each GlusterFS server should be of the form \u0027"},{"line_number":55,"context_line":"                     \u0027[remoteuser@]\u003cvolserver\u003e, and they are assumed to \u0027"},{"line_number":56,"context_line":"                     \u0027belong to distinct Gluster clusters.\u0027),"},{"line_number":57,"context_line":"    cfg.StrOpt(\u0027glusterfs_native_server_password\u0027,"},{"line_number":58,"context_line":"               default\u003dNone,"},{"line_number":59,"context_line":"               secret\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":3,"id":"da9b358b_a3d8b0f0","line":56,"in_reply_to":"1a6ced46_5bf595c9","updated":"2015-03-30 15:17:09.000000000","message":"Well, given that your glusterfs_targets variable was possible to set to a list of gluster addresses on distinct hosts, and in the code each of them gets its dedicated GlusterManager, the feature was there, even if you did not intend.","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"385b4e5e9ff3bfcec1e5ebd9376cf2e34bdbeecc","unresolved":false,"context_lines":[{"line_number":53,"context_line":"                help\u003d\u0027List of GlusterFS servers that can be used to create \u0027"},{"line_number":54,"context_line":"                     \u0027shares. Each GlusterFS server should be of the form \u0027"},{"line_number":55,"context_line":"                     \u0027[remoteuser@]\u003cvolserver\u003e, and they are assumed to \u0027"},{"line_number":56,"context_line":"                     \u0027belong to distinct Gluster clusters.\u0027),"},{"line_number":57,"context_line":"    cfg.StrOpt(\u0027glusterfs_native_server_password\u0027,"},{"line_number":58,"context_line":"               default\u003dNone,"},{"line_number":59,"context_line":"               secret\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_cdb046f7","line":56,"in_reply_to":"1a6ced46_c9120358","updated":"2015-03-25 00:13:41.000000000","message":"We can add an enhancement later where we support multiple servers for a given cluster. In this patch I tried to change the semantics as little as possible. \n\nActually, aligned with this principle, we deal with multiple servers/clusters not as an ehancement, but as something we adopted from the original version, as the original \u0027glusterfs_targets\u0027 variable had no restriction of having gluster addresses of a single host.","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"bf97bd568c273ce5284c548e623214317622a70a","unresolved":false,"context_lines":[{"line_number":53,"context_line":"                help\u003d\u0027List of GlusterFS servers that can be used to create \u0027"},{"line_number":54,"context_line":"                     \u0027shares. Each GlusterFS server should be of the form \u0027"},{"line_number":55,"context_line":"                     \u0027[remoteuser@]\u003cvolserver\u003e, and they are assumed to \u0027"},{"line_number":56,"context_line":"                     \u0027belong to distinct Gluster clusters.\u0027),"},{"line_number":57,"context_line":"    cfg.StrOpt(\u0027glusterfs_native_server_password\u0027,"},{"line_number":58,"context_line":"               default\u003dNone,"},{"line_number":59,"context_line":"               secret\u003dTrue,"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_5bf595c9","line":56,"in_reply_to":"1a6ced46_cdb046f7","updated":"2015-03-25 04:53:46.000000000","message":"The original glusterfs_targets had no relation to cluster at all. I am fine as far as this is taken up as enhancement, as i feel this is very much useful","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"2fc97efa4d4404faf8b867e44cf89913af9cb8ef","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                    \u0027In latter example, the number that matches \"${size}\", \u0027"},{"line_number":80,"context_line":"                    \u0027that is, 3, is an indication that the size of volume \u0027"},{"line_number":81,"context_line":"                    \u0027is 3G.\u0027)"},{"line_number":82,"context_line":"]"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"CONF \u003d cfg.CONF"},{"line_number":85,"context_line":"CONF.register_opts(glusterfs_native_manila_share_opts)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_39109758","line":82,"updated":"2015-03-20 05:32:07.000000000","message":"Not clear to me from examples given, why we need 2 regex patterns. Is the intention to support volumes with known size and volumes without size in the name ? I feel that the above desc can be improved to provide clarity on why these 2 regex are needed.","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"385b4e5e9ff3bfcec1e5ebd9376cf2e34bdbeecc","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                    \u0027In latter example, the number that matches \"${size}\", \u0027"},{"line_number":80,"context_line":"                    \u0027that is, 3, is an indication that the size of volume \u0027"},{"line_number":81,"context_line":"                    \u0027is 3G.\u0027)"},{"line_number":82,"context_line":"]"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"CONF \u003d cfg.CONF"},{"line_number":85,"context_line":"CONF.register_opts(glusterfs_native_manila_share_opts)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_485fe40e","line":82,"in_reply_to":"1a6ced46_1bf1c1cd","updated":"2015-03-25 00:13:41.000000000","message":"Deepak, if we speak of a sum of one lakh vs one crore, the lakh seems far less useful than the crore, but it\u0027s not up to one to decide which to own ;)\n\nSo we have to mention both (with due explanation of their capability).","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"bf97bd568c273ce5284c548e623214317622a70a","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                    \u0027In latter example, the number that matches \"${size}\", \u0027"},{"line_number":80,"context_line":"                    \u0027that is, 3, is an indication that the size of volume \u0027"},{"line_number":81,"context_line":"                    \u0027is 3G.\u0027)"},{"line_number":82,"context_line":"]"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"CONF \u003d cfg.CONF"},{"line_number":85,"context_line":"CONF.register_opts(glusterfs_native_manila_share_opts)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_fb272162","line":82,"in_reply_to":"1a6ced46_485fe40e","updated":"2015-03-25 04:53:46.000000000","message":"Frankly i didn\u0027t understand  your comment! but nevermind :)","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"60ca7a9d709e2b24c3019b1f1c500a0d35b3d8fc","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                    \u0027In latter example, the number that matches \"${size}\", \u0027"},{"line_number":80,"context_line":"                    \u0027that is, 3, is an indication that the size of volume \u0027"},{"line_number":81,"context_line":"                    \u0027is 3G.\u0027)"},{"line_number":82,"context_line":"]"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"CONF \u003d cfg.CONF"},{"line_number":85,"context_line":"CONF.register_opts(glusterfs_native_manila_share_opts)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_c72b7592","line":82,"in_reply_to":"1a6ced46_485fe40e","updated":"2015-03-25 00:23:00.000000000","message":"Having traveled several times to India, I understood the lakh vs. crore comment!  :-)\n\nCsaba, thanks for adding the examples.  More docs are better than less, and your language clarified the usage for me.","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"30cc5e46739034e69f54c53add690ba843151f29","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                    \u0027In latter example, the number that matches \"${size}\", \u0027"},{"line_number":80,"context_line":"                    \u0027that is, 3, is an indication that the size of volume \u0027"},{"line_number":81,"context_line":"                    \u0027is 3G.\u0027)"},{"line_number":82,"context_line":"]"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"CONF \u003d cfg.CONF"},{"line_number":85,"context_line":"CONF.register_opts(glusterfs_native_manila_share_opts)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_9883f7cb","line":82,"in_reply_to":"1a6ced46_8ccd8b89","updated":"2015-03-23 08:17:52.000000000","message":"Mentioning such things violates the general principle I layed down, ie. restrict the description to the purely functional matching semantics (that is, given a pattern P and a set of strings S, what match data M we get). Choosing one or none element of S  based on M and service state, as it\u0027s done for purposes of share creation, is beyond the pure matching semantics.\n\nSo if you want me to add anything like this, please first try to talk me out of adherence to describing only pure matching semantics ;)","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"87d0c3ad388df0be69b011d31c1d8a574a311e33","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                    \u0027In latter example, the number that matches \"${size}\", \u0027"},{"line_number":80,"context_line":"                    \u0027that is, 3, is an indication that the size of volume \u0027"},{"line_number":81,"context_line":"                    \u0027is 3G.\u0027)"},{"line_number":82,"context_line":"]"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"CONF \u003d cfg.CONF"},{"line_number":85,"context_line":"CONF.register_opts(glusterfs_native_manila_share_opts)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_1bf1c1cd","line":82,"in_reply_to":"1a6ced46_9883f7cb","updated":"2015-03-23 09:05:06.000000000","message":"How does talking help more than debating here :)\nFrankly, reading ur current desc, it makes the sizeless option sound degraded or not useful bcos u only focus on the size\u0027d option. I just wanted to ensure that person reading the doc feels that both are useful based on diff circumstances.","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"7312afbf680cf349fc47ac9b913e17a9aa9bb35d","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                    \u0027In latter example, the number that matches \"${size}\", \u0027"},{"line_number":80,"context_line":"                    \u0027that is, 3, is an indication that the size of volume \u0027"},{"line_number":81,"context_line":"                    \u0027is 3G.\u0027)"},{"line_number":82,"context_line":"]"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"CONF \u003d cfg.CONF"},{"line_number":85,"context_line":"CONF.register_opts(glusterfs_native_manila_share_opts)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da9b358b_be13275c","line":82,"in_reply_to":"1a6ced46_fb272162","updated":"2015-03-30 15:17:09.000000000","message":"For the Manila end, having no ${size} in the pattern is definitely less useful than to have it. However, it\u0027s not entirely up to the Manila end what pattern shall be used, as it is to be agreed upon by the Manila and Gluster ends.\n\nSupporting ${size} is imposing more discipline on the Gluster end, which it might not be willing to align with.\n\nI made slight modifications on the text to make it less ambiguous, but did not change the information coverage.","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"8ad63535d0e5793b1a9c24288b79ed006a54c64f","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                    \u0027In latter example, the number that matches \"${size}\", \u0027"},{"line_number":80,"context_line":"                    \u0027that is, 3, is an indication that the size of volume \u0027"},{"line_number":81,"context_line":"                    \u0027is 3G.\u0027)"},{"line_number":82,"context_line":"]"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"CONF \u003d cfg.CONF"},{"line_number":85,"context_line":"CONF.register_opts(glusterfs_native_manila_share_opts)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_8ccd8b89","line":82,"in_reply_to":"7a75e904_ef4511b4","updated":"2015-03-22 04:26:16.000000000","message":"Mention the fact that size-less are picked in random order or some order , and may not match the exact size requirements of the share size being asked for ? (unless quota is in)","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"a459ca16cd2e9d6a1ebac0f13e0a3618aa4f2ada","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                    \u0027In latter example, the number that matches \"${size}\", \u0027"},{"line_number":80,"context_line":"                    \u0027that is, 3, is an indication that the size of volume \u0027"},{"line_number":81,"context_line":"                    \u0027is 3G.\u0027)"},{"line_number":82,"context_line":"]"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"CONF \u003d cfg.CONF"},{"line_number":85,"context_line":"CONF.register_opts(glusterfs_native_manila_share_opts)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_7ec5908c","line":82,"in_reply_to":"9a80dd14_39109758","updated":"2015-03-20 08:03:06.000000000","message":"Please clarify further what\u0027s unclear. The statement \"The regex pattern _can_ contain the ${size} parameter\" seems clear to me about the fact that ${size} is optional. Once that\u0027s acknowledged, it seems to be a natural choice to demonstrate how the pattern works both with and without it.","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"7c7d3c6d0a0ae523d6df33947a6e070423fee627","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                    \u0027In latter example, the number that matches \"${size}\", \u0027"},{"line_number":80,"context_line":"                    \u0027that is, 3, is an indication that the size of volume \u0027"},{"line_number":81,"context_line":"                    \u0027is 3G.\u0027)"},{"line_number":82,"context_line":"]"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"CONF \u003d cfg.CONF"},{"line_number":85,"context_line":"CONF.register_opts(glusterfs_native_manila_share_opts)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_8d03f840","line":82,"in_reply_to":"9a80dd14_7ec5908c","updated":"2015-03-20 10:34:21.000000000","message":"Yeah, i was looking for the word optional\nAlso at the end of the help doc, you only clarify on the pattern with size, but don\u0027t say much on the one without size","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"ae6f7c25c609677d57ad547acb7d520148017c8f","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                    \u0027In latter example, the number that matches \"${size}\", \u0027"},{"line_number":80,"context_line":"                    \u0027that is, 3, is an indication that the size of volume \u0027"},{"line_number":81,"context_line":"                    \u0027is 3G.\u0027)"},{"line_number":82,"context_line":"]"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"CONF \u003d cfg.CONF"},{"line_number":85,"context_line":"CONF.register_opts(glusterfs_native_manila_share_opts)"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a75e904_ef4511b4","line":82,"in_reply_to":"9a80dd14_8d03f840","updated":"2015-03-21 05:21:54.000000000","message":"I can add \"optional\". \n\nHowever, what would you like to be said about the size-less pattern apart from a matching example? In this help text I want to restrict myself to the semantics of matching (ie. the purely functional question that given a pattern of this type, and a set of strings (volume names), what is the match data we get). I do not want to get into how the match data is being used. I\u0027m afraid any further discussion on size-less patterns would wander into that realm...","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"2fc97efa4d4404faf8b867e44cf89913af9cb8ef","unresolved":false,"context_lines":[{"line_number":90,"context_line":"NFS_EXPORT_VOL \u003d \u0027nfs.export-volumes\u0027"},{"line_number":91,"context_line":"SERVER_SSL \u003d \u0027server.ssl\u0027"},{"line_number":92,"context_line":"PATTERN_DICT \u003d {\u0027size\u0027: {\u0027pattern\u0027: \u0027(?P\u003csize\u003e\\d+)\u0027, \u0027trans\u0027: int}}"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"class GlusterfsNativeShareDriver(driver.ExecuteMixin, driver.ShareDriver):"},{"line_number":96,"context_line":"    \"\"\"GlusterFS native protocol (glusterfs) share driver."}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_19367303","line":93,"updated":"2015-03-20 05:32:07.000000000","message":"What does \u0027trans\u0027 mean ? Pls add a comment for reviewers to understand what it means","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"7312afbf680cf349fc47ac9b913e17a9aa9bb35d","unresolved":false,"context_lines":[{"line_number":90,"context_line":"NFS_EXPORT_VOL \u003d \u0027nfs.export-volumes\u0027"},{"line_number":91,"context_line":"SERVER_SSL \u003d \u0027server.ssl\u0027"},{"line_number":92,"context_line":"PATTERN_DICT \u003d {\u0027size\u0027: {\u0027pattern\u0027: \u0027(?P\u003csize\u003e\\d+)\u0027, \u0027trans\u0027: int}}"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"class GlusterfsNativeShareDriver(driver.ExecuteMixin, driver.ShareDriver):"},{"line_number":96,"context_line":"    \"\"\"GlusterFS native protocol (glusterfs) share driver."}],"source_content_type":"text/x-python","patch_set":3,"id":"da9b358b_feb3ef08","line":93,"in_reply_to":"9a80dd14_19367303","updated":"2015-03-30 15:17:09.000000000","message":"Done","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"2fc97efa4d4404faf8b867e44cf89913af9cb8ef","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    Executes commands relating to Shares."},{"line_number":99,"context_line":"    Supports working with multiple glusterfs volumes."},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    API version history:"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"        1.0 - Initial version."}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_5421929c","line":100,"updated":"2015-03-20 05:32:07.000000000","message":"Need to change this as it no longer works with volumes, it works with glusterfs servers now","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"7312afbf680cf349fc47ac9b913e17a9aa9bb35d","unresolved":false,"context_lines":[{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    Executes commands relating to Shares."},{"line_number":99,"context_line":"    Supports working with multiple glusterfs volumes."},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    API version history:"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"        1.0 - Initial version."}],"source_content_type":"text/x-python","patch_set":3,"id":"da9b358b_7e9fdf5f","line":100,"in_reply_to":"9a80dd14_5421929c","updated":"2015-03-30 15:17:09.000000000","message":"There is no change about a volume being the basic entity which is backing a share.","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"2fc97efa4d4404faf8b867e44cf89913af9cb8ef","unresolved":false,"context_lines":[{"line_number":174,"context_line":"            # No volumes available for use as share. Warn user."},{"line_number":175,"context_line":"            msg \u003d (_(\"No unused gluster volumes available for use as share! \""},{"line_number":176,"context_line":"                     \"Create share won\u0027t be supported unless existing shares \""},{"line_number":177,"context_line":"                     \"are deleted or add one or more gluster volumes to work \""},{"line_number":178,"context_line":"                     \"with in the glusterfs_servers configuration parameter.\"))"},{"line_number":179,"context_line":"            LOG.warn(msg)"},{"line_number":180,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_943dcabd","line":177,"updated":"2015-03-20 05:32:07.000000000","message":"s/add one or more gluster volume / add one or more glusterfs server/","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"7312afbf680cf349fc47ac9b913e17a9aa9bb35d","unresolved":false,"context_lines":[{"line_number":174,"context_line":"            # No volumes available for use as share. Warn user."},{"line_number":175,"context_line":"            msg \u003d (_(\"No unused gluster volumes available for use as share! \""},{"line_number":176,"context_line":"                     \"Create share won\u0027t be supported unless existing shares \""},{"line_number":177,"context_line":"                     \"are deleted or add one or more gluster volumes to work \""},{"line_number":178,"context_line":"                     \"with in the glusterfs_servers configuration parameter.\"))"},{"line_number":179,"context_line":"            LOG.warn(msg)"},{"line_number":180,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":3,"id":"da9b358b_1ebb33c6","line":177,"in_reply_to":"9a80dd14_943dcabd","updated":"2015-03-30 15:17:09.000000000","message":"We still expect volumes to be added here (on some of the servers we are dealing with). Just not by editing config; indeed, created with matching names.\n\nUpdated the msg to reflect this change.","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"2fc97efa4d4404faf8b867e44cf89913af9cb8ef","unresolved":false,"context_lines":[{"line_number":271,"context_line":"    def _restart_gluster_vol(gluster_mgr):"},{"line_number":272,"context_line":"        try:"},{"line_number":273,"context_line":"            # XXX Why \u0027--mode\u003dscript\u0027 ?"},{"line_number":274,"context_line":"            gluster_mgr.gluster_call("},{"line_number":275,"context_line":"                \u0027volume\u0027, \u0027stop\u0027, gluster_mgr.volume, \u0027--mode\u003dscript\u0027)"},{"line_number":276,"context_line":"        except exception.ProcessExecutionError as exc:"},{"line_number":277,"context_line":"            msg \u003d (_(\"Error stopping gluster volume. \""}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_34f17e01","line":274,"updated":"2015-03-20 05:32:07.000000000","message":"--mode\u003dscript is used to make it non-interactive","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"8ad63535d0e5793b1a9c24288b79ed006a54c64f","unresolved":false,"context_lines":[{"line_number":271,"context_line":"    def _restart_gluster_vol(gluster_mgr):"},{"line_number":272,"context_line":"        try:"},{"line_number":273,"context_line":"            # XXX Why \u0027--mode\u003dscript\u0027 ?"},{"line_number":274,"context_line":"            gluster_mgr.gluster_call("},{"line_number":275,"context_line":"                \u0027volume\u0027, \u0027stop\u0027, gluster_mgr.volume, \u0027--mode\u003dscript\u0027)"},{"line_number":276,"context_line":"        except exception.ProcessExecutionError as exc:"},{"line_number":277,"context_line":"            msg \u003d (_(\"Error stopping gluster volume. \""}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_4cb473f2","line":274,"in_reply_to":"7a75e904_cf769506","updated":"2015-03-22 04:26:16.000000000","message":"Cool, i didn\u0027t knew that, thanks!","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"a459ca16cd2e9d6a1ebac0f13e0a3618aa4f2ada","unresolved":false,"context_lines":[{"line_number":271,"context_line":"    def _restart_gluster_vol(gluster_mgr):"},{"line_number":272,"context_line":"        try:"},{"line_number":273,"context_line":"            # XXX Why \u0027--mode\u003dscript\u0027 ?"},{"line_number":274,"context_line":"            gluster_mgr.gluster_call("},{"line_number":275,"context_line":"                \u0027volume\u0027, \u0027stop\u0027, gluster_mgr.volume, \u0027--mode\u003dscript\u0027)"},{"line_number":276,"context_line":"        except exception.ProcessExecutionError as exc:"},{"line_number":277,"context_line":"            msg \u003d (_(\"Error stopping gluster volume. \""}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_3ecf982a","line":274,"in_reply_to":"9a80dd14_34f17e01","updated":"2015-03-20 08:03:06.000000000","message":"Interactive mode of the gluster cli kicks in only if stdin is a terminal:\n\nhttps://github.com/gluster/glusterfs/blob/v3.6.2/cli/src/input.c#L84\n\n-- as it should be the case with any sanely behaving interpreter...","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"7c7d3c6d0a0ae523d6df33947a6e070423fee627","unresolved":false,"context_lines":[{"line_number":271,"context_line":"    def _restart_gluster_vol(gluster_mgr):"},{"line_number":272,"context_line":"        try:"},{"line_number":273,"context_line":"            # XXX Why \u0027--mode\u003dscript\u0027 ?"},{"line_number":274,"context_line":"            gluster_mgr.gluster_call("},{"line_number":275,"context_line":"                \u0027volume\u0027, \u0027stop\u0027, gluster_mgr.volume, \u0027--mode\u003dscript\u0027)"},{"line_number":276,"context_line":"        except exception.ProcessExecutionError as exc:"},{"line_number":277,"context_line":"            msg \u003d (_(\"Error stopping gluster volume. \""}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_cd9090ef","line":274,"in_reply_to":"9a80dd14_3ecf982a","updated":"2015-03-20 10:34:21.000000000","message":"What i meant was when u use mode\u003dscript, it doesn\u0027t prompt with the Q \"Are u sure u want to delete the volume\", hence non-interactive and hence mode\u003dscript is used only during volume stop. Didn\u0027t you ever witnessed that prompt from gluster as part of volume stop ?","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"ae6f7c25c609677d57ad547acb7d520148017c8f","unresolved":false,"context_lines":[{"line_number":271,"context_line":"    def _restart_gluster_vol(gluster_mgr):"},{"line_number":272,"context_line":"        try:"},{"line_number":273,"context_line":"            # XXX Why \u0027--mode\u003dscript\u0027 ?"},{"line_number":274,"context_line":"            gluster_mgr.gluster_call("},{"line_number":275,"context_line":"                \u0027volume\u0027, \u0027stop\u0027, gluster_mgr.volume, \u0027--mode\u003dscript\u0027)"},{"line_number":276,"context_line":"        except exception.ProcessExecutionError as exc:"},{"line_number":277,"context_line":"            msg \u003d (_(\"Error stopping gluster volume. \""}],"source_content_type":"text/x-python","patch_set":3,"id":"7a75e904_cf769506","line":274,"in_reply_to":"9a80dd14_cd9090ef","updated":"2015-03-21 05:21:54.000000000","message":"I understand why we want the gluster cli to be run in script mode.\n\nWhat I meant is that invoking the gluster cli in the way we do (programmatically) will automatically put it into script mode, without having to specify that through a command line option. (Please take the trouble of consulting the code I linked to, according to my understanding it proves this statement (actually the \"else\" branch of the conditional being relevant here).)","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"ccae8d4b2d928a3b5eb959691ec69a011ca7a2d6","unresolved":false,"context_lines":[{"line_number":322,"context_line":"                if volsize:"},{"line_number":323,"context_line":"                    if volsize \u003e\u003d size:"},{"line_number":324,"context_line":"                        sized_unused_vols.append([volsize, vol])"},{"line_number":325,"context_line":"                else:"},{"line_number":326,"context_line":"                    unsized_unused_vols.append(vol)"},{"line_number":327,"context_line":"        else:"},{"line_number":328,"context_line":"            # ... else just use a stub for the \"sized\" list"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_744056a5","line":325,"updated":"2015-03-20 06:01:11.000000000","message":"Its better to use unused_vols_w_size and unused_vols_wo_size instead of sized_unused_vols and unsized_unused_vols. Gives more clarity and helps understand what it does better","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"7312afbf680cf349fc47ac9b913e17a9aa9bb35d","unresolved":false,"context_lines":[{"line_number":322,"context_line":"                if volsize:"},{"line_number":323,"context_line":"                    if volsize \u003e\u003d size:"},{"line_number":324,"context_line":"                        sized_unused_vols.append([volsize, vol])"},{"line_number":325,"context_line":"                else:"},{"line_number":326,"context_line":"                    unsized_unused_vols.append(vol)"},{"line_number":327,"context_line":"        else:"},{"line_number":328,"context_line":"            # ... else just use a stub for the \"sized\" list"}],"source_content_type":"text/x-python","patch_set":3,"id":"da9b358b_ded5cbb9","line":325,"in_reply_to":"9a80dd14_744056a5","updated":"2015-03-30 15:17:09.000000000","message":"Rewrite of the function got rid of the questioned variables.","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"ccae8d4b2d928a3b5eb959691ec69a011ca7a2d6","unresolved":false,"context_lines":[{"line_number":335,"context_line":"            vol \u003d sized_unused_vols[0][1]"},{"line_number":336,"context_line":"        elif unsized_unused_vols:"},{"line_number":337,"context_line":"            vol \u003d unsized_unused_vols.pop()"},{"line_number":338,"context_line":"        else:"},{"line_number":339,"context_line":"            msg \u003d (_(\"Couldn\u0027t find a free gluster volume to use.\"))"},{"line_number":340,"context_line":"            LOG.error(msg)"},{"line_number":341,"context_line":"            raise exception.GlusterfsException(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_1468faf3","line":338,"updated":"2015-03-20 06:01:11.000000000","message":"Why don\u0027t we sort() in this case ? It would be better to consume unsized vols in sorted way too","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"bf97bd568c273ce5284c548e623214317622a70a","unresolved":false,"context_lines":[{"line_number":335,"context_line":"            vol \u003d sized_unused_vols[0][1]"},{"line_number":336,"context_line":"        elif unsized_unused_vols:"},{"line_number":337,"context_line":"            vol \u003d unsized_unused_vols.pop()"},{"line_number":338,"context_line":"        else:"},{"line_number":339,"context_line":"            msg \u003d (_(\"Couldn\u0027t find a free gluster volume to use.\"))"},{"line_number":340,"context_line":"            LOG.error(msg)"},{"line_number":341,"context_line":"            raise exception.GlusterfsException(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_bbd4c920","line":338,"in_reply_to":"1a6ced46_0d86deb9","updated":"2015-03-25 04:53:46.000000000","message":"Having the servers of a cluster explicitly defined in the conf makes more sense to me than implicitly figuring them and talking to a server thats _not_ given in the conf, since the admin would not expect that to happen.","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"87d0c3ad388df0be69b011d31c1d8a574a311e33","unresolved":false,"context_lines":[{"line_number":335,"context_line":"            vol \u003d sized_unused_vols[0][1]"},{"line_number":336,"context_line":"        elif unsized_unused_vols:"},{"line_number":337,"context_line":"            vol \u003d unsized_unused_vols.pop()"},{"line_number":338,"context_line":"        else:"},{"line_number":339,"context_line":"            msg \u003d (_(\"Couldn\u0027t find a free gluster volume to use.\"))"},{"line_number":340,"context_line":"            LOG.error(msg)"},{"line_number":341,"context_line":"            raise exception.GlusterfsException(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_be889be8","line":338,"in_reply_to":"1a6ced46_7ba0f5f4","updated":"2015-03-23 09:05:06.000000000","message":"By \u0027multiple gluster servers\u0027 - do you mean different gluster clusters ? where each cluster is a set of hosts (what we also call trusted storage pool aka TSP) ?\n\nOtherwise if we have a TSP of 4 hosts, each of the 4 host can be called a gluster server.\n\nAssumign the above, using host(s) to figure which vol to pick doesn\u0027t make sense to me, since host could be just 1 of the host in the TSP. \n\nWhat makes sense to me is to have hierarchy as TSP -\u003e volumes (in say glusterfs_cluster_host_map) and in the config have the admin specify which TSP\u0027s the driver should pick the volume(s) from \n\n-- or ---\nHave something liek this in the conf\n\n[cluster1]\nhost1\nhost2\n\n[cluster2]\nhost3\nhost4\nhsot5\n\nglusterfs_clusters \u003d cluster1, cluster2\n(instead of glusterfs_server)\n\nThen size -\u003e hosts dict can be created as u have all the info of all the hosts which make up each cluster and volumes can then be picked up at cluster priority or any priority\n\nThis also helps the driver connect to say host2 if ssh to host1 failed and yet satisfy the manila API request. In the current case of just specifying 1 host per cluster against glusterfs_server, if that host for some reason is un-available , even if cluster and hence gluster volumes are operational , the driver won\u0027t be able to talk/work with that cluster, whose host is down. I added another comment reflecting this against the glusterfs_server param above.","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"7312afbf680cf349fc47ac9b913e17a9aa9bb35d","unresolved":false,"context_lines":[{"line_number":335,"context_line":"            vol \u003d sized_unused_vols[0][1]"},{"line_number":336,"context_line":"        elif unsized_unused_vols:"},{"line_number":337,"context_line":"            vol \u003d unsized_unused_vols.pop()"},{"line_number":338,"context_line":"        else:"},{"line_number":339,"context_line":"            msg \u003d (_(\"Couldn\u0027t find a free gluster volume to use.\"))"},{"line_number":340,"context_line":"            LOG.error(msg)"},{"line_number":341,"context_line":"            raise exception.GlusterfsException(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da9b358b_3e95d7e3","line":338,"in_reply_to":"1a6ced46_bbd4c920","updated":"2015-03-30 15:17:09.000000000","message":"If we follow this suggestion, we can later add the \u0027glusterfs_cluster\u0027 param (specifying the set of servers for the certain clusters through whom we can provision volumes), without changing how gluster_server works in this patch.","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"385b4e5e9ff3bfcec1e5ebd9376cf2e34bdbeecc","unresolved":false,"context_lines":[{"line_number":335,"context_line":"            vol \u003d sized_unused_vols[0][1]"},{"line_number":336,"context_line":"        elif unsized_unused_vols:"},{"line_number":337,"context_line":"            vol \u003d unsized_unused_vols.pop()"},{"line_number":338,"context_line":"        else:"},{"line_number":339,"context_line":"            msg \u003d (_(\"Couldn\u0027t find a free gluster volume to use.\"))"},{"line_number":340,"context_line":"            LOG.error(msg)"},{"line_number":341,"context_line":"            raise exception.GlusterfsException(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_0d86deb9","line":338,"in_reply_to":"1a6ced46_be889be8","updated":"2015-03-25 00:13:41.000000000","message":"The certain hosts are interacted with in two ways:\n- performing admin tasks through them by the driver\n- mounting glusterfs volumes of them by the tenants\n\nI don\u0027t think there is much point in load-balancing the former. We could load-balance the latter, eg. querying the pool list and creating shares with exports from various host addresses of the pool.\n\nBut\n- we don\u0027t need to change the driver\u0027s configuration tunables for that (as pool members can be queried in a live manner, rather than having them wired into conf)\n- that would be a subsequent enhancement, not in the scope of this change","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"a459ca16cd2e9d6a1ebac0f13e0a3618aa4f2ada","unresolved":false,"context_lines":[{"line_number":335,"context_line":"            vol \u003d sized_unused_vols[0][1]"},{"line_number":336,"context_line":"        elif unsized_unused_vols:"},{"line_number":337,"context_line":"            vol \u003d unsized_unused_vols.pop()"},{"line_number":338,"context_line":"        else:"},{"line_number":339,"context_line":"            msg \u003d (_(\"Couldn\u0027t find a free gluster volume to use.\"))"},{"line_number":340,"context_line":"            LOG.error(msg)"},{"line_number":341,"context_line":"            raise exception.GlusterfsException(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_1e949435","line":338,"in_reply_to":"9a80dd14_1468faf3","updated":"2015-03-20 08:03:06.000000000","message":"If we don\u0027t have size information, then we have no any consideration according to which we\u0027d prefer one over the other. Why sort then?","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":10796,"name":"Deepak C Shetty (deepakcs)","email":"dpkshetty@gmail.com","username":"deepakcs"},"change_message_id":"7c7d3c6d0a0ae523d6df33947a6e070423fee627","unresolved":false,"context_lines":[{"line_number":335,"context_line":"            vol \u003d sized_unused_vols[0][1]"},{"line_number":336,"context_line":"        elif unsized_unused_vols:"},{"line_number":337,"context_line":"            vol \u003d unsized_unused_vols.pop()"},{"line_number":338,"context_line":"        else:"},{"line_number":339,"context_line":"            msg \u003d (_(\"Couldn\u0027t find a free gluster volume to use.\"))"},{"line_number":340,"context_line":"            LOG.error(msg)"},{"line_number":341,"context_line":"            raise exception.GlusterfsException(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_cda7b04e","line":338,"in_reply_to":"9a80dd14_1e949435","updated":"2015-03-20 10:34:21.000000000","message":"but its good to sort so that you consume the share in  with names ending with -1, -2, -3 .. order , instead of some random fashion","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"30cc5e46739034e69f54c53add690ba843151f29","unresolved":false,"context_lines":[{"line_number":335,"context_line":"            vol \u003d sized_unused_vols[0][1]"},{"line_number":336,"context_line":"        elif unsized_unused_vols:"},{"line_number":337,"context_line":"            vol \u003d unsized_unused_vols.pop()"},{"line_number":338,"context_line":"        else:"},{"line_number":339,"context_line":"            msg \u003d (_(\"Couldn\u0027t find a free gluster volume to use.\"))"},{"line_number":340,"context_line":"            LOG.error(msg)"},{"line_number":341,"context_line":"            raise exception.GlusterfsException(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a6ced46_7ba0f5f4","line":338,"in_reply_to":"9a80dd14_cda7b04e","updated":"2015-03-23 08:17:52.000000000","message":"If mutliple gluster servers are used, this would result in bias towards the server which is alphabetically the first.\n\nActually, now that we speak of this, I see that this problem already manifests with sized matches. I\u0027d probably better to make sized_unused_vols to be a dict, with sizes as keyes, sets of vols (of respective size) as values, choose the minimal key, and pick one vol from the associated set in a non-odered way.\n\nOr: nested dicts with size -\u003e host -\u003e vols hierarchy for sized case, hosts -\u003e vols for unsized case. In sized case we can reduce to a host -\u003e vols dict by picking the value of the minimal key. So we arrive to a host -\u003e vols dict in both cases. From them on: pick a host randomly and then of the vols associated with it, pick alphabetically first.\n\nThat sounds to be pretty thorough, what do you think?","commit_id":"f02d507e21f8e2302ad86c07538645df43fff8c1"},{"author":{"_account_id":8056,"name":"Ramana Raja","email":"rraja@redhat.com","username":"Ram_Raja"},"change_message_id":"7f8f3813ee3a42d4700de43452ad567870d1950e","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        for key, val in six.iteritems(PATTERN_DICT):"},{"line_number":143,"context_line":"            subdict[key] \u003d val[\u0027pattern\u0027]"},{"line_number":144,"context_line":"        volume_pattern \u003d string.Template("},{"line_number":145,"context_line":"            self.configuration.glusterfs_volume_pattern).substitute(subdict)"},{"line_number":146,"context_line":"        return re.compile(volume_pattern)"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def do_setup(self, context):"}],"source_content_type":"text/x-python","patch_set":5,"id":"baa041b7_b0c7c411","line":145,"updated":"2015-04-02 10:53:49.000000000","message":"Please use \u0027safe_substitute\u0027 instead of \u0027substitute\u0027. \u0027safe_substitute\u0027 does not raise an error if placeholders are missing from mapping, \u0027subdict\u0027 here.  And this issue would occur when the admin uses \u0027$\u0027 in the glusterfs_volume_pattern config option, intending it to be a regex special character, but \u0027$\u0027 being the default delimiter that introduces place holders which are to be mapped for template strings, the string library would identify invalid placeholders, place holders that are missing from mapping, and raise an error.","commit_id":"13ade58fc753dbd1ff232168be0ac0f673199544"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"efca79615c155b53e74f50e4843347ff1a07d663","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        for key, val in six.iteritems(PATTERN_DICT):"},{"line_number":143,"context_line":"            subdict[key] \u003d val[\u0027pattern\u0027]"},{"line_number":144,"context_line":"        volume_pattern \u003d string.Template("},{"line_number":145,"context_line":"            self.configuration.glusterfs_volume_pattern).substitute(subdict)"},{"line_number":146,"context_line":"        return re.compile(volume_pattern)"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def do_setup(self, context):"}],"source_content_type":"text/x-python","patch_set":5,"id":"baa041b7_862fa0f5","line":145,"in_reply_to":"baa041b7_b0c7c411","updated":"2015-04-05 10:44:31.000000000","message":"As now we move to # as the delimiter, which is not clashing with other use cases (neither will occur in volume names nor has significance in regexen), we can retain \u0027substitute\u0027.","commit_id":"13ade58fc753dbd1ff232168be0ac0f673199544"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"ea5e5279556c43f2aa5fa92d1b6fba2b479acad4","unresolved":false,"context_lines":[{"line_number":162,"context_line":"            raise exception.GlusterfsException(msg)"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"        LOG.info(_LI(\"Found %d Gluster volumes allocated for Manila.\""},{"line_number":165,"context_line":"                     ) % len(gluster_volumes0))"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"        try:"},{"line_number":168,"context_line":"            self._execute(\u0027mount.glusterfs\u0027, check_exit_code\u003dFalse)"}],"source_content_type":"text/x-python","patch_set":5,"id":"baa041b7_23e24d04","line":165,"updated":"2015-04-02 11:24:53.000000000","message":"Should use \",\" instead of \"%\".","commit_id":"13ade58fc753dbd1ff232168be0ac0f673199544"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"efca79615c155b53e74f50e4843347ff1a07d663","unresolved":false,"context_lines":[{"line_number":162,"context_line":"            raise exception.GlusterfsException(msg)"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"        LOG.info(_LI(\"Found %d Gluster volumes allocated for Manila.\""},{"line_number":165,"context_line":"                     ) % len(gluster_volumes0))"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"        try:"},{"line_number":168,"context_line":"            self._execute(\u0027mount.glusterfs\u0027, check_exit_code\u003dFalse)"}],"source_content_type":"text/x-python","patch_set":5,"id":"baa041b7_6636dc53","line":165,"in_reply_to":"baa041b7_23e24d04","updated":"2015-04-05 10:44:31.000000000","message":"Done","commit_id":"13ade58fc753dbd1ff232168be0ac0f673199544"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"9e8b90998f93747e746c4f04fe555aac79fe7933","unresolved":false,"context_lines":[{"line_number":224,"context_line":"                LOG.error(_LE(\"Error retrieving volume list%(hostinfo)s: \""},{"line_number":225,"context_line":"                              \"%(err)s\") % msgdict)"},{"line_number":226,"context_line":"                raise exception.GlusterfsException("},{"line_number":227,"context_line":"                    \u0027gluster volume list failed\u0027)"},{"line_number":228,"context_line":"            for volname in out.split(\"\\n\"):"},{"line_number":229,"context_line":"                patmatch \u003d self.volume_pattern.match(volname)"},{"line_number":230,"context_line":"                if not patmatch:"}],"source_content_type":"text/x-python","patch_set":5,"id":"da9b358b_52ff1067","line":227,"updated":"2015-04-01 03:28:08.000000000","message":"The message should be wrapped in _(\u0027some text\u0027)","commit_id":"13ade58fc753dbd1ff232168be0ac0f673199544"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"efca79615c155b53e74f50e4843347ff1a07d663","unresolved":false,"context_lines":[{"line_number":224,"context_line":"                LOG.error(_LE(\"Error retrieving volume list%(hostinfo)s: \""},{"line_number":225,"context_line":"                              \"%(err)s\") % msgdict)"},{"line_number":226,"context_line":"                raise exception.GlusterfsException("},{"line_number":227,"context_line":"                    \u0027gluster volume list failed\u0027)"},{"line_number":228,"context_line":"            for volname in out.split(\"\\n\"):"},{"line_number":229,"context_line":"                patmatch \u003d self.volume_pattern.match(volname)"},{"line_number":230,"context_line":"                if not patmatch:"}],"source_content_type":"text/x-python","patch_set":5,"id":"baa041b7_46399840","line":227,"in_reply_to":"da9b358b_52ff1067","updated":"2015-04-05 10:44:31.000000000","message":"Done","commit_id":"13ade58fc753dbd1ff232168be0ac0f673199544"},{"author":{"_account_id":8056,"name":"Ramana Raja","email":"rraja@redhat.com","username":"Ram_Raja"},"change_message_id":"7f8f3813ee3a42d4700de43452ad567870d1950e","unresolved":false,"context_lines":[{"line_number":247,"context_line":"        shares \u003d self.db.share_get_all(context)"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"        for s in shares:"},{"line_number":250,"context_line":"            vol \u003d s[\u0027export_location\u0027]"},{"line_number":251,"context_line":"            gluster_mgr \u003d self._glustermanager(vol)"},{"line_number":252,"context_line":"            self.gluster_used_vols_dict[vol] \u003d gluster_mgr"},{"line_number":253,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"baa041b7_71b01ede","line":250,"updated":"2015-04-02 10:53:49.000000000","message":"Some shares in the database might be in error state. So you\u0027d need to check whether the share is \u0027available\u0027. And if a share is \u0027available\u0027, then let the Gluster volume, used as the Manila share, to be in the \u0027gluster_used_vols_dict\u0027 dictionary.","commit_id":"13ade58fc753dbd1ff232168be0ac0f673199544"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"efca79615c155b53e74f50e4843347ff1a07d663","unresolved":false,"context_lines":[{"line_number":247,"context_line":"        shares \u003d self.db.share_get_all(context)"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"        for s in shares:"},{"line_number":250,"context_line":"            vol \u003d s[\u0027export_location\u0027]"},{"line_number":251,"context_line":"            gluster_mgr \u003d self._glustermanager(vol)"},{"line_number":252,"context_line":"            self.gluster_used_vols_dict[vol] \u003d gluster_mgr"},{"line_number":253,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"baa041b7_2641f4a9","line":250,"in_reply_to":"baa041b7_71b01ede","updated":"2015-04-05 10:44:31.000000000","message":"Done","commit_id":"13ade58fc753dbd1ff232168be0ac0f673199544"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"9e8b90998f93747e746c4f04fe555aac79fe7933","unresolved":false,"context_lines":[{"line_number":280,"context_line":"    @staticmethod"},{"line_number":281,"context_line":"    def _restart_gluster_vol(gluster_mgr):"},{"line_number":282,"context_line":"        try:"},{"line_number":283,"context_line":"            # XXX Why \u0027--mode\u003dscript\u0027 ?"},{"line_number":284,"context_line":"            gluster_mgr.gluster_call("},{"line_number":285,"context_line":"                \u0027volume\u0027, \u0027stop\u0027, gluster_mgr.volume, \u0027--mode\u003dscript\u0027)"},{"line_number":286,"context_line":"        except exception.ProcessExecutionError as exc:"}],"source_content_type":"text/x-python","patch_set":5,"id":"da9b358b_b2c09c2b","line":283,"updated":"2015-04-01 03:28:08.000000000","message":"What does \u0027XXX\u0027 mean?  Is this a \u0027TODO\u0027?  Are you planning to investigate why this option is needed?","commit_id":"13ade58fc753dbd1ff232168be0ac0f673199544"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"2f8e3f202f272ffb10691811603489d477181c98","unresolved":false,"context_lines":[{"line_number":280,"context_line":"    @staticmethod"},{"line_number":281,"context_line":"    def _restart_gluster_vol(gluster_mgr):"},{"line_number":282,"context_line":"        try:"},{"line_number":283,"context_line":"            # XXX Why \u0027--mode\u003dscript\u0027 ?"},{"line_number":284,"context_line":"            gluster_mgr.gluster_call("},{"line_number":285,"context_line":"                \u0027volume\u0027, \u0027stop\u0027, gluster_mgr.volume, \u0027--mode\u003dscript\u0027)"},{"line_number":286,"context_line":"        except exception.ProcessExecutionError as exc:"}],"source_content_type":"text/x-python","patch_set":5,"id":"baa041b7_bab461d1","line":283,"in_reply_to":"da9b358b_05b25b94","updated":"2015-04-01 15:45:25.000000000","message":"Csaba, your comment proved that essence of discussion you refer to should be written instead of line 283.\n\n\"XXX\" is indeed unclear.\n\nIf nothing is going to be changed, then need add \"NOTE\" here, like following:\n\n\"\"\"\n\nNOTE(csaba): provide param \"--mode\u003dscript\" to disable interactive behaviour.\n\n\"\"\"","commit_id":"13ade58fc753dbd1ff232168be0ac0f673199544"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"efca79615c155b53e74f50e4843347ff1a07d663","unresolved":false,"context_lines":[{"line_number":280,"context_line":"    @staticmethod"},{"line_number":281,"context_line":"    def _restart_gluster_vol(gluster_mgr):"},{"line_number":282,"context_line":"        try:"},{"line_number":283,"context_line":"            # XXX Why \u0027--mode\u003dscript\u0027 ?"},{"line_number":284,"context_line":"            gluster_mgr.gluster_call("},{"line_number":285,"context_line":"                \u0027volume\u0027, \u0027stop\u0027, gluster_mgr.volume, \u0027--mode\u003dscript\u0027)"},{"line_number":286,"context_line":"        except exception.ProcessExecutionError as exc:"}],"source_content_type":"text/x-python","patch_set":5,"id":"baa041b7_e64aecc4","line":283,"in_reply_to":"da9b358b_b2c09c2b","updated":"2015-04-05 10:44:31.000000000","message":"Done","commit_id":"13ade58fc753dbd1ff232168be0ac0f673199544"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"7ab822d8a2e532f6cc581f36efe1a43025e2543b","unresolved":false,"context_lines":[{"line_number":280,"context_line":"    @staticmethod"},{"line_number":281,"context_line":"    def _restart_gluster_vol(gluster_mgr):"},{"line_number":282,"context_line":"        try:"},{"line_number":283,"context_line":"            # XXX Why \u0027--mode\u003dscript\u0027 ?"},{"line_number":284,"context_line":"            gluster_mgr.gluster_call("},{"line_number":285,"context_line":"                \u0027volume\u0027, \u0027stop\u0027, gluster_mgr.volume, \u0027--mode\u003dscript\u0027)"},{"line_number":286,"context_line":"        except exception.ProcessExecutionError as exc:"}],"source_content_type":"text/x-python","patch_set":5,"id":"da9b358b_05b25b94","line":283,"in_reply_to":"da9b358b_b2c09c2b","updated":"2015-04-01 14:07:41.000000000","message":"The investigation took place here: https://review.openstack.org/#/c/162542/3/manila/share/drivers/glusterfs_native.py,unified, pls see comments at same place (line 274 of new code).\n\nOutcome: \"--mode\u003dscript\" is not needed (neither a problem).\n\nRegarding the usage of the \"XXX\" marker, are these conventions: \n\nhttp://c2.com/cgi/wiki?FixmeComment \n\nor \n\nhttp://www.oracle.com/technetwork/java/javase/documentation/codeconventions-137265.html , 10.5.4\n\nforegin to OpenStack codebase?","commit_id":"13ade58fc753dbd1ff232168be0ac0f673199544"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"7b45f4bfdb2591d0cf621275c9985f7f1b49c448","unresolved":false,"context_lines":[{"line_number":49,"context_line":"LOG \u003d log.getLogger(__name__)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"glusterfs_native_manila_share_opts \u003d ["},{"line_number":52,"context_line":"    cfg.ListOpt(\u0027glusterfs_servers\u0027,"},{"line_number":53,"context_line":"                default\u003d[],"},{"line_number":54,"context_line":"                help\u003d\u0027List of GlusterFS servers that can be used to create \u0027"},{"line_number":55,"context_line":"                     \u0027shares. Each GlusterFS server should be of the form \u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"9aa53dc9_dfc03be3","line":52,"updated":"2015-04-06 12:27:04.000000000","message":"This one should have \"deprecated name\" because it exists in Juno release.","commit_id":"0a41a1d0ec63b336be96e23f72b61d9902d1d03e"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"25337b20627c00bc7adc9514f78962aa4b5a9d84","unresolved":false,"context_lines":[{"line_number":49,"context_line":"LOG \u003d log.getLogger(__name__)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"glusterfs_native_manila_share_opts \u003d ["},{"line_number":52,"context_line":"    cfg.ListOpt(\u0027glusterfs_servers\u0027,"},{"line_number":53,"context_line":"                default\u003d[],"},{"line_number":54,"context_line":"                help\u003d\u0027List of GlusterFS servers that can be used to create \u0027"},{"line_number":55,"context_line":"                     \u0027shares. Each GlusterFS server should be of the form \u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"9aa53dc9_ea779b00","line":52,"in_reply_to":"9aa53dc9_824b7c2b","updated":"2015-04-07 09:06:42.000000000","message":"Done","commit_id":"0a41a1d0ec63b336be96e23f72b61d9902d1d03e"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"1d06ceb6f7e3db3ca4e330d41ca1a386f0362d4f","unresolved":false,"context_lines":[{"line_number":49,"context_line":"LOG \u003d log.getLogger(__name__)"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"glusterfs_native_manila_share_opts \u003d ["},{"line_number":52,"context_line":"    cfg.ListOpt(\u0027glusterfs_servers\u0027,"},{"line_number":53,"context_line":"                default\u003d[],"},{"line_number":54,"context_line":"                help\u003d\u0027List of GlusterFS servers that can be used to create \u0027"},{"line_number":55,"context_line":"                     \u0027shares. Each GlusterFS server should be of the form \u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"9aa53dc9_824b7c2b","line":52,"in_reply_to":"9aa53dc9_dfc03be3","updated":"2015-04-06 12:30:36.000000000","message":"https://github.com/openstack/oslo.config/blob/d1ccc438/oslo_config/cfg.py#L643\n\nExamples:\n\nhttps://github.com/openstack/manila/blob/0bb31868/manila/share/drivers/netapp/options.py#L34\n\nhttps://github.com/openstack/manila/blob/4827bb97/manila/network/neutron/api.py#L53","commit_id":"0a41a1d0ec63b336be96e23f72b61d9902d1d03e"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"0d3f0b39ac949ed8935b547970b5d20df52b2731","unresolved":false,"context_lines":[{"line_number":51,"context_line":"glusterfs_native_manila_share_opts \u003d ["},{"line_number":52,"context_line":"    cfg.ListOpt(\u0027glusterfs_servers\u0027,"},{"line_number":53,"context_line":"                default\u003d[],"},{"line_number":54,"context_line":"                deprecated_name\u003d\u0027glusterfs-targets\u0027,"},{"line_number":55,"context_line":"                help\u003d\u0027List of GlusterFS servers that can be used to create \u0027"},{"line_number":56,"context_line":"                     \u0027shares. Each GlusterFS server should be of the form \u0027"},{"line_number":57,"context_line":"                     \u0027[remoteuser@]\u003cvolserver\u003e, and they are assumed to \u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"9aa53dc9_355f2443","line":54,"updated":"2015-04-07 09:38:17.000000000","message":"s/glusterfs-targets/glusterfs_targets/","commit_id":"a16c5e63ba68ea2c2962c07d379c36e3e092d892"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"790521739cf2b331fea6b5d125c9b004be3a8581","unresolved":false,"context_lines":[{"line_number":51,"context_line":"glusterfs_native_manila_share_opts \u003d ["},{"line_number":52,"context_line":"    cfg.ListOpt(\u0027glusterfs_servers\u0027,"},{"line_number":53,"context_line":"                default\u003d[],"},{"line_number":54,"context_line":"                deprecated_name\u003d\u0027glusterfs-targets\u0027,"},{"line_number":55,"context_line":"                help\u003d\u0027List of GlusterFS servers that can be used to create \u0027"},{"line_number":56,"context_line":"                     \u0027shares. Each GlusterFS server should be of the form \u0027"},{"line_number":57,"context_line":"                     \u0027[remoteuser@]\u003cvolserver\u003e, and they are assumed to \u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"9aa53dc9_07fab5bd","line":54,"in_reply_to":"9aa53dc9_355f2443","updated":"2015-04-07 10:20:08.000000000","message":"Done","commit_id":"a16c5e63ba68ea2c2962c07d379c36e3e092d892"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"5b785a2256043ed1e297b870b751742c213d6f61","unresolved":false,"context_lines":[{"line_number":158,"context_line":""},{"line_number":159,"context_line":"        # We don\u0027t use a service mount as its not necessary for us."},{"line_number":160,"context_line":"        # Do some sanity checks."},{"line_number":161,"context_line":"        gluster_volumes0 \u003d set(self._fetch_gluster_volumes())"},{"line_number":162,"context_line":"        if not gluster_volumes0:"},{"line_number":163,"context_line":"            # No suitable volumes are found on the Gluster end."},{"line_number":164,"context_line":"            # Raise exception."}],"source_content_type":"text/x-python","patch_set":8,"id":"9aa53dc9_53ae362f","line":161,"updated":"2015-04-07 14:00:59.000000000","message":"Var name \"gluster_volumes0\" looks strange. It makes think that somewhere \"gluster_volumes1\" exists. But it is not so indeed.","commit_id":"3b2a57ffcefb98941005f7025467579d748f16b8"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"4d5396fafd0d3076fe2461c16675d8d68b277874","unresolved":false,"context_lines":[{"line_number":158,"context_line":""},{"line_number":159,"context_line":"        # We don\u0027t use a service mount as its not necessary for us."},{"line_number":160,"context_line":"        # Do some sanity checks."},{"line_number":161,"context_line":"        gluster_volumes0 \u003d set(self._fetch_gluster_volumes())"},{"line_number":162,"context_line":"        if not gluster_volumes0:"},{"line_number":163,"context_line":"            # No suitable volumes are found on the Gluster end."},{"line_number":164,"context_line":"            # Raise exception."}],"source_content_type":"text/x-python","patch_set":8,"id":"9aa53dc9_9b65e846","line":161,"in_reply_to":"9aa53dc9_53ae362f","updated":"2015-04-07 17:25:32.000000000","message":"Done","commit_id":"3b2a57ffcefb98941005f7025467579d748f16b8"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"5b785a2256043ed1e297b870b751742c213d6f61","unresolved":false,"context_lines":[{"line_number":354,"context_line":"            # found in the volume name, we require that the"},{"line_number":355,"context_line":"            # indicated size adheres to caller\u0027s spec)."},{"line_number":356,"context_line":"            volsize \u003d get_volsize(vol)"},{"line_number":357,"context_line":"            if not volsize or (volsize and volsize \u003e\u003d size):"},{"line_number":358,"context_line":"                hostmap \u003d volmap.get(volsize)"},{"line_number":359,"context_line":"                if not hostmap:"},{"line_number":360,"context_line":"                    hostmap \u003d {}"}],"source_content_type":"text/x-python","patch_set":8,"id":"9aa53dc9_93171e51","line":357,"updated":"2015-04-07 14:00:59.000000000","message":"Second \"volsize\" is redundant. Because first part of condition already verified it. So, should be simplified:\n\n\"\"\"\n\nif not volsize or volsize \u003e\u003d size:\n\n\"\"\"","commit_id":"3b2a57ffcefb98941005f7025467579d748f16b8"},{"author":{"_account_id":9521,"name":"Csaba Henk","email":"chenk@redhat.com","username":"chenk"},"change_message_id":"4d5396fafd0d3076fe2461c16675d8d68b277874","unresolved":false,"context_lines":[{"line_number":354,"context_line":"            # found in the volume name, we require that the"},{"line_number":355,"context_line":"            # indicated size adheres to caller\u0027s spec)."},{"line_number":356,"context_line":"            volsize \u003d get_volsize(vol)"},{"line_number":357,"context_line":"            if not volsize or (volsize and volsize \u003e\u003d size):"},{"line_number":358,"context_line":"                hostmap \u003d volmap.get(volsize)"},{"line_number":359,"context_line":"                if not hostmap:"},{"line_number":360,"context_line":"                    hostmap \u003d {}"}],"source_content_type":"text/x-python","patch_set":8,"id":"9aa53dc9_bbbc2c6d","line":357,"in_reply_to":"9aa53dc9_93171e51","updated":"2015-04-07 17:25:32.000000000","message":"Done","commit_id":"3b2a57ffcefb98941005f7025467579d748f16b8"}]}
