)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"a0e202df6fc46e2e92ca1bad17b49e97aeb1ef25","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Create helper tools for logging to VMs"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This change has been introduced as part of"},{"line_number":10,"context_line":"creating new tests that has to SSH to VMs"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Because configuring network, ports, secgroups and"},{"line_number":13,"context_line":"servers that allows SSH connection it is a"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":45,"id":"3f79a3b5_b015c84e","line":10,"range":{"start_line":10,"start_character":24,"end_line":10,"end_character":28},"updated":"2018-10-08 21:11:07.000000000","message":"nit: have","commit_id":"043a389ffbd77f4cb1c766d353af9cc6cd5d6867"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"a0e202df6fc46e2e92ca1bad17b49e97aeb1ef25","unresolved":false,"context_lines":[{"line_number":10,"context_line":"creating new tests that has to SSH to VMs"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Because configuring network, ports, secgroups and"},{"line_number":13,"context_line":"servers that allows SSH connection it is a"},{"line_number":14,"context_line":"tedious repetitive and error-prone work, some"},{"line_number":15,"context_line":"new \"highlevel\" methods are being introduced."},{"line_number":16,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":45,"id":"3f79a3b5_6b042515","line":13,"range":{"start_line":13,"start_character":13,"end_line":13,"end_character":19},"updated":"2018-10-08 21:11:07.000000000","message":"nit: allow","commit_id":"043a389ffbd77f4cb1c766d353af9cc6cd5d6867"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"a0e202df6fc46e2e92ca1bad17b49e97aeb1ef25","unresolved":false,"context_lines":[{"line_number":10,"context_line":"creating new tests that has to SSH to VMs"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Because configuring network, ports, secgroups and"},{"line_number":13,"context_line":"servers that allows SSH connection it is a"},{"line_number":14,"context_line":"tedious repetitive and error-prone work, some"},{"line_number":15,"context_line":"new \"highlevel\" methods are being introduced."},{"line_number":16,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":45,"id":"3f79a3b5_eb3035ec","line":13,"range":{"start_line":13,"start_character":35,"end_line":13,"end_character":37},"updated":"2018-10-08 21:11:07.000000000","message":"remove","commit_id":"043a389ffbd77f4cb1c766d353af9cc6cd5d6867"}],"neutron_tempest_plugin/scenario/base.py":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"9f0ece254f3e57c2755546586a6583654f4beb8a","unresolved":false,"context_lines":[{"line_number":378,"context_line":"                if rule[key] !\u003d value:"},{"line_number":379,"context_line":"                    break"},{"line_number":380,"context_line":"            else:"},{"line_number":381,"context_line":"                rules.append(rule)"},{"line_number":382,"context_line":""},{"line_number":383,"context_line":"        message \u003d (\"Security group {name!r} has no rule matching \""},{"line_number":384,"context_line":"                   \"{fields!r}: {message}\").format(name\u003dsecgroup[\u0027name\u0027],"}],"source_content_type":"text/x-python","patch_set":15,"id":"5f7c97a3_d3fd4bb2","line":381,"updated":"2018-06-27 09:21:55.000000000","message":"You can simply return here and call something like:\n\n    self.fail(message)\n\nin L387 and not iterate through other rules in such case","commit_id":"bbeb17a2180c0b2b104e401cc6213265b2813444"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"64bb1f8d77e741eff6b6ab436e027fe3e3288376","unresolved":false,"context_lines":[{"line_number":378,"context_line":"                if rule[key] !\u003d value:"},{"line_number":379,"context_line":"                    break"},{"line_number":380,"context_line":"            else:"},{"line_number":381,"context_line":"                rules.append(rule)"},{"line_number":382,"context_line":""},{"line_number":383,"context_line":"        message \u003d (\"Security group {name!r} has no rule matching \""},{"line_number":384,"context_line":"                   \"{fields!r}: {message}\").format(name\u003dsecgroup[\u0027name\u0027],"}],"source_content_type":"text/x-python","patch_set":15,"id":"5f7c97a3_cd620842","line":381,"in_reply_to":"5f7c97a3_58684bf3","updated":"2018-07-26 13:30:28.000000000","message":"Done","commit_id":"bbeb17a2180c0b2b104e401cc6213265b2813444"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"6d357ff1047aa06bb089d574cebcd80ea465ce92","unresolved":false,"context_lines":[{"line_number":378,"context_line":"                if rule[key] !\u003d value:"},{"line_number":379,"context_line":"                    break"},{"line_number":380,"context_line":"            else:"},{"line_number":381,"context_line":"                rules.append(rule)"},{"line_number":382,"context_line":""},{"line_number":383,"context_line":"        message \u003d (\"Security group {name!r} has no rule matching \""},{"line_number":384,"context_line":"                   \"{fields!r}: {message}\").format(name\u003dsecgroup[\u0027name\u0027],"}],"source_content_type":"text/x-python","patch_set":15,"id":"5f7c97a3_58684bf3","line":381,"in_reply_to":"5f7c97a3_d3fd4bb2","updated":"2018-06-28 09:53:25.000000000","message":"Here I am looking for at least one rule that apply with given parameters. I should exit from the function as soon the first rule is found, instead of appending rules to a list. Finally once no rule are found I would execute self.fail method as suggested by you.","commit_id":"bbeb17a2180c0b2b104e401cc6213265b2813444"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"9f0ece254f3e57c2755546586a6583654f4beb8a","unresolved":false,"context_lines":[{"line_number":576,"context_line":"        except Exception:"},{"line_number":577,"context_line":"            LOG.exception("},{"line_number":578,"context_line":"                \u0027Unable to make SSH connection to port: %r\u0027,"},{"line_number":579,"context_line":"                port.get(\u0027name\u0027) or port.get(\u0027id\u0027))"},{"line_number":580,"context_line":"            server_id \u003d port.get(\u0027server_id\u0027)"},{"line_number":581,"context_line":"            if server_id:"},{"line_number":582,"context_line":"                self._log_console_output([{\u0027id\u0027: server_id}])"}],"source_content_type":"text/x-python","patch_set":15,"id":"5f7c97a3_480c1892","line":579,"updated":"2018-06-27 09:21:55.000000000","message":"I think that id is better for debugging later in different log files","commit_id":"bbeb17a2180c0b2b104e401cc6213265b2813444"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"6d357ff1047aa06bb089d574cebcd80ea465ce92","unresolved":false,"context_lines":[{"line_number":576,"context_line":"        except Exception:"},{"line_number":577,"context_line":"            LOG.exception("},{"line_number":578,"context_line":"                \u0027Unable to make SSH connection to port: %r\u0027,"},{"line_number":579,"context_line":"                port.get(\u0027name\u0027) or port.get(\u0027id\u0027))"},{"line_number":580,"context_line":"            server_id \u003d port.get(\u0027server_id\u0027)"},{"line_number":581,"context_line":"            if server_id:"},{"line_number":582,"context_line":"                self._log_console_output([{\u0027id\u0027: server_id}])"}],"source_content_type":"text/x-python","patch_set":15,"id":"5f7c97a3_b8315f0d","line":579,"in_reply_to":"5f7c97a3_480c1892","updated":"2018-06-28 09:53:25.000000000","message":"OK","commit_id":"bbeb17a2180c0b2b104e401cc6213265b2813444"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"64bb1f8d77e741eff6b6ab436e027fe3e3288376","unresolved":false,"context_lines":[{"line_number":576,"context_line":"        except Exception:"},{"line_number":577,"context_line":"            LOG.exception("},{"line_number":578,"context_line":"                \u0027Unable to make SSH connection to port: %r\u0027,"},{"line_number":579,"context_line":"                port.get(\u0027name\u0027) or port.get(\u0027id\u0027))"},{"line_number":580,"context_line":"            server_id \u003d port.get(\u0027server_id\u0027)"},{"line_number":581,"context_line":"            if server_id:"},{"line_number":582,"context_line":"                self._log_console_output([{\u0027id\u0027: server_id}])"}],"source_content_type":"text/x-python","patch_set":15,"id":"5f7c97a3_0dcfa028","line":579,"in_reply_to":"5f7c97a3_b8315f0d","updated":"2018-07-26 13:30:28.000000000","message":"Done","commit_id":"bbeb17a2180c0b2b104e401cc6213265b2813444"}],"neutron_tempest_plugin/scenario/loginable.py":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"23d8c8a71343cbda1bce9f26906f103e7e51ac9e","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                                   tenant_id\u003dtenant_id)"},{"line_number":103,"context_line":"        # Save subnet ID for later use"},{"line_number":104,"context_line":"        network[\u0027subnets\u0027].append(subnet[\u0027id\u0027])"},{"line_number":105,"context_line":"        if router:"},{"line_number":106,"context_line":"            if router is True:"},{"line_number":107,"context_line":"                # This eventually creates a router for ssh connection"},{"line_number":108,"context_line":"                router \u003d cls.get_loginable_router()"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_e378357f","line":105,"range":{"start_line":105,"start_character":11,"end_line":105,"end_character":17},"updated":"2018-07-26 12:38:58.000000000","message":"so router can be both \"boolean\" and \"router object\"?\nMaybe better would be to split it to two parameters:\n\"use_router\" which would be boolean and \"router\" which would be object.","commit_id":"fc8c4c85ac83da072b773b9073a31d65ae281e06"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"640d5914c3c3cf6e52d37ac50ed65d2293adc016","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                                   tenant_id\u003dtenant_id)"},{"line_number":103,"context_line":"        # Save subnet ID for later use"},{"line_number":104,"context_line":"        network[\u0027subnets\u0027].append(subnet[\u0027id\u0027])"},{"line_number":105,"context_line":"        if router:"},{"line_number":106,"context_line":"            if router is True:"},{"line_number":107,"context_line":"                # This eventually creates a router for ssh connection"},{"line_number":108,"context_line":"                router \u003d cls.get_loginable_router()"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_fa843d5f","line":105,"range":{"start_line":105,"start_character":11,"end_line":105,"end_character":17},"in_reply_to":"5f7c97a3_e378357f","updated":"2018-07-27 13:22:49.000000000","message":"Done","commit_id":"fc8c4c85ac83da072b773b9073a31d65ae281e06"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"6c48a612d3b55e136c2efe792864a0237d6960e0","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                                   tenant_id\u003dtenant_id)"},{"line_number":103,"context_line":"        # Save subnet ID for later use"},{"line_number":104,"context_line":"        network[\u0027subnets\u0027].append(subnet[\u0027id\u0027])"},{"line_number":105,"context_line":"        if router:"},{"line_number":106,"context_line":"            if router is True:"},{"line_number":107,"context_line":"                # This eventually creates a router for ssh connection"},{"line_number":108,"context_line":"                router \u003d cls.get_loginable_router()"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_25a13e93","line":105,"range":{"start_line":105,"start_character":11,"end_line":105,"end_character":17},"in_reply_to":"5f7c97a3_e378357f","updated":"2018-07-27 05:54:15.000000000","message":"No.  Router can be a dictionary or None. Above line is implicitly converted to:\n\n  if bool(router):\n\nIn python all objects are converted to True by default excepts the ones that implement some special methods that Python uses to give a different behavior.\n\nDictionaries for instance are containers and they are True when they are not empty. None instead gives always False.\n\nIf router is None or an empty dictionary then this gives False.\n\nTherefore above line is exactly equivalent to this one:\n\n  if (router is not None) or (len(router) !\u003d 0):\n\nBecause router is excepted never to be empty (it must contain at least router \u0027id\u0027, above line is roughly equivalent to:\n\n  if router is not None:\n\nThis way of checking if something is not None is quite common and even recommended by somebody because make the code easier to read. Du you prefer I check it is not None instead?","commit_id":"fc8c4c85ac83da072b773b9073a31d65ae281e06"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"6c48a612d3b55e136c2efe792864a0237d6960e0","unresolved":false,"context_lines":[{"line_number":103,"context_line":"        # Save subnet ID for later use"},{"line_number":104,"context_line":"        network[\u0027subnets\u0027].append(subnet[\u0027id\u0027])"},{"line_number":105,"context_line":"        if router:"},{"line_number":106,"context_line":"            if router is True:"},{"line_number":107,"context_line":"                # This eventually creates a router for ssh connection"},{"line_number":108,"context_line":"                router \u003d cls.get_loginable_router()"},{"line_number":109,"context_line":"            client.add_router_interface_with_subnet_id(router[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_e5dd8613","line":106,"range":{"start_line":106,"start_character":12,"end_line":106,"end_character":29},"updated":"2018-07-27 05:54:15.000000000","message":"I don\u0027t remember why I did this. I don\u0027t like this either. I am going to change this behavior. Thanks for spotting it. I think we can remove this block. If user wants this to happen then he can write below code:\n\ncreate_loginable_network(router\u003dget_loginable_router())","commit_id":"fc8c4c85ac83da072b773b9073a31d65ae281e06"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"640d5914c3c3cf6e52d37ac50ed65d2293adc016","unresolved":false,"context_lines":[{"line_number":103,"context_line":"        # Save subnet ID for later use"},{"line_number":104,"context_line":"        network[\u0027subnets\u0027].append(subnet[\u0027id\u0027])"},{"line_number":105,"context_line":"        if router:"},{"line_number":106,"context_line":"            if router is True:"},{"line_number":107,"context_line":"                # This eventually creates a router for ssh connection"},{"line_number":108,"context_line":"                router \u003d cls.get_loginable_router()"},{"line_number":109,"context_line":"            client.add_router_interface_with_subnet_id(router[\u0027id\u0027],"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_9a750989","line":106,"range":{"start_line":106,"start_character":12,"end_line":106,"end_character":29},"in_reply_to":"5f7c97a3_e5dd8613","updated":"2018-07-27 13:22:49.000000000","message":"Done","commit_id":"fc8c4c85ac83da072b773b9073a31d65ae281e06"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"23d8c8a71343cbda1bce9f26906f103e7e51ac9e","unresolved":false,"context_lines":[{"line_number":193,"context_line":"            port[\u0027loginable_ip_address\u0027] \u003d ip_address"},{"line_number":194,"context_line":"            return ip_address"},{"line_number":195,"context_line":"        else:"},{"line_number":196,"context_line":"            raise ValueError(\"No such IP address for SSH connection.\")"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    def ssh_client_to_port(self, port, username\u003dNone, keypair\u003dNone, **kwargs):"},{"line_number":199,"context_line":"        \"\"\"Create an SSH client to given server port"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_5e29c0ee","line":196,"range":{"start_line":196,"start_character":33,"end_line":196,"end_character":37},"updated":"2018-07-26 12:38:58.000000000","message":"s/such/valid/ ?","commit_id":"fc8c4c85ac83da072b773b9073a31d65ae281e06"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"6c48a612d3b55e136c2efe792864a0237d6960e0","unresolved":false,"context_lines":[{"line_number":193,"context_line":"            port[\u0027loginable_ip_address\u0027] \u003d ip_address"},{"line_number":194,"context_line":"            return ip_address"},{"line_number":195,"context_line":"        else:"},{"line_number":196,"context_line":"            raise ValueError(\"No such IP address for SSH connection.\")"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    def ssh_client_to_port(self, port, username\u003dNone, keypair\u003dNone, **kwargs):"},{"line_number":199,"context_line":"        \"\"\"Create an SSH client to given server port"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_65c9764f","line":196,"range":{"start_line":196,"start_character":33,"end_line":196,"end_character":37},"in_reply_to":"5f7c97a3_5e29c0ee","updated":"2018-07-27 05:54:15.000000000","message":"Indeed","commit_id":"fc8c4c85ac83da072b773b9073a31d65ae281e06"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"640d5914c3c3cf6e52d37ac50ed65d2293adc016","unresolved":false,"context_lines":[{"line_number":193,"context_line":"            port[\u0027loginable_ip_address\u0027] \u003d ip_address"},{"line_number":194,"context_line":"            return ip_address"},{"line_number":195,"context_line":"        else:"},{"line_number":196,"context_line":"            raise ValueError(\"No such IP address for SSH connection.\")"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    def ssh_client_to_port(self, port, username\u003dNone, keypair\u003dNone, **kwargs):"},{"line_number":199,"context_line":"        \"\"\"Create an SSH client to given server port"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_1aeb39a5","line":196,"range":{"start_line":196,"start_character":33,"end_line":196,"end_character":37},"in_reply_to":"5f7c97a3_65c9764f","updated":"2018-07-27 13:22:49.000000000","message":"Done","commit_id":"fc8c4c85ac83da072b773b9073a31d65ae281e06"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"23d8c8a71343cbda1bce9f26906f103e7e51ac9e","unresolved":false,"context_lines":[{"line_number":215,"context_line":"            return ssh_client.connect()"},{"line_number":216,"context_line":"        except Exception:"},{"line_number":217,"context_line":"            LOG.exception("},{"line_number":218,"context_line":"                \u0027Unable to make SSH connection to port: %r\u0027, port.get(\u0027id\u0027))"},{"line_number":219,"context_line":"            server_id \u003d port.get(\u0027server_id\u0027)"},{"line_number":220,"context_line":"            if server_id:"},{"line_number":221,"context_line":"                self._log_console_output([{\u0027id\u0027: server_id}])"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_fe568c5e","line":218,"updated":"2018-07-26 12:38:58.000000000","message":"Logging also used IP address together with port_id might be useful","commit_id":"fc8c4c85ac83da072b773b9073a31d65ae281e06"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"640d5914c3c3cf6e52d37ac50ed65d2293adc016","unresolved":false,"context_lines":[{"line_number":215,"context_line":"            return ssh_client.connect()"},{"line_number":216,"context_line":"        except Exception:"},{"line_number":217,"context_line":"            LOG.exception("},{"line_number":218,"context_line":"                \u0027Unable to make SSH connection to port: %r\u0027, port.get(\u0027id\u0027))"},{"line_number":219,"context_line":"            server_id \u003d port.get(\u0027server_id\u0027)"},{"line_number":220,"context_line":"            if server_id:"},{"line_number":221,"context_line":"                self._log_console_output([{\u0027id\u0027: server_id}])"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_fa2bdde6","line":218,"in_reply_to":"5f7c97a3_45cc7a61","updated":"2018-07-27 13:22:49.000000000","message":"Done","commit_id":"fc8c4c85ac83da072b773b9073a31d65ae281e06"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"6c48a612d3b55e136c2efe792864a0237d6960e0","unresolved":false,"context_lines":[{"line_number":215,"context_line":"            return ssh_client.connect()"},{"line_number":216,"context_line":"        except Exception:"},{"line_number":217,"context_line":"            LOG.exception("},{"line_number":218,"context_line":"                \u0027Unable to make SSH connection to port: %r\u0027, port.get(\u0027id\u0027))"},{"line_number":219,"context_line":"            server_id \u003d port.get(\u0027server_id\u0027)"},{"line_number":220,"context_line":"            if server_id:"},{"line_number":221,"context_line":"                self._log_console_output([{\u0027id\u0027: server_id}])"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_45cc7a61","line":218,"in_reply_to":"5f7c97a3_fe568c5e","updated":"2018-07-27 05:54:15.000000000","message":"Indeed!","commit_id":"fc8c4c85ac83da072b773b9073a31d65ae281e06"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"b00354fd01491ced2c8dd7cb599b461349316d7d","unresolved":false,"context_lines":[{"line_number":231,"context_line":"            return ip_address"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"        ip_version \u003d ip_version or cls.ip_version_for_ssh"},{"line_number":234,"context_line":"        if cls.connect_method \u003d\u003d \u0027floating\u0027:"},{"line_number":235,"context_line":"            # Floating IPs are cached on port to avoid creating it twice"},{"line_number":236,"context_line":"            port.setdefault(\u0027floating_ips\u0027, [])"},{"line_number":237,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":23,"id":"3f79a3b5_ac2b8292","line":234,"updated":"2018-08-28 08:20:49.000000000","message":"in case You will have \"floating\" connect method used and ip_version will be 6 then You will in fact create new IPv4 floating IP and return this one, right?\nI think that You should raise some exception in such case.","commit_id":"9db8ed0b5985ec508e6c1cb10b505ac424a88ff6"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"85e76696ded65ba97664bc7292b27e7de96706a8","unresolved":false,"context_lines":[{"line_number":231,"context_line":"            return ip_address"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"        ip_version \u003d ip_version or cls.ip_version_for_ssh"},{"line_number":234,"context_line":"        if cls.connect_method \u003d\u003d \u0027floating\u0027:"},{"line_number":235,"context_line":"            # Floating IPs are cached on port to avoid creating it twice"},{"line_number":236,"context_line":"            port.setdefault(\u0027floating_ips\u0027, [])"},{"line_number":237,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":23,"id":"3f79a3b5_c26fa55d","line":234,"in_reply_to":"3f79a3b5_ac2b8292","updated":"2018-08-29 08:12:00.000000000","message":"Why? Is floating IP not supporting IPv6? I am reviewing this part.","commit_id":"9db8ed0b5985ec508e6c1cb10b505ac424a88ff6"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"21903c52bb47e1909f03f3abc2fafa9f2d12cddd","unresolved":false,"context_lines":[{"line_number":231,"context_line":"            return ip_address"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"        ip_version \u003d ip_version or cls.ip_version_for_ssh"},{"line_number":234,"context_line":"        if cls.connect_method \u003d\u003d \u0027floating\u0027:"},{"line_number":235,"context_line":"            # Floating IPs are cached on port to avoid creating it twice"},{"line_number":236,"context_line":"            port.setdefault(\u0027floating_ips\u0027, [])"},{"line_number":237,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":23,"id":"3f79a3b5_200bd82b","line":234,"in_reply_to":"3f79a3b5_c26fa55d","updated":"2018-08-29 09:16:58.000000000","message":"In standard ML2 case Floating IP can be only IPv4. There is fip64 api extension in neutron-lib but I it\u0027s supported only by midonet now IIRC.\nSo maybe You should make it somehow configurable or something like that","commit_id":"9db8ed0b5985ec508e6c1cb10b505ac424a88ff6"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"b00354fd01491ced2c8dd7cb599b461349316d7d","unresolved":false,"context_lines":[{"line_number":284,"context_line":"        except Exception:"},{"line_number":285,"context_line":"            server_id \u003d port.get(\u0027server_id\u0027)"},{"line_number":286,"context_line":"            LOG.exception(\"Unable to make SSH connection to port: \\n\""},{"line_number":287,"context_line":"                          \" - server id:\\n\""},{"line_number":288,"context_line":"                          \" - port id:\\n\""},{"line_number":289,"context_line":"                          \" - host address: %r\\n\""},{"line_number":290,"context_line":"                          \" - username: %r\","},{"line_number":291,"context_line":"                          server_id,"}],"source_content_type":"text/x-python","patch_set":23,"id":"3f79a3b5_bf140242","line":288,"range":{"start_line":287,"start_character":28,"end_line":288,"end_character":41},"updated":"2018-08-28 08:20:49.000000000","message":"You missed \"%r\" in those 2 lines","commit_id":"9db8ed0b5985ec508e6c1cb10b505ac424a88ff6"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"85e76696ded65ba97664bc7292b27e7de96706a8","unresolved":false,"context_lines":[{"line_number":284,"context_line":"        except Exception:"},{"line_number":285,"context_line":"            server_id \u003d port.get(\u0027server_id\u0027)"},{"line_number":286,"context_line":"            LOG.exception(\"Unable to make SSH connection to port: \\n\""},{"line_number":287,"context_line":"                          \" - server id:\\n\""},{"line_number":288,"context_line":"                          \" - port id:\\n\""},{"line_number":289,"context_line":"                          \" - host address: %r\\n\""},{"line_number":290,"context_line":"                          \" - username: %r\","},{"line_number":291,"context_line":"                          server_id,"}],"source_content_type":"text/x-python","patch_set":23,"id":"3f79a3b5_b565e81f","line":288,"range":{"start_line":287,"start_character":28,"end_line":288,"end_character":41},"in_reply_to":"3f79a3b5_bf140242","updated":"2018-08-29 08:12:00.000000000","message":"Done","commit_id":"9db8ed0b5985ec508e6c1cb10b505ac424a88ff6"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"b00354fd01491ced2c8dd7cb599b461349316d7d","unresolved":false,"context_lines":[{"line_number":287,"context_line":"                          \" - server id:\\n\""},{"line_number":288,"context_line":"                          \" - port id:\\n\""},{"line_number":289,"context_line":"                          \" - host address: %r\\n\""},{"line_number":290,"context_line":"                          \" - username: %r\","},{"line_number":291,"context_line":"                          server_id,"},{"line_number":292,"context_line":"                          port[\u0027id\u0027],"},{"line_number":293,"context_line":"                          ssh_client.host,"}],"source_content_type":"text/x-python","patch_set":23,"id":"3f79a3b5_ac04e218","line":290,"updated":"2018-08-28 08:20:49.000000000","message":"I\u0027m not sure if such multiline log message is good idea","commit_id":"9db8ed0b5985ec508e6c1cb10b505ac424a88ff6"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"85e76696ded65ba97664bc7292b27e7de96706a8","unresolved":false,"context_lines":[{"line_number":287,"context_line":"                          \" - server id:\\n\""},{"line_number":288,"context_line":"                          \" - port id:\\n\""},{"line_number":289,"context_line":"                          \" - host address: %r\\n\""},{"line_number":290,"context_line":"                          \" - username: %r\","},{"line_number":291,"context_line":"                          server_id,"},{"line_number":292,"context_line":"                          port[\u0027id\u0027],"},{"line_number":293,"context_line":"                          ssh_client.host,"}],"source_content_type":"text/x-python","patch_set":23,"id":"3f79a3b5_556a54ed","line":290,"in_reply_to":"3f79a3b5_ac04e218","updated":"2018-08-29 08:12:00.000000000","message":"Done","commit_id":"9db8ed0b5985ec508e6c1cb10b505ac424a88ff6"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"b00354fd01491ced2c8dd7cb599b461349316d7d","unresolved":false,"context_lines":[{"line_number":337,"context_line":"    floating_ips \u003d port.get(\u0027floating_ips\u0027) or []"},{"line_number":338,"context_line":"    return find_valid_ip(ip_version\u003dip_version,"},{"line_number":339,"context_line":"                         ip_addresses\u003d[ip[\u0027floating_ip_address\u0027]"},{"line_number":340,"context_line":"                                       for ip in floating_ips])"},{"line_number":341,"context_line":""},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"def get_fixed_ip(port, ip_version\u003dNone):"}],"source_content_type":"text/x-python","patch_set":23,"id":"3f79a3b5_9f3266f1","line":340,"updated":"2018-08-28 08:20:49.000000000","message":"nit: please pass arguments in order like are defined in function definition. It\u0027s easier to read later :)","commit_id":"9db8ed0b5985ec508e6c1cb10b505ac424a88ff6"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"b00354fd01491ced2c8dd7cb599b461349316d7d","unresolved":false,"context_lines":[{"line_number":347,"context_line":"    fixed_ips \u003d port.get(\u0027fixed_ips\u0027) or []"},{"line_number":348,"context_line":"    return find_valid_ip(ip_version\u003dip_version,"},{"line_number":349,"context_line":"                         ip_addresses\u003d[ip[\u0027ip_address\u0027]"},{"line_number":350,"context_line":"                                       for ip in fixed_ips])"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"def find_valid_ip(ip_addresses, ip_version\u003dNone):"}],"source_content_type":"text/x-python","patch_set":23,"id":"3f79a3b5_7f518a0d","line":350,"updated":"2018-08-28 08:20:49.000000000","message":"same here","commit_id":"9db8ed0b5985ec508e6c1cb10b505ac424a88ff6"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"8686c6a2913bfec156c8c78f73d6a80d002298a4","unresolved":false,"context_lines":[{"line_number":243,"context_line":""},{"line_number":244,"context_line":"        ip_version \u003d ip_version or cls.ip_version_for_ssh"},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"        if cls.connect_method \u003d\u003d \u0027floating\u0027:"},{"line_number":247,"context_line":"            # Floating IPs are cached on port to avoid creating it twice"},{"line_number":248,"context_line":"            port.setdefault(\u0027floating_ips\u0027, [])"},{"line_number":249,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":27,"id":"3f79a3b5_0ef335a1","line":246,"updated":"2018-08-31 09:28:09.000000000","message":"let\u0027s check an example with:\n    \n    connect_method \u003d \"floating\"\n    ip_version_for_ssh \u003d 6\n\nthen, You will get into this \"if\", in L250 You will have an exception raised, as there is no floating ip with IPv6 available, so You will get to L253 and create there floating IP. And this floating IP will not be IPv6 in e.g. standard case with ML2 plugin. So basically You will have set loginable_ip_address as IPv4 address even if Your ip_version_for_ssh was set to 6.","commit_id":"64fd3343a0b3e330e44ad3c8957d3577e8b75fa1"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"67bcd28d33ee78f7353556cb08c3cbabf03a7ac8","unresolved":false,"context_lines":[{"line_number":243,"context_line":""},{"line_number":244,"context_line":"        ip_version \u003d ip_version or cls.ip_version_for_ssh"},{"line_number":245,"context_line":""},{"line_number":246,"context_line":"        if cls.connect_method \u003d\u003d \u0027floating\u0027:"},{"line_number":247,"context_line":"            # Floating IPs are cached on port to avoid creating it twice"},{"line_number":248,"context_line":"            port.setdefault(\u0027floating_ips\u0027, [])"},{"line_number":249,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":27,"id":"3f79a3b5_6d4f88be","line":246,"in_reply_to":"3f79a3b5_0ef335a1","updated":"2018-09-24 11:48:14.000000000","message":"If there is no fixed IP V6 get_fixed_ip will fail because it is not able to find a valid one with an exception at L376. I am pretty sure get_fixed_ip and get_floating_ip never returns an IP of the wrong version when IP version is specified. To make sure this never happens i changed the method create_loginable_network so that it is going to make sure (at L128) there is at least one fixed IP address suitable for ip_version_for_ssh. I tested the case IPv4 on external network and IPv6 on internal network (I would expect the opposite to work the same on this code). It creates two IPs for each port on the loginable network. On such case get_loginable_ip_address makes a good job getting the right fixed IP address for creating the floating IP. The only problem I got is the VM is booting with only the IPv4 instead of both IPv4 and IPv6. So I miss to write a workaround to ssh to the machine just after the boot (as I know this works using the IP version for SSH), then add missing IP address executing a shell script inside the VM to fix IP address when two are given for the same port. I saw the problem only with RHEL 7.5 machine as I didn\u0027t tried this with others. But this problem is not due to this code, it is due to some bug o limitation of the guest image or DHCP service and fixing it is out of the scope here. What do make sense is adding a workaround later after this patch.\n\nPlease let me know what do you think I should do to make sure the machine have two IP addresses (one for IPv4 and one for IPv6) when it is required.","commit_id":"64fd3343a0b3e330e44ad3c8957d3577e8b75fa1"},{"author":{"_account_id":17120,"name":"Manjeet Singh Bhatia","email":"manjeet.s.bhatia@intel.com","username":"manjeets"},"change_message_id":"198c49edc6d501f1c18d7639d3f776803faddac3","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":44,"id":"3f79a3b5_42bbc3e3","updated":"2018-10-02 18:48:50.000000000","message":"loginable make sense only for server, in othercases you can use provision or something else\n\ndef get_provisioned_port\n\ndef get_provisioned_secrurity_group\n\netc.\n\n\nNote --- I have no issues with word loginable but it can be confuses and IMO, doesn\u0027t make sense for every resource.","commit_id":"aeea61de7953d6ba920351ed6769f88bf1e2d3ae"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"27e60768b16e47e2d020e0e3fb4b52784e082f07","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":44,"id":"3f79a3b5_dbde95da","in_reply_to":"3f79a3b5_3e72544b","updated":"2018-10-05 13:35:39.000000000","message":"After reading this again, I guess I would agree with Manjeet, loginable isn\u0027t the best word for all the resources.  I just don\u0027t have a good answer since all these methods are in the BaseLoginableTestCase class, and there are other methods with the name already, so I\u0027ll leave it up to you to decide.","commit_id":"aeea61de7953d6ba920351ed6769f88bf1e2d3ae"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"0930c901587460a275c92257c2dea792010bf22e","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":44,"id":"3f79a3b5_3e72544b","in_reply_to":"3f79a3b5_42bbc3e3","updated":"2018-10-03 09:35:47.000000000","message":"I created this to make easier to setup a VM and log to it. Most of scenario tests I saw requires it, so therefore there the name. I needed to chose a name, and provisioned sounds good to me. Let see if more iterations are required to have this merged then I will think about changing name. Thanks for your suggestion.","commit_id":"aeea61de7953d6ba920351ed6769f88bf1e2d3ae"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"90014a39a9e88e1bf282452cdcea260287285738","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":44,"id":"3f79a3b5_5effb7ff","in_reply_to":"3f79a3b5_dbde95da","updated":"2018-10-08 07:19:33.000000000","message":"Method names are mostly to avoid colliding with super-class names and to make sure reading the code where this method is coming from. The behavior of these method are intended to be used together in the same test to wraps and make easier configuring a floating-ip like scenario without having to deal with all details involved in making it working in a proper way. I agree loginable is not the best name and provisioned is probably better. But i would not use name methods like:\n\n  create_subnet\n  create_network\n  create_port\n  create_server\n\nThe main reason is because these names are already used from base class and with a different lower level interface we still want to use in the same tests than uses these new tests. Reusing the same name would make the code harder to read and maintain, because would force this method to simulate the behavior and the interface of wrapped methos, where the scope and the goal of this method is not exactly the same.\n\nLower level methods are far more adapt to test APIs, while these are intended to make life easier for writing scenario tests. I will therefore open a new branch with \"provisioned\" names and see which is a better name for this. Thanks for giving your opinion","commit_id":"aeea61de7953d6ba920351ed6769f88bf1e2d3ae"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"27e60768b16e47e2d020e0e3fb4b52784e082f07","unresolved":false,"context_lines":[{"line_number":121,"context_line":"    @classmethod"},{"line_number":122,"context_line":"    def create_loginable_subnet(cls, name\u003dNone, network\u003dNone, ip_version\u003dNone,"},{"line_number":123,"context_line":"                                client\u003dNone, router\u003dNone, enable_dhcp\u003dTrue,"},{"line_number":124,"context_line":"                                ipv6_ra_mode\u003dconstants.DHCPV6_STATELESS,"},{"line_number":125,"context_line":"                                ipv6_address_mode\u003dconstants.DHCPV6_STATELESS,"},{"line_number":126,"context_line":"                                **subnet_params):"},{"line_number":127,"context_line":"        \"\"\"Creates a subnet for a loginable network"}],"source_content_type":"text/x-python","patch_set":44,"id":"3f79a3b5_dba5354a","line":124,"range":{"start_line":124,"start_character":55,"end_line":124,"end_character":71},"updated":"2018-10-05 13:35:39.000000000","message":"stateless should work for everything, but IPV6_SLAAC might be the better default as it\u0027s probably more well tested.","commit_id":"aeea61de7953d6ba920351ed6769f88bf1e2d3ae"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"27e60768b16e47e2d020e0e3fb4b52784e082f07","unresolved":false,"context_lines":[{"line_number":143,"context_line":"        :param enable_dhcp: enables or disables DHCP service for this subnet."},{"line_number":144,"context_line":"        True by default"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        :param ipv6_dhcp_mode: the IPVS DHCP mode. \u0027dhcpv6-stateless\u0027 by"},{"line_number":147,"context_line":"        default"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"        :param: **subnet_params: extra parameters to be passed to create_subnet"}],"source_content_type":"text/x-python","patch_set":44,"id":"3f79a3b5_1b716de0","line":146,"range":{"start_line":146,"start_character":15,"end_line":146,"end_character":29},"updated":"2018-10-05 13:35:39.000000000","message":"The params are \u0027ipv6_ra_mode\u0027 and \u0027ipv6_address_mode\u0027, looks like this never got updated.","commit_id":"aeea61de7953d6ba920351ed6769f88bf1e2d3ae"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"27e60768b16e47e2d020e0e3fb4b52784e082f07","unresolved":false,"context_lines":[{"line_number":143,"context_line":"        :param enable_dhcp: enables or disables DHCP service for this subnet."},{"line_number":144,"context_line":"        True by default"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        :param ipv6_dhcp_mode: the IPVS DHCP mode. \u0027dhcpv6-stateless\u0027 by"},{"line_number":147,"context_line":"        default"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"        :param: **subnet_params: extra parameters to be passed to create_subnet"}],"source_content_type":"text/x-python","patch_set":44,"id":"3f79a3b5_3b6ea9fe","line":146,"range":{"start_line":146,"start_character":35,"end_line":146,"end_character":39},"updated":"2018-10-05 13:35:39.000000000","message":"s/IPv6","commit_id":"aeea61de7953d6ba920351ed6769f88bf1e2d3ae"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"73dcced97392fe954bdb7dc72b3c869e46789be0","unresolved":false,"context_lines":[{"line_number":143,"context_line":"        :param enable_dhcp: enables or disables DHCP service for this subnet."},{"line_number":144,"context_line":"        True by default"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        :param ipv6_dhcp_mode: the IPVS DHCP mode. \u0027dhcpv6-stateless\u0027 by"},{"line_number":147,"context_line":"        default"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"        :param: **subnet_params: extra parameters to be passed to create_subnet"}],"source_content_type":"text/x-python","patch_set":44,"id":"3f79a3b5_bf64c5e7","line":146,"range":{"start_line":146,"start_character":15,"end_line":146,"end_character":29},"in_reply_to":"3f79a3b5_1b716de0","updated":"2018-10-09 10:56:04.000000000","message":"What do you mean?","commit_id":"aeea61de7953d6ba920351ed6769f88bf1e2d3ae"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"27e60768b16e47e2d020e0e3fb4b52784e082f07","unresolved":false,"context_lines":[{"line_number":263,"context_line":"        By default it will use the one prided by get_loginable_keypair"},{"line_number":264,"context_line":"        method."},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"        :param network: loginable network where to attach server port to."},{"line_number":267,"context_line":"        It is only passed to create_loginable_port when no port is given."},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"        :param security_groups: extra security group list."}],"source_content_type":"text/x-python","patch_set":44,"id":"3f79a3b5_1b1f2d72","line":266,"range":{"start_line":266,"start_character":15,"end_line":266,"end_character":22},"updated":"2018-10-05 13:35:39.000000000","message":"s/networks","commit_id":"aeea61de7953d6ba920351ed6769f88bf1e2d3ae"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"27e60768b16e47e2d020e0e3fb4b52784e082f07","unresolved":false,"context_lines":[{"line_number":263,"context_line":"        By default it will use the one prided by get_loginable_keypair"},{"line_number":264,"context_line":"        method."},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"        :param network: loginable network where to attach server port to."},{"line_number":267,"context_line":"        It is only passed to create_loginable_port when no port is given."},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"        :param security_groups: extra security group list."}],"source_content_type":"text/x-python","patch_set":44,"id":"3f79a3b5_fb2591c0","line":266,"range":{"start_line":266,"start_character":34,"end_line":266,"end_character":41},"updated":"2018-10-05 13:35:39.000000000","message":"s/networks","commit_id":"aeea61de7953d6ba920351ed6769f88bf1e2d3ae"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"73dcced97392fe954bdb7dc72b3c869e46789be0","unresolved":false,"context_lines":[{"line_number":263,"context_line":"        By default it will use the one prided by get_loginable_keypair"},{"line_number":264,"context_line":"        method."},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"        :param network: loginable network where to attach server port to."},{"line_number":267,"context_line":"        It is only passed to create_loginable_port when no port is given."},{"line_number":268,"context_line":""},{"line_number":269,"context_line":"        :param security_groups: extra security group list."}],"source_content_type":"text/x-python","patch_set":44,"id":"3f79a3b5_b4c0677f","line":266,"range":{"start_line":266,"start_character":15,"end_line":266,"end_character":22},"in_reply_to":"3f79a3b5_1b1f2d72","updated":"2018-10-09 10:56:04.000000000","message":"There are two different parameters: network and networks.","commit_id":"aeea61de7953d6ba920351ed6769f88bf1e2d3ae"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"27e60768b16e47e2d020e0e3fb4b52784e082f07","unresolved":false,"context_lines":[{"line_number":271,"context_line":""},{"line_number":272,"context_line":"        :param networks: extra network interfaces to be attached to the VM"},{"line_number":273,"context_line":""},{"line_number":274,"context_line":"        :param **port_params: extra parameters to be forwarded to"},{"line_number":275,"context_line":"        create_server method"},{"line_number":276,"context_line":""},{"line_number":277,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":44,"id":"3f79a3b5_7b13c166","line":274,"range":{"start_line":274,"start_character":17,"end_line":274,"end_character":28},"updated":"2018-10-05 13:35:39.000000000","message":"s/server_params","commit_id":"aeea61de7953d6ba920351ed6769f88bf1e2d3ae"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"73dcced97392fe954bdb7dc72b3c869e46789be0","unresolved":false,"context_lines":[{"line_number":271,"context_line":""},{"line_number":272,"context_line":"        :param networks: extra network interfaces to be attached to the VM"},{"line_number":273,"context_line":""},{"line_number":274,"context_line":"        :param **port_params: extra parameters to be forwarded to"},{"line_number":275,"context_line":"        create_server method"},{"line_number":276,"context_line":""},{"line_number":277,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":44,"id":"3f79a3b5_543793b0","line":274,"range":{"start_line":274,"start_character":17,"end_line":274,"end_character":28},"in_reply_to":"3f79a3b5_7b13c166","updated":"2018-10-09 10:56:04.000000000","message":"Done","commit_id":"aeea61de7953d6ba920351ed6769f88bf1e2d3ae"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"27e60768b16e47e2d020e0e3fb4b52784e082f07","unresolved":false,"context_lines":[{"line_number":324,"context_line":"        :param client: network client to be used for creating floating IP if"},{"line_number":325,"context_line":"        required."},{"line_number":326,"context_line":""},{"line_number":327,"context_line":"        :param **port_params: extra parameters to be forwarded to"},{"line_number":328,"context_line":"        create_floatingip method"},{"line_number":329,"context_line":"        \"\"\""},{"line_number":330,"context_line":""}],"source_content_type":"text/x-python","patch_set":44,"id":"3f79a3b5_3b054916","line":327,"range":{"start_line":327,"start_character":17,"end_line":327,"end_character":28},"updated":"2018-10-05 13:35:39.000000000","message":"s/floatingip_params","commit_id":"aeea61de7953d6ba920351ed6769f88bf1e2d3ae"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"a0e202df6fc46e2e92ca1bad17b49e97aeb1ef25","unresolved":false,"context_lines":[{"line_number":131,"context_line":"        :param network: loginable network of this subnet. It uses default"},{"line_number":132,"context_line":"        loginable network if not given"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"        :param ip_version: IP version for the network to be created. It uses"},{"line_number":135,"context_line":"        cls._ip_version by default"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        :param client: networking client. It uses the same of the network"}],"source_content_type":"text/x-python","patch_set":45,"id":"3f79a3b5_0bdd716c","line":134,"range":{"start_line":134,"start_character":46,"end_line":134,"end_character":53},"updated":"2018-10-08 21:11:07.000000000","message":"nit: subnet","commit_id":"043a389ffbd77f4cb1c766d353af9cc6cd5d6867"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"a0e202df6fc46e2e92ca1bad17b49e97aeb1ef25","unresolved":false,"context_lines":[{"line_number":137,"context_line":"        :param client: networking client. It uses the same of the network"},{"line_number":138,"context_line":"        if not given"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"        :param router: router used to connect to external network. It get it"},{"line_number":141,"context_line":"        from get_loginable_router method if not given."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"        :param enable_dhcp: enables or disables DHCP service for this subnet."}],"source_content_type":"text/x-python","patch_set":45,"id":"3f79a3b5_eb4fd532","line":140,"range":{"start_line":140,"start_character":70,"end_line":140,"end_character":73},"updated":"2018-10-08 21:11:07.000000000","message":"nit: gets","commit_id":"043a389ffbd77f4cb1c766d353af9cc6cd5d6867"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"a0e202df6fc46e2e92ca1bad17b49e97aeb1ef25","unresolved":false,"context_lines":[{"line_number":244,"context_line":""},{"line_number":245,"context_line":"    def create_loginable_server(self, name\u003dNone, port\u003dNone, flavor_ref\u003dNone,"},{"line_number":246,"context_line":"                                image_ref\u003dNone, keypair\u003dNone, network\u003dNone,"},{"line_number":247,"context_line":"                                networks\u003dNone, security_groups\u003dNone,"},{"line_number":248,"context_line":"                                **server_params):"},{"line_number":249,"context_line":"        \"\"\"Creates a VM instance attached to given port"},{"line_number":250,"context_line":""}],"source_content_type":"text/x-python","patch_set":45,"id":"3f79a3b5_eba7d5a7","line":247,"range":{"start_line":247,"start_character":32,"end_line":247,"end_character":40},"updated":"2018-10-08 21:11:07.000000000","message":"I would change this to additional_networks","commit_id":"043a389ffbd77f4cb1c766d353af9cc6cd5d6867"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"a0e202df6fc46e2e92ca1bad17b49e97aeb1ef25","unresolved":false,"context_lines":[{"line_number":260,"context_line":"        By default it will use the one configured in tempest.conf."},{"line_number":261,"context_line":""},{"line_number":262,"context_line":"        :param keypair: keypair used to authenticate SSH client to the VM."},{"line_number":263,"context_line":"        By default it will use the one prided by get_loginable_keypair"},{"line_number":264,"context_line":"        method."},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"        :param network: loginable network where to attach server port to."}],"source_content_type":"text/x-python","patch_set":45,"id":"3f79a3b5_0b6ed163","line":263,"range":{"start_line":263,"start_character":39,"end_line":263,"end_character":45},"updated":"2018-10-08 21:11:07.000000000","message":"provided","commit_id":"043a389ffbd77f4cb1c766d353af9cc6cd5d6867"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"a0e202df6fc46e2e92ca1bad17b49e97aeb1ef25","unresolved":false,"context_lines":[{"line_number":269,"context_line":"        :param security_groups: extra security group list."},{"line_number":270,"context_line":"        It is only passed to create_loginable_port when no port is given."},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"        :param networks: extra network interfaces to be attached to the VM"},{"line_number":273,"context_line":""},{"line_number":274,"context_line":"        :param **port_params: extra parameters to be forwarded to"},{"line_number":275,"context_line":"        create_server method"}],"source_content_type":"text/x-python","patch_set":45,"id":"3f79a3b5_cbb699dc","line":272,"range":{"start_line":272,"start_character":15,"end_line":272,"end_character":23},"updated":"2018-10-08 21:11:07.000000000","message":"see comment to L247","commit_id":"043a389ffbd77f4cb1c766d353af9cc6cd5d6867"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"a0e202df6fc46e2e92ca1bad17b49e97aeb1ef25","unresolved":false,"context_lines":[{"line_number":277,"context_line":"        \"\"\""},{"line_number":278,"context_line":"        if port:"},{"line_number":279,"context_line":"            if network:"},{"line_number":280,"context_line":"                raise ValueError(\"Cannot use \u0027network\u0027 and \u0027port\u0027 parameters \""},{"line_number":281,"context_line":"                                 \"together\")"},{"line_number":282,"context_line":"            if security_groups:"},{"line_number":283,"context_line":"                raise ValueError(\"Cannot use \u0027network\u0027 and \u0027security_groups\u0027 \""}],"source_content_type":"text/x-python","patch_set":45,"id":"3f79a3b5_ebc0352e","line":280,"range":{"start_line":280,"start_character":46,"end_line":280,"end_character":53},"updated":"2018-10-08 21:11:07.000000000","message":"See comment to L247","commit_id":"043a389ffbd77f4cb1c766d353af9cc6cd5d6867"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"a0e202df6fc46e2e92ca1bad17b49e97aeb1ef25","unresolved":false,"context_lines":[{"line_number":280,"context_line":"                raise ValueError(\"Cannot use \u0027network\u0027 and \u0027port\u0027 parameters \""},{"line_number":281,"context_line":"                                 \"together\")"},{"line_number":282,"context_line":"            if security_groups:"},{"line_number":283,"context_line":"                raise ValueError(\"Cannot use \u0027network\u0027 and \u0027security_groups\u0027 \""},{"line_number":284,"context_line":"                                 \"parameters together\")"},{"line_number":285,"context_line":"        else:"},{"line_number":286,"context_line":"            port \u003d port or self.create_loginable_port("}],"source_content_type":"text/x-python","patch_set":45,"id":"3f79a3b5_8be501de","line":283,"range":{"start_line":283,"start_character":46,"end_line":283,"end_character":53},"updated":"2018-10-08 21:11:07.000000000","message":"See comment to L247","commit_id":"043a389ffbd77f4cb1c766d353af9cc6cd5d6867"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"a0e202df6fc46e2e92ca1bad17b49e97aeb1ef25","unresolved":false,"context_lines":[{"line_number":330,"context_line":""},{"line_number":331,"context_line":"        # loginable_ip_address is cached on port to avoid being obtained"},{"line_number":332,"context_line":"        # twice"},{"line_number":333,"context_line":"        ip_address \u003d port.get(\u0027loginable_ip_address\u0027)"},{"line_number":334,"context_line":"        if ip_address:"},{"line_number":335,"context_line":"            return ip_address"},{"line_number":336,"context_line":""},{"line_number":337,"context_line":"        ip_version \u003d ip_version or cls.ip_version_for_ssh"},{"line_number":338,"context_line":""}],"source_content_type":"text/x-python","patch_set":45,"id":"3f79a3b5_cb1219b4","line":335,"range":{"start_line":333,"start_character":0,"end_line":335,"end_character":29},"updated":"2018-10-08 21:11:07.000000000","message":"Under what circumstances do you envision loosing track of the \u0027loginable_ip_address\u0027 so this check is warranted?","commit_id":"043a389ffbd77f4cb1c766d353af9cc6cd5d6867"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"a0e202df6fc46e2e92ca1bad17b49e97aeb1ef25","unresolved":false,"context_lines":[{"line_number":458,"context_line":""},{"line_number":459,"context_line":"        if len(found_devices) \u003e 1:"},{"line_number":460,"context_line":"            self.log_server_console_output(port\u003dport)"},{"line_number":461,"context_line":"            msg \u003d (\"Port {port_id!r} IPs addresses assigned to more than \""},{"line_number":462,"context_line":"                   \"one NIC: addresses\u003d{addresses!r}, devices\u003d{devices!r}\""},{"line_number":463,"context_line":"                   ).format(port_id\u003dport[\u0027id\u0027],"},{"line_number":464,"context_line":"                            addresses\u003dport[\u0027fixed_ips\u0027],"}],"source_content_type":"text/x-python","patch_set":45,"id":"3f79a3b5_eb8d95d4","line":461,"updated":"2018-10-08 21:11:07.000000000","message":"Frankly, these checks seem convoluted. Under what condition do you expect this to happen? I thought the purpose of this was just to facilitate creating ssh tests","commit_id":"043a389ffbd77f4cb1c766d353af9cc6cd5d6867"}],"neutron_tempest_plugin/scenario/test_basic.py":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"9f0ece254f3e57c2755546586a6583654f4beb8a","unresolved":false,"context_lines":[{"line_number":36,"context_line":"                                self.keypair[\u0027private_key\u0027])"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"class BaseLoginableTest(base.BaseLoginableTestCase):"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    @decorators.idempotent_id(\u00274315a6c3-daab-49dc-b40d-82138f04c0a9\u0027)"},{"line_number":42,"context_line":"    def test_get_loginable_keypair(self):"}],"source_content_type":"text/x-python","patch_set":15,"id":"5f7c97a3_08fe2037","line":39,"updated":"2018-06-27 09:21:55.000000000","message":"I\u0027m not sure if we really need those tests. In fact those helper functions should be used in different tests, right? So we don\u0027t need to test themselves IMO.\nAlso those tests looks for me more like API tests rather than scenario.\nMaybe only test_ssh_to_port could be left here and it should cover all other also","commit_id":"bbeb17a2180c0b2b104e401cc6213265b2813444"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"6d357ff1047aa06bb089d574cebcd80ea465ce92","unresolved":false,"context_lines":[{"line_number":36,"context_line":"                                self.keypair[\u0027private_key\u0027])"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"class BaseLoginableTest(base.BaseLoginableTestCase):"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    @decorators.idempotent_id(\u00274315a6c3-daab-49dc-b40d-82138f04c0a9\u0027)"},{"line_number":42,"context_line":"    def test_get_loginable_keypair(self):"}],"source_content_type":"text/x-python","patch_set":15,"id":"5f7c97a3_ac09202c","line":39,"in_reply_to":"5f7c97a3_08fe2037","updated":"2018-06-28 09:53:25.000000000","message":"I created this test only to test and debug these utilities. Because some future tests (like test_multicast and test_migration) are going to rely on it is safer having these things well tested.","commit_id":"bbeb17a2180c0b2b104e401cc6213265b2813444"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"9f0ece254f3e57c2755546586a6583654f4beb8a","unresolved":false,"context_lines":[{"line_number":39,"context_line":"class BaseLoginableTest(base.BaseLoginableTestCase):"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    @decorators.idempotent_id(\u00274315a6c3-daab-49dc-b40d-82138f04c0a9\u0027)"},{"line_number":42,"context_line":"    def test_get_loginable_keypair(self):"},{"line_number":43,"context_line":"        keypair \u003d self.get_loginable_keypair()"},{"line_number":44,"context_line":"        self.assertEqual(self.loginable_name, keypair[\u0027name\u0027])"},{"line_number":45,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"5f7c97a3_08670053","line":42,"updated":"2018-06-27 09:21:55.000000000","message":"is this really neutron related test?","commit_id":"bbeb17a2180c0b2b104e401cc6213265b2813444"},{"author":{"_account_id":27329,"name":"Federico Ressi","email":"fressi@redhat.com","username":"fressi_redhat"},"change_message_id":"6d357ff1047aa06bb089d574cebcd80ea465ce92","unresolved":false,"context_lines":[{"line_number":39,"context_line":"class BaseLoginableTest(base.BaseLoginableTestCase):"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    @decorators.idempotent_id(\u00274315a6c3-daab-49dc-b40d-82138f04c0a9\u0027)"},{"line_number":42,"context_line":"    def test_get_loginable_keypair(self):"},{"line_number":43,"context_line":"        keypair \u003d self.get_loginable_keypair()"},{"line_number":44,"context_line":"        self.assertEqual(self.loginable_name, keypair[\u0027name\u0027])"},{"line_number":45,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"5f7c97a3_ac2280a2","line":42,"in_reply_to":"5f7c97a3_08670053","updated":"2018-06-28 09:53:25.000000000","message":"No this is a test for base.BaseLoginableTestCase class. Is there a better place to put this type of tests?","commit_id":"bbeb17a2180c0b2b104e401cc6213265b2813444"}]}
