)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"6b0bc1d99f3b5970382d79650601fc78bbcc712d","unresolved":false,"context_lines":[{"line_number":7,"context_line":"adds configurable agent type"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"this change introduces a new agent_type config option which"},{"line_number":10,"context_line":"allows the ovs agent to be used the ovs mechanisum driver"},{"line_number":11,"context_line":"and ovs dpdk mechanisum driver."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I48f4be4b1d51bcff62e86e5814c12bd9bfa3c902"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"ba3cc151_aca277fa","line":10,"updated":"2015-07-01 20:36:27.000000000","message":"nit: to be used by the ovs mechanism(typo) driver","commit_id":"eb844bc3cc0bb21c3afec8bba824517d036c12ba"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"93de9ef0e67c8940d75723efb3e325592cabef79","unresolved":false,"context_lines":[{"line_number":7,"context_line":"adds configurable agent type"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"this change introduces a new agent_type config option which"},{"line_number":10,"context_line":"allows the ovs agent to be used the ovs mechanisum driver"},{"line_number":11,"context_line":"and ovs dpdk mechanisum driver."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I48f4be4b1d51bcff62e86e5814c12bd9bfa3c902"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"ba3cc151_b415ad9c","line":10,"in_reply_to":"ba3cc151_aca277fa","updated":"2015-07-02 16:40:53.000000000","message":"Done","commit_id":"eb844bc3cc0bb21c3afec8bba824517d036c12ba"},{"author":{"_account_id":7016,"name":"Swaminathan Vasudevan","email":"swvasude@cisco.com","username":"souminathan"},"change_message_id":"6b0bc1d99f3b5970382d79650601fc78bbcc712d","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"this change introduces a new agent_type config option which"},{"line_number":10,"context_line":"allows the ovs agent to be used the ovs mechanisum driver"},{"line_number":11,"context_line":"and ovs dpdk mechanisum driver."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I48f4be4b1d51bcff62e86e5814c12bd9bfa3c902"},{"line_number":14,"context_line":"Partial-Bug: #1469871"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"ba3cc151_6cb1cf46","line":11,"updated":"2015-07-01 20:36:27.000000000","message":"ditto:","commit_id":"eb844bc3cc0bb21c3afec8bba824517d036c12ba"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"93de9ef0e67c8940d75723efb3e325592cabef79","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"this change introduces a new agent_type config option which"},{"line_number":10,"context_line":"allows the ovs agent to be used the ovs mechanisum driver"},{"line_number":11,"context_line":"and ovs dpdk mechanisum driver."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I48f4be4b1d51bcff62e86e5814c12bd9bfa3c902"},{"line_number":14,"context_line":"Partial-Bug: #1469871"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"ba3cc151_d41871d5","line":11,"in_reply_to":"ba3cc151_6cb1cf46","updated":"2015-07-02 16:40:53.000000000","message":"Done","commit_id":"eb844bc3cc0bb21c3afec8bba824517d036c12ba"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"5ded302cb2d8a5b03f12304e2ac365c449297af8","unresolved":false,"context_lines":[{"line_number":9,"context_line":"this change introduces a new agent_type config option which"},{"line_number":10,"context_line":"allows the ovs agent to be used by the ovs mechanisum driver"},{"line_number":11,"context_line":"and by the ovs dpdk mechanisum driver."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I48f4be4b1d51bcff62e86e5814c12bd9bfa3c902"},{"line_number":14,"context_line":"Partial-Bug: #1469871"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"ba3cc151_b712feb2","line":12,"updated":"2015-07-07 13:07:35.000000000","message":"DocImpact","commit_id":"14b804493186272de7cf39718e506ba29d1af264"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"fbcc237f0cbd33403fe724afc1be3658aefe0eb9","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Sean Mooney \u003csean.k.mooney@intel.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-07-14 17:33:00 -0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"adds configurable agent type"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"this change introduces a new agent_type config option which"},{"line_number":10,"context_line":"allows the ovs agent to be used by the ovs mechanisum driver"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a41bdd9_cb6bb8f0","line":7,"updated":"2015-07-16 16:33:09.000000000","message":"Nit: Capitalize \u0027Adds\u0027.","commit_id":"15779ade14b7ed0085a464cc0913300b0f514b5e"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"fbcc237f0cbd33403fe724afc1be3658aefe0eb9","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"adds configurable agent type"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"this change introduces a new agent_type config option which"},{"line_number":10,"context_line":"allows the ovs agent to be used by the ovs mechanisum driver"},{"line_number":11,"context_line":"and by the ovs dpdk mechanisum driver."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a41bdd9_4b80088c","line":9,"updated":"2015-07-16 16:33:09.000000000","message":"Nit: Capitalize \u0027This\u0027.","commit_id":"15779ade14b7ed0085a464cc0913300b0f514b5e"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"fbcc237f0cbd33403fe724afc1be3658aefe0eb9","unresolved":false,"context_lines":[{"line_number":7,"context_line":"adds configurable agent type"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"this change introduces a new agent_type config option which"},{"line_number":10,"context_line":"allows the ovs agent to be used by the ovs mechanisum driver"},{"line_number":11,"context_line":"and by the ovs dpdk mechanisum driver."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"DocImpact"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a41bdd9_eb3ebcd9","line":10,"updated":"2015-07-16 16:33:09.000000000","message":"Nit: \u0027mechanism\"","commit_id":"15779ade14b7ed0085a464cc0913300b0f514b5e"}],"etc/neutron/plugins/ml2/openvswitch_agent.ini":[{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"89a694c97781059661c5bc718b4bdc444a9f0262","unresolved":false,"context_lines":[{"line_number":60,"context_line":"# (StrOpt) ovs datapath to use."},{"line_number":61,"context_line":"# \u0027system\u0027 is the default value and corresponds to the kernel datapath."},{"line_number":62,"context_line":"# To enable the userspace datapath set this value to \u0027netdev\u0027"},{"line_number":63,"context_line":"# ovs_datapath \u003d netdev"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"[agent]"},{"line_number":66,"context_line":"# Log agent heartbeats from this OVS agent"}],"source_content_type":"text/x-properties","patch_set":2,"id":"ba3cc151_95f8d2c4","line":63,"updated":"2015-07-01 21:47:50.000000000","message":"Line 61 says \"system\" is the default, but line 63 says \"netdev\" is the default","commit_id":"eb844bc3cc0bb21c3afec8bba824517d036c12ba"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"93de9ef0e67c8940d75723efb3e325592cabef79","unresolved":false,"context_lines":[{"line_number":60,"context_line":"# (StrOpt) ovs datapath to use."},{"line_number":61,"context_line":"# \u0027system\u0027 is the default value and corresponds to the kernel datapath."},{"line_number":62,"context_line":"# To enable the userspace datapath set this value to \u0027netdev\u0027"},{"line_number":63,"context_line":"# ovs_datapath \u003d netdev"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"[agent]"},{"line_number":66,"context_line":"# Log agent heartbeats from this OVS agent"}],"source_content_type":"text/x-properties","patch_set":2,"id":"ba3cc151_54f7818a","line":63,"in_reply_to":"ba3cc151_95f8d2c4","updated":"2015-07-02 16:40:53.000000000","message":"this is changed in the latest version of the dependant patch.","commit_id":"eb844bc3cc0bb21c3afec8bba824517d036c12ba"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"a06dc3c54d1c9dcced6278027c1e8842f5f99eee","unresolved":false,"context_lines":[{"line_number":149,"context_line":"# \u0027Open vSwitch agent\u0027 is the default value and corresponds"},{"line_number":150,"context_line":"# to standard ovs agent type."},{"line_number":151,"context_line":"# \u0027DPDK OVS Agent\u0027 should be set if ovs_datapath \u003d netdev,"},{"line_number":152,"context_line":"# the ovsdpdk mechanism driver is enabled and ovs installed is useing dpdk."},{"line_number":153,"context_line":"#"},{"line_number":154,"context_line":"# agent_type \u003d \u0027Open vSwitch agent\u0027"},{"line_number":155,"context_line":""}],"source_content_type":"text/x-properties","patch_set":5,"id":"9a41bdd9_eb004668","line":152,"updated":"2015-07-15 13:30:23.000000000","message":"useing \u003d\u003e using","commit_id":"15779ade14b7ed0085a464cc0913300b0f514b5e"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"b8ca2451589301171506d1a189d022d6ca23c8ef","unresolved":false,"context_lines":[{"line_number":139,"context_line":"# quitting_rpc_timeout \u003d 10"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"# (StrOpt) agent_type to report."},{"line_number":142,"context_line":"# this config entry allows configuration of the neutron agent type reported"},{"line_number":143,"context_line":"# by the default ovs l2 agent. This allows multiple ovs mechanism drivers"},{"line_number":144,"context_line":"# to share a common ovs agent implementation."},{"line_number":145,"context_line":"#"}],"source_content_type":"text/x-properties","patch_set":7,"id":"1a4dcd0f_f22612b9","line":142,"updated":"2015-08-12 02:07:42.000000000","message":"this -\u003e This","commit_id":"df25909e0f9c96de53bee30f93b5f33416d46d31"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"3b0c02c0116390c6a9692f3f0eedab815f8af883","unresolved":false,"context_lines":[{"line_number":139,"context_line":"# quitting_rpc_timeout \u003d 10"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"# (StrOpt) agent_type to report."},{"line_number":142,"context_line":"# this config entry allows configuration of the neutron agent type reported"},{"line_number":143,"context_line":"# by the default ovs l2 agent. This allows multiple ovs mechanism drivers"},{"line_number":144,"context_line":"# to share a common ovs agent implementation."},{"line_number":145,"context_line":"#"}],"source_content_type":"text/x-properties","patch_set":7,"id":"1a4dcd0f_4717fd44","line":142,"in_reply_to":"1a4dcd0f_f22612b9","updated":"2015-08-12 08:58:10.000000000","message":"will do  when i rebase","commit_id":"df25909e0f9c96de53bee30f93b5f33416d46d31"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"d9b23676b47b9149278774669667c077e5ab29b5","unresolved":false,"context_lines":[{"line_number":148,"context_line":"# by the default ovs l2 agent. This allows multiple ovs mechanism drivers"},{"line_number":149,"context_line":"# to share a common ovs agent implementation."},{"line_number":150,"context_line":"#"},{"line_number":151,"context_line":"# agent_type \u003d \u0027Open vSwitch agent\u0027"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"[securitygroup]"},{"line_number":154,"context_line":"# Firewall driver for realizing neutron security group function."}],"source_content_type":"text/x-properties","patch_set":12,"id":"da20952f_8d55c31e","line":151,"updated":"2015-08-26 22:31:21.000000000","message":"I don\u0027t think this should be configurable. It doesn\u0027t make sense that we require a deployer to describe the type of agent that is being deployed when the agent itself should know what type it is. Am I missing something?\n\nIf the idea is that the agent can support both and this is controlling which mode it will be in, having it depend on the name reported back seems a bit user unfriendly since there is no validation.\n\nI would rather have the ovs_datapath be advertised in the agent config and branch on that instead.","commit_id":"add07750ba06eabeeeb758c26a3f83ce50bb3c32"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"9f8bbc71b8fd83c80eaa6017fa58d297fd43c911","unresolved":false,"context_lines":[{"line_number":148,"context_line":"# by the default ovs l2 agent. This allows multiple ovs mechanism drivers"},{"line_number":149,"context_line":"# to share a common ovs agent implementation."},{"line_number":150,"context_line":"#"},{"line_number":151,"context_line":"# agent_type \u003d \u0027Open vSwitch agent\u0027"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"[securitygroup]"},{"line_number":154,"context_line":"# Firewall driver for realizing neutron security group function."}],"source_content_type":"text/x-properties","patch_set":12,"id":"da20952f_02b8fe73","line":151,"updated":"2015-09-04 21:07:12.000000000","message":"What do you think about having a configurable \u0027VIF_TYPE\u0027 option here that can accept the default or DPDK? Then we can update the OVS mech driver to populate the info sent to Nova based on the config value in the agent.","commit_id":"add07750ba06eabeeeb758c26a3f83ce50bb3c32"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"3fa030158e94a486eb11daacc4d3ad7fbf0c17d9","unresolved":false,"context_lines":[{"line_number":148,"context_line":"# by the default ovs l2 agent. This allows multiple ovs mechanism drivers"},{"line_number":149,"context_line":"# to share a common ovs agent implementation."},{"line_number":150,"context_line":"#"},{"line_number":151,"context_line":"# agent_type \u003d \u0027Open vSwitch agent\u0027"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"[securitygroup]"},{"line_number":154,"context_line":"# Firewall driver for realizing neutron security group function."}],"source_content_type":"text/x-properties","patch_set":12,"id":"da20952f_963c21c9","line":151,"in_reply_to":"da20952f_02b8fe73","updated":"2015-09-07 13:56:36.000000000","message":"how would the config value be passed from for the agent to mech driver?\nvia the configuration section of the agent report?\n\nif we are going down that route i would prefer not to introduce any config value and implement the solution i want to propose for mitika.\n\nthe configuration section of the agent report would be extended with 2 new values. the datapath_type and the supported interface_types from the Open_vSwtich table in the ovsdb. the OVS mech driver would then consult these two vaule and enable either the vhost-user or kernel-vhost vif types.\n\nthe OVS mech driver would populate the info sent to Nova based on the run time detection of the vswitch capabilities. if the ovs datapath_type is netdev and the vhost-user interface is in the supported interface types then it will be selected otherwise the behavior would be the same as it is today.\n\ni had hoped to write a patch to enable this functionality when the mitika tree opens but would be happy to submit for liberty if you think it could be included.","commit_id":"add07750ba06eabeeeb758c26a3f83ce50bb3c32"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"48bd5876b2c66ecea06dd43089e4c34f255673be","unresolved":false,"context_lines":[{"line_number":148,"context_line":"# by the default ovs l2 agent. This allows multiple ovs mechanism drivers"},{"line_number":149,"context_line":"# to share a common ovs agent implementation."},{"line_number":150,"context_line":"#"},{"line_number":151,"context_line":"# agent_type \u003d \u0027Open vSwitch agent\u0027"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"[securitygroup]"},{"line_number":154,"context_line":"# Firewall driver for realizing neutron security group function."}],"source_content_type":"text/x-properties","patch_set":12,"id":"da20952f_3e16dff1","line":151,"in_reply_to":"da20952f_3e2a682d","updated":"2015-08-27 23:38:44.000000000","message":"hi yes the agent is identical in both scenarios.\nthe difference is server side in the mechanism driver.\n\nif the neutron agent on the compute node has an agent of type \u0027Open vSwitch agent\u0027 the neutron service will select the normal OVS mech driver to bind ports for that host.\nthe standard ovs mech driver binds prots with VIF_TYPE_OVS and populated VIF binding details with infomation such as should hybrid plug be used.\n\nVIF_TYPE_OVS will instruct nova to generate a libvirt xml for kernel vhost.\n\n\nwith this change if the neutron agent on the compute node had an agent_type of \u0027DPDK OVS Agent\u0027 the ovsdpdk mech driver would be selected.\n\nhttps://github.com/stackforge/networking-ovs-dpdk/blob/master/networking_ovs_dpdk/driver/mech_ovs_dpdk.py\n\nthe ovsdpdk mech driver will bind the port with VIF_TYPE_VHOST_USER\nand populate the vif binding details with the information required by nova to \ngenerate the appropriate libvirt xml for the vhost user interface type.\n\nfundamentally the neutron ovs agent just configure flows between logical ports in the vswitch. we have it do other things also but that is its main job. the actrual ovs port type used to connect the vm to the switch does not change the openflow rules in anyway. in the M cycle i would like to merge the ability to configure vhost-user from our mech driver with the standard mech driver.\n\nit is after midnight my time currently so i will try and catch up with you on irc tomorrow if that helps.","commit_id":"add07750ba06eabeeeb758c26a3f83ce50bb3c32"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"274d9e75152eb8b0f6ba1f1fbda3914336c13d99","unresolved":false,"context_lines":[{"line_number":148,"context_line":"# by the default ovs l2 agent. This allows multiple ovs mechanism drivers"},{"line_number":149,"context_line":"# to share a common ovs agent implementation."},{"line_number":150,"context_line":"#"},{"line_number":151,"context_line":"# agent_type \u003d \u0027Open vSwitch agent\u0027"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"[securitygroup]"},{"line_number":154,"context_line":"# Firewall driver for realizing neutron security group function."}],"source_content_type":"text/x-properties","patch_set":12,"id":"da20952f_bbe4810d","line":151,"in_reply_to":"da20952f_8d55c31e","updated":"2015-08-26 23:35:48.000000000","message":"this is unrelated to the dapath change other then both are required to support dpdk.\n\nthis change is to allow multiple mechanism drivers to share the same agent codebase. \n\nagent based mechanism drivers are select by comparing the agent_type of the agent runnign on a node with that of the mechanism driver. \n\nto support coexistence a seperate mech driver is currntly require to support vhost-user with ovs dpdk and kernel-vhost with kernel ovs.\n\nthis chane will allow some node in a deployment to use vhost-user using the ovs-dpdk mechanism driver and other to use kernel vhost via the ovs mechanism driver and all node to run the same ovs agent with a configurable agent type.\n\nthe datapath alone is not enough to determine vhost-user or dpdk support.\n\nthe netdev datapath exists even if ovs is compiled without dpdk.\n\nif it is compile with dpdk and  the netdev datapath is configured  but the vswitch is not started with the --dpdk parameter it also wont support dpdk feture even though they are compiled in. \n\nin the m cycle i would like to  fully support runtime detection fo the ovs capablityes. to do this i would like to modify the ovs agent to report back the datapath type and the and the supported port types from the Open vSwitch table in the ovsdb.  the supported port types in the ovsdb are automatically updated based on the compiled in interfaces and the parameter the ovs-vswitchd process is started with.\n\nif the standard ovs ml2 driver is modified to consume this additional information it will have enough information about ovs to know if it can enable vhost-user however it still needs to know it the flavour and hyper-visor supports vhost-user this can be addressed by  the following proposal https://review.openstack.org/#/c/190917/\n\nfrom an openstack perspective in  kilo to enable vhost-user and dpdk support  the operator had to install our mechanism driver on the networking node  and our forked agent  with only this change and the datapath change on the dpdk enabled nodes.\n\nin liberty merging this change will have the following effect. To enable vhost-user and dpdk support  the operator needs to install our mechanism driver on the networking node  and and set two config values on dpdk enabled nodes.\n\nin mitika i hope to simplify this further so that the operator simple sets the datapath type on the dpdk enable nodes.\nnova would provide neutron with a list of interface it can support based on the hypervisor on the node and the flavour selected and the ovs agent will report the capabilities of the vswithc it will manages allowing the ovs ml2 mech driver to correctly determine which vhost backend to use at runtime.\n\nobviously the operator  has to deploy the appropriate vswitch and preform other platform configuration also such as installing kvm/qemu/libvirt, configuring hugepages etc but that is not relevant to this change.\n\ni hope to write a blueprint/spec for this work and submit it before the summit","commit_id":"add07750ba06eabeeeb758c26a3f83ce50bb3c32"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"8c3085dc290988f4158493b67f8479e310643076","unresolved":false,"context_lines":[{"line_number":148,"context_line":"# by the default ovs l2 agent. This allows multiple ovs mechanism drivers"},{"line_number":149,"context_line":"# to share a common ovs agent implementation."},{"line_number":150,"context_line":"#"},{"line_number":151,"context_line":"# agent_type \u003d \u0027Open vSwitch agent\u0027"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"[securitygroup]"},{"line_number":154,"context_line":"# Firewall driver for realizing neutron security group function."}],"source_content_type":"text/x-properties","patch_set":12,"id":"ba15a1d1_f52ac8e6","line":151,"in_reply_to":"da20952f_963c21c9","updated":"2015-09-22 07:46:56.000000000","message":"It\u0027s too late now. Sorry about the delay on this, it slipped through the cracks, I wish you would have pinged me on IRC... But oh well. \n\nWe might be able to merge this patch if you merge this option as deprecated as a short term workaround that we can rip out in M.","commit_id":"add07750ba06eabeeeb758c26a3f83ce50bb3c32"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"4ce824d9a1085eb8b1b19d5c9a6271712df95175","unresolved":false,"context_lines":[{"line_number":148,"context_line":"# by the default ovs l2 agent. This allows multiple ovs mechanism drivers"},{"line_number":149,"context_line":"# to share a common ovs agent implementation."},{"line_number":150,"context_line":"#"},{"line_number":151,"context_line":"# agent_type \u003d \u0027Open vSwitch agent\u0027"},{"line_number":152,"context_line":""},{"line_number":153,"context_line":"[securitygroup]"},{"line_number":154,"context_line":"# Firewall driver for realizing neutron security group function."}],"source_content_type":"text/x-properties","patch_set":12,"id":"da20952f_3e2a682d","line":151,"in_reply_to":"da20952f_bbe4810d","updated":"2015-08-27 19:55:46.000000000","message":"There\u0027s still something I\u0027m not quite understanding. If a user is using the exact same agent, what is being done differently between the two scenarios. Is it different VIF binding details being populated on the server side?\n\nSo if i\u0027m understanding correctly, it\u0027s a valid configuration to use a different datapath while still using the normal OVS mech driver and you want this configuration value to be used to determine which mech driver to use.\n\nIf the agent is exactly the same with this minor change, it sounds like we should just make a modification to the openvswitch mech driver to support both types rather than creating a completely new one.\n\nCan you ping me on IRC (kevinbenton) to chat about this?","commit_id":"add07750ba06eabeeeb758c26a3f83ce50bb3c32"}],"neutron/plugins/ml2/drivers/openvswitch/agent/common/config.py":[{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"ca5320bf635055473664297313c5940b71c9c82d","unresolved":false,"context_lines":[{"line_number":100,"context_line":"               help\u003d_(\"Set new timeout in seconds for new rpc calls after \""},{"line_number":101,"context_line":"                      \"agent receives SIGTERM. If value is set to 0, rpc \""},{"line_number":102,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":103,"context_line":"    cfg.StrOpt(\u0027agent_type\u0027, default\u003dq_const.AGENT_TYPE_OVS,"},{"line_number":104,"context_line":"               choices\u003d[q_const.AGENT_TYPE_OVS, q_const.AGENT_TYPE_OVS_DPDK],"},{"line_number":105,"context_line":"               help\u003d_(\"Selects the Agent Type reported\"))"},{"line_number":106,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba3cc151_6ecedf5b","line":103,"updated":"2015-06-30 21:45:10.000000000","message":"New option needs to get added to openvswitch_agent.ini.   I don\u0027t see that file listed on this patch.","commit_id":"5031fa770c39eadd12f22dc6e9e5d3cb19e7d388"},{"author":{"_account_id":13869,"name":"Maxime Leroy","email":"maxime.leroy@6wind.com","username":"mleroy"},"change_message_id":"f43362677aab07c9c52da60f09967f750c969175","unresolved":false,"context_lines":[{"line_number":103,"context_line":"    cfg.StrOpt(\u0027agent_type\u0027, default\u003dq_const.AGENT_TYPE_OVS,"},{"line_number":104,"context_line":"               choices\u003d[q_const.AGENT_TYPE_OVS, q_const.AGENT_TYPE_OVS_DPDK],"},{"line_number":105,"context_line":"               help\u003d_(\"Selects the Agent Type reported\"))"},{"line_number":106,"context_line":"]"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"cfg.CONF.register_opts(ovs_opts, \"OVS\")"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba3cc151_66857f05","line":106,"updated":"2015-07-01 14:45:48.000000000","message":"I have the same needs for ovs-fp (i.e. adding here AGENT_TYPE_OVS_FP)\n\n1. Do you think it should be possible to add this one here ?\n\n2. At least, we should not limited the agent_type with a choice list. What do you think ?","commit_id":"5031fa770c39eadd12f22dc6e9e5d3cb19e7d388"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"19c9255fe1d746e8d7cbaae8c665d4c167ce0c42","unresolved":false,"context_lines":[{"line_number":103,"context_line":"    cfg.StrOpt(\u0027agent_type\u0027, default\u003dq_const.AGENT_TYPE_OVS,"},{"line_number":104,"context_line":"               choices\u003d[q_const.AGENT_TYPE_OVS, q_const.AGENT_TYPE_OVS_DPDK],"},{"line_number":105,"context_line":"               help\u003d_(\"Selects the Agent Type reported\"))"},{"line_number":106,"context_line":"]"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"cfg.CONF.register_opts(ovs_opts, \"OVS\")"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba3cc151_3dae6be6","line":106,"in_reply_to":"ba3cc151_66857f05","updated":"2015-07-02 14:57:48.000000000","message":"it should be a simple 2 line patch to add an AGENT_TYPE_OVS_FP agent type additionally once this patch merges.\n\nthe reason i want to use a choice list is to be somewhat defensive against misconfiguration due to typos. The value of this config option must match the value used by the ml2 mech driver exactly to function correctly so i wanted to enable an enum of predefined values rather then a raw sting.","commit_id":"5031fa770c39eadd12f22dc6e9e5d3cb19e7d388"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"47dd95b00d786290a47164989f3e956bc76269f7","unresolved":false,"context_lines":[{"line_number":15,"context_line":"from oslo_config import cfg"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"from neutron.agent.common import config"},{"line_number":18,"context_line":"from neutron.common import constants as q_const"},{"line_number":19,"context_line":"from neutron.plugins.common import constants as p_const"},{"line_number":20,"context_line":"from neutron.plugins.ml2.drivers.openvswitch.agent.common \\"},{"line_number":21,"context_line":"    import constants"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_dc3005a1","line":18,"updated":"2015-07-14 02:20:43.000000000","message":"nit: I feel strange \"q_\". Does it refer to \"q\"uantum? I guess that there is no rule strictly but \"n_const\" is better for me.","commit_id":"84425ce35007c4f46e60e33a392e49bc11a8d72f"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"f97969a4c1adf87712493eaaa19363755d49259b","unresolved":false,"context_lines":[{"line_number":15,"context_line":"from oslo_config import cfg"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"from neutron.agent.common import config"},{"line_number":18,"context_line":"from neutron.common import constants as q_const"},{"line_number":19,"context_line":"from neutron.plugins.common import constants as p_const"},{"line_number":20,"context_line":"from neutron.plugins.ml2.drivers.openvswitch.agent.common \\"},{"line_number":21,"context_line":"    import constants"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_d6043019","line":18,"in_reply_to":"9a41bdd9_dc3005a1","updated":"2015-07-14 21:16:25.000000000","message":"yes sorry i copy pasted it from our modified agent l taught i had already got rid of all the quantum stuff but i guess not.\n\nill update in next patch but since there is no reference to q_const in neutron currently let not reintroduce the pattern.\ngood catch","commit_id":"84425ce35007c4f46e60e33a392e49bc11a8d72f"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"333ef41ba6c2ab6cf24a7968c40b871a845e191b","unresolved":false,"context_lines":[{"line_number":104,"context_line":"                      \"agent receives SIGTERM. If value is set to 0, rpc \""},{"line_number":105,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":106,"context_line":"    cfg.StrOpt(\u0027agent_type\u0027, default\u003dn_const.AGENT_TYPE_OVS,"},{"line_number":107,"context_line":"               choices\u003d[n_const.AGENT_TYPE_OVS, n_const.AGENT_TYPE_OVS_DPDK],"},{"line_number":108,"context_line":"               help\u003d_(\"Selects the Agent Type reported\"))"},{"line_number":109,"context_line":"]"},{"line_number":110,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"9a41bdd9_bdc4685f","line":107,"updated":"2015-07-16 23:12:22.000000000","message":"We should probably avoid restricting it here if the idea is that we want this to be flexible and usable by other agent types that might be out of tree. I think it would make more sense for this to be validated during initialization by the agent itself.","commit_id":"7b03339722e84b6ce83b164a06b2f2d43233569d"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"ea768f42389da8d7ccebe6390629ee24b8c9ec57","unresolved":false,"context_lines":[{"line_number":104,"context_line":"                      \"agent receives SIGTERM. If value is set to 0, rpc \""},{"line_number":105,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":106,"context_line":"    cfg.StrOpt(\u0027agent_type\u0027, default\u003dn_const.AGENT_TYPE_OVS,"},{"line_number":107,"context_line":"               choices\u003d[n_const.AGENT_TYPE_OVS, n_const.AGENT_TYPE_OVS_DPDK],"},{"line_number":108,"context_line":"               help\u003d_(\"Selects the Agent Type reported\"))"},{"line_number":109,"context_line":"]"},{"line_number":110,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"9a41bdd9_4e13120e","line":107,"in_reply_to":"9a41bdd9_1f13040f","updated":"2015-07-17 09:54:54.000000000","message":"if it is validated upon initialisation then it would still require a code change in neutron to update the validation code or a new agent type would be rejected as invalid.\n\nas this value must match exactly with the value managed by the agent i think it better to restrict the choices to a enum but im open to persuasion if you can suggest how i could validate that it is a correct value with requiring code change for new agent types.\n\ni could simply remove the choices and have no validation of the input.this would rely on the deplorer to setting the value correctly but would not require code change for out of tree mech drivers/plugins that wish to reuse the agent.","commit_id":"7b03339722e84b6ce83b164a06b2f2d43233569d"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"e5554f4f6bdafb721a675e21a3462fad09b467ed","unresolved":false,"context_lines":[{"line_number":104,"context_line":"                      \"agent receives SIGTERM. If value is set to 0, rpc \""},{"line_number":105,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":106,"context_line":"    cfg.StrOpt(\u0027agent_type\u0027, default\u003dn_const.AGENT_TYPE_OVS,"},{"line_number":107,"context_line":"               choices\u003d[n_const.AGENT_TYPE_OVS, n_const.AGENT_TYPE_OVS_DPDK],"},{"line_number":108,"context_line":"               help\u003d_(\"Selects the Agent Type reported\"))"},{"line_number":109,"context_line":"]"},{"line_number":110,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"9a41bdd9_60f12b6a","line":107,"in_reply_to":"9a41bdd9_4008acd9","updated":"2015-07-17 17:49:36.000000000","message":"@Maxime Leroy\n\nyes you are correct. my intention was merely to prevent the case where the value entered in the conf was mistyped. \n\nI would be fine with removing the choices attribute completely to allow easier extensibility.I think an explicit runtime check would be more cumbersome to extend then defining an additional choice here for a new agent type.\n\nif we agree to remove the choices attribute then ill also update the commit message to reflct the new behavior and remove the  n_const.AGENT_TYPE_OVS_DPDK  constant.","commit_id":"7b03339722e84b6ce83b164a06b2f2d43233569d"},{"author":{"_account_id":13869,"name":"Maxime Leroy","email":"maxime.leroy@6wind.com","username":"mleroy"},"change_message_id":"c8fc0435e53de9f878545449ead932d117142b54","unresolved":false,"context_lines":[{"line_number":104,"context_line":"                      \"agent receives SIGTERM. If value is set to 0, rpc \""},{"line_number":105,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":106,"context_line":"    cfg.StrOpt(\u0027agent_type\u0027, default\u003dn_const.AGENT_TYPE_OVS,"},{"line_number":107,"context_line":"               choices\u003d[n_const.AGENT_TYPE_OVS, n_const.AGENT_TYPE_OVS_DPDK],"},{"line_number":108,"context_line":"               help\u003d_(\"Selects the Agent Type reported\"))"},{"line_number":109,"context_line":"]"},{"line_number":110,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"9a41bdd9_4008acd9","line":107,"in_reply_to":"9a41bdd9_4e13120e","updated":"2015-07-17 16:08:06.000000000","message":"@Kevin Bention\n\n1) Do you mean the agent-type should be only checked in _check_agent_configuration method of the OVSNeutronAgent class ?\n\n2) In this case out-of-tree agent still needs to overload this method ?\nIn the other case, you can overload the agent_type option. So what is the benefit ? (maybe easier to overload a method than a configuration option ?)\n\n@Sean Mooney\n\nChecking if the agent type is not enough to prevent configuration error. For example, you can configure the ovs agent with AGENT_TYPE_OVS_DPDK on your compute node. But having loaded only the ovs mechanism driver on the controller node (and not the ovs-dpdk mechanism driver).\n\nSo I am not sure if this check is very useful in fact. \n\nWhat about a warning message in _check_agent_configuration if the agent_type is different that the official one supported: AGENT_TYPE_OVS and AGENT_TYPE_OVS_DPDK ?","commit_id":"7b03339722e84b6ce83b164a06b2f2d43233569d"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"8a80b4bf7b5ccd6255961453db2a755fc87a06dc","unresolved":false,"context_lines":[{"line_number":104,"context_line":"                      \"agent receives SIGTERM. If value is set to 0, rpc \""},{"line_number":105,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":106,"context_line":"    cfg.StrOpt(\u0027agent_type\u0027, default\u003dn_const.AGENT_TYPE_OVS,"},{"line_number":107,"context_line":"               choices\u003d[n_const.AGENT_TYPE_OVS, n_const.AGENT_TYPE_OVS_DPDK],"},{"line_number":108,"context_line":"               help\u003d_(\"Selects the Agent Type reported\"))"},{"line_number":109,"context_line":"]"},{"line_number":110,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"9a41bdd9_1f13040f","line":107,"in_reply_to":"9a41bdd9_bdc4685f","updated":"2015-07-17 02:43:25.000000000","message":"+1. If agreed up on, the commit message needs to change to reflect this as well.","commit_id":"7b03339722e84b6ce83b164a06b2f2d43233569d"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"0d7e7531f9edb87240d19c371c86a6414be14c1f","unresolved":false,"context_lines":[{"line_number":104,"context_line":"                      \"agent receives SIGTERM. If value is set to 0, rpc \""},{"line_number":105,"context_line":"                      \"timeout won\u0027t be changed\")),"},{"line_number":106,"context_line":"    cfg.StrOpt(\u0027agent_type\u0027, default\u003dn_const.AGENT_TYPE_OVS,"},{"line_number":107,"context_line":"               choices\u003d[n_const.AGENT_TYPE_OVS, n_const.AGENT_TYPE_OVS_DPDK],"},{"line_number":108,"context_line":"               help\u003d_(\"Selects the Agent Type reported\"))"},{"line_number":109,"context_line":"]"},{"line_number":110,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_0bf2bb6f","line":107,"in_reply_to":"9a41bdd9_bdc4685f","updated":"2015-08-04 18:32:50.000000000","message":"i will remove the choices element and references ot ovs dpdk and respin as this will allow more flexibility for mechanism drivers vendors to reuse the ovs agent without modification of the source code.","commit_id":"7b03339722e84b6ce83b164a06b2f2d43233569d"}],"neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_neutron_agent.py":[{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"5ded302cb2d8a5b03f12304e2ac365c449297af8","unresolved":false,"context_lines":[{"line_number":211,"context_line":"            mock.patch(\u0027neutron.agent.linux.utils.get_interface_mac\u0027,"},{"line_number":212,"context_line":"                       return_value\u003d\u002700:00:00:00:00:01\u0027), \\"},{"line_number":213,"context_line":"            mock.patch(\u0027neutron.agent.common.ovs_lib.BaseOVS.get_bridges\u0027), \\"},{"line_number":214,"context_line":"            mock.patch(\u0027neutron.openstack.common.loopingcall.\u0027"},{"line_number":215,"context_line":"                       \u0027FixedIntervalLoopingCall\u0027,"},{"line_number":216,"context_line":"                       new\u003dMockFixedIntervalLoopingCall), \\"},{"line_number":217,"context_line":"            mock.patch(\u0027neutron.agent.common.ovs_lib.OVSBridge.\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba3cc151_377d8e1c","line":214,"updated":"2015-07-07 13:07:35.000000000","message":"loopingcall was removed from neutron. You should import loopingcall from oslo_service.","commit_id":"14b804493186272de7cf39718e506ba29d1af264"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"47dd95b00d786290a47164989f3e956bc76269f7","unresolved":false,"context_lines":[{"line_number":220,"context_line":"                \u0027Bridge\u0027, self.agent.int_br.br_name, \u0027datapath_type\u0027,"},{"line_number":221,"context_line":"                datapath, True)"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"    def test_agent_type(self):"},{"line_number":224,"context_line":"        kwargs \u003d self.mod_agent.create_agent_config_map(cfg.CONF)"},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"        with mock.patch.object(self.mod_agent.OVSNeutronAgent,"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_2d9c5d68","line":223,"updated":"2015-07-14 02:20:43.000000000","message":"Does we need the test? This doesn\u0027t test process for agent_type because this tests change of agent_type only. I guess the test doesn\u0027t improve code coverage.","commit_id":"84425ce35007c4f46e60e33a392e49bc11a8d72f"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"f97969a4c1adf87712493eaaa19363755d49259b","unresolved":false,"context_lines":[{"line_number":220,"context_line":"                \u0027Bridge\u0027, self.agent.int_br.br_name, \u0027datapath_type\u0027,"},{"line_number":221,"context_line":"                datapath, True)"},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"    def test_agent_type(self):"},{"line_number":224,"context_line":"        kwargs \u003d self.mod_agent.create_agent_config_map(cfg.CONF)"},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"        with mock.patch.object(self.mod_agent.OVSNeutronAgent,"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_8aae7c7f","line":223,"in_reply_to":"9a41bdd9_2d9c5d68","updated":"2015-07-14 21:16:25.000000000","message":"you are correct in stating that this test does not add much in terms of coverage.\n\nthe test is merely validating that the config parsing works and that the agent type is initialised accordingly.\n\ni would prefer to have at least 1 unit test for this change but i can remove if it is not useful.\n\nthe real effect of this change is that a different mechanism driver will be used to configure port binings for vms on  node managed by \"DPDK\" ovs agents. \n\nthis cannot be tested fully at a unit test level but \nonce these changes merge we will be validating that this functionally works with our intel netwoking ci.","commit_id":"84425ce35007c4f46e60e33a392e49bc11a8d72f"}]}
