)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"9b3a6fac2f74458d4e72622207d97b43c7dcadf6","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"1e72c38e_5a05837c","updated":"2026-06-11 09:56:26.000000000","message":"this is a good baseline\nit would be nice to adress some of the other edgcases as well if you have tiem to add tests for those","commit_id":"455ef1e8b4127d6839f7b624023327e998e92796"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"b45cbad054b0dedf46328d5dd0ec239006aa5b5f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":11,"id":"904f1d75_94bf3362","updated":"2026-11-26 18:56:13.000000000","message":"better but if you respien please use _create_flavor","commit_id":"8c219030b9b43e67d95db4012f93d3089a906483"}],"nova/tests/functional/regressions/test_bug_1854844.py":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"9b3a6fac2f74458d4e72622207d97b43c7dcadf6","unresolved":true,"context_lines":[{"line_number":74,"context_line":"        self.migrate_stub_ran \u003d True"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def test_queue_size_preserved_with_different_host_settings(self):"},{"line_number":77,"context_line":"        \"\"\"Test that rx/tx queue_size from the source is preserved."},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"        The VM was booted on a source host with rx_queue_size\u003d1024."},{"line_number":80,"context_line":"        The destination host has rx_queue_size\u003d512 configured. During live"},{"line_number":81,"context_line":"        migration, the destination XML must still have rx_queue_size\u003d1024"},{"line_number":82,"context_line":"        to match the running VM\u0027s virtio device options."},{"line_number":83,"context_line":"        \"\"\""},{"line_number":84,"context_line":"        self.server \u003d self._create_server(host\u003d\u0027src\u0027, networks\u003d\u0027auto\u0027)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        # The fakelibvirt Domain.XMLDesc doesn\u0027t include \u003cdriver\u003e elements"}],"source_content_type":"text/x-python","patch_set":1,"id":"714c27a5_34ae775a","line":83,"range":{"start_line":77,"start_character":6,"end_line":83,"end_character":11},"updated":"2026-06-11 09:56:26.000000000","message":"nit your technially not checking the tx queue size in this test and they can have diffent values \n\nhttps://docs.openstack.org/nova/latest/configuration/config.html#libvirt.rx_queue_size\nhttps://docs.openstack.org/nova/latest/configuration/config.html#libvirt.tx_queue_size\n\ntx_queue_size is only usabel with ovs-dpdk and vhost-user\n\nit would be nice ot add a second test for that.","commit_id":"455ef1e8b4127d6839f7b624023327e998e92796"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"f1cfd6bcfd63915cb7e0e326a69cf02d9dec8ca5","unresolved":true,"context_lines":[{"line_number":74,"context_line":"        self.migrate_stub_ran \u003d True"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def test_queue_size_preserved_with_different_host_settings(self):"},{"line_number":77,"context_line":"        \"\"\"Test that rx/tx queue_size from the source is preserved."},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"        The VM was booted on a source host with rx_queue_size\u003d1024."},{"line_number":80,"context_line":"        The destination host has rx_queue_size\u003d512 configured. During live"},{"line_number":81,"context_line":"        migration, the destination XML must still have rx_queue_size\u003d1024"},{"line_number":82,"context_line":"        to match the running VM\u0027s virtio device options."},{"line_number":83,"context_line":"        \"\"\""},{"line_number":84,"context_line":"        self.server \u003d self._create_server(host\u003d\u0027src\u0027, networks\u003d\u0027auto\u0027)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        # The fakelibvirt Domain.XMLDesc doesn\u0027t include \u003cdriver\u003e elements"}],"source_content_type":"text/x-python","patch_set":1,"id":"9d492a86_70263d2c","line":83,"range":{"start_line":77,"start_character":6,"end_line":83,"end_character":11},"in_reply_to":"714c27a5_34ae775a","updated":"2026-06-19 12:56:54.000000000","message":"I added only stubs for those cases now, I will fill them next week (I hope at least)","commit_id":"455ef1e8b4127d6839f7b624023327e998e92796"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"272a2858c76913895f93691c61410aee4101627a","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        self.migrate_stub_ran \u003d True"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def test_queue_size_preserved_with_different_host_settings(self):"},{"line_number":77,"context_line":"        \"\"\"Test that rx/tx queue_size from the source is preserved."},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"        The VM was booted on a source host with rx_queue_size\u003d1024."},{"line_number":80,"context_line":"        The destination host has rx_queue_size\u003d512 configured. During live"},{"line_number":81,"context_line":"        migration, the destination XML must still have rx_queue_size\u003d1024"},{"line_number":82,"context_line":"        to match the running VM\u0027s virtio device options."},{"line_number":83,"context_line":"        \"\"\""},{"line_number":84,"context_line":"        self.server \u003d self._create_server(host\u003d\u0027src\u0027, networks\u003d\u0027auto\u0027)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        # The fakelibvirt Domain.XMLDesc doesn\u0027t include \u003cdriver\u003e elements"}],"source_content_type":"text/x-python","patch_set":1,"id":"2cce52f7_c0a7a0e0","line":83,"range":{"start_line":77,"start_character":6,"end_line":83,"end_character":11},"in_reply_to":"9c7e5e89_e8c33e9e","updated":"2026-08-17 17:07:43.000000000","message":"Done","commit_id":"455ef1e8b4127d6839f7b624023327e998e92796"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"9b05f3775a57a467758bbbd4e1935d7226d4caae","unresolved":true,"context_lines":[{"line_number":74,"context_line":"        self.migrate_stub_ran \u003d True"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"    def test_queue_size_preserved_with_different_host_settings(self):"},{"line_number":77,"context_line":"        \"\"\"Test that rx/tx queue_size from the source is preserved."},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"        The VM was booted on a source host with rx_queue_size\u003d1024."},{"line_number":80,"context_line":"        The destination host has rx_queue_size\u003d512 configured. During live"},{"line_number":81,"context_line":"        migration, the destination XML must still have rx_queue_size\u003d1024"},{"line_number":82,"context_line":"        to match the running VM\u0027s virtio device options."},{"line_number":83,"context_line":"        \"\"\""},{"line_number":84,"context_line":"        self.server \u003d self._create_server(host\u003d\u0027src\u0027, networks\u003d\u0027auto\u0027)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        # The fakelibvirt Domain.XMLDesc doesn\u0027t include \u003cdriver\u003e elements"}],"source_content_type":"text/x-python","patch_set":1,"id":"9c7e5e89_e8c33e9e","line":83,"range":{"start_line":77,"start_character":6,"end_line":83,"end_character":11},"in_reply_to":"9d492a86_70263d2c","updated":"2026-06-23 17:07:55.000000000","message":"I added tests for tx_queue_size also to cover tha same scenarios with it","commit_id":"455ef1e8b4127d6839f7b624023327e998e92796"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"ee2e8d3748706a59be725e4df21f0d4ef749e954","unresolved":true,"context_lines":[{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        dom.XMLDesc \u003d _xml_desc_with_queue_size"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        # Change the config to simulate a destination host with a different"},{"line_number":111,"context_line":"        # rx_queue_size."},{"line_number":112,"context_line":"        self.flags(rx_queue_size\u003d512, group\u003d\u0027libvirt\u0027)"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"        self._live_migrate(self.server, \u0027completed\u0027)"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"        # Verify the destination XML preserves the source\u0027s rx_queue_size"},{"line_number":117,"context_line":"        self.assertTrue(self.migrate_stub_ran)"}],"source_content_type":"text/x-python","patch_set":1,"id":"658f3392_4c2a499a","line":114,"range":{"start_line":110,"start_character":3,"end_line":114,"end_character":52},"updated":"2026-06-11 10:04:00.000000000","message":"thinking about this again this is not testing what you think its testing\n\n\nwhat this is actully testing is what happesn if you boot a vm with the config set to 1024\n\nthen restart the agent with it set to 512, the live migrate it\n\nthe destiation xml is genreated by the souce node using its config value not the value form the destiation host.\n\nwe do not have feild ot pass this info form the destiantion to the souce\n\nhttps://github.com/openstack/nova/blob/master/nova/objects/migrate_data.py#L39-L137\n\nso your test is nto invlaid, but the comment is misleading.\n\n\nhow this actully brakes on upgrade is you can live migrate away once, but once your on a host where the value ahs changed you cant live migrate back\n\nso your actully simulating the second live migation here not the first\n\nso you can boot with 1024 move to a host aht is configure for 512 but then you are stuck as the souce node will try to change it to 512 and that will fail.","commit_id":"455ef1e8b4127d6839f7b624023327e998e92796"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"272a2858c76913895f93691c61410aee4101627a","unresolved":false,"context_lines":[{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        dom.XMLDesc \u003d _xml_desc_with_queue_size"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        # Change the config to simulate a destination host with a different"},{"line_number":111,"context_line":"        # rx_queue_size."},{"line_number":112,"context_line":"        self.flags(rx_queue_size\u003d512, group\u003d\u0027libvirt\u0027)"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"        self._live_migrate(self.server, \u0027completed\u0027)"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"        # Verify the destination XML preserves the source\u0027s rx_queue_size"},{"line_number":117,"context_line":"        self.assertTrue(self.migrate_stub_ran)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f3e7006_4b96f3c6","line":114,"range":{"start_line":110,"start_character":3,"end_line":114,"end_character":52},"in_reply_to":"399b3899_cc1895fc","updated":"2026-08-17 17:07:43.000000000","message":"Done","commit_id":"455ef1e8b4127d6839f7b624023327e998e92796"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"f1cfd6bcfd63915cb7e0e326a69cf02d9dec8ca5","unresolved":true,"context_lines":[{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        dom.XMLDesc \u003d _xml_desc_with_queue_size"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        # Change the config to simulate a destination host with a different"},{"line_number":111,"context_line":"        # rx_queue_size."},{"line_number":112,"context_line":"        self.flags(rx_queue_size\u003d512, group\u003d\u0027libvirt\u0027)"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"        self._live_migrate(self.server, \u0027completed\u0027)"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"        # Verify the destination XML preserves the source\u0027s rx_queue_size"},{"line_number":117,"context_line":"        self.assertTrue(self.migrate_stub_ran)"}],"source_content_type":"text/x-python","patch_set":1,"id":"399b3899_cc1895fc","line":114,"range":{"start_line":110,"start_character":3,"end_line":114,"end_character":52},"in_reply_to":"658f3392_4c2a499a","updated":"2026-06-19 12:56:54.000000000","message":"true, thanks. I updated now the comment to make it cleaner","commit_id":"455ef1e8b4127d6839f7b624023327e998e92796"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"9b3a6fac2f74458d4e72622207d97b43c7dcadf6","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":1,"id":"0efa5967_8cbc9e56","line":184,"updated":"2026-06-11 09:56:26.000000000","message":"it would be nice to also test that the queue size is not removed if the souce has it set and the dest had non although you could argue that is tested trasnstitivly vai the diffent size test bu the code paths may not be identical\n\nalso we dicsused the max queue count.\nhttps://docs.openstack.org/nova/latest/configuration/config.html#libvirt.max_queues\n\nit would be nice ot cover that as well\n\nthe same logic appliens in all 3 cases\n\nif a vm has any of these 3 values the value should not be updated.\nif the vm does not have any of thse 3 values they should not be added\n\nand ideally at some later point we can consider schduling on this in some way or a pre-live-migraiton check after the inital bug is fixed.","commit_id":"455ef1e8b4127d6839f7b624023327e998e92796"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"f1cfd6bcfd63915cb7e0e326a69cf02d9dec8ca5","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":1,"id":"8e835453_c59ded04","line":184,"in_reply_to":"0efa5967_8cbc9e56","updated":"2026-06-19 12:56:54.000000000","message":"max_queue is a really good idea, I added stubs now, will come back to these next week (see above 😉)","commit_id":"455ef1e8b4127d6839f7b624023327e998e92796"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"272a2858c76913895f93691c61410aee4101627a","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"d9dd2bd1_0aa25961","line":184,"in_reply_to":"8e835453_c59ded04","updated":"2026-08-17 17:07:43.000000000","message":"Acknowledged","commit_id":"455ef1e8b4127d6839f7b624023327e998e92796"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"9b05f3775a57a467758bbbd4e1935d7226d4caae","unresolved":true,"context_lines":[{"line_number":220,"context_line":"        \"\"\""},{"line_number":221,"context_line":"        # TODO(lajoskatona) ...."},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"    def test_mac_queue_not_added_when_source_has_none(self):"},{"line_number":224,"context_line":"        \"\"\"Test that max_queue is not added if the source doesn\u0027t have it."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"        \"\"\""},{"line_number":227,"context_line":"        # TODO(lajoskatona) ...."}],"source_content_type":"text/x-python","patch_set":2,"id":"238a7fa4_ca2bf718","line":224,"range":{"start_line":223,"start_character":0,"end_line":224,"end_character":74},"updated":"2026-06-23 17:07:55.000000000","message":"If I understand well this is not adding coverage for this topic as the flavor will be the same on the src and on the dst host, so the queue size will remain the same with or without fix.","commit_id":"6f0958665c132e79aa27f767e7a5104db70dbf54"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"272a2858c76913895f93691c61410aee4101627a","unresolved":true,"context_lines":[{"line_number":220,"context_line":"        \"\"\""},{"line_number":221,"context_line":"        # TODO(lajoskatona) ...."},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"    def test_mac_queue_not_added_when_source_has_none(self):"},{"line_number":224,"context_line":"        \"\"\"Test that max_queue is not added if the source doesn\u0027t have it."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"        \"\"\""},{"line_number":227,"context_line":"        # TODO(lajoskatona) ...."}],"source_content_type":"text/x-python","patch_set":2,"id":"5cb88a19_b93b30ed","line":224,"range":{"start_line":223,"start_character":0,"end_line":224,"end_character":74},"in_reply_to":"238a7fa4_ca2bf718","updated":"2026-08-17 17:07:43.000000000","message":"the queue size is not defiend by the flavor tis defiend by the host config options.\n\nwe currently do not really suprpto live mgiraiton betwen host with differnet values you are expected to use host aggreates or similr to isolate host and only cold migrate or resize btween hosts with diffent values.\n\nyour propsoed chagnes make live migration safer but still not adviabel\n\nas moving form a host with a larger value to smaller value may still fail.\n\nbut it is more correct with your work\n\ntest_mac_queue_not_added_when_source_has_none would be testing the case wehre there is no mtu element in the vm domain\n\nthat happens if neutron is using the default mtu and you do not set a non default value in the config options. it also was how older nova worked many years ago by default beofre we added jumbo frame support.\n\nhistorically nova only defiend the mtu element for neutron network supproting jumboframes","commit_id":"6f0958665c132e79aa27f767e7a5104db70dbf54"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"7280f6cf3e878cf4fa8cd2298cd2ed7043d2d4ec","unresolved":false,"context_lines":[{"line_number":220,"context_line":"        \"\"\""},{"line_number":221,"context_line":"        # TODO(lajoskatona) ...."},{"line_number":222,"context_line":""},{"line_number":223,"context_line":"    def test_mac_queue_not_added_when_source_has_none(self):"},{"line_number":224,"context_line":"        \"\"\"Test that max_queue is not added if the source doesn\u0027t have it."},{"line_number":225,"context_line":""},{"line_number":226,"context_line":"        \"\"\""},{"line_number":227,"context_line":"        # TODO(lajoskatona) ...."}],"source_content_type":"text/x-python","patch_set":2,"id":"6a499a9e_eb3ba04e","line":224,"range":{"start_line":223,"start_character":0,"end_line":224,"end_character":74},"in_reply_to":"5cb88a19_b93b30ed","updated":"2026-08-27 12:01:46.000000000","message":"Acknowledged","commit_id":"6f0958665c132e79aa27f767e7a5104db70dbf54"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"e0545433057e647b0b3469fb93b5a5a279b8c8ac","unresolved":true,"context_lines":[{"line_number":61,"context_line":"        self.src \u003d self.computes[\u0027src\u0027]"},{"line_number":62,"context_line":"        self.dest \u003d self.computes[\u0027dest\u0027]"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def _migrate_stub(self, domain, destination, params, flags):"},{"line_number":65,"context_line":"        # Just capture the destination XML for assertion later"},{"line_number":66,"context_line":"        # then proceed normally as it is written in"},{"line_number":67,"context_line":"        # LibvirtMigrationMixin._migrate_stub"}],"source_content_type":"text/x-python","patch_set":10,"id":"ae0dea4f_32d7a35c","line":64,"range":{"start_line":64,"start_character":8,"end_line":64,"end_character":21},"updated":"2026-11-24 17:05:54.000000000","message":"same comment here as in the previous regression test\nyou shoudl delegate to super instead of dupclitation the _migrate_stub logic inlien","commit_id":"9a448fde280c3bcf593ec3d59488d3f887fd15e7"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"24b726f2a58fa0762781e3cf3b8c4c7460d8b850","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        self.src \u003d self.computes[\u0027src\u0027]"},{"line_number":62,"context_line":"        self.dest \u003d self.computes[\u0027dest\u0027]"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def _migrate_stub(self, domain, destination, params, flags):"},{"line_number":65,"context_line":"        # Just capture the destination XML for assertion later"},{"line_number":66,"context_line":"        # then proceed normally as it is written in"},{"line_number":67,"context_line":"        # LibvirtMigrationMixin._migrate_stub"}],"source_content_type":"text/x-python","patch_set":10,"id":"ad9d48d8_4e2c719d","line":64,"range":{"start_line":64,"start_character":8,"end_line":64,"end_character":21},"in_reply_to":"ae0dea4f_32d7a35c","updated":"2026-11-26 17:59:33.000000000","message":"Done, thanks, makes sense","commit_id":"9a448fde280c3bcf593ec3d59488d3f887fd15e7"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"e0545433057e647b0b3469fb93b5a5a279b8c8ac","unresolved":true,"context_lines":[{"line_number":115,"context_line":"        # with a different config — the VM\u0027s running domain still"},{"line_number":116,"context_line":"        # has queue_size\u003d1024, but the source compute now generates destination"},{"line_number":117,"context_line":"        # XML using its own rx_queue_size value."},{"line_number":118,"context_line":"        self.flags(rx_queue_size\u003d512, group\u003d\u0027libvirt\u0027)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        self._live_migrate(self.server, \u0027completed\u0027)"},{"line_number":121,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"d0266eec_2853ae47","line":118,"updated":"2026-11-24 17:05:54.000000000","message":"so ya this i think woudl have been the better approch for config based mtu in the previous example regression test.","commit_id":"9a448fde280c3bcf593ec3d59488d3f887fd15e7"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"8557f06241fc28c78458b5902fd6e96d390522f2","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        # with a different config — the VM\u0027s running domain still"},{"line_number":116,"context_line":"        # has queue_size\u003d1024, but the source compute now generates destination"},{"line_number":117,"context_line":"        # XML using its own rx_queue_size value."},{"line_number":118,"context_line":"        self.flags(rx_queue_size\u003d512, group\u003d\u0027libvirt\u0027)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        self._live_migrate(self.server, \u0027completed\u0027)"},{"line_number":121,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"e7ee482c_83f4331c","line":118,"in_reply_to":"7a3180ac_61215dd8","updated":"2026-11-26 18:03:26.000000000","message":"in the tests for MTU I can\u0027t use self.flags, but here it was really useful.","commit_id":"9a448fde280c3bcf593ec3d59488d3f887fd15e7"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"24b726f2a58fa0762781e3cf3b8c4c7460d8b850","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        # with a different config — the VM\u0027s running domain still"},{"line_number":116,"context_line":"        # has queue_size\u003d1024, but the source compute now generates destination"},{"line_number":117,"context_line":"        # XML using its own rx_queue_size value."},{"line_number":118,"context_line":"        self.flags(rx_queue_size\u003d512, group\u003d\u0027libvirt\u0027)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        self._live_migrate(self.server, \u0027completed\u0027)"},{"line_number":121,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"7a3180ac_61215dd8","line":118,"in_reply_to":"d0266eec_2853ae47","updated":"2026-11-26 17:59:33.000000000","message":"Done","commit_id":"9a448fde280c3bcf593ec3d59488d3f887fd15e7"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"e0545433057e647b0b3469fb93b5a5a279b8c8ac","unresolved":true,"context_lines":[{"line_number":150,"context_line":"        # port to vhostuser before migration. This simulates an OVS-DPDK"},{"line_number":151,"context_line":"        # deployment where tx_queue_size is relevant."},{"line_number":152,"context_line":"        self.server \u003d self._create_server(host\u003d\u0027src\u0027, networks\u003d\u0027auto\u0027)"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"        # Find the port ID attached to this instance and update it to"},{"line_number":155,"context_line":"        # vhostuser type so migration generates tx_queue_size in VIF config."},{"line_number":156,"context_line":"        port_id \u003d self.neutron.list_ports("},{"line_number":157,"context_line":"            is_admin\u003dFalse,"},{"line_number":158,"context_line":"            **{\u0027device_id\u0027: self.server[\u0027id\u0027]})[\u0027ports\u0027][0][\u0027id\u0027]"},{"line_number":159,"context_line":"        self.neutron.update_port(port_id, {\u0027port\u0027: {"},{"line_number":160,"context_line":"            \u0027binding:vif_type\u0027: \u0027vhostuser\u0027,"},{"line_number":161,"context_line":"            \u0027binding:vif_details\u0027: {"},{"line_number":162,"context_line":"                \u0027vhostuser_ovs_plug\u0027: True,"},{"line_number":163,"context_line":"                \u0027vhostuser_socket\u0027: \u0027/tmp/vhu\u0027 + port_id[:11],"},{"line_number":164,"context_line":"                \u0027vhostuser_mode\u0027: \u0027server\u0027,"},{"line_number":165,"context_line":"            },"},{"line_number":166,"context_line":"        }})"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"        # Patch the source domain XMLDesc to include the driver element"},{"line_number":169,"context_line":"        # with tx_queue_size\u003d1024 as a real vhostuser domain would have."},{"line_number":170,"context_line":"        conn \u003d self.src.driver._host.get_connection()"},{"line_number":171,"context_line":"        dom \u003d conn.lookupByUUIDString(self.server[\u0027id\u0027])"},{"line_number":172,"context_line":"        original_xml_desc \u003d dom.XMLDesc"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"        def _xml_desc_with_queue_size(flags):"},{"line_number":175,"context_line":"            xml \u003d original_xml_desc(flags)"},{"line_number":176,"context_line":"            xml_doc \u003d etree.fromstring(xml.encode(\u0027utf-8\u0027))"},{"line_number":177,"context_line":"            for iface in xml_doc.findall(\u0027./devices/interface\u0027):"},{"line_number":178,"context_line":"                address \u003d iface.find(\u0027address\u0027)"},{"line_number":179,"context_line":"                if address is not None:"},{"line_number":180,"context_line":"                    driver \u003d etree.Element(\u0027driver\u0027)"},{"line_number":181,"context_line":"                    driver.set(\u0027name\u0027, \u0027vhost\u0027)"},{"line_number":182,"context_line":"                    driver.set(\u0027tx_queue_size\u0027, \u00271024\u0027)"},{"line_number":183,"context_line":"                    idx \u003d list(iface).index(address)"},{"line_number":184,"context_line":"                    iface.insert(idx, driver)"},{"line_number":185,"context_line":"            return etree.tostring(xml_doc, encoding\u003d\u0027unicode\u0027)"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"        self.useFixture(fixtures.MockPatchObject("},{"line_number":188,"context_line":"            dom, \u0027XMLDesc\u0027, side_effect\u003d_xml_desc_with_queue_size))"}],"source_content_type":"text/x-python","patch_set":10,"id":"57bd57a9_bfba5845","line":185,"range":{"start_line":153,"start_character":0,"end_line":185,"end_character":62},"updated":"2026-11-24 17:05:54.000000000","message":"the neutron fixture that nova has provdies addtional defautl prots for more advanced usecase\n\nhttps://github.com/openstack/nova/blob/18898d20148c48b4671dbae0a461d723859380c5/nova/tests/fixtures/neutron.py#L266-L298\n\nhttps://github.com/openstack/nova/blob/18898d20148c48b4671dbae0a461d723859380c5/nova/tests/fixtures/neutron.py#L357-L587\n\nwe also have a second lsightly more advance fixture in teh libvirt funcitonal tests\n\nhttps://github.com/openstack/nova/blob/18898d20148c48b4671dbae0a461d723859380c5/nova/tests/functional/libvirt/base.py#L360-L510\n\ni woudl prefer if you did this properly by eitehr exetned t that or calling\n\ncreate_port https://github.com/openstack/nova/blob/18898d20148c48b4671dbae0a461d723859380c5/nova/tests/functional/libvirt/base.py#L522-L552\n\nto creaate teh vhsot-userport and pass that into create server so the domain gets created properly in teh first palce\n\n\ntehre are some exampels of this btu this is proably the simpleest\n\nhttps://github.com/openstack/nova/blob/master/nova/tests/functional/test_ip_allocation.py#L29-L53","commit_id":"9a448fde280c3bcf593ec3d59488d3f887fd15e7"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"24b726f2a58fa0762781e3cf3b8c4c7460d8b850","unresolved":false,"context_lines":[{"line_number":150,"context_line":"        # port to vhostuser before migration. This simulates an OVS-DPDK"},{"line_number":151,"context_line":"        # deployment where tx_queue_size is relevant."},{"line_number":152,"context_line":"        self.server \u003d self._create_server(host\u003d\u0027src\u0027, networks\u003d\u0027auto\u0027)"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"        # Find the port ID attached to this instance and update it to"},{"line_number":155,"context_line":"        # vhostuser type so migration generates tx_queue_size in VIF config."},{"line_number":156,"context_line":"        port_id \u003d self.neutron.list_ports("},{"line_number":157,"context_line":"            is_admin\u003dFalse,"},{"line_number":158,"context_line":"            **{\u0027device_id\u0027: self.server[\u0027id\u0027]})[\u0027ports\u0027][0][\u0027id\u0027]"},{"line_number":159,"context_line":"        self.neutron.update_port(port_id, {\u0027port\u0027: {"},{"line_number":160,"context_line":"            \u0027binding:vif_type\u0027: \u0027vhostuser\u0027,"},{"line_number":161,"context_line":"            \u0027binding:vif_details\u0027: {"},{"line_number":162,"context_line":"                \u0027vhostuser_ovs_plug\u0027: True,"},{"line_number":163,"context_line":"                \u0027vhostuser_socket\u0027: \u0027/tmp/vhu\u0027 + port_id[:11],"},{"line_number":164,"context_line":"                \u0027vhostuser_mode\u0027: \u0027server\u0027,"},{"line_number":165,"context_line":"            },"},{"line_number":166,"context_line":"        }})"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"        # Patch the source domain XMLDesc to include the driver element"},{"line_number":169,"context_line":"        # with tx_queue_size\u003d1024 as a real vhostuser domain would have."},{"line_number":170,"context_line":"        conn \u003d self.src.driver._host.get_connection()"},{"line_number":171,"context_line":"        dom \u003d conn.lookupByUUIDString(self.server[\u0027id\u0027])"},{"line_number":172,"context_line":"        original_xml_desc \u003d dom.XMLDesc"},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"        def _xml_desc_with_queue_size(flags):"},{"line_number":175,"context_line":"            xml \u003d original_xml_desc(flags)"},{"line_number":176,"context_line":"            xml_doc \u003d etree.fromstring(xml.encode(\u0027utf-8\u0027))"},{"line_number":177,"context_line":"            for iface in xml_doc.findall(\u0027./devices/interface\u0027):"},{"line_number":178,"context_line":"                address \u003d iface.find(\u0027address\u0027)"},{"line_number":179,"context_line":"                if address is not None:"},{"line_number":180,"context_line":"                    driver \u003d etree.Element(\u0027driver\u0027)"},{"line_number":181,"context_line":"                    driver.set(\u0027name\u0027, \u0027vhost\u0027)"},{"line_number":182,"context_line":"                    driver.set(\u0027tx_queue_size\u0027, \u00271024\u0027)"},{"line_number":183,"context_line":"                    idx \u003d list(iface).index(address)"},{"line_number":184,"context_line":"                    iface.insert(idx, driver)"},{"line_number":185,"context_line":"            return etree.tostring(xml_doc, encoding\u003d\u0027unicode\u0027)"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"        self.useFixture(fixtures.MockPatchObject("},{"line_number":188,"context_line":"            dom, \u0027XMLDesc\u0027, side_effect\u003d_xml_desc_with_queue_size))"}],"source_content_type":"text/x-python","patch_set":10,"id":"71f17e58_b8969b1d","line":185,"range":{"start_line":153,"start_character":0,"end_line":185,"end_character":62},"in_reply_to":"57bd57a9_bfba5845","updated":"2026-11-26 17:59:33.000000000","message":"I changed to use flags, thanks, the tests look much simpler","commit_id":"9a448fde280c3bcf593ec3d59488d3f887fd15e7"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"e0545433057e647b0b3469fb93b5a5a279b8c8ac","unresolved":true,"context_lines":[{"line_number":261,"context_line":"        self.flags(tx_queue_size\u003dNone, group\u003d\u0027libvirt\u0027)"},{"line_number":262,"context_line":""},{"line_number":263,"context_line":"        self.server \u003d self._create_server(host\u003d\u0027src\u0027, networks\u003d\u0027auto\u0027)"},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"        # Find the port ID attached to this instance and update it to"},{"line_number":266,"context_line":"        # vhostuser type so migration generates tx_queue_size in VIF config."},{"line_number":267,"context_line":"        port_id \u003d self.neutron.list_ports("},{"line_number":268,"context_line":"            is_admin\u003dFalse,"},{"line_number":269,"context_line":"            **{\u0027device_id\u0027: self.server[\u0027id\u0027]})[\u0027ports\u0027][0][\u0027id\u0027]"},{"line_number":270,"context_line":"        self.neutron.update_port(port_id, {\u0027port\u0027: {"},{"line_number":271,"context_line":"            \u0027binding:vif_type\u0027: \u0027vhostuser\u0027,"},{"line_number":272,"context_line":"            \u0027binding:vif_details\u0027: {"},{"line_number":273,"context_line":"                \u0027vhostuser_ovs_plug\u0027: True,"},{"line_number":274,"context_line":"                \u0027vhostuser_socket\u0027: \u0027/tmp/vhu\u0027 + port_id[:11],"},{"line_number":275,"context_line":"                \u0027vhostuser_mode\u0027: \u0027server\u0027,"},{"line_number":276,"context_line":"            },"},{"line_number":277,"context_line":"        }})"},{"line_number":278,"context_line":""},{"line_number":279,"context_line":"        # The source domain has no driver element with queue_size (default"},{"line_number":280,"context_line":"        # fakelibvirt behavior - no driver element in NIC XML)."}],"source_content_type":"text/x-python","patch_set":10,"id":"e93d4601_0c2afd34","line":277,"range":{"start_line":264,"start_character":0,"end_line":277,"end_character":11},"updated":"2026-11-24 17:05:54.000000000","message":"same issue here and belwo do not fix up the xml create the port in the netuon fixture and pass the port in server create","commit_id":"9a448fde280c3bcf593ec3d59488d3f887fd15e7"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"24b726f2a58fa0762781e3cf3b8c4c7460d8b850","unresolved":false,"context_lines":[{"line_number":261,"context_line":"        self.flags(tx_queue_size\u003dNone, group\u003d\u0027libvirt\u0027)"},{"line_number":262,"context_line":""},{"line_number":263,"context_line":"        self.server \u003d self._create_server(host\u003d\u0027src\u0027, networks\u003d\u0027auto\u0027)"},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"        # Find the port ID attached to this instance and update it to"},{"line_number":266,"context_line":"        # vhostuser type so migration generates tx_queue_size in VIF config."},{"line_number":267,"context_line":"        port_id \u003d self.neutron.list_ports("},{"line_number":268,"context_line":"            is_admin\u003dFalse,"},{"line_number":269,"context_line":"            **{\u0027device_id\u0027: self.server[\u0027id\u0027]})[\u0027ports\u0027][0][\u0027id\u0027]"},{"line_number":270,"context_line":"        self.neutron.update_port(port_id, {\u0027port\u0027: {"},{"line_number":271,"context_line":"            \u0027binding:vif_type\u0027: \u0027vhostuser\u0027,"},{"line_number":272,"context_line":"            \u0027binding:vif_details\u0027: {"},{"line_number":273,"context_line":"                \u0027vhostuser_ovs_plug\u0027: True,"},{"line_number":274,"context_line":"                \u0027vhostuser_socket\u0027: \u0027/tmp/vhu\u0027 + port_id[:11],"},{"line_number":275,"context_line":"                \u0027vhostuser_mode\u0027: \u0027server\u0027,"},{"line_number":276,"context_line":"            },"},{"line_number":277,"context_line":"        }})"},{"line_number":278,"context_line":""},{"line_number":279,"context_line":"        # The source domain has no driver element with queue_size (default"},{"line_number":280,"context_line":"        # fakelibvirt behavior - no driver element in NIC XML)."}],"source_content_type":"text/x-python","patch_set":10,"id":"5e583d5f_dad687a7","line":277,"range":{"start_line":264,"start_character":0,"end_line":277,"end_character":11},"in_reply_to":"e93d4601_0c2afd34","updated":"2026-11-26 17:59:33.000000000","message":"Done","commit_id":"9a448fde280c3bcf593ec3d59488d3f887fd15e7"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"b45cbad054b0dedf46328d5dd0ec239006aa5b5f","unresolved":true,"context_lines":[{"line_number":325,"context_line":"        must still have queues\u003d4 to match the running VM\u0027s virtio device"},{"line_number":326,"context_line":"        options."},{"line_number":327,"context_line":"        \"\"\""},{"line_number":328,"context_line":"        # Create a flavor with multiqueue enabled and 4 vcpus"},{"line_number":329,"context_line":"        flavor \u003d self.api.post_flavor({"},{"line_number":330,"context_line":"            \u0027flavor\u0027: {"},{"line_number":331,"context_line":"                \u0027name\u0027: \u0027mq-flavor\u0027, \u0027ram\u0027: 512, \u0027vcpus\u0027: 4, \u0027disk\u0027: 1,"},{"line_number":332,"context_line":"            }"},{"line_number":333,"context_line":"        })"},{"line_number":334,"context_line":"        self.api.post_extra_spec("},{"line_number":335,"context_line":"    flavor[\u0027id\u0027], {"},{"line_number":336,"context_line":"        \u0027extra_specs\u0027: {"},{"line_number":337,"context_line":"            \u0027hw:vif_multiqueue_enabled\u0027: \u0027true\u0027}})"},{"line_number":338,"context_line":""},{"line_number":339,"context_line":"        # No max_queues limit on source → queues \u003d vcpus \u003d 4"},{"line_number":340,"context_line":"        self.flags(max_queues\u003dNone, group\u003d\u0027libvirt\u0027)"}],"source_content_type":"text/x-python","patch_set":11,"id":"002955ef_140dcaca","line":337,"range":{"start_line":328,"start_character":6,"end_line":337,"end_character":50},"updated":"2026-11-26 18:56:13.000000000","message":"this technially works but we have helper funciton to create flavors with extraspecs\n\nhttps://github.com/openstack/nova/blob/master/nova/tests/functional/integrated_helpers.py#L372\n\nyou should jsut use self._create_flavor here","commit_id":"8c219030b9b43e67d95db4012f93d3089a906483"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"b45cbad054b0dedf46328d5dd0ec239006aa5b5f","unresolved":true,"context_lines":[{"line_number":367,"context_line":"        max_queues is 0 (no limit), so _update_vif_xml would set queues\u003dvcpus."},{"line_number":368,"context_line":"        The destination XML must preserve the source\u0027s queues\u003d2."},{"line_number":369,"context_line":"        \"\"\""},{"line_number":370,"context_line":"        # Create a flavor with multiqueue enabled and 4 vcpus"},{"line_number":371,"context_line":"        flavor \u003d self.api.post_flavor({"},{"line_number":372,"context_line":"            \u0027flavor\u0027: {"},{"line_number":373,"context_line":"                \u0027name\u0027: \u0027mq-flavor2\u0027, \u0027ram\u0027: 512, \u0027vcpus\u0027: 4, \u0027disk\u0027: 1,"},{"line_number":374,"context_line":"            }"},{"line_number":375,"context_line":"        })"},{"line_number":376,"context_line":"        self.api.post_extra_spec("},{"line_number":377,"context_line":"    flavor[\u0027id\u0027], {"},{"line_number":378,"context_line":"        \u0027extra_specs\u0027: {"},{"line_number":379,"context_line":"            \u0027hw:vif_multiqueue_enabled\u0027: \u0027true\u0027}})"},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"        # Source has max_queues\u003d2 → queues \u003d min(2, 4) \u003d 2"},{"line_number":382,"context_line":"        self.flags(max_queues\u003d2, group\u003d\u0027libvirt\u0027)"}],"source_content_type":"text/x-python","patch_set":11,"id":"752d0d0c_a4e50dcf","line":379,"range":{"start_line":370,"start_character":4,"end_line":379,"end_character":50},"updated":"2026-11-26 18:56:13.000000000","message":"and here","commit_id":"8c219030b9b43e67d95db4012f93d3089a906483"}]}
