)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"a772da17fa073c0284c6fd49c89b6971c5891f9f","unresolved":true,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"ovn: Delete switch ports before HA_Chassis_Group in ls-del"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When deleting a Logical_Switch, ``DelLogicalSwitchCommand`` also deletes"},{"line_number":10,"context_line":"the network\u0027s unified ``HA_Chassis_Group`` (the root-table row named after"},{"line_number":11,"context_line":"the switch, i.e. ``neutron-\u003cnetwork_id\u003e``). That group is strongly"},{"line_number":12,"context_line":"referenced by the ``ha_chassis_group`` column of the switch\u0027s external"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"ca370ec0_347e3f70","line":9,"range":{"start_line":9,"start_character":0,"end_line":9,"end_character":72},"updated":"2026-07-30 10:11:57.000000000","message":"nit: please limit the line length to 72 chars (https://docs.openstack.org/contributors/es_MX/common/git.html#body)","commit_id":"eaca6cc14e83e3d76b6f58e9586c089e20818256"}],"/PATCHSET_LEVEL":[{"author":{"_account_id":5890,"name":"Doug Goldstein","email":"cardoe@cardoe.com","username":"cardoe"},"change_message_id":"06c0fcd2d5cd476b791341e14b3627b66c8caa72","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"d4eb850c_4fcf1fb8","updated":"2026-07-23 19:21:46.000000000","message":"I\u0027d like to get this backported to 2026.1 as well.","commit_id":"eaca6cc14e83e3d76b6f58e9586c089e20818256"}],"neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/commands.py":[{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"a772da17fa073c0284c6fd49c89b6971c5891f9f","unresolved":true,"context_lines":[{"line_number":199,"context_line":"        # is gone by commit time."},{"line_number":200,"context_line":"        hcg \u003d self.api.lookup(\u0027HA_Chassis_Group\u0027, self.ls_name, default\u003dNone)"},{"line_number":201,"context_line":"        for port in list(ls.ports):"},{"line_number":202,"context_line":"            port.delete()"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"        # Delete the Logical_Switch register."},{"line_number":205,"context_line":"        ls.delete()"},{"line_number":206,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7f8a10da_935fc57b","line":203,"range":{"start_line":202,"start_character":12,"end_line":203,"end_character":1},"updated":"2026-07-30 10:11:57.000000000","message":"The error reported is a corner case that could only happen in the db-sync tool. In a normal operation, there should not be ports attached to the LS.\n\nLet\u0027s be consistent with other operations and let\u0027s not delete the child resources manually if not needed. Also let\u0027s keep the `minimum change principle`: here we should list the ports and unset the ha_chassis_group value:\n```\nhcg \u003d self.api.lookup(\u0027HA_Chassis_Group\u0027, self.ls_name, default\u003dNone)\nif hcg:\n    for port in ls.ports:\n        if port.ha_chassis_group:\n            port.delvalue(\u0027ha_chassis_group\u0027, hcg)\n# Delete the Logical_Switch register.\nls.delete()\n\n# Delete the HA_Chassis_Group register associated, if exists.\nif hcg:\n    hcg.delete()\n```","commit_id":"eaca6cc14e83e3d76b6f58e9586c089e20818256"}]}
