)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"b314f2253ce1154d235300925ec99ceae3a2f692","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Shashank Hegde \u003cshashank@arista.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-07-03 09:57:50 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Reconfigures VLAN on VM migration"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Whenever a VM moves from one compute node to the other, the VLAN on the old"},{"line_number":10,"context_line":"switch interface was not removed and the VLAN was not being provisioned on the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"ba3cc151_d7550c1e","line":7,"updated":"2015-07-08 12:01:02.000000000","message":"IMO, you should clarify that this change concerns only arista mechanism","commit_id":"468fdc4d3c8bc4b5b9b39903270e6673978c43d9"}],"neutron/plugins/ml2/drivers/arista/mechanism_arista.py":[{"author":{"_account_id":16242,"name":"Rayman Lwo","email":"liangliang.luo@easystack.cn","username":"Rayman"},"change_message_id":"a4e500caae43e96c1ba32cce792362c448a6d5cc","unresolved":false,"context_lines":[{"line_number":387,"context_line":"        device_id \u003d port[\u0027device_id\u0027]"},{"line_number":388,"context_line":"        port_id \u003d port[\u0027id\u0027]"},{"line_number":389,"context_line":"        network_id \u003d port[\u0027network_id\u0027]"},{"line_number":390,"context_line":"        tenant_id \u003d port[\u0027tenant_id\u0027]"},{"line_number":391,"context_line":"        device_owner \u003d port[\u0027device_owner\u0027]"},{"line_number":392,"context_line":""},{"line_number":393,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_ff36944f","line":390,"updated":"2015-07-03 09:07:46.000000000","message":"The port[\u0027tenant_id\u0027] maybe None refering to line 372, so the tenant_id which has been assimented to context._plugin_context.tenant_id wil also be None. So, is it right?","commit_id":"4d5b4993df102bf81e2ccb792d96f0aaa2306aeb"},{"author":{"_account_id":9596,"name":"Shashank Hegde","email":"shashank@aristanetworks.com","username":"shashank"},"change_message_id":"bd8b3a0d70d73b9ca2f9f976ec14ff58b3dd337c","unresolved":false,"context_lines":[{"line_number":387,"context_line":"        device_id \u003d port[\u0027device_id\u0027]"},{"line_number":388,"context_line":"        port_id \u003d port[\u0027id\u0027]"},{"line_number":389,"context_line":"        network_id \u003d port[\u0027network_id\u0027]"},{"line_number":390,"context_line":"        tenant_id \u003d port[\u0027tenant_id\u0027]"},{"line_number":391,"context_line":"        device_owner \u003d port[\u0027device_owner\u0027]"},{"line_number":392,"context_line":""},{"line_number":393,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba3cc151_e3c58c0a","line":390,"in_reply_to":"ba3cc151_ff36944f","updated":"2015-07-03 16:56:24.000000000","message":"Thanks for catching this! I meant to take it out.","commit_id":"4d5b4993df102bf81e2ccb792d96f0aaa2306aeb"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"0be533e7ad39796fa29b94386b874cdaefe2e4f3","unresolved":false,"context_lines":[{"line_number":273,"context_line":"        host \u003d context.host"},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"        # device_id and device_owner are set on VM boot"},{"line_number":276,"context_line":"        is_vm_boot \u003d device_id and device_owner"},{"line_number":277,"context_line":"        if host and host !\u003d orig_port[\u0027binding:host_id\u0027] and is_vm_boot:"},{"line_number":278,"context_line":"            port_id \u003d new_port[\u0027id\u0027]"},{"line_number":279,"context_line":"            network_id \u003d new_port[\u0027network_id\u0027]"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba3cc151_0cebbf79","line":276,"updated":"2015-07-06 23:08:05.000000000","message":"Are you sure this is necessary? The binding:host_id field isn\u0027t set until the VM is booted on a compute node so you should just be able to check \"if host and host !\u003d orig_port[\u0027binding:host_id\u0027]\" below.","commit_id":"468fdc4d3c8bc4b5b9b39903270e6673978c43d9"},{"author":{"_account_id":9596,"name":"Shashank Hegde","email":"shashank@aristanetworks.com","username":"shashank"},"change_message_id":"472bc3d2f3991c0bdf2ddd58ed860e0fd45a5cc6","unresolved":false,"context_lines":[{"line_number":273,"context_line":"        host \u003d context.host"},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"        # device_id and device_owner are set on VM boot"},{"line_number":276,"context_line":"        is_vm_boot \u003d device_id and device_owner"},{"line_number":277,"context_line":"        if host and host !\u003d orig_port[\u0027binding:host_id\u0027] and is_vm_boot:"},{"line_number":278,"context_line":"            port_id \u003d new_port[\u0027id\u0027]"},{"line_number":279,"context_line":"            network_id \u003d new_port[\u0027network_id\u0027]"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba3cc151_1223d4a8","line":276,"in_reply_to":"ba3cc151_0cebbf79","updated":"2015-07-07 00:04:53.000000000","message":"Hi Kevin,\n\nThese checks were added to ensure that the resource is stored/updated in the Arista database only if it has a valid device owner. We push the instance to host binding in the create_port(). We are using the update_port() to update the binding whenever the VM moves to a new host. For VM creation / migration, I see that the update_port() is called multiple times. But the device_id and the device_owner attributes are set during all the calls.","commit_id":"468fdc4d3c8bc4b5b9b39903270e6673978c43d9"},{"author":{"_account_id":6558,"name":"Sukhdev Kapur","email":"sukhdevkapur@gmail.com","username":"sukhdev-8"},"change_message_id":"5340c47e7d8a39d6cdd1a55b5432484e8b748390","unresolved":false,"context_lines":[{"line_number":273,"context_line":"        host \u003d context.host"},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"        # device_id and device_owner are set on VM boot"},{"line_number":276,"context_line":"        is_vm_boot \u003d device_id and device_owner"},{"line_number":277,"context_line":"        if host and host !\u003d orig_port[\u0027binding:host_id\u0027] and is_vm_boot:"},{"line_number":278,"context_line":"            port_id \u003d new_port[\u0027id\u0027]"},{"line_number":279,"context_line":"            network_id \u003d new_port[\u0027network_id\u0027]"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba3cc151_077158a8","line":276,"in_reply_to":"ba3cc151_0cebbf79","updated":"2015-07-06 23:24:11.000000000","message":"I am confused about your comment - are you asking if \"is_vm_boot \u003d device_is and device_owner\" is necessary? If yes, then it is necessary to make sure we are working with a valid request.","commit_id":"468fdc4d3c8bc4b5b9b39903270e6673978c43d9"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"557d69de5774c8ea5295e5b5a30f661ed1d059ab","unresolved":false,"context_lines":[{"line_number":273,"context_line":"        host \u003d context.host"},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"        # device_id and device_owner are set on VM boot"},{"line_number":276,"context_line":"        is_vm_boot \u003d device_id and device_owner"},{"line_number":277,"context_line":"        if host and host !\u003d orig_port[\u0027binding:host_id\u0027] and is_vm_boot:"},{"line_number":278,"context_line":"            port_id \u003d new_port[\u0027id\u0027]"},{"line_number":279,"context_line":"            network_id \u003d new_port[\u0027network_id\u0027]"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba3cc151_d2d1b3fc","line":276,"in_reply_to":"ba3cc151_1223d4a8","updated":"2015-07-07 23:08:20.000000000","message":"Right, I had never seen a case where the binding:host_id was present and the owner and ID were not. But the two different checks imply that has happened. I wanted to confirm that\u0027s what you observed.","commit_id":"468fdc4d3c8bc4b5b9b39903270e6673978c43d9"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"6aea79ac819f2f3a6cc7cdfc6aaf25cf54a17e4c","unresolved":false,"context_lines":[{"line_number":273,"context_line":"        host \u003d context.host"},{"line_number":274,"context_line":""},{"line_number":275,"context_line":"        # device_id and device_owner are set on VM boot"},{"line_number":276,"context_line":"        is_vm_boot \u003d device_id and device_owner"},{"line_number":277,"context_line":"        if host and host !\u003d orig_port[\u0027binding:host_id\u0027] and is_vm_boot:"},{"line_number":278,"context_line":"            port_id \u003d new_port[\u0027id\u0027]"},{"line_number":279,"context_line":"            network_id \u003d new_port[\u0027network_id\u0027]"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba3cc151_e2a7384e","line":276,"in_reply_to":"ba3cc151_d2d1b3fc","updated":"2015-07-08 09:22:17.000000000","message":"After reading the above comments, I see the value of checking for device_id/owner here, but \"is_vm_boot\" sounds misleading. \"is_set_device_owner\" looks a better name because device_id and device_owner are set for non-VM port too.\n\nIt is a driver code and \"is_vm_boot\" is used in other places in this module, so I am okay. The author can clean up the code later if want.","commit_id":"468fdc4d3c8bc4b5b9b39903270e6673978c43d9"}]}
