)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"5113785492037a6d1fc7393517928e57a1ad4a77","unresolved":true,"context_lines":[{"line_number":11,"context_line":"the injected rescue password but never attached to the rescued"},{"line_number":12,"context_line":"instance. The original, unmodified disk.config is attached instead,"},{"line_number":13,"context_line":"so the rescue password never reaches the guest. This affects both"},{"line_number":14,"context_line":"image-backed and volume-backed (BFV) instances."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"_get_stable_device_rescue_mapping() now replaces the disk.config"},{"line_number":17,"context_line":"entry with disk.config.rescue in the mapping, and"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"240862f9_c1905935","line":14,"updated":"2026-10-13 12:31:20.000000000","message":"sound like a valid bug to me.\n\nwith that said for a cloud with the metadta service deployed,\ndepenign on the contnet of the rescue image i would still expect it to get the password/ssh key form the metadata service\n\nbut yes if it primarily used the config drive it would have the original instance drvive.\n\nthis typicly would not be an issue as resuce is typiclly used by the same user that created so the origanl ssh key woudl have worked so this is easy to miss","commit_id":"04c7efa778fe2f97899191899d9a75387d57dbeb"},{"author":{"_account_id":39168,"name":"Nathan","display_name":"Nathan","email":"nathan.malo@ovhcloud.com","username":"na-te"},"change_message_id":"feeced2f4374f0ec03f84438b95b43d472082750","unresolved":true,"context_lines":[{"line_number":11,"context_line":"the injected rescue password but never attached to the rescued"},{"line_number":12,"context_line":"instance. The original, unmodified disk.config is attached instead,"},{"line_number":13,"context_line":"so the rescue password never reaches the guest. This affects both"},{"line_number":14,"context_line":"image-backed and volume-backed (BFV) instances."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"_get_stable_device_rescue_mapping() now replaces the disk.config"},{"line_number":17,"context_line":"entry with disk.config.rescue in the mapping, and"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"6dde6c55_0125ee59","line":14,"in_reply_to":"240862f9_c1905935","updated":"2026-10-13 15:32:51.000000000","message":"Yes I agree.\n\nFrom a security perspective, personally, I prefer to have the rescue password attached to the VM via configdrive instead of the metadata service that is more widely accessible across tenants.","commit_id":"04c7efa778fe2f97899191899d9a75387d57dbeb"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"ddf5a69c8e9e0e3095751b0ba132f50f02ebe7e6","unresolved":false,"context_lines":[{"line_number":11,"context_line":"the injected rescue password but never attached to the rescued"},{"line_number":12,"context_line":"instance. The original, unmodified disk.config is attached instead,"},{"line_number":13,"context_line":"so the rescue password never reaches the guest. This affects both"},{"line_number":14,"context_line":"image-backed and volume-backed (BFV) instances."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"_get_stable_device_rescue_mapping() now replaces the disk.config"},{"line_number":17,"context_line":"entry with disk.config.rescue in the mapping, and"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"f098ab4a_1e8bbd6b","line":14,"in_reply_to":"6dde6c55_0125ee59","updated":"2026-10-22 13:19:24.000000000","message":"the config drive is not really any more secure then the metadata service.\n\nsince access to that is mediated by neutron and nova based on the vm mac. a shared secrete and other security messuers.\n\nits not posisbel for a vm to retive a diffent vms metadta entries.\n\nif it was you woudl have a sever secuirty issue in your cloud.","commit_id":"04c7efa778fe2f97899191899d9a75387d57dbeb"}],"/PATCHSET_LEVEL":[{"author":{"_account_id":39168,"name":"Nathan","display_name":"Nathan","email":"nathan.malo@ovhcloud.com","username":"na-te"},"change_message_id":"1518d94d1f1eb8f0c2ecbfed4ccfed9258350873","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"d068710e_4ca1232c","updated":"2026-10-13 08:57:52.000000000","message":"Dear nova-core leaders,\n\nCan you review my patch that would fix the use of device.config generated for rescue when using stable device rescue ?\n\nIt would be much appreciated !\n\nThanks for your help !","commit_id":"04c7efa778fe2f97899191899d9a75387d57dbeb"},{"author":{"_account_id":39168,"name":"Nathan","display_name":"Nathan","email":"nathan.malo@ovhcloud.com","username":"na-te"},"change_message_id":"21be9937963685922f1e98fd502ccc7775b30ce0","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"3405e4f5_9a3fabb9","updated":"2026-10-09 06:04:08.000000000","message":"recheck","commit_id":"04c7efa778fe2f97899191899d9a75387d57dbeb"},{"author":{"_account_id":39168,"name":"Nathan","display_name":"Nathan","email":"nathan.malo@ovhcloud.com","username":"na-te"},"change_message_id":"66574ed3dd547a4eea71e3ccfca48bf037a33462","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"bb2e340a_2dd4ddc1","updated":"2026-10-08 14:40:40.000000000","message":"recheck","commit_id":"04c7efa778fe2f97899191899d9a75387d57dbeb"},{"author":{"_account_id":39168,"name":"Nathan","display_name":"Nathan","email":"nathan.malo@ovhcloud.com","username":"na-te"},"change_message_id":"d07272bd1696f54596efd1fda636acad91c6cee5","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"fd6b6bf9_3555094a","updated":"2026-10-09 08:32:59.000000000","message":"recheck","commit_id":"04c7efa778fe2f97899191899d9a75387d57dbeb"},{"author":{"_account_id":39168,"name":"Nathan","display_name":"Nathan","email":"nathan.malo@ovhcloud.com","username":"na-te"},"change_message_id":"79b323f8d7e1ebce2786f2ce471b2e6f956e4ea6","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":2,"id":"f1b6908a_bc57a3c9","updated":"2026-10-15 17:08:34.000000000","message":"I\u0027ve updated the patch according to your suggestions about tests for force_config_drive.\n\nCould I have your review again ?\n\nThanks for your help","commit_id":"d2da6d3c0b64530010f66dfed4892d5a49783d75"},{"author":{"_account_id":39168,"name":"Nathan","display_name":"Nathan","email":"nathan.malo@ovhcloud.com","username":"na-te"},"change_message_id":"482ec3f77b4b5a691d27d30be04f50f58615643b","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"13bca317_973d713c","updated":"2026-10-16 07:31:57.000000000","message":"recheck","commit_id":"d2da6d3c0b64530010f66dfed4892d5a49783d75"},{"author":{"_account_id":39168,"name":"Nathan","display_name":"Nathan","email":"nathan.malo@ovhcloud.com","username":"na-te"},"change_message_id":"feeced2f4374f0ec03f84438b95b43d472082750","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"725f7cd3_4341060e","updated":"2026-10-13 15:32:51.000000000","message":"recheck","commit_id":"d2da6d3c0b64530010f66dfed4892d5a49783d75"},{"author":{"_account_id":9816,"name":"Takashi Kajinami","email":"kajinamit@oss.nttdata.com","username":"kajinamit"},"change_message_id":"8590b69ec33ddbd95a1e35c7e59f6b6d25901077","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"e39ca397_7d8b7d7f","in_reply_to":"f1b6908a_bc57a3c9","updated":"2026-10-29 14:02:22.000000000","message":"Done","commit_id":"d2da6d3c0b64530010f66dfed4892d5a49783d75"},{"author":{"_account_id":9816,"name":"Takashi Kajinami","email":"kajinamit@oss.nttdata.com","username":"kajinamit"},"change_message_id":"5e075c860d121bc25f87ae4a680e9abe5f7a3c63","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"736f2d8a_f6059ed3","updated":"2026-10-28 16:59:43.000000000","message":"Leaving one suggestion which is not a blocker. We can probably fix that in follow-up.","commit_id":"7d18780c4359259697c572522c29e524b6b8db57"},{"author":{"_account_id":39168,"name":"Nathan","display_name":"Nathan","email":"nathan.malo@ovhcloud.com","username":"na-te"},"change_message_id":"d08968fa9838dabeac72ec805b1edd60c2bd4404","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"866b611b_47bee12e","updated":"2026-10-23 12:38:44.000000000","message":"Thanks for the review !","commit_id":"7d18780c4359259697c572522c29e524b6b8db57"},{"author":{"_account_id":39168,"name":"Nathan","display_name":"Nathan","email":"nathan.malo@ovhcloud.com","username":"na-te"},"change_message_id":"e88c850c7c7855120f86065df27455874f39d50f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":4,"id":"490d9a06_c7a47747","updated":"2026-10-23 14:58:03.000000000","message":"recheck","commit_id":"7d18780c4359259697c572522c29e524b6b8db57"},{"author":{"_account_id":9816,"name":"Takashi Kajinami","email":"kajinamit@oss.nttdata.com","username":"kajinamit"},"change_message_id":"2821cf7de6fc732f13503869ee4c44be9d0b35fa","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"9136a68e_5d60503e","updated":"2026-10-29 14:02:14.000000000","message":"Thanks !","commit_id":"0eea60052aa7ad899f646e6fd54ea4e89404eadc"}],"nova/tests/unit/virt/libvirt/test_blockinfo.py":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"5113785492037a6d1fc7393517928e57a1ad4a77","unresolved":true,"context_lines":[{"line_number":513,"context_line":"        }"},{"line_number":514,"context_line":"        self._test_get_disk_mapping_stable_rescue("},{"line_number":515,"context_line":"            rescue_props, expected, block_info)"},{"line_number":516,"context_line":""},{"line_number":517,"context_line":"    def test_get_disk_mapping_stable_rescue_virtio_disk_with_everything(self):"},{"line_number":518,"context_line":"        \"\"\"Assert the disk mapping when rescuing using a virtio disk with"},{"line_number":519,"context_line":"           volumes, ephemerals and swap also attached to the instance."}],"source_content_type":"text/x-python","patch_set":1,"id":"97d33a61_20b393a5","line":516,"updated":"2026-10-13 12:31:20.000000000","message":"i wonder if we should also test with setting the force config drive config option rather then just the enableing config drive on the original instance as an api parmater.\n\nhttps://docs.openstack.org/nova/latest/configuration/config.html#DEFAULT.force_config_drive","commit_id":"04c7efa778fe2f97899191899d9a75387d57dbeb"},{"author":{"_account_id":39168,"name":"Nathan","display_name":"Nathan","email":"nathan.malo@ovhcloud.com","username":"na-te"},"change_message_id":"feeced2f4374f0ec03f84438b95b43d472082750","unresolved":true,"context_lines":[{"line_number":513,"context_line":"        }"},{"line_number":514,"context_line":"        self._test_get_disk_mapping_stable_rescue("},{"line_number":515,"context_line":"            rescue_props, expected, block_info)"},{"line_number":516,"context_line":""},{"line_number":517,"context_line":"    def test_get_disk_mapping_stable_rescue_virtio_disk_with_everything(self):"},{"line_number":518,"context_line":"        \"\"\"Assert the disk mapping when rescuing using a virtio disk with"},{"line_number":519,"context_line":"           volumes, ephemerals and swap also attached to the instance."}],"source_content_type":"text/x-python","patch_set":1,"id":"c4d40f67_38567c80","line":516,"in_reply_to":"97d33a61_20b393a5","updated":"2026-10-13 15:32:51.000000000","message":"On the openstack deployments I manage, we have force_config_drive set to true.\nI uploaded new tests to support the force_config_drive scenario.","commit_id":"04c7efa778fe2f97899191899d9a75387d57dbeb"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"ddf5a69c8e9e0e3095751b0ba132f50f02ebe7e6","unresolved":false,"context_lines":[{"line_number":513,"context_line":"        }"},{"line_number":514,"context_line":"        self._test_get_disk_mapping_stable_rescue("},{"line_number":515,"context_line":"            rescue_props, expected, block_info)"},{"line_number":516,"context_line":""},{"line_number":517,"context_line":"    def test_get_disk_mapping_stable_rescue_virtio_disk_with_everything(self):"},{"line_number":518,"context_line":"        \"\"\"Assert the disk mapping when rescuing using a virtio disk with"},{"line_number":519,"context_line":"           volumes, ephemerals and swap also attached to the instance."}],"source_content_type":"text/x-python","patch_set":1,"id":"72855bc0_98c31f21","line":516,"in_reply_to":"c4d40f67_38567c80","updated":"2026-10-22 13:19:24.000000000","message":"Done","commit_id":"04c7efa778fe2f97899191899d9a75387d57dbeb"}],"nova/tests/unit/virt/libvirt/test_driver.py":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"ddf5a69c8e9e0e3095751b0ba132f50f02ebe7e6","unresolved":true,"context_lines":[{"line_number":28501,"context_line":""},{"line_number":28502,"context_line":"    @mock.patch(\u0027nova.virt.configdrive.ConfigDriveBuilder._make_iso9660\u0027)"},{"line_number":28503,"context_line":"    def test_rescue_stable_device_bfv_with_config_drive(self, mock_mkisofs):"},{"line_number":28504,"context_line":"        \"\"\"Regression test for bug #1597669\u0027s BFV/stable-rescue equivalent:"},{"line_number":28505,"context_line":"        disk.config.rescue was created but never attached, so the injected"},{"line_number":28506,"context_line":"        rescue password never reached the guest."},{"line_number":28507,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"f2e72664_17a4b51b","line":28504,"updated":"2026-10-22 13:19:24.000000000","message":"nit: we generally prefer to have functional regresion tests\n\nhttps://github.com/openstack/nova/tree/master/nova/tests/functional/regressions\n\nand the patter we normally take is to write a test that passes and asserts the broken behvior and hten have a second patch on top that fixes the issue and update the tests so you can clearly demondstate the broken behvior and then the fixed bevchior\n\nwe do not squash or combine the 2 pathces into one review becasue it prevents merging broken test that alwasy pass.\n\nin this case we may be ok with a unit test  but unit test genrelaly shoudl aovid testing end to end side effect fo booting a vm\n\nthat what functional test are desinged for.\n\nhere is an example regressioon test i created to test config driver functionalyt in the past.\n\nhttps://github.com/openstack/nova/blob/master/nova/tests/functional/regressions/test_bug_1835822.py\n\ni think you could copy that for your bug and modify it relatively easily to test this.\n\nnote that since this is s\u003dlibvirt specific you woudl actully need to use a differnt baseclase that sets up the libvirt dirvcer for you\n\nhttps://github.com/openstack/nova/blob/3fd760b416ecc09230b540a90d4265995d96264e/nova/tests/functional/regressions/test_bug_1980720.py#L24\n\nor manually cofnig it to properly repodcue it\n\nhttps://github.com/openstack/nova/blob/3fd760b416ecc09230b540a90d4265995d96264e/nova/tests/functional/regressions/test_bug_1595962.py#L39-L67\n\nthere are lots of exmaple where we get the xml for the guest\n\nhttps://github.com/openstack/nova/blob/3fd760b416ecc09230b540a90d4265995d96264e/nova/tests/functional/regressions/test_bug_2139351.py#L91-L94\n\nor get the bdms for the instance\nhttps://github.com/openstack/nova/blob/3fd760b416ecc09230b540a90d4265995d96264e/nova/tests/functional/regressions/test_bug_1937375.py#L71\n\nso you shoudl be able to eassily assert the behavior you expect\n\nthe main diffent between our unit and fucntional test is our fucntional test provide fixture to mock at teh edges i.e. mock actully talking to libvirt with a fixture that emulates it, in the funcional test we minimse mocking actul nova code and drive the operation via the api with a realy db provide by sqlight and an in memory message buss replacing rabbit.\n\nso efectily your runign a really nova deployment wiht all the pices which is why we stongly prefer using regression fucntional test not unit test for bug that happen after multipel life cycle operations like this.\n\n\nwould you mind add a commit before this that add a fucntional requestion test showing that the wrong disk was uesd and then rebase this commit on top with an update to show it now updates it properly keeping both commits in the git history.","commit_id":"d2da6d3c0b64530010f66dfed4892d5a49783d75"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"b5265250af2ee48afe1099d8df1b3069a9218c4a","unresolved":false,"context_lines":[{"line_number":28501,"context_line":""},{"line_number":28502,"context_line":"    @mock.patch(\u0027nova.virt.configdrive.ConfigDriveBuilder._make_iso9660\u0027)"},{"line_number":28503,"context_line":"    def test_rescue_stable_device_bfv_with_config_drive(self, mock_mkisofs):"},{"line_number":28504,"context_line":"        \"\"\"Regression test for bug #1597669\u0027s BFV/stable-rescue equivalent:"},{"line_number":28505,"context_line":"        disk.config.rescue was created but never attached, so the injected"},{"line_number":28506,"context_line":"        rescue password never reached the guest."},{"line_number":28507,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"ea997b12_486c4475","line":28504,"in_reply_to":"f2e72664_17a4b51b","updated":"2026-10-23 12:36:13.000000000","message":"Done","commit_id":"d2da6d3c0b64530010f66dfed4892d5a49783d75"},{"author":{"_account_id":39168,"name":"Nathan","display_name":"Nathan","email":"nathan.malo@ovhcloud.com","username":"na-te"},"change_message_id":"d08968fa9838dabeac72ec805b1edd60c2bd4404","unresolved":false,"context_lines":[{"line_number":28501,"context_line":""},{"line_number":28502,"context_line":"    @mock.patch(\u0027nova.virt.configdrive.ConfigDriveBuilder._make_iso9660\u0027)"},{"line_number":28503,"context_line":"    def test_rescue_stable_device_bfv_with_config_drive(self, mock_mkisofs):"},{"line_number":28504,"context_line":"        \"\"\"Regression test for bug #1597669\u0027s BFV/stable-rescue equivalent:"},{"line_number":28505,"context_line":"        disk.config.rescue was created but never attached, so the injected"},{"line_number":28506,"context_line":"        rescue password never reached the guest."},{"line_number":28507,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"eb963ebb_e9957d73","line":28504,"in_reply_to":"f2e72664_17a4b51b","updated":"2026-10-23 12:38:44.000000000","message":"Thanks for the clear instructions !\n\nI\u0027ve added a regression test as you said.\n\nI\u0027ve not touched the unit tests, tell me if you want me to modify them.","commit_id":"d2da6d3c0b64530010f66dfed4892d5a49783d75"}],"releasenotes/notes/fix-stable-rescue-config-drive-d82b2f60ebf44c48.yaml":[{"author":{"_account_id":9816,"name":"Takashi Kajinami","email":"kajinamit@oss.nttdata.com","username":"kajinamit"},"change_message_id":"5e075c860d121bc25f87ae4a680e9abe5f7a3c63","unresolved":true,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Fixed a bug where, when using Stable Device Rescue (microversion 2.87+)"},{"line_number":5,"context_line":"    on an instance with a config drive, the regenerated ``disk.config.rescue``"},{"line_number":6,"context_line":"    config drive containing the injected rescue password was created but"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"d9e3a51f_978f4e97","line":3,"range":{"start_line":3,"start_character":4,"end_line":3,"end_character":5},"updated":"2026-10-28 16:59:43.000000000","message":"Can you add a link to the bug (see the existing release notes) to the launchpad bug as a reference ?","commit_id":"7d18780c4359259697c572522c29e524b6b8db57"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"b7ee0b25b17ce7c393f2cb4446fc0ef88d51ceef","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Fixed a bug where, when using Stable Device Rescue (microversion 2.87+)"},{"line_number":5,"context_line":"    on an instance with a config drive, the regenerated ``disk.config.rescue``"},{"line_number":6,"context_line":"    config drive containing the injected rescue password was created but"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3dc7e601_aa6499ea","line":3,"range":{"start_line":3,"start_character":4,"end_line":3,"end_character":5},"in_reply_to":"d9e3a51f_978f4e97","updated":"2026-10-29 12:19:02.000000000","message":"Done","commit_id":"7d18780c4359259697c572522c29e524b6b8db57"},{"author":{"_account_id":39168,"name":"Nathan","display_name":"Nathan","email":"nathan.malo@ovhcloud.com","username":"na-te"},"change_message_id":"0231c48cb8b0406775421b374d4ea5878238f5c6","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Fixed a bug where, when using Stable Device Rescue (microversion 2.87+)"},{"line_number":5,"context_line":"    on an instance with a config drive, the regenerated ``disk.config.rescue``"},{"line_number":6,"context_line":"    config drive containing the injected rescue password was created but"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"b971882e_a73e70ca","line":3,"range":{"start_line":3,"start_character":4,"end_line":3,"end_character":5},"in_reply_to":"d9e3a51f_978f4e97","updated":"2026-11-03 15:59:04.000000000","message":"This is done !","commit_id":"7d18780c4359259697c572522c29e524b6b8db57"}]}
