)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"093f21d6d38aa57ec465663a979c27d3f4a78142","unresolved":true,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"libvirt: Add test for MTU overwrite during live migration"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Add a test case proving that when both source and destination"},{"line_number":10,"context_line":"hosts have different MTU values configured, the domain XML MTU"},{"line_number":11,"context_line":"is overwritten with the destination host\u0027s value during live"},{"line_number":12,"context_line":"migration."},{"line_number":13,"context_line":"The cases when either the source or destination MTU is not set"},{"line_number":14,"context_line":"are already covered by [1]. There is a similar bug for"},{"line_number":15,"context_line":"queue_size, see [2]."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"a8cddf6f_28caa8ae","line":12,"range":{"start_line":9,"start_character":0,"end_line":12,"end_character":10},"updated":"2026-08-17 16:57:20.000000000","message":"this should never happen\n\nthe mtu of a gust interface shoudl never change durign live migration\nif that ever happens today its a bug\nso we shoudl fix that.\n\nthe vm shoudl mintian the same mtu queue lenght and count during live migration","commit_id":"29f89a891e35a87fad6fc39d65ada6cfc65f569e"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"f44c42662a24e6a42ea60621c3a240b4bdfddaf2","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"libvirt: Add test for MTU overwrite during live migration"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Add a test case proving that when both source and destination"},{"line_number":10,"context_line":"hosts have different MTU values configured, the domain XML MTU"},{"line_number":11,"context_line":"is overwritten with the destination host\u0027s value during live"},{"line_number":12,"context_line":"migration."},{"line_number":13,"context_line":"The cases when either the source or destination MTU is not set"},{"line_number":14,"context_line":"are already covered by [1]. There is a similar bug for"},{"line_number":15,"context_line":"queue_size, see [2]."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"62506bae_135ce204","line":12,"range":{"start_line":9,"start_character":0,"end_line":12,"end_character":10},"in_reply_to":"a8cddf6f_28caa8ae","updated":"2026-08-19 08:08:57.000000000","message":"ack I removed and reframed the test to cover the currently working one and the missing/still buggy scenarios also.","commit_id":"29f89a891e35a87fad6fc39d65ada6cfc65f569e"}],"/PATCHSET_LEVEL":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"037223efdccc3e4682c664eed40be303f9e196ab","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"ee412195_fea5633e","updated":"2026-08-17 17:00:58.000000000","message":"can you move the test into the regression tests","commit_id":"29f89a891e35a87fad6fc39d65ada6cfc65f569e"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"845a4500b111a6e31d457fd431e8c862624840a3","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"613f2636_5a81cb53","in_reply_to":"ee412195_fea5633e","updated":"2026-08-18 14:07:31.000000000","message":"sure, I move it, let me check","commit_id":"29f89a891e35a87fad6fc39d65ada6cfc65f569e"}],"nova/tests/functional/regressions/test_bug_1800511.py":[{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"0fc389e6302c7329b869d3af5087837dfb3885a4","unresolved":true,"context_lines":[{"line_number":79,"context_line":"        value because it only checks whether the source MTU is None, not"},{"line_number":80,"context_line":"        whether the values differ."},{"line_number":81,"context_line":"        \"\"\""},{"line_number":82,"context_line":"        self.server \u003d self._create_server(host\u003d\u0027src\u0027, networks\u003d\u0027auto\u0027)"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        # Patch the source domain XMLDesc to include an \u003cmtu\u003e element"},{"line_number":85,"context_line":"        conn \u003d self.src.driver._host.get_connection()"},{"line_number":86,"context_line":"        dom \u003d conn.lookupByUUIDString(self.server[\u0027id\u0027])"},{"line_number":87,"context_line":"        original_xml_desc \u003d dom.XMLDesc"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"        def _xml_desc_with_mtu(flags):"},{"line_number":90,"context_line":"            xml \u003d original_xml_desc(flags)"},{"line_number":91,"context_line":"            xml_doc \u003d etree.fromstring(xml.encode(\u0027utf-8\u0027))"},{"line_number":92,"context_line":"            for iface in xml_doc.findall(\u0027./devices/interface\u0027):"},{"line_number":93,"context_line":"                # Insert \u003cmtu size\u003d\"1024\"/\u003e"},{"line_number":94,"context_line":"                address \u003d iface.find(\u0027address\u0027)"},{"line_number":95,"context_line":"                if address is not None:"},{"line_number":96,"context_line":"                    mtu \u003d etree.Element(\u0027mtu\u0027)"},{"line_number":97,"context_line":"                    mtu.set(\u0027size\u0027, \u00271024\u0027)"},{"line_number":98,"context_line":"                    idx \u003d list(iface).index(address)"},{"line_number":99,"context_line":"                    iface.insert(idx, mtu)"},{"line_number":100,"context_line":"            return etree.tostring(xml_doc, encoding\u003d\u0027unicode\u0027)"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        dom.XMLDesc \u003d _xml_desc_with_mtu"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        # The destination host\u0027s VIF config reports MTU 9000."},{"line_number":105,"context_line":"        # _live_migration_operation runs on the source host and uses a"}],"source_content_type":"text/x-python","patch_set":5,"id":"7ad3fec3_611fb0fa","line":102,"range":{"start_line":82,"start_character":0,"end_line":102,"end_character":40},"updated":"2026-09-29 13:27:00.000000000","message":"can we make this more realistic by triggering the real code that adds the mtu to the source xml?","commit_id":"e7ce2858ed523b00bb519d3560677ccaf58bf950"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"a29a77c9b3816057fb312f968d3cb210da00c49e","unresolved":true,"context_lines":[{"line_number":79,"context_line":"        value because it only checks whether the source MTU is None, not"},{"line_number":80,"context_line":"        whether the values differ."},{"line_number":81,"context_line":"        \"\"\""},{"line_number":82,"context_line":"        self.server \u003d self._create_server(host\u003d\u0027src\u0027, networks\u003d\u0027auto\u0027)"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        # Patch the source domain XMLDesc to include an \u003cmtu\u003e element"},{"line_number":85,"context_line":"        conn \u003d self.src.driver._host.get_connection()"},{"line_number":86,"context_line":"        dom \u003d conn.lookupByUUIDString(self.server[\u0027id\u0027])"},{"line_number":87,"context_line":"        original_xml_desc \u003d dom.XMLDesc"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"        def _xml_desc_with_mtu(flags):"},{"line_number":90,"context_line":"            xml \u003d original_xml_desc(flags)"},{"line_number":91,"context_line":"            xml_doc \u003d etree.fromstring(xml.encode(\u0027utf-8\u0027))"},{"line_number":92,"context_line":"            for iface in xml_doc.findall(\u0027./devices/interface\u0027):"},{"line_number":93,"context_line":"                # Insert \u003cmtu size\u003d\"1024\"/\u003e"},{"line_number":94,"context_line":"                address \u003d iface.find(\u0027address\u0027)"},{"line_number":95,"context_line":"                if address is not None:"},{"line_number":96,"context_line":"                    mtu \u003d etree.Element(\u0027mtu\u0027)"},{"line_number":97,"context_line":"                    mtu.set(\u0027size\u0027, \u00271024\u0027)"},{"line_number":98,"context_line":"                    idx \u003d list(iface).index(address)"},{"line_number":99,"context_line":"                    iface.insert(idx, mtu)"},{"line_number":100,"context_line":"            return etree.tostring(xml_doc, encoding\u003d\u0027unicode\u0027)"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        dom.XMLDesc \u003d _xml_desc_with_mtu"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        # The destination host\u0027s VIF config reports MTU 9000."},{"line_number":105,"context_line":"        # _live_migration_operation runs on the source host and uses a"}],"source_content_type":"text/x-python","patch_set":5,"id":"8b47bca8_06f3a920","line":102,"range":{"start_line":82,"start_character":0,"end_line":102,"end_character":40},"in_reply_to":"7ad3fec3_611fb0fa","updated":"2026-10-05 10:28:03.000000000","message":"let me check it","commit_id":"e7ce2858ed523b00bb519d3560677ccaf58bf950"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"3699e73df5efdbba52d0ac2f12c72c6de368ed74","unresolved":false,"context_lines":[{"line_number":79,"context_line":"        value because it only checks whether the source MTU is None, not"},{"line_number":80,"context_line":"        whether the values differ."},{"line_number":81,"context_line":"        \"\"\""},{"line_number":82,"context_line":"        self.server \u003d self._create_server(host\u003d\u0027src\u0027, networks\u003d\u0027auto\u0027)"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"        # Patch the source domain XMLDesc to include an \u003cmtu\u003e element"},{"line_number":85,"context_line":"        conn \u003d self.src.driver._host.get_connection()"},{"line_number":86,"context_line":"        dom \u003d conn.lookupByUUIDString(self.server[\u0027id\u0027])"},{"line_number":87,"context_line":"        original_xml_desc \u003d dom.XMLDesc"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"        def _xml_desc_with_mtu(flags):"},{"line_number":90,"context_line":"            xml \u003d original_xml_desc(flags)"},{"line_number":91,"context_line":"            xml_doc \u003d etree.fromstring(xml.encode(\u0027utf-8\u0027))"},{"line_number":92,"context_line":"            for iface in xml_doc.findall(\u0027./devices/interface\u0027):"},{"line_number":93,"context_line":"                # Insert \u003cmtu size\u003d\"1024\"/\u003e"},{"line_number":94,"context_line":"                address \u003d iface.find(\u0027address\u0027)"},{"line_number":95,"context_line":"                if address is not None:"},{"line_number":96,"context_line":"                    mtu \u003d etree.Element(\u0027mtu\u0027)"},{"line_number":97,"context_line":"                    mtu.set(\u0027size\u0027, \u00271024\u0027)"},{"line_number":98,"context_line":"                    idx \u003d list(iface).index(address)"},{"line_number":99,"context_line":"                    iface.insert(idx, mtu)"},{"line_number":100,"context_line":"            return etree.tostring(xml_doc, encoding\u003d\u0027unicode\u0027)"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        dom.XMLDesc \u003d _xml_desc_with_mtu"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        # The destination host\u0027s VIF config reports MTU 9000."},{"line_number":105,"context_line":"        # _live_migration_operation runs on the source host and uses a"}],"source_content_type":"text/x-python","patch_set":5,"id":"a1336590_ab89d8c4","line":102,"range":{"start_line":82,"start_character":0,"end_line":102,"end_character":40},"in_reply_to":"8b47bca8_06f3a920","updated":"2026-11-10 10:46:35.000000000","message":"I hope this as close to real code path as possible","commit_id":"e7ce2858ed523b00bb519d3560677ccaf58bf950"},{"author":{"_account_id":9816,"name":"Takashi Kajinami","email":"kajinamit@oss.nttdata.com","username":"kajinamit"},"change_message_id":"0b77169ef2337182ea1bdc34b15edd09a86d15b1","unresolved":true,"context_lines":[{"line_number":125,"context_line":"        #     \u00271450\u0027, dest_mtu.get(\u0027size\u0027),"},{"line_number":126,"context_line":"        #     \"The source MTU must be preserved during live migration.\")"},{"line_number":127,"context_line":"        self.assertEqual("},{"line_number":128,"context_line":"            \u00279000\u0027, dest_mtu.get(\u0027size\u0027),"},{"line_number":129,"context_line":"            \"BUG 1800511: The destination MTU overwrites the source MTU. \""},{"line_number":130,"context_line":"            \"The guest MTU should never change during live migration.\""},{"line_number":131,"context_line":"        )"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    def test_mtu_not_added_when_source_has_none(self):"}],"source_content_type":"text/x-python","patch_set":7,"id":"5ad23fac_5b445c4b","line":130,"range":{"start_line":128,"start_character":41,"end_line":130,"end_character":70},"updated":"2026-11-04 15:46:27.000000000","message":"This usage feels odd to me because the message is raised when the assertion fails, but it tells that the failure is correct. However this may not be a blocker here.","commit_id":"4e25334eaa962a85773eb64f2a89e4a134871b3e"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"3699e73df5efdbba52d0ac2f12c72c6de368ed74","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        #     \u00271450\u0027, dest_mtu.get(\u0027size\u0027),"},{"line_number":126,"context_line":"        #     \"The source MTU must be preserved during live migration.\")"},{"line_number":127,"context_line":"        self.assertEqual("},{"line_number":128,"context_line":"            \u00279000\u0027, dest_mtu.get(\u0027size\u0027),"},{"line_number":129,"context_line":"            \"BUG 1800511: The destination MTU overwrites the source MTU. \""},{"line_number":130,"context_line":"            \"The guest MTU should never change during live migration.\""},{"line_number":131,"context_line":"        )"},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"    def test_mtu_not_added_when_source_has_none(self):"}],"source_content_type":"text/x-python","patch_set":7,"id":"9ad47bba_0fc9ad76","line":130,"range":{"start_line":128,"start_character":41,"end_line":130,"end_character":70},"in_reply_to":"5ad23fac_5b445c4b","updated":"2026-11-10 10:46:35.000000000","message":"true, that is more a comment.","commit_id":"4e25334eaa962a85773eb64f2a89e4a134871b3e"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"bd066dbff8b2aedc4971f35cf260220166bb085d","unresolved":true,"context_lines":[{"line_number":105,"context_line":"            conf.mtu \u003d 9000"},{"line_number":106,"context_line":"            return conf"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        self.src.driver.vif_driver.get_config \u003d _get_config_with_mtu"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        self._live_migrate(self.server, \u0027completed\u0027)"},{"line_number":111,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"c65970c5_ff4601ba","line":108,"range":{"start_line":108,"start_character":0,"end_line":108,"end_character":68},"updated":"2026-11-10 14:00:40.000000000","message":"you shoudl not directly assigne like this\n\nthat will outlive the test you need to mock or failing that use self.addCleanup\n\nthe patter we woudl normally use is\n```\nself.useFixture(fixtures.MockPatchObject(\n    self.src.driver.vif_driver,\"get_config\", side_effect\u003d_get_config_with_mtu)\n```\n\nyou are currently directly overieding the instnace method defintion on the driver class without ever restoring the orginal state\n\nthe same issue affect the test below","commit_id":"a1e911d2abaa08ff52704c1b2b7145263b889cde"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"06f047835a1f0b2dab1e9108ad156eebe0ba6a30","unresolved":false,"context_lines":[{"line_number":105,"context_line":"            conf.mtu \u003d 9000"},{"line_number":106,"context_line":"            return conf"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        self.src.driver.vif_driver.get_config \u003d _get_config_with_mtu"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        self._live_migrate(self.server, \u0027completed\u0027)"},{"line_number":111,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"f8423fd8_42bd0eab","line":108,"range":{"start_line":108,"start_character":0,"end_line":108,"end_character":68},"in_reply_to":"8f6335c8_19e4e6e6","updated":"2026-11-19 09:58:05.000000000","message":"I change to the same pattern in https://review.opendev.org/c/openstack/nova/+/991772/10","commit_id":"a1e911d2abaa08ff52704c1b2b7145263b889cde"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"4dba7a06aa2f6f8af0c8ab2fef627a9a98f762b3","unresolved":false,"context_lines":[{"line_number":105,"context_line":"            conf.mtu \u003d 9000"},{"line_number":106,"context_line":"            return conf"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        self.src.driver.vif_driver.get_config \u003d _get_config_with_mtu"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        self._live_migrate(self.server, \u0027completed\u0027)"},{"line_number":111,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"8f6335c8_19e4e6e6","line":108,"range":{"start_line":108,"start_character":0,"end_line":108,"end_character":68},"in_reply_to":"c65970c5_ff4601ba","updated":"2026-11-19 09:57:36.000000000","message":"thanks. Finally I got back to this","commit_id":"a1e911d2abaa08ff52704c1b2b7145263b889cde"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"ac3f408f8f7d13f103e4b02fab3ae70bf05c9770","unresolved":true,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def _migrate_stub(self, domain, destination, params, flags):"},{"line_number":62,"context_line":"        self.destination_xml \u003d params[\u0027destination_xml\u0027]"},{"line_number":63,"context_line":"        self.dest.driver._host.get_connection().createXML("},{"line_number":64,"context_line":"            params[\u0027destination_xml\u0027],"},{"line_number":65,"context_line":"            \u0027fake-createXML-doesnt-care-about-flags\u0027)"},{"line_number":66,"context_line":"        conn \u003d self.src.driver._host.get_connection()"},{"line_number":67,"context_line":"        dom \u003d conn.lookupByUUIDString(self.server[\u0027id\u0027])"},{"line_number":68,"context_line":"        dom.complete_job()"},{"line_number":69,"context_line":"        self.migrate_stub_ran \u003d True"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    def test_mtu_preserved_with_different_host_settings(self):"},{"line_number":72,"context_line":"        \"\"\"Test that source MTU is preserved when dest has a different MTU."}],"source_content_type":"text/x-python","patch_set":9,"id":"fcca2944_91a21a78","line":69,"range":{"start_line":63,"start_character":8,"end_line":69,"end_character":36},"updated":"2026-11-24 16:42:45.000000000","message":"this si the body of LibvirtMigrationMixin\u0027s _migrate_stub method so you can jsut do\n\n\n\n```suggestion\n        super()._migrate_stub(domain,destination,params,flags)\n```\nhttps://github.com/openstack/nova/blob/18898d20148c48b4671dbae0a461d723859380c5/nova/tests/functional/libvirt/base.py#L280","commit_id":"a20c09d2cf38c06ba9c288c5c860052b5eb40b39"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"e7235118d91bc604cef2e7ed65efa56179587c89","unresolved":false,"context_lines":[{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def _migrate_stub(self, domain, destination, params, flags):"},{"line_number":62,"context_line":"        self.destination_xml \u003d params[\u0027destination_xml\u0027]"},{"line_number":63,"context_line":"        self.dest.driver._host.get_connection().createXML("},{"line_number":64,"context_line":"            params[\u0027destination_xml\u0027],"},{"line_number":65,"context_line":"            \u0027fake-createXML-doesnt-care-about-flags\u0027)"},{"line_number":66,"context_line":"        conn \u003d self.src.driver._host.get_connection()"},{"line_number":67,"context_line":"        dom \u003d conn.lookupByUUIDString(self.server[\u0027id\u0027])"},{"line_number":68,"context_line":"        dom.complete_job()"},{"line_number":69,"context_line":"        self.migrate_stub_ran \u003d True"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    def test_mtu_preserved_with_different_host_settings(self):"},{"line_number":72,"context_line":"        \"\"\"Test that source MTU is preserved when dest has a different MTU."}],"source_content_type":"text/x-python","patch_set":9,"id":"95f1b680_99258fa1","line":69,"range":{"start_line":63,"start_character":8,"end_line":69,"end_character":36},"in_reply_to":"fcca2944_91a21a78","updated":"2026-11-26 12:13:02.000000000","message":"thanks, good idea.","commit_id":"a20c09d2cf38c06ba9c288c5c860052b5eb40b39"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"ac3f408f8f7d13f103e4b02fab3ae70bf05c9770","unresolved":true,"context_lines":[{"line_number":138,"context_line":"        This was already handled by fix:"},{"line_number":139,"context_line":"        https://review.opendev.org/c/openstack/nova/+/614008"},{"line_number":140,"context_line":"        \"\"\""},{"line_number":141,"context_line":"        # Boot the server with a VIF config that has no MTU so that the"},{"line_number":142,"context_line":"        # source domain XML is created (via the real spawn code path)"},{"line_number":143,"context_line":"        # without an \u003cmtu\u003e element."},{"line_number":144,"context_line":"        original_get_config \u003d self.src.driver.vif_driver.get_config"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        def _get_config_without_mtu(*args, **kwargs):"},{"line_number":147,"context_line":"            conf \u003d original_get_config(*args, **kwargs)"},{"line_number":148,"context_line":"            conf.mtu \u003d None"},{"line_number":149,"context_line":"            return conf"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"        mock_get_config \u003d self.useFixture(fixtures.MockPatchObject("},{"line_number":152,"context_line":"            self.src.driver.vif_driver, \"get_config\","},{"line_number":153,"context_line":"            side_effect\u003d_get_config_without_mtu)).mock"},{"line_number":154,"context_line":"        self.server \u003d self._create_server(host\u003d\u0027src\u0027, networks\u003d\u0027auto\u0027)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"        # Confirm the source domain really has no \u003cmtu\u003e element."}],"source_content_type":"text/x-python","patch_set":9,"id":"1f564474_0dbd87a5","line":153,"range":{"start_line":141,"start_character":1,"end_line":153,"end_character":54},"updated":"2026-11-24 16:42:45.000000000","message":"this is kind of incorrect for a funcitonal test\n\nwe try to avodi mockign any nova code but emulating diffent configs on differtn hsot sis very hard to do in oru functil tests so i guess this is ok\n\nyou acive a similar effect however by setting the config via self.flags here","commit_id":"a20c09d2cf38c06ba9c288c5c860052b5eb40b39"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"e7235118d91bc604cef2e7ed65efa56179587c89","unresolved":false,"context_lines":[{"line_number":138,"context_line":"        This was already handled by fix:"},{"line_number":139,"context_line":"        https://review.opendev.org/c/openstack/nova/+/614008"},{"line_number":140,"context_line":"        \"\"\""},{"line_number":141,"context_line":"        # Boot the server with a VIF config that has no MTU so that the"},{"line_number":142,"context_line":"        # source domain XML is created (via the real spawn code path)"},{"line_number":143,"context_line":"        # without an \u003cmtu\u003e element."},{"line_number":144,"context_line":"        original_get_config \u003d self.src.driver.vif_driver.get_config"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        def _get_config_without_mtu(*args, **kwargs):"},{"line_number":147,"context_line":"            conf \u003d original_get_config(*args, **kwargs)"},{"line_number":148,"context_line":"            conf.mtu \u003d None"},{"line_number":149,"context_line":"            return conf"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"        mock_get_config \u003d self.useFixture(fixtures.MockPatchObject("},{"line_number":152,"context_line":"            self.src.driver.vif_driver, \"get_config\","},{"line_number":153,"context_line":"            side_effect\u003d_get_config_without_mtu)).mock"},{"line_number":154,"context_line":"        self.server \u003d self._create_server(host\u003d\u0027src\u0027, networks\u003d\u0027auto\u0027)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"        # Confirm the source domain really has no \u003cmtu\u003e element."}],"source_content_type":"text/x-python","patch_set":9,"id":"78fc0bc2_2bf97462","line":153,"range":{"start_line":141,"start_character":1,"end_line":153,"end_character":54},"in_reply_to":"1f564474_0dbd87a5","updated":"2026-11-26 12:13:02.000000000","message":"I checked and for mtu I can\u0027t use it as there is no mtu cfg option in Nova. another option can be to change the network fixture to have the option to change the network mtu there.","commit_id":"a20c09d2cf38c06ba9c288c5c860052b5eb40b39"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"9a28640e9bf6427c3c81b9ad7d680c2835aa9d89","unresolved":true,"context_lines":[{"line_number":138,"context_line":"        This was already handled by fix:"},{"line_number":139,"context_line":"        https://review.opendev.org/c/openstack/nova/+/614008"},{"line_number":140,"context_line":"        \"\"\""},{"line_number":141,"context_line":"        # Boot the server with a VIF config that has no MTU so that the"},{"line_number":142,"context_line":"        # source domain XML is created (via the real spawn code path)"},{"line_number":143,"context_line":"        # without an \u003cmtu\u003e element."},{"line_number":144,"context_line":"        original_get_config \u003d self.src.driver.vif_driver.get_config"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        def _get_config_without_mtu(*args, **kwargs):"},{"line_number":147,"context_line":"            conf \u003d original_get_config(*args, **kwargs)"},{"line_number":148,"context_line":"            conf.mtu \u003d None"},{"line_number":149,"context_line":"            return conf"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"        mock_get_config \u003d self.useFixture(fixtures.MockPatchObject("},{"line_number":152,"context_line":"            self.src.driver.vif_driver, \"get_config\","},{"line_number":153,"context_line":"            side_effect\u003d_get_config_without_mtu)).mock"},{"line_number":154,"context_line":"        self.server \u003d self._create_server(host\u003d\u0027src\u0027, networks\u003d\u0027auto\u0027)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"        # Confirm the source domain really has no \u003cmtu\u003e element."}],"source_content_type":"text/x-python","patch_set":9,"id":"bc01c197_f0401d5d","line":153,"range":{"start_line":141,"start_character":1,"end_line":153,"end_character":54},"in_reply_to":"78fc0bc2_2bf97462","updated":"2026-11-26 18:48:24.000000000","message":"wait i tought ht egap that was remeing for mtu was when the mtu si set in the nova config via the legacy options for nova_networks\n\nhttps://docs.openstack.org/nova/latest/configuration/config.html#os_vif_ovs.network_device_mtu\n\nwhich used to be \n```\n[DEFAULT]\nnetwork_device_mtu\n```\n\nnova does support changing the mtu of the neutron network while there are any vms\nwith port on that network.\n\nsupport for the mtu writeable extions in neutron was never added to nova.\n\nhttps://opendev.org/openstack/neutron-lib/src/branch/master/neutron_lib/api/definitions/network_mtu_writable.py\n\nthat was orgianlly only supproted by an out of tree ml2 driver and nova supprot was never added as part of https://bugs.launchpad.net/neutron/+bug/1671634\n\nso its flat out operator/user error to ever change the mtu on a port via its network today if that port is attached to a vm.\n\nusing the mtu_writeabel extion with ovn or ml2/ovs is not expected to work adn shoudl be rejected by neutron.\n\nwe can still harden nova live mitigation code to be more defensive but if that is how this is begin trigger that is a neutron bug not a nova one.\n\nnuetorn shoudl be blocking mtu updates for network that have port with device_owner\u003dcompute:*","commit_id":"a20c09d2cf38c06ba9c288c5c860052b5eb40b39"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"29f0c20c9508e8cf6949dd23c562c8074246d91c","unresolved":false,"context_lines":[{"line_number":138,"context_line":"        This was already handled by fix:"},{"line_number":139,"context_line":"        https://review.opendev.org/c/openstack/nova/+/614008"},{"line_number":140,"context_line":"        \"\"\""},{"line_number":141,"context_line":"        # Boot the server with a VIF config that has no MTU so that the"},{"line_number":142,"context_line":"        # source domain XML is created (via the real spawn code path)"},{"line_number":143,"context_line":"        # without an \u003cmtu\u003e element."},{"line_number":144,"context_line":"        original_get_config \u003d self.src.driver.vif_driver.get_config"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        def _get_config_without_mtu(*args, **kwargs):"},{"line_number":147,"context_line":"            conf \u003d original_get_config(*args, **kwargs)"},{"line_number":148,"context_line":"            conf.mtu \u003d None"},{"line_number":149,"context_line":"            return conf"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"        mock_get_config \u003d self.useFixture(fixtures.MockPatchObject("},{"line_number":152,"context_line":"            self.src.driver.vif_driver, \"get_config\","},{"line_number":153,"context_line":"            side_effect\u003d_get_config_without_mtu)).mock"},{"line_number":154,"context_line":"        self.server \u003d self._create_server(host\u003d\u0027src\u0027, networks\u003d\u0027auto\u0027)"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"        # Confirm the source domain really has no \u003cmtu\u003e element."}],"source_content_type":"text/x-python","patch_set":9,"id":"235ad6ae_0bf7b8a5","line":153,"range":{"start_line":141,"start_character":1,"end_line":153,"end_character":54},"in_reply_to":"bc01c197_f0401d5d","updated":"2026-12-02 16:41:35.000000000","message":"Hmmmm, really interesting I always liked software archeology. As I see both OVN and OVS in Neutron set the network_mtu_writable as supported extension: https://opendev.org/openstack/neutron/src/branch/master/neutron/common/ovn/extensions.py#L178\n\nSo perhaps this is a communication gap between Neutron and Nova.\n\nI see no MTU validation other than here: https://opendev.org/openstack/neutron/src/branch/master/neutron/plugins/ml2/plugin.py#L1170 , which checks all segments MTU.\nFor OVN I see some checks for MTU for example but nothing for device owner: https://opendev.org/openstack/neutron/src/branch/master/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py#L2658\n\nPerhaps this can be checked on the drivers meeting.","commit_id":"a20c09d2cf38c06ba9c288c5c860052b5eb40b39"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"ac3f408f8f7d13f103e4b02fab3ae70bf05c9770","unresolved":true,"context_lines":[{"line_number":161,"context_line":"        self.assertIsNotNone(src_iface)"},{"line_number":162,"context_line":"        self.assertIsNone(src_iface.find(\u0027mtu\u0027))"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"        # The destination host\u0027s VIF config reports MTU 9000."},{"line_number":165,"context_line":"        # _live_migration_operation runs on the source host and uses a"},{"line_number":166,"context_line":"        # partial of self.vif_driver.get_config to generate the dest XML."},{"line_number":167,"context_line":"        def _get_config_with_mtu(*args, **kwargs):"},{"line_number":168,"context_line":"            conf \u003d original_get_config(*args, **kwargs)"},{"line_number":169,"context_line":"            conf.mtu \u003d 9000"},{"line_number":170,"context_line":"            return conf"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"        mock_get_config.side_effect \u003d _get_config_with_mtu"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"        self._live_migrate(self.server, \u0027completed\u0027)"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"        # Verify the destination XML does NOT have an MTU element since"}],"source_content_type":"text/x-python","patch_set":9,"id":"a0b781a1_00656d5d","line":173,"range":{"start_line":164,"start_character":2,"end_line":173,"end_character":0},"updated":"2026-11-24 16:42:45.000000000","message":"then callign self.flags again here to update it to 9000\n\nbut i guess this is ok as writtein in this one case","commit_id":"a20c09d2cf38c06ba9c288c5c860052b5eb40b39"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"e7235118d91bc604cef2e7ed65efa56179587c89","unresolved":false,"context_lines":[{"line_number":161,"context_line":"        self.assertIsNotNone(src_iface)"},{"line_number":162,"context_line":"        self.assertIsNone(src_iface.find(\u0027mtu\u0027))"},{"line_number":163,"context_line":""},{"line_number":164,"context_line":"        # The destination host\u0027s VIF config reports MTU 9000."},{"line_number":165,"context_line":"        # _live_migration_operation runs on the source host and uses a"},{"line_number":166,"context_line":"        # partial of self.vif_driver.get_config to generate the dest XML."},{"line_number":167,"context_line":"        def _get_config_with_mtu(*args, **kwargs):"},{"line_number":168,"context_line":"            conf \u003d original_get_config(*args, **kwargs)"},{"line_number":169,"context_line":"            conf.mtu \u003d 9000"},{"line_number":170,"context_line":"            return conf"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"        mock_get_config.side_effect \u003d _get_config_with_mtu"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"        self._live_migrate(self.server, \u0027completed\u0027)"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"        # Verify the destination XML does NOT have an MTU element since"}],"source_content_type":"text/x-python","patch_set":9,"id":"3f13e494_66bef8b5","line":173,"range":{"start_line":164,"start_character":2,"end_line":173,"end_character":0},"in_reply_to":"a0b781a1_00656d5d","updated":"2026-11-26 12:13:02.000000000","message":"see above","commit_id":"a20c09d2cf38c06ba9c288c5c860052b5eb40b39"}],"nova/tests/unit/virt/libvirt/test_migration.py":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"037223efdccc3e4682c664eed40be303f9e196ab","unresolved":true,"context_lines":[{"line_number":1388,"context_line":"\u003c/domain\u003e\"\"\""},{"line_number":1389,"context_line":"        self._test_update_vif_xml(conf, original_xml, expected_xml)"},{"line_number":1390,"context_line":""},{"line_number":1391,"context_line":"    def test_update_vif_xml_to_bridge_with_different_mtu(self):"},{"line_number":1392,"context_line":"        \"\"\"Test _update_vif_xml when src and dst hosts have different MTUs."},{"line_number":1393,"context_line":""},{"line_number":1394,"context_line":"        Currently when both source and destination host have an MTU"}],"source_content_type":"text/x-python","patch_set":4,"id":"678acc52_fa300656","line":1391,"updated":"2026-08-17 17:00:58.000000000","message":"this should be a regresion test where teh bug is that the mtu was updated\n\nwe can only update the xml in the domain if its present on the hose but doing so change the tap configution and that can lead to netowkr isseus in the guest\n\n\nso the correct behvior is either to reject the live mgiration or to preserve the soruce host vlaues.\n\nthe mtu shoudl only be modifed via a hard reboot.\n\nnote nova does not supprot changign the mtu of a newotn prot while its attached but we also dont supprot live mgirting bewtween host with diffent config vlues and we condier those config options to be legacy nova networks values that should be avoid if your using neutron.","commit_id":"29f89a891e35a87fad6fc39d65ada6cfc65f569e"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"f44c42662a24e6a42ea60621c3a240b4bdfddaf2","unresolved":false,"context_lines":[{"line_number":1388,"context_line":"\u003c/domain\u003e\"\"\""},{"line_number":1389,"context_line":"        self._test_update_vif_xml(conf, original_xml, expected_xml)"},{"line_number":1390,"context_line":""},{"line_number":1391,"context_line":"    def test_update_vif_xml_to_bridge_with_different_mtu(self):"},{"line_number":1392,"context_line":"        \"\"\"Test _update_vif_xml when src and dst hosts have different MTUs."},{"line_number":1393,"context_line":""},{"line_number":1394,"context_line":"        Currently when both source and destination host have an MTU"}],"source_content_type":"text/x-python","patch_set":4,"id":"16fea32d_61475801","line":1391,"in_reply_to":"678acc52_fa300656","updated":"2026-08-19 08:08:57.000000000","message":"Done","commit_id":"29f89a891e35a87fad6fc39d65ada6cfc65f569e"}]}
