)]}'
{"doc/source/design/metadata_api.rst":[{"author":{"_account_id":1561,"name":"Russell Bryant","email":"rbryant@redhat.com","username":"russellb"},"change_message_id":"670c922732a6162fcacc90bbec9f429cc34e54bc","unresolved":false,"context_lines":[{"line_number":68,"context_line":"a proposed approach."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"Overview of Proposed Approach"},{"line_number":71,"context_line":"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"**Step 1** - Create a port for the metadata proxy"},{"line_number":74,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_de72bd49","line":71,"updated":"2017-04-06 19:10:52.000000000","message":"After a talk with Daniel today, I started thinking about a possible significant change to the proposal.\n\nThis proposal is based around the idea of having a single haproxy instance somewhere in the deployment that is responsible for metadata API requests for a given network.  \n\nA major benefit of this approach is that we can implement it today without changes to OVN.  Some downsides are that we have to implement scheduling logic and also somehow have to solve high availability for when a host running metadata proxies goes down.\n\nWe could get rid of both of these downsides if we could instead run the metadata proxy for a given network on every host that has a neutron port present for that network.\n\nTo pull off this alternative approach, we would first need a new feature in OVN so that an OVN logical port can be present on *every* chassis.  This is *very* similar to localnet ports.  In fact, we *could* use localnet ports to implement this, but it seems more complex than necessary.  I would propose a new \"localport\" logical port type.  We would never forward packets over a tunnel for \"localport\" ports.  We would only send packets to the local instance of a \"localport\".\n\nWith this new capability in OVN, the Neutron port we create for metadata would be given a type of \"localport\".\n\nneutron-ovn-metadata-proxy would watch the OVN southbound database (the Port_Binding table in particular) to know which networks current have a port bound locally to the chassis it\u0027s running on.  It would then ensure there\u0027s an haproxy instance created and attached to the \"localport\" on that host.\n\nDoes this make sense?  Does it seem simpler overall?\n\nI\u0027m confident I could write a patch for the \"localport\" port type in OVN fairly easily.","commit_id":"2f6ed7459bdfd313c30c78550140db12a733a781"},{"author":{"_account_id":11762,"name":"Han Zhou","email":"zhouhan@gmail.com","username":"hanzhou"},"change_message_id":"159261be05502c7388a57f851f398caf6a32ce30","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"This works similarly to the current approach."},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"If the network is attached to a Neutron router (an OVN logical router), we can"},{"line_number":84,"context_line":"program a static route in that OVN logical router so that metadata API requests"},{"line_number":85,"context_line":"are directed to the logical port hosting the metadata API proxy."},{"line_number":86,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"dfeb2761_9f6e262d","line":83,"range":{"start_line":83,"start_character":0,"end_line":83,"end_character":46},"updated":"2017-04-04 18:27:53.000000000","message":"what if the network is detached from the router later?","commit_id":"2f6ed7459bdfd313c30c78550140db12a733a781"},{"author":{"_account_id":1561,"name":"Russell Bryant","email":"rbryant@redhat.com","username":"russellb"},"change_message_id":"37d8afc934f84497087b1c30e503431411a738ac","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"This works similarly to the current approach."},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"If the network is attached to a Neutron router (an OVN logical router), we can"},{"line_number":84,"context_line":"program a static route in that OVN logical router so that metadata API requests"},{"line_number":85,"context_line":"are directed to the logical port hosting the metadata API proxy."},{"line_number":86,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_b2ed1e27","line":83,"range":{"start_line":83,"start_character":0,"end_line":83,"end_character":46},"in_reply_to":"dfeb2761_9f6e262d","updated":"2017-04-05 18:21:47.000000000","message":"The current proposal is to have an \"isolated_metadata\" option.  When enabled, we will always have a metadata proxy per network so that metadata will work, even without being attached to a logical router.\n\nEven if we program the static route into the OVN logical router, we can also push the metadata route via DHCP to the VM.\n\nSome of this is discussed in more detail later in the \"metadata proxy scheduling logic\" section.  There\u0027s probably some duplication between the sections.","commit_id":"2f6ed7459bdfd313c30c78550140db12a733a781"},{"author":{"_account_id":11762,"name":"Han Zhou","email":"zhouhan@gmail.com","username":"hanzhou"},"change_message_id":"159261be05502c7388a57f851f398caf6a32ce30","unresolved":false,"context_lines":[{"line_number":88,"context_line":"responses that routes metadata API requests to the port on the network that is"},{"line_number":89,"context_line":"hosting the metadata API proxy.  This will be required if a network is not"},{"line_number":90,"context_line":"attached to a router."},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"**Step 3** - Management of the namespaces and haproxy instances"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"This is the trickiest part of the solution.  Something has to manage the OVS"}],"source_content_type":"text/x-rst","patch_set":1,"id":"dfeb2761_7f5ec244","line":91,"updated":"2017-04-04 18:27:53.000000000","message":"Instead of using DHCP or Router, would it be possible/better to use OVN LB, which can use 169.254.169.254 as a VIP, and the metadata API proxy port IP as the member. This way we don\u0027t need to rely on router or dhcp configurations.","commit_id":"2f6ed7459bdfd313c30c78550140db12a733a781"},{"author":{"_account_id":11762,"name":"Han Zhou","email":"zhouhan@gmail.com","username":"hanzhou"},"change_message_id":"e6e231be3408dc1f7042a86a7a7c1c901a1b73de","unresolved":false,"context_lines":[{"line_number":88,"context_line":"responses that routes metadata API requests to the port on the network that is"},{"line_number":89,"context_line":"hosting the metadata API proxy.  This will be required if a network is not"},{"line_number":90,"context_line":"attached to a router."},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"**Step 3** - Management of the namespaces and haproxy instances"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"This is the trickiest part of the solution.  Something has to manage the OVS"}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_05cc7433","line":91,"in_reply_to":"bff0334d_b23bde9a","updated":"2017-04-06 07:07:10.000000000","message":"yes, I think you are right.","commit_id":"2f6ed7459bdfd313c30c78550140db12a733a781"},{"author":{"_account_id":1561,"name":"Russell Bryant","email":"rbryant@redhat.com","username":"russellb"},"change_message_id":"37d8afc934f84497087b1c30e503431411a738ac","unresolved":false,"context_lines":[{"line_number":88,"context_line":"responses that routes metadata API requests to the port on the network that is"},{"line_number":89,"context_line":"hosting the metadata API proxy.  This will be required if a network is not"},{"line_number":90,"context_line":"attached to a router."},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"**Step 3** - Management of the namespaces and haproxy instances"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"This is the trickiest part of the solution.  Something has to manage the OVS"}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_b23bde9a","line":91,"in_reply_to":"dfeb2761_7f5ec244","updated":"2017-04-05 18:21:47.000000000","message":"That\u0027s an interesting idea, but I\u0027m trying to decide if it really improves things.\n\nIt doesn\u0027t seem any easier than updating the OVN logical router\u0027s static routes.\n\nI\u0027m also not sure it removes the requirement of pushing the route to a VM via DHCP.  If a VM is on a network without a router, we still have to send the static route via DHCP, right?","commit_id":"2f6ed7459bdfd313c30c78550140db12a733a781"},{"author":{"_account_id":1561,"name":"Russell Bryant","email":"rbryant@redhat.com","username":"russellb"},"change_message_id":"0d3fafc4a8f4c2afbc9d2206e1339684064f5df4","unresolved":false,"context_lines":[{"line_number":146,"context_line":""},{"line_number":147,"context_line":"Introduce a new networking-ovn configuration option:"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"* ``[ovn] isolated_metadata\u003d[True|False]``"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"Events that trigger scheduling a new metadata proxy:"},{"line_number":152,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_7e7e116c","line":149,"updated":"2017-04-06 19:02:37.000000000","message":"After some more talking with Daniel, we\u0027re wondering if we should try for a simpler first approach and eliminate this configuration option.\n\nThe proposed behavior would be to *always* work as if isolated_metadata\u003dTrue.  The downside is that we may be running more metadata proxies than really necessary (always 1 per network, even if networks are attached to a router).\n\nThe benefit is the lack of a somewhat confusing configuration option that leaks some implementation details, which hopefully gives us some more flexibility to evolve the implementation over time.","commit_id":"2f6ed7459bdfd313c30c78550140db12a733a781"},{"author":{"_account_id":10237,"name":"Numan Siddique","email":"nusiddiq@redhat.com","username":"numansiddique"},"change_message_id":"bc1c8e7078443270319ba657e3789319e3c65d4d","unresolved":false,"context_lines":[{"line_number":158,"context_line":""},{"line_number":159,"context_line":"* If isolated_metadata is False"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"  * When a network is attached to or removed from a logical router, ensure that"},{"line_number":162,"context_line":"    at least one of the networks has a metadata proxy port already created.  If"},{"line_number":163,"context_line":"    not, pick a network and create a metadata proxy port and then schedule it"},{"line_number":164,"context_line":"    to an agent."}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_631a067e","line":161,"range":{"start_line":161,"start_character":4,"end_line":161,"end_character":30},"updated":"2017-04-06 14:41:30.000000000","message":"In the case of a router namespace created by l3 agent (for the ML2 ovs case), there will be a port for each subnet attached to the router right ?\n\nI am not very clear, whether","commit_id":"2f6ed7459bdfd313c30c78550140db12a733a781"},{"author":{"_account_id":10237,"name":"Numan Siddique","email":"nusiddiq@redhat.com","username":"numansiddique"},"change_message_id":"4c1a6b2f54b00e665a094a7d74038f14cafa6e7f","unresolved":false,"context_lines":[{"line_number":158,"context_line":""},{"line_number":159,"context_line":"* If isolated_metadata is False"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"  * When a network is attached to or removed from a logical router, ensure that"},{"line_number":162,"context_line":"    at least one of the networks has a metadata proxy port already created.  If"},{"line_number":163,"context_line":"    not, pick a network and create a metadata proxy port and then schedule it"},{"line_number":164,"context_line":"    to an agent."}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_15092d2b","line":161,"range":{"start_line":161,"start_character":4,"end_line":161,"end_character":30},"in_reply_to":"bff0334d_631a067e","updated":"2017-04-06 14:42:36.000000000","message":"Please ignore this comment. I figured it out :)","commit_id":"2f6ed7459bdfd313c30c78550140db12a733a781"},{"author":{"_account_id":11762,"name":"Han Zhou","email":"zhouhan@gmail.com","username":"hanzhou"},"change_message_id":"e6e231be3408dc1f7042a86a7a7c1c901a1b73de","unresolved":false,"context_lines":[{"line_number":159,"context_line":"* If isolated_metadata is False"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"  * When a network is attached to or removed from a logical router, ensure that"},{"line_number":162,"context_line":"    at least one of the networks has a metadata proxy port already created.  If"},{"line_number":163,"context_line":"    not, pick a network and create a metadata proxy port and then schedule it"},{"line_number":164,"context_line":"    to an agent."},{"line_number":165,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_7063fcdd","line":162,"range":{"start_line":162,"start_character":4,"end_line":162,"end_character":16},"updated":"2017-04-06 07:07:10.000000000","message":"Shouldn\u0027t there be only one? Otherwise how would the static route be on the logical router? Would it be like anycast (I wonder if OVN supports this behavior)?","commit_id":"2f6ed7459bdfd313c30c78550140db12a733a781"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"470eae7755911ed25828cbe32381efe40aaeca42","unresolved":false,"context_lines":[{"line_number":159,"context_line":"* If isolated_metadata is False"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"  * When a network is attached to or removed from a logical router, ensure that"},{"line_number":162,"context_line":"    at least one of the networks has a metadata proxy port already created.  If"},{"line_number":163,"context_line":"    not, pick a network and create a metadata proxy port and then schedule it"},{"line_number":164,"context_line":"    to an agent."},{"line_number":165,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_cd7b95f2","line":162,"range":{"start_line":162,"start_character":4,"end_line":162,"end_character":16},"in_reply_to":"bff0334d_7063fcdd","updated":"2017-04-12 09:30:20.000000000","message":"Done","commit_id":"2f6ed7459bdfd313c30c78550140db12a733a781"},{"author":{"_account_id":1561,"name":"Russell Bryant","email":"rbryant@redhat.com","username":"russellb"},"change_message_id":"0d3fafc4a8f4c2afbc9d2206e1339684064f5df4","unresolved":false,"context_lines":[{"line_number":159,"context_line":"* If isolated_metadata is False"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"  * When a network is attached to or removed from a logical router, ensure that"},{"line_number":162,"context_line":"    at least one of the networks has a metadata proxy port already created.  If"},{"line_number":163,"context_line":"    not, pick a network and create a metadata proxy port and then schedule it"},{"line_number":164,"context_line":"    to an agent."},{"line_number":165,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_5e0c6d3a","line":162,"range":{"start_line":162,"start_character":4,"end_line":162,"end_character":16},"in_reply_to":"bff0334d_7063fcdd","updated":"2017-04-06 19:02:37.000000000","message":"You\u0027re right.  Only one is needed.","commit_id":"2f6ed7459bdfd313c30c78550140db12a733a781"},{"author":{"_account_id":11762,"name":"Han Zhou","email":"zhouhan@gmail.com","username":"hanzhou"},"change_message_id":"e6e231be3408dc1f7042a86a7a7c1c901a1b73de","unresolved":false,"context_lines":[{"line_number":161,"context_line":"  * When a network is attached to or removed from a logical router, ensure that"},{"line_number":162,"context_line":"    at least one of the networks has a metadata proxy port already created.  If"},{"line_number":163,"context_line":"    not, pick a network and create a metadata proxy port and then schedule it"},{"line_number":164,"context_line":"    to an agent."},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"Events that trigger unscheduling an existing metadata proxy:"},{"line_number":167,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_3028d484","line":164,"updated":"2017-04-06 07:07:10.000000000","message":"During this change, shall we update the static route for metadata API?","commit_id":"2f6ed7459bdfd313c30c78550140db12a733a781"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"470eae7755911ed25828cbe32381efe40aaeca42","unresolved":false,"context_lines":[{"line_number":161,"context_line":"  * When a network is attached to or removed from a logical router, ensure that"},{"line_number":162,"context_line":"    at least one of the networks has a metadata proxy port already created.  If"},{"line_number":163,"context_line":"    not, pick a network and create a metadata proxy port and then schedule it"},{"line_number":164,"context_line":"    to an agent."},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"Events that trigger unscheduling an existing metadata proxy:"},{"line_number":167,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_ad7e11e1","line":164,"in_reply_to":"bff0334d_3028d484","updated":"2017-04-12 09:30:20.000000000","message":"Done","commit_id":"2f6ed7459bdfd313c30c78550140db12a733a781"},{"author":{"_account_id":1561,"name":"Russell Bryant","email":"rbryant@redhat.com","username":"russellb"},"change_message_id":"0d3fafc4a8f4c2afbc9d2206e1339684064f5df4","unresolved":false,"context_lines":[{"line_number":161,"context_line":"  * When a network is attached to or removed from a logical router, ensure that"},{"line_number":162,"context_line":"    at least one of the networks has a metadata proxy port already created.  If"},{"line_number":163,"context_line":"    not, pick a network and create a metadata proxy port and then schedule it"},{"line_number":164,"context_line":"    to an agent."},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"Events that trigger unscheduling an existing metadata proxy:"},{"line_number":167,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_9e2b1581","line":164,"in_reply_to":"bff0334d_3028d484","updated":"2017-04-06 19:02:37.000000000","message":"Yes, thanks","commit_id":"2f6ed7459bdfd313c30c78550140db12a733a781"},{"author":{"_account_id":10237,"name":"Numan Siddique","email":"nusiddiq@redhat.com","username":"numansiddique"},"change_message_id":"bc1c8e7078443270319ba657e3789319e3c65d4d","unresolved":false,"context_lines":[{"line_number":189,"context_line":""},{"line_number":190,"context_line":"On startup:"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"* Update the OVN Chassis record in the OVN Southbound database that corresponds"},{"line_number":193,"context_line":"  to this host with an external-id of “neutron-metadata-proxy-host\u003dtrue”.  This"},{"line_number":194,"context_line":"  may have been previously set if the service has been restarted."},{"line_number":195,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_6363261c","line":192,"updated":"2017-04-06 14:41:30.000000000","message":"This would mean neutron-ovn-metadata-agent would open a connection to OVN Southbound database and write to it as well right ?\n\nWill this have the same security concerns like ovn-controller  writing to the Southbound DB ?","commit_id":"2f6ed7459bdfd313c30c78550140db12a733a781"},{"author":{"_account_id":1561,"name":"Russell Bryant","email":"rbryant@redhat.com","username":"russellb"},"change_message_id":"0d3fafc4a8f4c2afbc9d2206e1339684064f5df4","unresolved":false,"context_lines":[{"line_number":189,"context_line":""},{"line_number":190,"context_line":"On startup:"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"* Update the OVN Chassis record in the OVN Southbound database that corresponds"},{"line_number":193,"context_line":"  to this host with an external-id of “neutron-metadata-proxy-host\u003dtrue”.  This"},{"line_number":194,"context_line":"  may have been previously set if the service has been restarted."},{"line_number":195,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"bff0334d_be76d9a3","line":192,"in_reply_to":"bff0334d_6363261c","updated":"2017-04-06 19:02:37.000000000","message":"Good point.\n\nI suppose neutron-ovn-metadata-agent can use the same SSL credentials that ovn-controller uses.  They\u0027ll be running on the same host.  The same policy we need for ovn-controller would work for this agent as well.  They both need to update external-ids on the Chassis record.","commit_id":"2f6ed7459bdfd313c30c78550140db12a733a781"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0c152232905f7bc2114c1b0891dcf19e69a30f30","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"https://www.suse.com/communities/blog/vms-get-access-metadata-neutron/"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"In summary, we run a metadata proxy in either the router namespace or dhcp"},{"line_number":27,"context_line":"namespace.  The DHCP namespace can be used when there’s no router connected to"},{"line_number":28,"context_line":"the network.  The one downside to the DHCP namespace approach is that it"},{"line_number":29,"context_line":"requires pushing a static route to the VM through DHCP so that it knows to"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_9a65b6b7","line":26,"range":{"start_line":26,"start_character":70,"end_line":26,"end_character":74},"updated":"2017-04-12 13:52:17.000000000","message":"nit: both dhcp and DHCP are used throughout, should just standardize on one - I\u0027d vote for DHCP","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"3dd9f6622d2ebeb24c5740786cd1106d60d8ba82","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"https://www.suse.com/communities/blog/vms-get-access-metadata-neutron/"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"In summary, we run a metadata proxy in either the router namespace or dhcp"},{"line_number":27,"context_line":"namespace.  The DHCP namespace can be used when there’s no router connected to"},{"line_number":28,"context_line":"the network.  The one downside to the DHCP namespace approach is that it"},{"line_number":29,"context_line":"requires pushing a static route to the VM through DHCP so that it knows to"}],"source_content_type":"text/x-rst","patch_set":2,"id":"5ff73747_efd5c5e6","line":26,"range":{"start_line":26,"start_character":70,"end_line":26,"end_character":74},"in_reply_to":"bff0334d_9a65b6b7","updated":"2017-04-25 14:07:49.000000000","message":"Done","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0c152232905f7bc2114c1b0891dcf19e69a30f30","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"  * Router or Network-ID (X-Neutron-Network-Id or X-Neutron-Router-Id header)"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"* The metadata proxy service sends this request to metadata agent (outside the"},{"line_number":45,"context_line":"  namespace) via a UNIX domain socket."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"* The neutron-metadata-agent service forwards the request to the Nova metadata"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_7a6e72c9","line":44,"range":{"start_line":44,"start_character":48,"end_line":44,"end_character":51},"updated":"2017-04-12 13:52:17.000000000","message":"s/to the","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"3dd9f6622d2ebeb24c5740786cd1106d60d8ba82","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"  * Router or Network-ID (X-Neutron-Network-Id or X-Neutron-Router-Id header)"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"* The metadata proxy service sends this request to metadata agent (outside the"},{"line_number":45,"context_line":"  namespace) via a UNIX domain socket."},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"* The neutron-metadata-agent service forwards the request to the Nova metadata"}],"source_content_type":"text/x-rst","patch_set":2,"id":"5ff73747_cf068987","line":44,"range":{"start_line":44,"start_character":48,"end_line":44,"end_character":51},"in_reply_to":"bff0334d_7a6e72c9","updated":"2017-04-25 14:07:49.000000000","message":"Done","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0c152232905f7bc2114c1b0891dcf19e69a30f30","unresolved":false,"context_lines":[{"line_number":52,"context_line":"together with a shared secret. Neutron uses this secret to sign the Instance-ID"},{"line_number":53,"context_line":"header of the metadata request to prevent spoofing. This secret is configured"},{"line_number":54,"context_line":"through metadata_proxy_shared_secret on both nova and neutron configuration"},{"line_number":55,"context_line":"files."},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"[0] https://github.com/openstack/neutron/blob/master/neutron/agent/metadata/agent.py#L167"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_dadfbe63","line":55,"updated":"2017-04-12 13:52:17.000000000","message":"nit: although using a shared secret is recommended, it\u0027s actually not mandatory","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"3dd9f6622d2ebeb24c5740786cd1106d60d8ba82","unresolved":false,"context_lines":[{"line_number":52,"context_line":"together with a shared secret. Neutron uses this secret to sign the Instance-ID"},{"line_number":53,"context_line":"header of the metadata request to prevent spoofing. This secret is configured"},{"line_number":54,"context_line":"through metadata_proxy_shared_secret on both nova and neutron configuration"},{"line_number":55,"context_line":"files."},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"[0] https://github.com/openstack/neutron/blob/master/neutron/agent/metadata/agent.py#L167"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"5ff73747_0ff47185","line":55,"in_reply_to":"bff0334d_dadfbe63","updated":"2017-04-25 14:07:49.000000000","message":"Done","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0c152232905f7bc2114c1b0891dcf19e69a30f30","unresolved":false,"context_lines":[{"line_number":80,"context_line":"since haproxy is very lightweight and they will be idling most of the time,"},{"line_number":81,"context_line":"it shouldn\u0027t be a big issue overall. However, the major benefit of this"},{"line_number":82,"context_line":"approach is that we don\u0027t have to implement any scheduling logic to distribute"},{"line_number":83,"context_line":"metadata proxies accross the nodes nor any HA logic. This,however, can be"},{"line_number":84,"context_line":"evolved in the future as explained below in this document."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Also, this approach relies on a new feature on OVN that we must implement"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_9a3376ab","line":83,"range":{"start_line":83,"start_character":58,"end_line":83,"end_character":65},"updated":"2017-04-12 13:52:17.000000000","message":"missing space","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0c152232905f7bc2114c1b0891dcf19e69a30f30","unresolved":false,"context_lines":[{"line_number":80,"context_line":"since haproxy is very lightweight and they will be idling most of the time,"},{"line_number":81,"context_line":"it shouldn\u0027t be a big issue overall. However, the major benefit of this"},{"line_number":82,"context_line":"approach is that we don\u0027t have to implement any scheduling logic to distribute"},{"line_number":83,"context_line":"metadata proxies accross the nodes nor any HA logic. This,however, can be"},{"line_number":84,"context_line":"evolved in the future as explained below in this document."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Also, this approach relies on a new feature on OVN that we must implement"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_1a1f6608","line":83,"range":{"start_line":83,"start_character":29,"end_line":83,"end_character":34},"updated":"2017-04-12 13:52:17.000000000","message":"s/nodes,","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"3dd9f6622d2ebeb24c5740786cd1106d60d8ba82","unresolved":false,"context_lines":[{"line_number":80,"context_line":"since haproxy is very lightweight and they will be idling most of the time,"},{"line_number":81,"context_line":"it shouldn\u0027t be a big issue overall. However, the major benefit of this"},{"line_number":82,"context_line":"approach is that we don\u0027t have to implement any scheduling logic to distribute"},{"line_number":83,"context_line":"metadata proxies accross the nodes nor any HA logic. This,however, can be"},{"line_number":84,"context_line":"evolved in the future as explained below in this document."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Also, this approach relies on a new feature on OVN that we must implement"}],"source_content_type":"text/x-rst","patch_set":2,"id":"5ff73747_4f2839e1","line":83,"range":{"start_line":83,"start_character":58,"end_line":83,"end_character":65},"in_reply_to":"bff0334d_9a3376ab","updated":"2017-04-25 14:07:49.000000000","message":"Done","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0c152232905f7bc2114c1b0891dcf19e69a30f30","unresolved":false,"context_lines":[{"line_number":83,"context_line":"metadata proxies accross the nodes nor any HA logic. This,however, can be"},{"line_number":84,"context_line":"evolved in the future as explained below in this document."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Also, this approach relies on a new feature on OVN that we must implement"},{"line_number":87,"context_line":"first so that an OVN port can be present on *every* chassis (similar to"},{"line_number":88,"context_line":"*localnet* ports). This new type of logical port would be *localport* and we"},{"line_number":89,"context_line":"will never forward packets over a tunnel for these ports. We would only send"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_da145eeb","line":86,"range":{"start_line":86,"start_character":44,"end_line":86,"end_character":46},"updated":"2017-04-12 13:52:17.000000000","message":"s/in","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"3dd9f6622d2ebeb24c5740786cd1106d60d8ba82","unresolved":false,"context_lines":[{"line_number":83,"context_line":"metadata proxies accross the nodes nor any HA logic. This,however, can be"},{"line_number":84,"context_line":"evolved in the future as explained below in this document."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Also, this approach relies on a new feature on OVN that we must implement"},{"line_number":87,"context_line":"first so that an OVN port can be present on *every* chassis (similar to"},{"line_number":88,"context_line":"*localnet* ports). This new type of logical port would be *localport* and we"},{"line_number":89,"context_line":"will never forward packets over a tunnel for these ports. We would only send"}],"source_content_type":"text/x-rst","patch_set":2,"id":"5ff73747_2f23ad07","line":86,"range":{"start_line":86,"start_character":44,"end_line":86,"end_character":46},"in_reply_to":"bff0334d_da145eeb","updated":"2017-04-25 14:07:49.000000000","message":"Done","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0c152232905f7bc2114c1b0891dcf19e69a30f30","unresolved":false,"context_lines":[{"line_number":94,"context_line":"When using the DHCP agent today, Neutron automatically creates a port for the"},{"line_number":95,"context_line":"DHCP agent to use.  We could do the same thing for use with the metadata proxy"},{"line_number":96,"context_line":"(haproxy). We\u0027ll create an OVN *localport* which will be present on every"},{"line_number":97,"context_line":"chassis and this port will have the same MAC/IP address on every host."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"**Step 2** - Routing metadata API requests to the correct Neutron port"},{"line_number":100,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_15c3b78a","line":97,"updated":"2017-04-12 13:52:17.000000000","message":"I\u0027m fine with burning 3 IPs for each private network (router, DHCP, metadata), and I would hope users won\u0027t be using smaller than a /24, but some do, so be ready for that one person that uses a /29 and complains they can only boot 3 VMs on it now :)\n\n+1 for having the same MAC/IP though since it will make for easier debugging (who can remember a list of MACs?).","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"3dd9f6622d2ebeb24c5740786cd1106d60d8ba82","unresolved":false,"context_lines":[{"line_number":94,"context_line":"When using the DHCP agent today, Neutron automatically creates a port for the"},{"line_number":95,"context_line":"DHCP agent to use.  We could do the same thing for use with the metadata proxy"},{"line_number":96,"context_line":"(haproxy). We\u0027ll create an OVN *localport* which will be present on every"},{"line_number":97,"context_line":"chassis and this port will have the same MAC/IP address on every host."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"**Step 2** - Routing metadata API requests to the correct Neutron port"},{"line_number":100,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"5ff73747_2f84cdb0","line":97,"in_reply_to":"9ff52f3f_f3c73845","updated":"2017-04-25 14:07:49.000000000","message":"Done","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":1561,"name":"Russell Bryant","email":"rbryant@redhat.com","username":"russellb"},"change_message_id":"1e7ba3fdb9e26036632fcbd1bb78a89093fdbe12","unresolved":false,"context_lines":[{"line_number":94,"context_line":"When using the DHCP agent today, Neutron automatically creates a port for the"},{"line_number":95,"context_line":"DHCP agent to use.  We could do the same thing for use with the metadata proxy"},{"line_number":96,"context_line":"(haproxy). We\u0027ll create an OVN *localport* which will be present on every"},{"line_number":97,"context_line":"chassis and this port will have the same MAC/IP address on every host."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"**Step 2** - Routing metadata API requests to the correct Neutron port"},{"line_number":100,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"9ff52f3f_f3c73845","line":97,"in_reply_to":"bff0334d_15c3b78a","updated":"2017-04-13 01:19:30.000000000","message":"With networking-ovn today, we actually use the gateway IP for DHCP.  There\u0027s a bug suggesting we create a port for DHCP, though.  In any case, I think we\u0027ll only need 2 IPs instead of 3.  We can share the same port for DHCP and Metadata.","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0c152232905f7bc2114c1b0891dcf19e69a30f30","unresolved":false,"context_lines":[{"line_number":137,"context_line":"    would look like ``neutron-metadata-proxy-networks\u003dNET1_UUID,NET4_UUID``"},{"line_number":138,"context_line":"    meaning that this chassis is hosting one or more VM\u0027s connected to"},{"line_number":139,"context_line":"    networks 1 and 4 so we should have a metadata proxy instance running for"},{"line_number":140,"context_line":"    each.   Ensure any running metadata proxies no longer needed are torn"},{"line_number":141,"context_line":"    down."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"* Open and maintain an open connection to the OVN Northbound database (using"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_daa57ea0","line":140,"range":{"start_line":140,"start_character":9,"end_line":140,"end_character":12},"updated":"2017-04-12 13:52:17.000000000","message":"extra space","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"3dd9f6622d2ebeb24c5740786cd1106d60d8ba82","unresolved":false,"context_lines":[{"line_number":137,"context_line":"    would look like ``neutron-metadata-proxy-networks\u003dNET1_UUID,NET4_UUID``"},{"line_number":138,"context_line":"    meaning that this chassis is hosting one or more VM\u0027s connected to"},{"line_number":139,"context_line":"    networks 1 and 4 so we should have a metadata proxy instance running for"},{"line_number":140,"context_line":"    each.   Ensure any running metadata proxies no longer needed are torn"},{"line_number":141,"context_line":"    down."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"* Open and maintain an open connection to the OVN Northbound database (using"}],"source_content_type":"text/x-rst","patch_set":2,"id":"5ff73747_af669d28","line":140,"range":{"start_line":140,"start_character":9,"end_line":140,"end_character":12},"in_reply_to":"bff0334d_daa57ea0","updated":"2017-04-25 14:07:49.000000000","message":"Done","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0c152232905f7bc2114c1b0891dcf19e69a30f30","unresolved":false,"context_lines":[{"line_number":140,"context_line":"    each.   Ensure any running metadata proxies no longer needed are torn"},{"line_number":141,"context_line":"    down."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"* Open and maintain an open connection to the OVN Northbound database (using"},{"line_number":144,"context_line":"  the ovsdbapp library).  On first connection, and anytime a reconnect"},{"line_number":145,"context_line":"  happens:"},{"line_number":146,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_9ae256d4","line":143,"range":{"start_line":143,"start_character":20,"end_line":143,"end_character":27},"updated":"2017-04-12 13:52:17.000000000","message":"s/a","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"3dd9f6622d2ebeb24c5740786cd1106d60d8ba82","unresolved":false,"context_lines":[{"line_number":140,"context_line":"    each.   Ensure any running metadata proxies no longer needed are torn"},{"line_number":141,"context_line":"    down."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"* Open and maintain an open connection to the OVN Northbound database (using"},{"line_number":144,"context_line":"  the ovsdbapp library).  On first connection, and anytime a reconnect"},{"line_number":145,"context_line":"  happens:"},{"line_number":146,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"5ff73747_efa6e553","line":143,"range":{"start_line":143,"start_character":20,"end_line":143,"end_character":27},"in_reply_to":"bff0334d_9ae256d4","updated":"2017-04-25 14:07:49.000000000","message":"Done","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0c152232905f7bc2114c1b0891dcf19e69a30f30","unresolved":false,"context_lines":[{"line_number":199,"context_line":""},{"line_number":200,"context_line":"* Stopping haproxy."},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"* Deleting OVS interface."},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"* Deleting network namespace."},{"line_number":205,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_7a0c3293","line":202,"range":{"start_line":202,"start_character":11,"end_line":202,"end_character":14},"updated":"2017-04-12 13:52:17.000000000","message":"s/the OVS","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"3dd9f6622d2ebeb24c5740786cd1106d60d8ba82","unresolved":false,"context_lines":[{"line_number":199,"context_line":""},{"line_number":200,"context_line":"* Stopping haproxy."},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"* Deleting OVS interface."},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"* Deleting network namespace."},{"line_number":205,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"5ff73747_0f811190","line":202,"range":{"start_line":202,"start_character":11,"end_line":202,"end_character":14},"in_reply_to":"bff0334d_7a0c3293","updated":"2017-04-25 14:07:49.000000000","message":"Done","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0c152232905f7bc2114c1b0891dcf19e69a30f30","unresolved":false,"context_lines":[{"line_number":201,"context_line":""},{"line_number":202,"context_line":"* Deleting OVS interface."},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"* Deleting network namespace."},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"**Other considerations**"},{"line_number":207,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_ba7bdaf2","line":204,"range":{"start_line":204,"start_character":11,"end_line":204,"end_character":18},"updated":"2017-04-12 13:52:17.000000000","message":"s/the network","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"3dd9f6622d2ebeb24c5740786cd1106d60d8ba82","unresolved":false,"context_lines":[{"line_number":201,"context_line":""},{"line_number":202,"context_line":"* Deleting OVS interface."},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"* Deleting network namespace."},{"line_number":205,"context_line":""},{"line_number":206,"context_line":"**Other considerations**"},{"line_number":207,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"5ff73747_ef7b85bb","line":204,"range":{"start_line":204,"start_character":11,"end_line":204,"end_character":18},"in_reply_to":"bff0334d_ba7bdaf2","updated":"2017-04-25 14:07:49.000000000","message":"Done","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0c152232905f7bc2114c1b0891dcf19e69a30f30","unresolved":false,"context_lines":[{"line_number":206,"context_line":"**Other considerations**"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"There could be a race condition when the first VM for a certain network boots"},{"line_number":209,"context_line":"on a hypervisor if it does before the metadata proxy instance has been"},{"line_number":210,"context_line":"spawned."},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"Right now, the ``vif-plugged`` event to Nova is sent out when the up column"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_1a6ac618","line":209,"range":{"start_line":209,"start_character":22,"end_line":209,"end_character":26},"updated":"2017-04-12 13:52:17.000000000","message":"s/does so (?)","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"3dd9f6622d2ebeb24c5740786cd1106d60d8ba82","unresolved":false,"context_lines":[{"line_number":206,"context_line":"**Other considerations**"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"There could be a race condition when the first VM for a certain network boots"},{"line_number":209,"context_line":"on a hypervisor if it does before the metadata proxy instance has been"},{"line_number":210,"context_line":"spawned."},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"Right now, the ``vif-plugged`` event to Nova is sent out when the up column"}],"source_content_type":"text/x-rst","patch_set":2,"id":"5ff73747_8f46417c","line":209,"range":{"start_line":209,"start_character":22,"end_line":209,"end_character":26},"in_reply_to":"bff0334d_1a6ac618","updated":"2017-04-25 14:07:49.000000000","message":"Done","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0c152232905f7bc2114c1b0891dcf19e69a30f30","unresolved":false,"context_lines":[{"line_number":218,"context_line":"until the metadata proxy instance is up and running on the host ensuring the"},{"line_number":219,"context_line":"VM will be able to get the metadata on boot."},{"line_number":220,"context_line":""},{"line_number":221,"context_line":"Also, this feature will be enabled by default in ``networking-ovn`` but there"},{"line_number":222,"context_line":"should be a way to disable it in case operators who don\u0027t need metadata, don\u0027t"},{"line_number":223,"context_line":"have to deal with the complexity of it (haproxy instances, network namespaces,"},{"line_number":224,"context_line":"etcetera). In this case, the agent would not create the neutron ports needed"}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_fafba243","line":221,"range":{"start_line":221,"start_character":67,"end_line":221,"end_character":71},"updated":"2017-04-12 13:52:17.000000000","message":"s/, but","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"3dd9f6622d2ebeb24c5740786cd1106d60d8ba82","unresolved":false,"context_lines":[{"line_number":218,"context_line":"until the metadata proxy instance is up and running on the host ensuring the"},{"line_number":219,"context_line":"VM will be able to get the metadata on boot."},{"line_number":220,"context_line":""},{"line_number":221,"context_line":"Also, this feature will be enabled by default in ``networking-ovn`` but there"},{"line_number":222,"context_line":"should be a way to disable it in case operators who don\u0027t need metadata, don\u0027t"},{"line_number":223,"context_line":"have to deal with the complexity of it (haproxy instances, network namespaces,"},{"line_number":224,"context_line":"etcetera). In this case, the agent would not create the neutron ports needed"}],"source_content_type":"text/x-rst","patch_set":2,"id":"5ff73747_caff97ff","line":221,"range":{"start_line":221,"start_character":67,"end_line":221,"end_character":71},"in_reply_to":"bff0334d_fafba243","updated":"2017-04-25 14:07:49.000000000","message":"Done","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0c152232905f7bc2114c1b0891dcf19e69a30f30","unresolved":false,"context_lines":[{"line_number":219,"context_line":"VM will be able to get the metadata on boot."},{"line_number":220,"context_line":""},{"line_number":221,"context_line":"Also, this feature will be enabled by default in ``networking-ovn`` but there"},{"line_number":222,"context_line":"should be a way to disable it in case operators who don\u0027t need metadata, don\u0027t"},{"line_number":223,"context_line":"have to deal with the complexity of it (haproxy instances, network namespaces,"},{"line_number":224,"context_line":"etcetera). In this case, the agent would not create the neutron ports needed"},{"line_number":225,"context_line":"for metadata."}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_1a8646ba","line":222,"range":{"start_line":222,"start_character":71,"end_line":222,"end_character":72},"updated":"2017-04-12 13:52:17.000000000","message":"no comma","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"3dd9f6622d2ebeb24c5740786cd1106d60d8ba82","unresolved":false,"context_lines":[{"line_number":219,"context_line":"VM will be able to get the metadata on boot."},{"line_number":220,"context_line":""},{"line_number":221,"context_line":"Also, this feature will be enabled by default in ``networking-ovn`` but there"},{"line_number":222,"context_line":"should be a way to disable it in case operators who don\u0027t need metadata, don\u0027t"},{"line_number":223,"context_line":"have to deal with the complexity of it (haproxy instances, network namespaces,"},{"line_number":224,"context_line":"etcetera). In this case, the agent would not create the neutron ports needed"},{"line_number":225,"context_line":"for metadata."}],"source_content_type":"text/x-rst","patch_set":2,"id":"5ff73747_aa020b08","line":222,"range":{"start_line":222,"start_character":71,"end_line":222,"end_character":72},"in_reply_to":"bff0334d_1a8646ba","updated":"2017-04-25 14:07:49.000000000","message":"Done","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0c152232905f7bc2114c1b0891dcf19e69a30f30","unresolved":false,"context_lines":[{"line_number":293,"context_line":""},{"line_number":294,"context_line":"  * When a new network is created, we must create an OVN logical port for use"},{"line_number":295,"context_line":"    as a metadata proxy and then schedule this to one of the"},{"line_number":296,"context_line":"    ``neutron-ovn-metadata-agent`` instances"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":"* If isolated_metadata is False"},{"line_number":299,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_7a39d2ef","line":296,"updated":"2017-04-12 13:52:17.000000000","message":"missing trailing period","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"3dd9f6622d2ebeb24c5740786cd1106d60d8ba82","unresolved":false,"context_lines":[{"line_number":293,"context_line":""},{"line_number":294,"context_line":"  * When a new network is created, we must create an OVN logical port for use"},{"line_number":295,"context_line":"    as a metadata proxy and then schedule this to one of the"},{"line_number":296,"context_line":"    ``neutron-ovn-metadata-agent`` instances"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":"* If isolated_metadata is False"},{"line_number":299,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"5ff73747_0a4b3f59","line":296,"in_reply_to":"bff0334d_7a39d2ef","updated":"2017-04-25 14:07:49.000000000","message":"Done","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0c152232905f7bc2114c1b0891dcf19e69a30f30","unresolved":false,"context_lines":[{"line_number":298,"context_line":"* If isolated_metadata is False"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"  * When a network is attached to or removed from a logical router, ensure that"},{"line_number":301,"context_line":"    at one of the networks has a metadata proxy port already created.  If not,"},{"line_number":302,"context_line":"    pick a network and create a metadata proxy port and then schedule it to an"},{"line_number":303,"context_line":"    agent. At this point, we need to update the static route for metadata API."},{"line_number":304,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_1a22c6b9","line":301,"range":{"start_line":301,"start_character":4,"end_line":301,"end_character":6},"updated":"2017-04-12 13:52:17.000000000","message":"s/at least","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"3dd9f6622d2ebeb24c5740786cd1106d60d8ba82","unresolved":false,"context_lines":[{"line_number":298,"context_line":"* If isolated_metadata is False"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"  * When a network is attached to or removed from a logical router, ensure that"},{"line_number":301,"context_line":"    at one of the networks has a metadata proxy port already created.  If not,"},{"line_number":302,"context_line":"    pick a network and create a metadata proxy port and then schedule it to an"},{"line_number":303,"context_line":"    agent. At this point, we need to update the static route for metadata API."},{"line_number":304,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"5ff73747_ea45b344","line":301,"range":{"start_line":301,"start_character":4,"end_line":301,"end_character":6},"in_reply_to":"bff0334d_1a22c6b9","updated":"2017-04-25 14:07:49.000000000","message":"Done","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"0c152232905f7bc2114c1b0891dcf19e69a30f30","unresolved":false,"context_lines":[{"line_number":305,"context_line":"Events that trigger unscheduling an existing metadata proxy:"},{"line_number":306,"context_line":""},{"line_number":307,"context_line":"* When a network is deleted, delete the metadata proxy port if it exists and"},{"line_number":308,"context_line":"  unschedule it from a ``neutron-ovn-metadata-agent``"},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"To schedule a new metadata proxy:"},{"line_number":311,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"bff0334d_ba1cfa77","line":308,"updated":"2017-04-12 13:52:17.000000000","message":"missing trailing period","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"3dd9f6622d2ebeb24c5740786cd1106d60d8ba82","unresolved":false,"context_lines":[{"line_number":305,"context_line":"Events that trigger unscheduling an existing metadata proxy:"},{"line_number":306,"context_line":""},{"line_number":307,"context_line":"* When a network is deleted, delete the metadata proxy port if it exists and"},{"line_number":308,"context_line":"  unschedule it from a ``neutron-ovn-metadata-agent``"},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"To schedule a new metadata proxy:"},{"line_number":311,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"5ff73747_6a73e3b2","line":308,"in_reply_to":"bff0334d_ba1cfa77","updated":"2017-04-25 14:07:49.000000000","message":"Done","commit_id":"54b746c52a7dc937ea534189baee86b19ca54d79"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"32b0a3b01203cded1fb2cd4be23535eb7fe19bee","unresolved":false,"context_lines":[{"line_number":96,"context_line":"(haproxy). We\u0027ll create an OVN *localport* which will be present on every"},{"line_number":97,"context_line":"chassis and this port will have the same MAC/IP address on every host."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"**Step 2** - Routing metadata API requests to the correct Neutron port"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"This works similarly to the current approach."},{"line_number":102,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"bff0334d_d570af42","line":99,"updated":"2017-04-12 13:55:20.000000000","message":"ML2/OVS default is to serve metadata via the router, not DHCP. In that case I believe we don\u0027t inject a router, rather we let the VM route to 169.254.169.254 (Which is of course outside of its subnet), which is why the requests are routed to the router, which then redirects to the proxy.\n\nCan we do something similar? I don\u0027t think this is a major concern at all, but it\u0027d be nice not to inject a router and to assume that all VMs use a dhclient that supports route injection.","commit_id":"eed33d02da3e6d1634fb2273f72aaa0068e48b3e"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"9224c634c435a6ad97ef8349e2ffab38df1f6ab5","unresolved":false,"context_lines":[{"line_number":96,"context_line":"(haproxy). We\u0027ll create an OVN *localport* which will be present on every"},{"line_number":97,"context_line":"chassis and this port will have the same MAC/IP address on every host."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"**Step 2** - Routing metadata API requests to the correct Neutron port"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"This works similarly to the current approach."},{"line_number":102,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_2f796d2e","line":99,"in_reply_to":"9ff52f3f_33e12000","updated":"2017-04-25 14:08:02.000000000","message":"Done","commit_id":"eed33d02da3e6d1634fb2273f72aaa0068e48b3e"},{"author":{"_account_id":1561,"name":"Russell Bryant","email":"rbryant@redhat.com","username":"russellb"},"change_message_id":"563d67e459ac3b204b6766fbff6e49315457d613","unresolved":false,"context_lines":[{"line_number":96,"context_line":"(haproxy). We\u0027ll create an OVN *localport* which will be present on every"},{"line_number":97,"context_line":"chassis and this port will have the same MAC/IP address on every host."},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"**Step 2** - Routing metadata API requests to the correct Neutron port"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"This works similarly to the current approach."},{"line_number":102,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ff52f3f_33e12000","line":99,"in_reply_to":"bff0334d_d570af42","updated":"2017-04-13 01:17:35.000000000","message":"We can do both.\n\n1) Send a static route via DHCP so that VMs route metadata requests to the metadata proxy on its subnet.\n\n2) If #1 doesn\u0027t work (DHCP isn\u0027t enabled, or the DHCP client ignores the route info), we can *also* have a static route programmed in the OVN logical router that still gets metadata requests directed to the right place.\n\nIf #1 doesn\u0027t work *and* the network is not attached to a Neutron router (OVN logical router), then we would not expect metadata requests to work.  I\u0027m not sure a good way around this because the VM wouldn\u0027t have a route for it anyway.","commit_id":"eed33d02da3e6d1634fb2273f72aaa0068e48b3e"},{"author":{"_account_id":1561,"name":"Russell Bryant","email":"rbryant@redhat.com","username":"russellb"},"change_message_id":"563d67e459ac3b204b6766fbff6e49315457d613","unresolved":false,"context_lines":[{"line_number":138,"context_line":"    meaning that this chassis is hosting one or more VM\u0027s connected to"},{"line_number":139,"context_line":"    networks 1 and 4 so we should have a metadata proxy instance running for"},{"line_number":140,"context_line":"    each.   Ensure any running metadata proxies no longer needed are torn"},{"line_number":141,"context_line":"    down."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"* Open and maintain an open connection to the OVN Northbound database (using"},{"line_number":144,"context_line":"  the ovsdbapp library).  On first connection, and anytime a reconnect"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ff52f3f_53838405","line":141,"updated":"2017-04-13 01:17:35.000000000","message":"I wouldn\u0027t expect neutron-ovn-metadata-agent to read this external-id.  Instead, I would expect the agent to write to this key.\n\nTo figure out which networks it should be running proxies for, the agent can watch the Port_Binding table of the OVN southbound database.  It should look for all port bindings with the chassis column set to the chassis the agent is running on.  For all of those port binding rows, it should determine the list of datapaths (logical switches) those ports are attached to.\n\nAs for the external-id on the Chassis, I would expect the agent to keep it updated with the list of networks it currently has haproxy instances running for.\n\nThe external-id is discussed again in the \"Other Considerations\" section later.  There it\u0027s how I would expect.  It just sounds different in this section.","commit_id":"eed33d02da3e6d1634fb2273f72aaa0068e48b3e"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"9224c634c435a6ad97ef8349e2ffab38df1f6ab5","unresolved":false,"context_lines":[{"line_number":138,"context_line":"    meaning that this chassis is hosting one or more VM\u0027s connected to"},{"line_number":139,"context_line":"    networks 1 and 4 so we should have a metadata proxy instance running for"},{"line_number":140,"context_line":"    each.   Ensure any running metadata proxies no longer needed are torn"},{"line_number":141,"context_line":"    down."},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"* Open and maintain an open connection to the OVN Northbound database (using"},{"line_number":144,"context_line":"  the ovsdbapp library).  On first connection, and anytime a reconnect"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_0f78f127","line":141,"in_reply_to":"9ff52f3f_53838405","updated":"2017-04-25 14:08:02.000000000","message":"Done","commit_id":"eed33d02da3e6d1634fb2273f72aaa0068e48b3e"},{"author":{"_account_id":1561,"name":"Russell Bryant","email":"rbryant@redhat.com","username":"russellb"},"change_message_id":"563d67e459ac3b204b6766fbff6e49315457d613","unresolved":false,"context_lines":[{"line_number":151,"context_line":"  ``neutron-ovn-metadata-agent`` will watch OVN Southbound db (Port_Binding"},{"line_number":152,"context_line":"  table) to detect when a port gets bound to its chassis. At that point, the"},{"line_number":153,"context_line":"  agent will make sure that there\u0027s a metadata proxy attached to the OVN"},{"line_number":154,"context_line":"  *localport* for every network which this port is connected to."},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"* When a new network is created, we must create an OVN *localport* for use"},{"line_number":157,"context_line":"  as a metadata proxy."}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ff52f3f_137dfc1b","line":154,"updated":"2017-04-13 01:17:35.000000000","message":"Minor note, a port will only be attached to a single network.","commit_id":"eed33d02da3e6d1634fb2273f72aaa0068e48b3e"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"9224c634c435a6ad97ef8349e2ffab38df1f6ab5","unresolved":false,"context_lines":[{"line_number":151,"context_line":"  ``neutron-ovn-metadata-agent`` will watch OVN Southbound db (Port_Binding"},{"line_number":152,"context_line":"  table) to detect when a port gets bound to its chassis. At that point, the"},{"line_number":153,"context_line":"  agent will make sure that there\u0027s a metadata proxy attached to the OVN"},{"line_number":154,"context_line":"  *localport* for every network which this port is connected to."},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"* When a new network is created, we must create an OVN *localport* for use"},{"line_number":157,"context_line":"  as a metadata proxy."}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_cf8fa921","line":154,"in_reply_to":"9ff52f3f_137dfc1b","updated":"2017-04-25 14:08:02.000000000","message":"Done","commit_id":"eed33d02da3e6d1634fb2273f72aaa0068e48b3e"},{"author":{"_account_id":1561,"name":"Russell Bryant","email":"rbryant@redhat.com","username":"russellb"},"change_message_id":"3831c51376b2914938b46be5631f3085ffa79085","unresolved":false,"context_lines":[{"line_number":168,"context_line":"* Creating an OVS interface and placing it in that namespace::"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    $ sudo ovs-vsctl add-port br-int \u003ciface-name\u003e \\"},{"line_number":171,"context_line":"    \u003e -- set Interface \u003ciface-name\u003e type\u003dinternal"},{"line_number":172,"context_line":"    $ sudo ip link set \u003ciface-name\u003e netns \u003cns-name\u003e"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"* Setting the IP and MAC addresses on that interface::"}],"source_content_type":"text/x-rst","patch_set":3,"id":"9ff52f3f_beaf1993","line":171,"updated":"2017-04-13 17:47:00.000000000","message":"During the OVN IRC meeting today, I gave an update on this work.  One thing that came up was a recommendation to use a veth pair instead of a type\u003dinternal port.  That\u0027s something we should look into for the implementation.\n\n\u003cshettyg\u003e veth pairs are usually better with OVS upgrades\n\n\u003cblp\u003e At least for OVS upgrades that upgrade the kernel module.\n\n\u003czhouhan\u003e blp: what will be the problem of upgrading for internal ports?\n\n\u003cblp\u003e Internal ports are owned by the OVS kernel module.  When you remove and reinstall the kernel module, they go away.  The OVS scripts add them back, but there is still some disruption.","commit_id":"eed33d02da3e6d1634fb2273f72aaa0068e48b3e"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"9224c634c435a6ad97ef8349e2ffab38df1f6ab5","unresolved":false,"context_lines":[{"line_number":168,"context_line":"* Creating an OVS interface and placing it in that namespace::"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"    $ sudo ovs-vsctl add-port br-int \u003ciface-name\u003e \\"},{"line_number":171,"context_line":"    \u003e -- set Interface \u003ciface-name\u003e type\u003dinternal"},{"line_number":172,"context_line":"    $ sudo ip link set \u003ciface-name\u003e netns \u003cns-name\u003e"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"* Setting the IP and MAC addresses on that interface::"}],"source_content_type":"text/x-rst","patch_set":3,"id":"5ff73747_8f99a16f","line":171,"in_reply_to":"9ff52f3f_beaf1993","updated":"2017-04-25 14:08:02.000000000","message":"Done","commit_id":"eed33d02da3e6d1634fb2273f72aaa0068e48b3e"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"122e842501f3ac6237f25134ec5ac74f5d93efa1","unresolved":false,"context_lines":[{"line_number":80,"context_line":"since haproxy is very lightweight and they will be idling most of the time,"},{"line_number":81,"context_line":"it shouldn\u0027t be a big issue overall. However, the major benefit of this"},{"line_number":82,"context_line":"approach is that we don\u0027t have to implement any scheduling logic to distribute"},{"line_number":83,"context_line":"metadata proxies accross the nodes, nor any HA logic. This, however, can be"},{"line_number":84,"context_line":"evolved in the future as explained below in this document."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"Also, this approach relies on a new feature in OVN that we must implement"}],"source_content_type":"text/x-rst","patch_set":5,"id":"5ff73747_f1b3a24c","line":83,"range":{"start_line":83,"start_character":17,"end_line":83,"end_character":24},"updated":"2017-05-02 20:17:07.000000000","message":"s/across","commit_id":"4d97ebbbe6e13a2ed426a5fc2a14489c70372852"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"122e842501f3ac6237f25134ec5ac74f5d93efa1","unresolved":false,"context_lines":[{"line_number":105,"context_line":"metadata API requests to the *localport* that is hosting the metadata API"},{"line_number":106,"context_line":"proxy."},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"Also, in case that DHCP isn\u0027t enabled or the client ignores the route info, we"},{"line_number":109,"context_line":"will program a static route in the OVN logical router which will still get"},{"line_number":110,"context_line":"metadata requests directed to the right place."},{"line_number":111,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"5ff73747_b1875a62","line":108,"range":{"start_line":108,"start_character":6,"end_line":108,"end_character":23},"updated":"2017-05-02 20:17:07.000000000","message":"s/in case DHCP","commit_id":"4d97ebbbe6e13a2ed426a5fc2a14489c70372852"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"122e842501f3ac6237f25134ec5ac74f5d93efa1","unresolved":false,"context_lines":[{"line_number":109,"context_line":"will program a static route in the OVN logical router which will still get"},{"line_number":110,"context_line":"metadata requests directed to the right place."},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"If DHCP route does not work and network is isolated, VMs won\u0027t get metadata"},{"line_number":113,"context_line":"but this already happens with the current implementation so this approach"},{"line_number":114,"context_line":"doesn\u0027t introduce a regression."},{"line_number":115,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"5ff73747_d1e78646","line":112,"range":{"start_line":112,"start_character":67,"end_line":112,"end_character":75},"updated":"2017-05-02 20:17:07.000000000","message":"s/metadata, (trailing comma)","commit_id":"4d97ebbbe6e13a2ed426a5fc2a14489c70372852"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"122e842501f3ac6237f25134ec5ac74f5d93efa1","unresolved":false,"context_lines":[{"line_number":109,"context_line":"will program a static route in the OVN logical router which will still get"},{"line_number":110,"context_line":"metadata requests directed to the right place."},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"If DHCP route does not work and network is isolated, VMs won\u0027t get metadata"},{"line_number":113,"context_line":"but this already happens with the current implementation so this approach"},{"line_number":114,"context_line":"doesn\u0027t introduce a regression."},{"line_number":115,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"5ff73747_917c5e73","line":112,"range":{"start_line":112,"start_character":3,"end_line":112,"end_character":7},"updated":"2017-05-02 20:17:07.000000000","message":"s/the DHCP","commit_id":"4d97ebbbe6e13a2ed426a5fc2a14489c70372852"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"122e842501f3ac6237f25134ec5ac74f5d93efa1","unresolved":false,"context_lines":[{"line_number":109,"context_line":"will program a static route in the OVN logical router which will still get"},{"line_number":110,"context_line":"metadata requests directed to the right place."},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"If DHCP route does not work and network is isolated, VMs won\u0027t get metadata"},{"line_number":113,"context_line":"but this already happens with the current implementation so this approach"},{"line_number":114,"context_line":"doesn\u0027t introduce a regression."},{"line_number":115,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"5ff73747_7181d24a","line":112,"range":{"start_line":112,"start_character":32,"end_line":112,"end_character":39},"updated":"2017-05-02 20:17:07.000000000","message":"s/the network","commit_id":"4d97ebbbe6e13a2ed426a5fc2a14489c70372852"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"122e842501f3ac6237f25134ec5ac74f5d93efa1","unresolved":false,"context_lines":[{"line_number":179,"context_line":""},{"line_number":180,"context_line":"    $ sudo ip netns add \u003cns-name\u003e"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"* Creating a veth pair (OVS upgrades that upgrade the kernel module will make"},{"line_number":183,"context_line":"  internal ports go away and then brought back by OVS scripts. This may cause"},{"line_number":184,"context_line":"  some disruption. Therefore, veth pairs are preferred over internal ports)::"},{"line_number":185,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"5ff73747_913fbe86","line":182,"range":{"start_line":182,"start_character":13,"end_line":182,"end_character":17},"updated":"2017-05-02 20:17:07.000000000","message":"nit: VETH ?  L184 and L200 too","commit_id":"4d97ebbbe6e13a2ed426a5fc2a14489c70372852"}]}
