)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"9f24b0ebeeb839305ddd8123479d2364f976d74a","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"trunk: Fix init_handler() agent parameter"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Commit 7a6fa742088563ad06597c2430a30a35cca7db42 stopped passing agent"},{"line_number":10,"context_line":"object as parameter as it\u0027s already referenced by `trigger\u0027 parameter."},{"line_number":11,"context_line":"This leads to an error during notify_after_init() in agents\u0027 code and"},{"line_number":12,"context_line":"hence trunk handlers are never initialized. This patch replaces `agent\u0027"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5f4e5783_24d0791f","line":9,"range":{"start_line":9,"start_character":7,"end_line":9,"end_character":47},"updated":"2017-10-12 09:36:30.000000000","message":"Are you talking about this patch https://review.openstack.org/#/c/474213/ ?\n\nCan you change the git hash or change-id? This one is not correct.","commit_id":"8cabbe17f58ba3fe13000ab73c52d0ac6e2ca45d"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"02fa35ffb05c13b08a94c079b8a4cc629e2f75ed","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"trunk: Fix init_handler() agent parameter"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Commit 7a6fa742088563ad06597c2430a30a35cca7db42 stopped passing agent"},{"line_number":10,"context_line":"object as parameter as it\u0027s already referenced by `trigger\u0027 parameter."},{"line_number":11,"context_line":"This leads to an error during notify_after_init() in agents\u0027 code and"},{"line_number":12,"context_line":"hence trunk handlers are never initialized. This patch replaces `agent\u0027"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5f4e5783_fa39da3e","line":9,"range":{"start_line":9,"start_character":7,"end_line":9,"end_character":47},"in_reply_to":"5f4e5783_24d0791f","updated":"2017-10-12 10:44:22.000000000","message":"Will do, I picked the merge one: http://git.openstack.org/cgit/openstack/neutron/commit/?id\u003d7a6fa742088563ad06597c2430a30a35cca7db42 correct is 40866acd02a5ecd7fc6705578a82ea79946549a2 ?","commit_id":"8cabbe17f58ba3fe13000ab73c52d0ac6e2ca45d"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"1d54a05120f452e274c5449aaafce349e0faa884","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"trunk: Fix init_handler() agent parameter"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Commit 7a6fa742088563ad06597c2430a30a35cca7db42 stopped passing agent"},{"line_number":10,"context_line":"object as parameter as it\u0027s already referenced by `trigger\u0027 parameter."},{"line_number":11,"context_line":"This leads to an error during notify_after_init() in agents\u0027 code and"},{"line_number":12,"context_line":"hence trunk handlers are never initialized. This patch replaces `agent\u0027"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5f4e5783_fad55ab8","line":9,"range":{"start_line":9,"start_character":7,"end_line":9,"end_character":47},"in_reply_to":"5f4e5783_fa39da3e","updated":"2017-10-12 10:49:03.000000000","message":"Done","commit_id":"8cabbe17f58ba3fe13000ab73c52d0ac6e2ca45d"}],"neutron/services/trunk/drivers/linuxbridge/agent/driver.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"5297932e5bb6b8b9a7bbb3fef300c255ac673f6d","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"def init_handler(resource, event, trigger, payload\u003dNone):"},{"line_number":31,"context_line":"    \"\"\"Handler for agent init event.\"\"\""},{"line_number":32,"context_line":"    if trigger:"},{"line_number":33,"context_line":"        LinuxBridgeTrunkDriver()"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"5f4e5783_74a73a51","line":32,"updated":"2017-10-12 15:17:48.000000000","message":"this doesn\u0027t seem right. This was expecting a payload.","commit_id":"9369d34ea45a5b9245fc3da0e8afb3ee3a0695a8"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"189ed2e4e65e293b3eec1a4ecafa73d7facabe8f","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"def init_handler(resource, event, trigger, payload\u003dNone):"},{"line_number":31,"context_line":"    \"\"\"Handler for agent init event.\"\"\""},{"line_number":32,"context_line":"    if trigger:"},{"line_number":33,"context_line":"        LinuxBridgeTrunkDriver()"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"5f4e5783_e041203b","line":32,"in_reply_to":"5f4e5783_053faed6","updated":"2017-10-12 17:17:01.000000000","message":"I\u0027d make this initialization unconditional, tbh.","commit_id":"9369d34ea45a5b9245fc3da0e8afb3ee3a0695a8"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"e8c2ce9c0d2a0026b4f04974d5b7cd9541627262","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"def init_handler(resource, event, trigger, payload\u003dNone):"},{"line_number":31,"context_line":"    \"\"\"Handler for agent init event.\"\"\""},{"line_number":32,"context_line":"    if trigger:"},{"line_number":33,"context_line":"        LinuxBridgeTrunkDriver()"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"5f4e5783_053faed6","line":32,"in_reply_to":"5f4e5783_5a4ea56f","updated":"2017-10-12 17:01:57.000000000","message":"that\u0027s not how it was [1] though, granted the payload and the trigger were the same at the time. A trigger shouldn\u0027t really be None, otherwise how do you know who\u0027s calling this handler?\n\n[1] https://github.com/openstack/neutron/commit/e3545991349dd93b707705272e14b45943671f32#diff-c1c26f1415ec32a8c1601a55d2e1097a","commit_id":"9369d34ea45a5b9245fc3da0e8afb3ee3a0695a8"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"0bae2f6166726b45ba4620f2726011a94a3905c6","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"def init_handler(resource, event, trigger, payload\u003dNone):"},{"line_number":31,"context_line":"    \"\"\"Handler for agent init event.\"\"\""},{"line_number":32,"context_line":"    if trigger:"},{"line_number":33,"context_line":"        LinuxBridgeTrunkDriver()"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"5f4e5783_5a4ea56f","line":32,"in_reply_to":"5f4e5783_74a73a51","updated":"2017-10-12 15:57:05.000000000","message":"What is the expected payload? There is nothing passed to the publish() function: https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/drivers/agent/capabilities.py#L20","commit_id":"9369d34ea45a5b9245fc3da0e8afb3ee3a0695a8"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"3d35aaeb9224bc9d6adf24d930b1f9ca119073fb","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"def init_handler(resource, event, trigger, payload\u003dNone):"},{"line_number":31,"context_line":"    \"\"\"Handler for agent init event.\"\"\""},{"line_number":32,"context_line":"    if trigger:"},{"line_number":33,"context_line":"        LinuxBridgeTrunkDriver()"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"5f4e5783_1496b0f1","line":32,"in_reply_to":"5f4e5783_e041203b","updated":"2017-10-13 14:04:17.000000000","message":"Done","commit_id":"9369d34ea45a5b9245fc3da0e8afb3ee3a0695a8"}],"neutron/services/trunk/drivers/openvswitch/agent/driver.py":[{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"9f24b0ebeeb839305ddd8123479d2364f976d74a","unresolved":false,"context_lines":[{"line_number":98,"context_line":"    # make this setup conditional based on server-side capabilities."},{"line_number":99,"context_line":"    global TRUNK_SKELETON"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    manager \u003d trunk_manager.TrunkManager(trigger.int_br)"},{"line_number":102,"context_line":"    handler \u003d ovsdb_handler.OVSDBHandler(manager)"},{"line_number":103,"context_line":"    TRUNK_SKELETON \u003d OVSTrunkSkeleton(handler)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f4e5783_a4f0e968","line":101,"range":{"start_line":101,"start_character":49,"end_line":101,"end_character":55},"updated":"2017-10-12 09:36:30.000000000","message":"Maybe I\u0027m wrong here, but \"trigger\" is neutron.service.trunks.plugin.TrunkPlugin, not OVSNeutronAgent. So this object doesn\u0027t have int_br as member variable.","commit_id":"8cabbe17f58ba3fe13000ab73c52d0ac6e2ca45d"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"d8a389b47e25982ca713dfc1fbb87ddae2a40bc7","unresolved":false,"context_lines":[{"line_number":98,"context_line":"    # make this setup conditional based on server-side capabilities."},{"line_number":99,"context_line":"    global TRUNK_SKELETON"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    manager \u003d trunk_manager.TrunkManager(trigger.int_br)"},{"line_number":102,"context_line":"    handler \u003d ovsdb_handler.OVSDBHandler(manager)"},{"line_number":103,"context_line":"    TRUNK_SKELETON \u003d OVSTrunkSkeleton(handler)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f4e5783_0ec6b49b","line":101,"range":{"start_line":101,"start_character":49,"end_line":101,"end_character":55},"in_reply_to":"5f4e5783_783a9298","updated":"2017-10-12 12:56:25.000000000","message":"I thought that the server plugin was generating the events and the agents were reading them. My bad.","commit_id":"8cabbe17f58ba3fe13000ab73c52d0ac6e2ca45d"},{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"85f0f54e1b1a7f4f36834d7effc2f4ba2824a35e","unresolved":false,"context_lines":[{"line_number":98,"context_line":"    # make this setup conditional based on server-side capabilities."},{"line_number":99,"context_line":"    global TRUNK_SKELETON"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    manager \u003d trunk_manager.TrunkManager(trigger.int_br)"},{"line_number":102,"context_line":"    handler \u003d ovsdb_handler.OVSDBHandler(manager)"},{"line_number":103,"context_line":"    TRUNK_SKELETON \u003d OVSTrunkSkeleton(handler)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f4e5783_d891869b","line":101,"range":{"start_line":101,"start_character":49,"end_line":101,"end_character":55},"in_reply_to":"5f4e5783_9add4616","updated":"2017-10-12 11:40:27.000000000","message":"I know. But taking a look at the code in services/trunk/plugin, every time a call is made (using registry.notify), the arguments are:\n- Resource: constants.TRUNK\n- Event: event.xxxxx\n- Trigger: self (the plugin)\n- Payload: callbacks.TrunkPayload() with some defined content. You should take int_br from this payload.\n\nDid you put a breakpoint there to read playload content during the initialization?","commit_id":"8cabbe17f58ba3fe13000ab73c52d0ac6e2ca45d"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"02fa35ffb05c13b08a94c079b8a4cc629e2f75ed","unresolved":false,"context_lines":[{"line_number":98,"context_line":"    # make this setup conditional based on server-side capabilities."},{"line_number":99,"context_line":"    global TRUNK_SKELETON"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    manager \u003d trunk_manager.TrunkManager(trigger.int_br)"},{"line_number":102,"context_line":"    handler \u003d ovsdb_handler.OVSDBHandler(manager)"},{"line_number":103,"context_line":"    TRUNK_SKELETON \u003d OVSTrunkSkeleton(handler)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f4e5783_9add4616","line":101,"range":{"start_line":101,"start_character":49,"end_line":101,"end_character":55},"in_reply_to":"5f4e5783_a4f0e968","updated":"2017-10-12 10:44:22.000000000","message":"I don\u0027t think it\u0027s plugin as this is agent code. Plugin lives only on the server side. I can add a spec to the mock to have same params as OVSBridge.","commit_id":"8cabbe17f58ba3fe13000ab73c52d0ac6e2ca45d"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"a1b0d1480b37af7207a6f41199adb31bd03b7374","unresolved":false,"context_lines":[{"line_number":98,"context_line":"    # make this setup conditional based on server-side capabilities."},{"line_number":99,"context_line":"    global TRUNK_SKELETON"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    manager \u003d trunk_manager.TrunkManager(trigger.int_br)"},{"line_number":102,"context_line":"    handler \u003d ovsdb_handler.OVSDBHandler(manager)"},{"line_number":103,"context_line":"    TRUNK_SKELETON \u003d OVSTrunkSkeleton(handler)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f4e5783_783a9298","line":101,"range":{"start_line":101,"start_character":49,"end_line":101,"end_character":55},"in_reply_to":"5f4e5783_d891869b","updated":"2017-10-12 11:45:51.000000000","message":"You\u0027re still looking at the server code. This runs only in ovs-agent process, the agent process doesn\u0027t see the notifications from server process :) services.trunk.plugin is not used in agent","commit_id":"8cabbe17f58ba3fe13000ab73c52d0ac6e2ca45d"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"5297932e5bb6b8b9a7bbb3fef300c255ac673f6d","unresolved":false,"context_lines":[{"line_number":98,"context_line":"    # make this setup conditional based on server-side capabilities."},{"line_number":99,"context_line":"    global TRUNK_SKELETON"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    manager \u003d trunk_manager.TrunkManager(trigger.int_br)"},{"line_number":102,"context_line":"    handler \u003d ovsdb_handler.OVSDBHandler(manager)"},{"line_number":103,"context_line":"    TRUNK_SKELETON \u003d OVSTrunkSkeleton(handler)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f4e5783_f470cade","line":101,"updated":"2017-10-12 15:17:48.000000000","message":"Same here. Where\u0027s the payload gone?","commit_id":"9369d34ea45a5b9245fc3da0e8afb3ee3a0695a8"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"f626eaaf34ea9ab73b5fa7de36849a08aacb9da4","unresolved":false,"context_lines":[{"line_number":98,"context_line":"    # make this setup conditional based on server-side capabilities."},{"line_number":99,"context_line":"    global TRUNK_SKELETON"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    manager \u003d trunk_manager.TrunkManager(trigger.int_br)"},{"line_number":102,"context_line":"    handler \u003d ovsdb_handler.OVSDBHandler(manager)"},{"line_number":103,"context_line":"    TRUNK_SKELETON \u003d OVSTrunkSkeleton(handler)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f4e5783_a972d5ab","line":101,"in_reply_to":"5f4e5783_5bad6be7","updated":"2017-10-13 14:48:46.000000000","message":"Or pass just the bridge in the payload","commit_id":"9369d34ea45a5b9245fc3da0e8afb3ee3a0695a8"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"3d35aaeb9224bc9d6adf24d930b1f9ca119073fb","unresolved":false,"context_lines":[{"line_number":98,"context_line":"    # make this setup conditional based on server-side capabilities."},{"line_number":99,"context_line":"    global TRUNK_SKELETON"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    manager \u003d trunk_manager.TrunkManager(trigger.int_br)"},{"line_number":102,"context_line":"    handler \u003d ovsdb_handler.OVSDBHandler(manager)"},{"line_number":103,"context_line":"    TRUNK_SKELETON \u003d OVSTrunkSkeleton(handler)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f4e5783_5bad6be7","line":101,"in_reply_to":"5f4e5783_80e26c2e","updated":"2017-10-13 14:04:17.000000000","message":"I\u0027m not sure I understand what you propose. You suggest that agent should be sent in the payload\u0027s metadata?","commit_id":"9369d34ea45a5b9245fc3da0e8afb3ee3a0695a8"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"f9481413dab1e61377056009a4da10ebc380e634","unresolved":false,"context_lines":[{"line_number":98,"context_line":"    # make this setup conditional based on server-side capabilities."},{"line_number":99,"context_line":"    global TRUNK_SKELETON"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    manager \u003d trunk_manager.TrunkManager(trigger.int_br)"},{"line_number":102,"context_line":"    handler \u003d ovsdb_handler.OVSDBHandler(manager)"},{"line_number":103,"context_line":"    TRUNK_SKELETON \u003d OVSTrunkSkeleton(handler)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f4e5783_deda6449","line":101,"in_reply_to":"5f4e5783_a972d5ab","updated":"2017-10-13 17:21:35.000000000","message":"again, I think is fine.","commit_id":"9369d34ea45a5b9245fc3da0e8afb3ee3a0695a8"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"189ed2e4e65e293b3eec1a4ecafa73d7facabe8f","unresolved":false,"context_lines":[{"line_number":98,"context_line":"    # make this setup conditional based on server-side capabilities."},{"line_number":99,"context_line":"    global TRUNK_SKELETON"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    manager \u003d trunk_manager.TrunkManager(trigger.int_br)"},{"line_number":102,"context_line":"    handler \u003d ovsdb_handler.OVSDBHandler(manager)"},{"line_number":103,"context_line":"    TRUNK_SKELETON \u003d OVSTrunkSkeleton(handler)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f4e5783_80e26c2e","line":101,"in_reply_to":"5f4e5783_f470cade","updated":"2017-10-12 17:17:01.000000000","message":"I think patch [1], missed the opportunity to identify the right payload to send over the receiver and it\u0027s making a bad assumption that what\u0027s needed by this handler is a property of the trigger (i.e. the sender). In the spirit of refactoring, I would have created a payload that indeed wrapped some metadata [2], but I suppose this fix will do too.\n\n[1] https://review.openstack.org/#/c/474213\n[2] https://github.com/openstack/neutron-lib/blob/master/neutron_lib/callbacks/events.py#L71","commit_id":"9369d34ea45a5b9245fc3da0e8afb3ee3a0695a8"}],"neutron/tests/unit/plugins/ml2/drivers/linuxbridge/agent/test_linuxbridge_capabilities.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"189ed2e4e65e293b3eec1a4ecafa73d7facabe8f","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from neutron.tests import base"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"class CapabilitiesTest(base.BaseTestCase):"},{"line_number":27,"context_line":"    def setUp(self):"},{"line_number":28,"context_line":"        super(CapabilitiesTest, self).setUp()"},{"line_number":29,"context_line":"        self.useFixture(fixture.CallbackRegistryFixture())"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f4e5783_205bb8f7","line":26,"updated":"2017-10-12 17:17:01.000000000","message":"whilst I appreciate this, I think the regression should have been caught by fullstack/scenario testing ;)\n\nAfter all, we\u0027ve experienced an integration issue, and this test is a bit lame, because if nothing calls capabilities, you still incur into an integration regression.","commit_id":"9369d34ea45a5b9245fc3da0e8afb3ee3a0695a8"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"3d35aaeb9224bc9d6adf24d930b1f9ca119073fb","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from neutron.tests import base"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"class CapabilitiesTest(base.BaseTestCase):"},{"line_number":27,"context_line":"    def setUp(self):"},{"line_number":28,"context_line":"        super(CapabilitiesTest, self).setUp()"},{"line_number":29,"context_line":"        self.useFixture(fixture.CallbackRegistryFixture())"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f4e5783_db7cbb84","line":26,"in_reply_to":"5f4e5783_205bb8f7","updated":"2017-10-13 14:04:17.000000000","message":"Scenario tests did catch it but the test results don\u0027t get proper attention as the job fails 100% of time.\n\nThe point of this is to test API of methods - in compiled languages you\u0027d get an error during compilation, in Python you need unittest. That\u0027s why I though we should cover it and also to prove the fix works.","commit_id":"9369d34ea45a5b9245fc3da0e8afb3ee3a0695a8"},{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"f9481413dab1e61377056009a4da10ebc380e634","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from neutron.tests import base"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"class CapabilitiesTest(base.BaseTestCase):"},{"line_number":27,"context_line":"    def setUp(self):"},{"line_number":28,"context_line":"        super(CapabilitiesTest, self).setUp()"},{"line_number":29,"context_line":"        self.useFixture(fixture.CallbackRegistryFixture())"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f4e5783_de25c45d","line":26,"in_reply_to":"5f4e5783_db7cbb84","updated":"2017-10-13 17:21:35.000000000","message":"There\u0027s no way that the trunk tests (at least for OVS) passed once this regression snuck in [0]. Granted the non-voting job masked the failure. If you see [0] from the run of the same job on this patch. The failure mode is different (ssh failure vs build failure).\n\nThat said the root cause is [1], where the payload was dropped.\n\n[0] http://logs.openstack.org/13/474213/7/check/gate-tempest-dsvm-neutron-dvr-multinode-scenario-ubuntu-xenial-nv/752030f/logs/testr_results.html.gz\n[1] https://review.openstack.org/#/c/474213/7/neutron/plugins/ml2/drivers/agent/capabilities.py","commit_id":"9369d34ea45a5b9245fc3da0e8afb3ee3a0695a8"}],"neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_capabilities.py":[{"author":{"_account_id":748,"name":"Armando Migliaccio","email":"armamig@gmail.com","username":"armando-migliaccio"},"change_message_id":"189ed2e4e65e293b3eec1a4ecafa73d7facabe8f","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    def test_register(self):"},{"line_number":44,"context_line":"        ovs_capabilities.register()"},{"line_number":45,"context_line":"        agent \u003d mock.Mock(spec\u003d[\u0027int_br\u0027])"},{"line_number":46,"context_line":"        self.assertIsNone(driver.TRUNK_SKELETON)"},{"line_number":47,"context_line":"        capabilities.notify_init_event(n_const.AGENT_TYPE_OVS, agent)"},{"line_number":48,"context_line":"        self.assertIsNotNone(driver.TRUNK_SKELETON)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f4e5783_80c5cc5d","line":45,"updated":"2017-10-12 17:17:01.000000000","message":"You\u0027re moving away from the intention of this test, which was \u0027make sure that when OVS register, it does so with the right resource, event\u0027. This test is not about validating the notification, which again, I feel like it\u0027s an integration issue.\n\nIn other words, I\u0027d leave this test alone, because it should be correct as it is.","commit_id":"9369d34ea45a5b9245fc3da0e8afb3ee3a0695a8"}]}
