)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"776f6420b5707c11d3c9caf574c17f8e8b058c14","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"a) When using Ironic for baremetal provisioning the"},{"line_number":20,"context_line":"baremetal nodes might be on a different L2 broadcast"},{"line_number":21,"context_line":"segment with a DHCP-relay. In this used-case the"},{"line_number":22,"context_line":"\"on-link\" routes are undesireable."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"b) In a Spine-Leaf deployed openstack, a pattern is"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"da36d5c6_2eb6e1f8","line":21,"range":{"start_line":21,"start_character":35,"end_line":21,"end_character":44},"updated":"2017-02-27 01:42:56.000000000","message":"use case","commit_id":"44e61b455b58511a972b6883f897ff37787dbb66"},{"author":{"_account_id":24245,"name":"Harald Jensås","email":"hjensas@redhat.com","username":"harald.jensas"},"change_message_id":"b67150634c06a3afc518e5d904766b502c9b59bf","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"a) When using Ironic for baremetal provisioning the"},{"line_number":20,"context_line":"baremetal nodes might be on a different L2 broadcast"},{"line_number":21,"context_line":"segment with a DHCP-relay. In this used-case the"},{"line_number":22,"context_line":"\"on-link\" routes are undesireable."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"b) In a Spine-Leaf deployed openstack, a pattern is"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"da36d5c6_74d98cf2","line":21,"range":{"start_line":21,"start_character":35,"end_line":21,"end_character":44},"in_reply_to":"da36d5c6_2eb6e1f8","updated":"2017-02-27 04:33:21.000000000","message":"Fixing.","commit_id":"44e61b455b58511a972b6883f897ff37787dbb66"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"776f6420b5707c11d3c9caf574c17f8e8b058c14","unresolved":false,"context_lines":[{"line_number":25,"context_line":"to use identical VLAN id\u0027s for provider networks in"},{"line_number":26,"context_line":"each leaf. Same VLAN id, but different L2 domain"},{"line_number":27,"context_line":"and different IP subnet."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Change-Id: Iae889e9226a61059cd4f3d37fbe48d013b7a3482"},{"line_number":30,"context_line":"Implements: blueprint tripleo-routed-networks-ironic-inspector"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"da36d5c6_6ecc5989","line":28,"updated":"2017-02-27 01:42:56.000000000","message":"I think we need to file a bug / RFE for this in Neutron","commit_id":"44e61b455b58511a972b6883f897ff37787dbb66"},{"author":{"_account_id":24245,"name":"Harald Jensås","email":"hjensas@redhat.com","username":"harald.jensas"},"change_message_id":"b67150634c06a3afc518e5d904766b502c9b59bf","unresolved":false,"context_lines":[{"line_number":25,"context_line":"to use identical VLAN id\u0027s for provider networks in"},{"line_number":26,"context_line":"each leaf. Same VLAN id, but different L2 domain"},{"line_number":27,"context_line":"and different IP subnet."},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"Change-Id: Iae889e9226a61059cd4f3d37fbe48d013b7a3482"},{"line_number":30,"context_line":"Implements: blueprint tripleo-routed-networks-ironic-inspector"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"da36d5c6_b4df84d4","line":28,"in_reply_to":"da36d5c6_6ecc5989","updated":"2017-02-27 04:33:21.000000000","message":"Ack, this is my first Neutron contribution. I should have been more thorough and read trough","commit_id":"44e61b455b58511a972b6883f897ff37787dbb66"}],"neutron/agent/linux/dhcp.py":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"d16fff2be3729c9faa1e90c3538317aa51d15b68","unresolved":false,"context_lines":[{"line_number":913,"context_line":"                    \u0027%s/32,%s\u0027 % (METADATA_DEFAULT_IP, gateway)"},{"line_number":914,"context_line":"                )"},{"line_number":915,"context_line":""},{"line_number":916,"context_line":"            if subnet.ip_version \u003d\u003d 5:"},{"line_number":917,"context_line":"                if self.conf.enable_on_link_subnet_routes:"},{"line_number":918,"context_line":"                    host_routes.extend([\"%s,0.0.0.0\" % (s.cidr) for s in"},{"line_number":919,"context_line":"                                        self.network.subnets"}],"source_content_type":"text/x-python","patch_set":1,"id":"da36d5c6_63eac275","line":916,"updated":"2017-02-25 10:29:53.000000000","message":"are You sure that should be ip_version \u003d\u003d 5 ?","commit_id":"a57248784289f59240e5f355a920175c8ff90284"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"fc30333477d38384bf65676f072651ee0abee5fa","unresolved":false,"context_lines":[{"line_number":914,"context_line":"                )"},{"line_number":915,"context_line":""},{"line_number":916,"context_line":"            if subnet.ip_version \u003d\u003d 4:"},{"line_number":917,"context_line":"                if self.conf.enable_on_link_subnet_routes:"},{"line_number":918,"context_line":"                    host_routes.extend([\"%s,0.0.0.0\" % (s.cidr) for s in"},{"line_number":919,"context_line":"                                        self.network.subnets"},{"line_number":920,"context_line":"                                        if (s.ip_version \u003d\u003d 4 and"}],"source_content_type":"text/x-python","patch_set":7,"id":"5ff73747_79ee4c89","line":917,"updated":"2017-04-24 14:14:57.000000000","message":"I\u0027m Ok with the change to not send these routes to the client, but it seems using a config flag to do this is wrong.  I think this is better suited to being a network attribute, so that it can be disabled with finer granularity than an entire deployment.  Thoughts?","commit_id":"4d0109aac42faf35f4fa49011a7c72ee22dd506b"},{"author":{"_account_id":24245,"name":"Harald Jensås","email":"hjensas@redhat.com","username":"harald.jensas"},"change_message_id":"b20e0aace36fbb37d6d8b575acc73f001290229a","unresolved":false,"context_lines":[{"line_number":914,"context_line":"                )"},{"line_number":915,"context_line":""},{"line_number":916,"context_line":"            if subnet.ip_version \u003d\u003d 4:"},{"line_number":917,"context_line":"                if self.conf.enable_on_link_subnet_routes:"},{"line_number":918,"context_line":"                    host_routes.extend([\"%s,0.0.0.0\" % (s.cidr) for s in"},{"line_number":919,"context_line":"                                        self.network.subnets"},{"line_number":920,"context_line":"                                        if (s.ip_version \u003d\u003d 4 and"}],"source_content_type":"text/x-python","patch_set":7,"id":"5ff73747_474cc6c6","line":917,"in_reply_to":"5ff73747_79ee4c89","updated":"2017-04-24 15:33:13.000000000","message":"+1\n\nHave a look at my comment on the bug.\nhttps://bugs.launchpad.net/neutron/+bug/1668145\n\nSending these routes was implemented in the wrong place. Neutron already have \"host-routes\" where the user could add this if they where needed. \n\nNeutron should implement these as implicit host-routes, and per-network control on the network to automatically create them or not create makes sense.","commit_id":"4d0109aac42faf35f4fa49011a7c72ee22dd506b"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"252ffa8b42788b8b5ad261fc303b3cbff26e9ae2","unresolved":false,"context_lines":[{"line_number":917,"context_line":"                if self.conf.enable_on_link_subnet_routes:"},{"line_number":918,"context_line":"                    host_routes.extend([\"%s,0.0.0.0\" % (s.cidr) for s in"},{"line_number":919,"context_line":"                                        self.network.subnets"},{"line_number":920,"context_line":"                                        if (s.ip_version \u003d\u003d 4 and"},{"line_number":921,"context_line":"                                            s.cidr !\u003d subnet.cidr)])"},{"line_number":922,"context_line":""},{"line_number":923,"context_line":"                if host_routes:"}],"source_content_type":"text/x-python","patch_set":7,"id":"5ff73747_125fec72","line":920,"updated":"2017-04-25 19:55:44.000000000","message":"If you have disjoint untagged L2 domains, you have multiple physnets.\n\nFor example, if you have some compute nodes in rack1 and some in rack2 with a router between them and you want them to be on the same network, that needs to be modeled as multiple physnets because that\u0027s what it is.\n\nMaybe I\u0027m misunderstanding your topology, but if the subnets on a network cannot communicate directly without a router in between, you have multiple physnets.\n\nAm I missing something?","commit_id":"4d0109aac42faf35f4fa49011a7c72ee22dd506b"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"8af789e1e9df25eec443ba54af6f7a7ac6549d90","unresolved":false,"context_lines":[{"line_number":917,"context_line":"                if self.conf.enable_on_link_subnet_routes:"},{"line_number":918,"context_line":"                    host_routes.extend([\"%s,0.0.0.0\" % (s.cidr) for s in"},{"line_number":919,"context_line":"                                        self.network.subnets"},{"line_number":920,"context_line":"                                        if (s.ip_version \u003d\u003d 4 and"},{"line_number":921,"context_line":"                                            s.cidr !\u003d subnet.cidr)])"},{"line_number":922,"context_line":""},{"line_number":923,"context_line":"                if host_routes:"}],"source_content_type":"text/x-python","patch_set":7,"id":"7ffa3b31_49ae242f","line":920,"updated":"2017-04-14 22:03:23.000000000","message":"so you should just be able to compare s.segment_id to subnet.segment_id here.","commit_id":"4d0109aac42faf35f4fa49011a7c72ee22dd506b"},{"author":{"_account_id":24245,"name":"Harald Jensås","email":"hjensas@redhat.com","username":"harald.jensas"},"change_message_id":"85880d65a4f8e86c2195e7f85f955b9cc7419f5c","unresolved":false,"context_lines":[{"line_number":917,"context_line":"                if self.conf.enable_on_link_subnet_routes:"},{"line_number":918,"context_line":"                    host_routes.extend([\"%s,0.0.0.0\" % (s.cidr) for s in"},{"line_number":919,"context_line":"                                        self.network.subnets"},{"line_number":920,"context_line":"                                        if (s.ip_version \u003d\u003d 4 and"},{"line_number":921,"context_line":"                                            s.cidr !\u003d subnet.cidr)])"},{"line_number":922,"context_line":""},{"line_number":923,"context_line":"                if host_routes:"}],"source_content_type":"text/x-python","patch_set":7,"id":"5ff73747_c391bc9b","line":920,"in_reply_to":"5ff73747_5290dd4e","updated":"2017-04-25 17:16:30.000000000","message":"@Kevin @Brian\n\nMultiple segments require multiple physical networks.\nIn the TripleO undercloud usecase we only have 1 physical network.\n\nWhith the segments plugin loaded, I cannot create multiple segments since I have only one physical network.\n\nI can of course add another bridge, update bridgemappings and create another segment just to try to figure out how to create the correct on-link routes for the segments usecase. But I don\u0027t see how segments can solve the problem we have with TripleO undercloud that need to provide working DHCP service for subnets that are \"remote\"/ !L2 Adjecent?\n\n\n\n/etc/neutron/plugins/ml2/openvswitch_agent.ini:bridge_mappings \u003dctlplane:br-ctlplane\n\n\n\n2017-04-25 19:09:02.117 6621 INFO neutron.manager [req-bb2c8b0c-d0a3-4763-943d-36075b71d3a2 - - - - -] Loading Plugin: segments\n2017-04-25 19:09:02.170 6621 DEBUG neutron.manager [req-bb2c8b0c-d0a3-4763-943d-36075b71d3a2 - - - - -] Successfully loaded segments plugin. Description: Network Segments _load_service_plugins /usr/lib/python2.7/site-packages/neutron/manager.py:221\n\n\n(undercloud) [stack@ocataleafs ~]$ openstack network segment list\n+--------------------------------------+----------+--------------------------------------+--------------+---------+\n| ID                                   | Name     | Network                              | Network Type | Segment |\n+--------------------------------------+----------+--------------------------------------+--------------+---------+\n| c778b02c-a2b1-45b7-9064-afceabf4a4f6 | segment1 | fed9eb0c-72f4-4c8a-9669-70eb71735f5e | flat         | None    |\n+--------------------------------------+----------+--------------------------------------+--------------+---------+\n(undercloud) [stack@ocataleafs ~]$ openstack network segment show segment1\n+------------------+--------------------------------------+\n| Field            | Value                                |\n+------------------+--------------------------------------+\n| description      | None                                 |\n| id               | c778b02c-a2b1-45b7-9064-afceabf4a4f6 |\n| name             | segment1                             |\n| network_id       | fed9eb0c-72f4-4c8a-9669-70eb71735f5e |\n| network_type     | flat                                 |\n| physical_network | ctlplane                             |\n| segmentation_id  | None                                 |\n+------------------+--------------------------------------+\n(undercloud) [stack@ocataleafs ~]$  openstack network segment create --physical-network ctlplane --network-type flat --network ctlplane segment2\n^[[DHttpException: Conflict, Unable to create the flat network. Physical network ctlplane is in use.\n(undercloud) [stack@ocataleafs ~]$  openstack network segment create --network-type flat --network ctlplane segment2\nHttpException: Bad Request, Invalid input for operation: physical_network required for flat provider network.","commit_id":"4d0109aac42faf35f4fa49011a7c72ee22dd506b"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"150fd25b536400bc9ec9bd91aa8e4650ef355d3f","unresolved":false,"context_lines":[{"line_number":917,"context_line":"                if self.conf.enable_on_link_subnet_routes:"},{"line_number":918,"context_line":"                    host_routes.extend([\"%s,0.0.0.0\" % (s.cidr) for s in"},{"line_number":919,"context_line":"                                        self.network.subnets"},{"line_number":920,"context_line":"                                        if (s.ip_version \u003d\u003d 4 and"},{"line_number":921,"context_line":"                                            s.cidr !\u003d subnet.cidr)])"},{"line_number":922,"context_line":""},{"line_number":923,"context_line":"                if host_routes:"}],"source_content_type":"text/x-python","patch_set":7,"id":"5ff73747_5290dd4e","line":920,"in_reply_to":"7ffa3b31_49ae242f","updated":"2017-04-25 15:56:04.000000000","message":"Just talked about this in the Neutron meeting.  Kevin and I think the segment_id can tell if the subnets are adjacent, something like:\n\n    not (subnet.segment_id or s.segment_id)\n\ni.e. if either subnet has a segment_id set, then assume they are not adjacent.\n\n(I know it seems like:\n\n    ((subnet.segment_id or s.segment_id) and\n     subnet.segment_id \u003d\u003d s.segment_id)\n\n should work too, but the segment plugin code seems to\n show otherwise)\n\nOr even just checking l2_adjacency is True on the network, but I don\u0027t think that will be set unless the segment extension is loaded, so might be more difficult.\n\nHarald - can you test that hypothesis?  I\u0027m stacking now but that won\u0027t prove it works in your setup.  Thanks.","commit_id":"4d0109aac42faf35f4fa49011a7c72ee22dd506b"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"29199bf485ae42e518820044b7cd433e01f062db","unresolved":false,"context_lines":[{"line_number":919,"context_line":"                                        self.network.subnets"},{"line_number":920,"context_line":"                                        if (s.ip_version \u003d\u003d 4 and"},{"line_number":921,"context_line":"                                            s.cidr !\u003d subnet.cidr and"},{"line_number":922,"context_line":"                                            not s.segment_id)])"},{"line_number":923,"context_line":""},{"line_number":924,"context_line":"                if host_routes:"},{"line_number":925,"context_line":"                    if gateway:"}],"source_content_type":"text/x-python","patch_set":9,"id":"5ff73747_385ac7f2","line":922,"updated":"2017-04-25 21:03:56.000000000","message":"I\u0027m now thinking this isn\u0027t quite right, and we should not include on-link routes if *any* subnet on the network has a segment_id, this could add one if, for example, there are 4 subnets and two don\u0027t have them.","commit_id":"a4479d6bffbd0e866870502bd8a6736f38aca24a"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"09165338a8731afafe34257b03454cac5b3d8862","unresolved":false,"context_lines":[{"line_number":919,"context_line":"                                        self.network.subnets"},{"line_number":920,"context_line":"                                        if (s.ip_version \u003d\u003d 4 and"},{"line_number":921,"context_line":"                                            s.cidr !\u003d subnet.cidr and"},{"line_number":922,"context_line":"                                            not s.segment_id)])"},{"line_number":923,"context_line":""},{"line_number":924,"context_line":"                if host_routes:"},{"line_number":925,"context_line":"                    if gateway:"}],"source_content_type":"text/x-python","patch_set":9,"id":"5ff73747_d8f3e3e6","line":922,"updated":"2017-04-25 21:04:10.000000000","message":"can\u0027t you just compare segment_id here in the conditional so we still advertise host routes for subnets that are on the same segment?","commit_id":"a4479d6bffbd0e866870502bd8a6736f38aca24a"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"87170ca03ed1ce9dac98e78cf6b604dc0347e24e","unresolved":false,"context_lines":[{"line_number":919,"context_line":"                                        self.network.subnets"},{"line_number":920,"context_line":"                                        if (s.ip_version \u003d\u003d 4 and"},{"line_number":921,"context_line":"                                            s.cidr !\u003d subnet.cidr and"},{"line_number":922,"context_line":"                                            not s.segment_id)])"},{"line_number":923,"context_line":""},{"line_number":924,"context_line":"                if host_routes:"},{"line_number":925,"context_line":"                    if gateway:"}],"source_content_type":"text/x-python","patch_set":9,"id":"5ff73747_98431bb0","line":922,"in_reply_to":"5ff73747_d8f3e3e6","updated":"2017-04-25 21:16:20.000000000","message":"Yeah, I guess we could do that.  I had been looking at _extend_network_dict_binding() in the plugin, and it only assumes L2 adjacency if the first subnet has a segment_id, but that is for the entire network.  Maybe that code needs an update to check all subnets.","commit_id":"a4479d6bffbd0e866870502bd8a6736f38aca24a"}],"neutron/conf/agent/dhcp.py":[{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"8b8574711ec71d873697ea2995719829e2ec8712","unresolved":false,"context_lines":[{"line_number":63,"context_line":"               help\u003d_(\u0027Classless Static Routes will be created for all \u0027"},{"line_number":64,"context_line":"                      \u0027subnets in the specific neutron network when this is \u0027"},{"line_number":65,"context_line":"                      \u0027enabled. When set to False, these \"Same-Segment\" or \u0027"},{"line_number":66,"context_line":"                      \u0027\"On-Link\" routes are not created.\u0027)),"},{"line_number":67,"context_line":"]"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"DHCP_OPTS \u003d ["}],"source_content_type":"text/x-python","patch_set":4,"id":"da36d5c6_ee0a09d1","line":66,"range":{"start_line":66,"start_character":40,"end_line":66,"end_character":47},"updated":"2017-02-27 01:39:32.000000000","message":"Since you used future tense in L63, consider replacing this with:\n\nwill not be","commit_id":"44e61b455b58511a972b6883f897ff37787dbb66"},{"author":{"_account_id":24245,"name":"Harald Jensås","email":"hjensas@redhat.com","username":"harald.jensas"},"change_message_id":"b67150634c06a3afc518e5d904766b502c9b59bf","unresolved":false,"context_lines":[{"line_number":63,"context_line":"               help\u003d_(\u0027Classless Static Routes will be created for all \u0027"},{"line_number":64,"context_line":"                      \u0027subnets in the specific neutron network when this is \u0027"},{"line_number":65,"context_line":"                      \u0027enabled. When set to False, these \"Same-Segment\" or \u0027"},{"line_number":66,"context_line":"                      \u0027\"On-Link\" routes are not created.\u0027)),"},{"line_number":67,"context_line":"]"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"DHCP_OPTS \u003d ["}],"source_content_type":"text/x-python","patch_set":4,"id":"da36d5c6_140bf07d","line":66,"range":{"start_line":66,"start_character":40,"end_line":66,"end_character":47},"in_reply_to":"da36d5c6_ee0a09d1","updated":"2017-02-27 04:33:21.000000000","message":"yes, thanks!","commit_id":"44e61b455b58511a972b6883f897ff37787dbb66"}]}
