)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":5112,"name":"Seyeong Kim","email":"seyeong.kim@canonical.com","username":"xtrusia"},"change_message_id":"ce2001adbb8cac81a2e56a09f920adde3efef90c","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"aa2a4db8_57f6f5f1","updated":"2026-05-28 08:25:21.000000000","message":"Hey Joshua, and I think you can create zaza func test PR for this config option and run func test(zaza) with the PR.","commit_id":"73798954b4e63e7f8e3bc95f45c3542aabbed78d"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"e6582f7bef47def64e0a819518df9d2bbcd22d9b","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"40827ec8_ee835ff2","updated":"2026-05-27 07:23:00.000000000","message":"self-test result - https://paste.ubuntu.com/p/NHVgkygXN3/","commit_id":"73798954b4e63e7f8e3bc95f45c3542aabbed78d"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"fb8f0a1e7b89f61930073de76ea2e97f995ec08b","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"64e2f1e3_dfdf5e59","updated":"2026-05-07 08:27:48.000000000","message":"wait for self-test","commit_id":"73798954b4e63e7f8e3bc95f45c3542aabbed78d"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"c882c257890894183d0a07b61bb28c36bcbbd72e","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"ba48a4d2_787112c5","updated":"2026-05-07 08:26:56.000000000","message":"wait for self-test","commit_id":"73798954b4e63e7f8e3bc95f45c3542aabbed78d"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"093d4b9eba07e9283e5247c85ad4d816f950d4b3","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"3f199d9f_37234838","in_reply_to":"aa2a4db8_57f6f5f1","updated":"2026-06-11 10:12:30.000000000","message":"Hi seyeong, following up on our offline chat, we agreed to skip the permanent zaza test for this change. Since the existing unit tests already cover the core logic, adding a permanent encrypted bundle (need to modify the current default zaza bundle file to add \u0027encrypt\u003dtrue\u0027 and relation \u0027vault:secrets -\u003e nova-compute:secrets-storage\u0027) would introduce unnecessary maintenance overhead for this specific config option.\n\nFor reference, there are the on-off functional tests ran:\n1, zaza test - https://paste.ubuntu.com/p/kmrymJMcV6/\n2, real env test - https://paste.ubuntu.com/p/NHVgkygXN3/\n\nThanks for the review.","commit_id":"73798954b4e63e7f8e3bc95f45c3542aabbed78d"},{"author":{"_account_id":5112,"name":"Seyeong Kim","email":"seyeong.kim@canonical.com","username":"xtrusia"},"change_message_id":"9b44e2c4c79e8392bcea44cb99c3555f6f778ac3","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"dd3bc656_4040df4f","updated":"2026-06-12 07:57:31.000000000","message":"Confirmed by testing that this change addresses the issue non-destructively.\nLGTM once Joshua resolves the test log formatting redundancy.","commit_id":"2047b0ca101869c45c33740d9ba402d8fd2591bb"},{"author":{"_account_id":5112,"name":"Seyeong Kim","email":"seyeong.kim@canonical.com","username":"xtrusia"},"change_message_id":"c0958ddb2f5f54c009107b7c0a50ff443bf33791","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"7dfa8ad7_e333168f","updated":"2026-06-17 02:53:38.000000000","message":"LGTM. tested this locally as well.","commit_id":"043a66830cf85ab24ca7f81312a36037af0f22f9"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"392b53edde67b32ea58660cabbd34c8aea6671fb","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"78edef87_fbe39b44","updated":"2026-06-16 07:41:16.000000000","message":"seyeong, I\u0027ve resolved the test log formatting redundancy, thanks for the review","commit_id":"043a66830cf85ab24ca7f81312a36037af0f22f9"},{"author":{"_account_id":5112,"name":"Seyeong Kim","email":"seyeong.kim@canonical.com","username":"xtrusia"},"change_message_id":"e00a903b92642f5a6152679b3991e5ba5c3103f6","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"cee678e3_1cbadcd2","updated":"2026-06-23 13:07:50.000000000","message":"zaza test full\n\nhttps://pastebin.ubuntu.com/p/9cJxYxvDcC/\n\nTest results for charm nova-compute functional tests @ commit 043a668:\n  * noble-caracal: SUCCESS","commit_id":"043a66830cf85ab24ca7f81312a36037af0f22f9"},{"author":{"_account_id":5112,"name":"Seyeong Kim","email":"seyeong.kim@canonical.com","username":"xtrusia"},"change_message_id":"1b01b4dd920d24899fc156eb35102f21ff86413d","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":6,"id":"42c8e837_b72e0a6a","updated":"2026-08-04 07:41:59.000000000","message":"updated some comments.\n\nAlso I took another look at this, since a finite timeout is not fully deterministic.\nIt\u0027s just an idea for now but.. \nIn theory, we could restructure the startup path as vaultlocker decrypt succeeds → mapper .device active → native systemd .mount active → optional findmnt verification → nova-compute starts.\nHowever, that would require a much larger code change, so the configurable timeout seems like the better pragmatic fix for now and I\u0027m not sure it is ok for charms .","commit_id":"3570d4d7a5cd71134c94d40fb4a1f0459deeb426"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"26ac428c5967740f97db0e4b76f7bbed40ca3f9a","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":6,"id":"93e4b094_d31d4403","in_reply_to":"42c8e837_b72e0a6a","updated":"2026-08-11 07:14:23.000000000","message":"Agreed. A finite timeout is not fully deterministic; a fully dependency-driven startup chain would be more robust. However, it would require broader changes across vaultlocker, systemd mount ordering, and nova-compute startup handling. This patch therefore keeps the configurable device timeout as a scoped, backward-compatible mitigation. The existing vaultlocker systemd requirement is preserved, and I confirmed the timeout update works on a live deployment.","commit_id":"3570d4d7a5cd71134c94d40fb4a1f0459deeb426"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"26ac428c5967740f97db0e4b76f7bbed40ca3f9a","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":7,"id":"0265601e_dc4e199e","updated":"2026-08-11 07:14:23.000000000","message":"self-test result for patchset 7 - https://pastebin.com/G3xVn4AE","commit_id":"90de0dcf820bc316fb427565363dc96603c0b65f"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"4a6d82574f28a6955a0353aa1f635fd43d722808","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":8,"id":"20b39daa_2f03151c","updated":"2026-10-09 07:20:21.000000000","message":"Hi Guillaume , Felipe , Could you also help review this? It\u0027s impacting the Prodstack 8 deployment today. Appreciate your help!","commit_id":"3d5d9a4065c9a8718bb7d18a3c8330e2c7839a5b"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"705332db4512137f22b448ca61ee658f73bcacde","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":8,"id":"04de97c0_8c981d0e","updated":"2026-09-23 07:32:42.000000000","message":"recheck","commit_id":"3d5d9a4065c9a8718bb7d18a3c8330e2c7839a5b"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"c08a7ef2e9db34c3c2726e2e114aaeb29b0753a2","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":8,"id":"faa72a6b_87a3854e","updated":"2026-09-22 03:42:06.000000000","message":"zaza test result this time is below:\n\n$ grep -n -A6 -B3 \u0027test_305_encrypted_ephemeral_fstab_options\u0027 /tmp/tmp.8Lq98I4MHG-charm-func-test-results; grep -n -A3 -B3 \u0027Ran 8 tests in 340.647s\u0027 /tmp/tmp.8Lq98I4MHG-charm-func-test-results; grep -r \u0027noble-caracal\u0027 /tmp/tmp.8Lq98I4MHG-charm-func-test-results\n508-2026-09-22 07:26:47 [WARNING] ObjectRetrierWraps: wrapping \u003cnovaclient.v2.client.Client object at 0x7f948194a5f0\u003e\n509-2026-09-22 07:26:56 [INFO] using proxies: {\u0027http\u0027: \u0027\u0027, \u0027https\u0027: \u0027\u0027, \u0027no_proxy\u0027: \u0027\u0027}\n510-2026-09-22 07:27:01 [INFO] looking at application: {\u0027name\u0027: \u0027keystone\u0027, \u0027type\u0027: {\u0027pkg\u0027: \u0027keystone\u0027, \u0027origin_setting\u0027: \u0027openstack-origin\u0027}}\n511:2026-09-22 07:27:02 [INFO] test_305_encrypted_ephemeral_fstab_options (zaza.openstack.charm_tests.nova.tests.NovaCompute)\n512-2026-09-22 07:27:02 [INFO] Verify encrypted ephemeral storage has a device timeout.\n513-2026-09-22 07:27:02 [INFO]  ... \n514-2026-09-22 07:27:03 [INFO] ok\n515-2026-09-22 07:27:03 [INFO] test_311_pci_alias_config_compute (zaza.openstack.charm_tests.nova.tests.NovaCompute)\n516-2026-09-22 07:27:03 [INFO] Verify that the pci alias data is rendered properly.\n517-2026-09-22 07:27:03 [INFO]  ... \n712-2026-09-22 07:32:00 [INFO] Checking default network is absent on unit nova-compute/0\n713-2026-09-22 07:32:01 [INFO] ok\n714-2026-09-22 07:32:01 [INFO] ----------------------------------------------------------------------\n715:2026-09-22 07:32:01 [INFO] Ran 8 tests in 340.647s\n716-2026-09-22 07:32:01 [INFO] OK\n717-2026-09-22 07:32:01 [INFO] ## Running Test zaza.openstack.charm_tests.nova.tests.SecurityTests ##\n718-2026-09-22 07:32:01 [WARNING] unexpected facade SecretsRevoker received from the controller\n  * noble-caracal: SUCCESS","commit_id":"3d5d9a4065c9a8718bb7d18a3c8330e2c7839a5b"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"00a06263560b9c1cc348669996b3d74fbc5311e0","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":8,"id":"7160fa89_1fc18ea5","in_reply_to":"faa72a6b_87a3854e","updated":"2026-10-13 04:16:19.000000000","message":"2026-10-11 23:25:47 [INFO] test_305_encrypted_ephemeral_fstab_options (zaza.openstack.charm_tests.nova.tests.NovaCompute)\n2026-10-11 23:25:47 [INFO] Verify encrypted ephemeral storage has a device timeout.\n\nfull zaza test log - https://pastebin.com/kjMZmvYk","commit_id":"3d5d9a4065c9a8718bb7d18a3c8330e2c7839a5b"},{"author":{"_account_id":5112,"name":"Seyeong Kim","email":"seyeong.kim@canonical.com","username":"xtrusia"},"change_message_id":"553688d425e709a0a399e6578816529a3fc2d1fd","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":9,"id":"3261ddc4_eeea169b","updated":"2026-10-13 03:35:34.000000000","message":"LGTM","commit_id":"fd09d35970d272a8576c527d18c108436c66caa6"},{"author":{"_account_id":5112,"name":"Seyeong Kim","email":"seyeong.kim@canonical.com","username":"xtrusia"},"change_message_id":"8cfe0ef5282304076ea2c28c91faebfb44e33d50","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":9,"id":"154f3d17_d68f3040","in_reply_to":"3261ddc4_eeea169b","updated":"2026-10-13 03:35:46.000000000","message":"Done","commit_id":"fd09d35970d272a8576c527d18c108436c66caa6"}],"hooks/nova_compute_utils.py":[{"author":{"_account_id":5112,"name":"Seyeong Kim","email":"seyeong.kim@canonical.com","username":"xtrusia"},"change_message_id":"79154ef5c031fdc40f3c5008b8de225d36556072","unresolved":true,"context_lines":[{"line_number":1232,"context_line":"            \"nofail\","},{"line_number":1233,"context_line":"            (\"x-systemd.requires\u003d\""},{"line_number":1234,"context_line":"             \"vaultlocker-decrypt@{uuid}.service\".format(uuid\u003ddev_uuid)),"},{"line_number":1235,"context_line":"            (\"x-systemd.device-timeout\u003d{timeout}\""},{"line_number":1236,"context_line":"             .format(timeout\u003d\u0027{}s\u0027.format(device_timeout))),"},{"line_number":1237,"context_line":"            \"comment\u003dvaultlocker\","},{"line_number":1238,"context_line":"        ])"},{"line_number":1239,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"e9ee6886_f2aedca2","line":1236,"range":{"start_line":1235,"start_character":0,"end_line":1236,"end_character":60},"updated":"2026-05-28 04:12:10.000000000","message":"nit: We may simplify this formatting.\n\n\"x-systemd.device-timeout\u003d{}s\".format(device_timeout)","commit_id":"73798954b4e63e7f8e3bc95f45c3542aabbed78d"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"392b53edde67b32ea58660cabbd34c8aea6671fb","unresolved":false,"context_lines":[{"line_number":1232,"context_line":"            \"nofail\","},{"line_number":1233,"context_line":"            (\"x-systemd.requires\u003d\""},{"line_number":1234,"context_line":"             \"vaultlocker-decrypt@{uuid}.service\".format(uuid\u003ddev_uuid)),"},{"line_number":1235,"context_line":"            (\"x-systemd.device-timeout\u003d{timeout}\""},{"line_number":1236,"context_line":"             .format(timeout\u003d\u0027{}s\u0027.format(device_timeout))),"},{"line_number":1237,"context_line":"            \"comment\u003dvaultlocker\","},{"line_number":1238,"context_line":"        ])"},{"line_number":1239,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"ac81b315_c57d92e6","line":1236,"range":{"start_line":1235,"start_character":0,"end_line":1236,"end_character":60},"in_reply_to":"08b4d1f9_886a7663","updated":"2026-06-16 07:41:16.000000000","message":"done","commit_id":"73798954b4e63e7f8e3bc95f45c3542aabbed78d"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"093d4b9eba07e9283e5247c85ad4d816f950d4b3","unresolved":false,"context_lines":[{"line_number":1232,"context_line":"            \"nofail\","},{"line_number":1233,"context_line":"            (\"x-systemd.requires\u003d\""},{"line_number":1234,"context_line":"             \"vaultlocker-decrypt@{uuid}.service\".format(uuid\u003ddev_uuid)),"},{"line_number":1235,"context_line":"            (\"x-systemd.device-timeout\u003d{timeout}\""},{"line_number":1236,"context_line":"             .format(timeout\u003d\u0027{}s\u0027.format(device_timeout))),"},{"line_number":1237,"context_line":"            \"comment\u003dvaultlocker\","},{"line_number":1238,"context_line":"        ])"},{"line_number":1239,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"08b4d1f9_886a7663","line":1236,"range":{"start_line":1235,"start_character":0,"end_line":1236,"end_character":60},"in_reply_to":"e9ee6886_f2aedca2","updated":"2026-06-11 10:12:30.000000000","message":"Thanks for the suggestion! I\u0027ll make sure to use this simpler formatting next time. I\u0027ll leave it as is this time.","commit_id":"73798954b4e63e7f8e3bc95f45c3542aabbed78d"},{"author":{"_account_id":6737,"name":"Edward Hope-Morley","email":"edward.hope-morley@canonical.com","username":"hopem"},"change_message_id":"cea17fc513f4626bd29af45374351d2e9cb08fda","unresolved":true,"context_lines":[{"line_number":1185,"context_line":"    if storage_configured:"},{"line_number":1186,"context_line":"        log(\"Ephemeral storage already configured, skipping\","},{"line_number":1187,"context_line":"            level\u003dDEBUG)"},{"line_number":1188,"context_line":"        if encrypt:"},{"line_number":1189,"context_line":"            update_encrypted_ephemeral_mount_options("},{"line_number":1190,"context_line":"                mountpoint,"},{"line_number":1191,"context_line":"                encrypted_ephemeral_device_timeout()"}],"source_content_type":"text/x-python","patch_set":3,"id":"2b63145c_4ce2e672","line":1188,"range":{"start_line":1188,"start_character":0,"end_line":1188,"end_character":19},"updated":"2026-07-06 11:52:57.000000000","message":"Does this also need to work when using barbican-vault (secrets-storage-relation)? In that case the encrypt config option is not set but we do use encrypted volumes. The functional tests run by the charms also never set this option so are not testing this code.","commit_id":"043a66830cf85ab24ca7f81312a36037af0f22f9"},{"author":{"_account_id":6737,"name":"Edward Hope-Morley","email":"edward.hope-morley@canonical.com","username":"hopem"},"change_message_id":"da5adc68bf2ebed3c64b51ab7158d018126291f5","unresolved":true,"context_lines":[{"line_number":1185,"context_line":"    if storage_configured:"},{"line_number":1186,"context_line":"        log(\"Ephemeral storage already configured, skipping\","},{"line_number":1187,"context_line":"            level\u003dDEBUG)"},{"line_number":1188,"context_line":"        if encrypt:"},{"line_number":1189,"context_line":"            update_encrypted_ephemeral_mount_options("},{"line_number":1190,"context_line":"                mountpoint,"},{"line_number":1191,"context_line":"                encrypted_ephemeral_device_timeout()"}],"source_content_type":"text/x-python","patch_set":3,"id":"da432127_860deef9","line":1188,"range":{"start_line":1188,"start_character":0,"end_line":1188,"end_character":19},"in_reply_to":"23b86f33_1bdc3377","updated":"2026-07-27 12:44:40.000000000","message":"hi joshua, thanks for updating the unit tests. Do you think it is worth adding a testing for this in https://github.com/openstack-charmers/zaza-openstack-tests/blob/master/zaza/openstack/charm_tests/nova/tests.py","commit_id":"043a66830cf85ab24ca7f81312a36037af0f22f9"},{"author":{"_account_id":6737,"name":"Edward Hope-Morley","email":"edward.hope-morley@canonical.com","username":"hopem"},"change_message_id":"8a29001964422831eb9e7740f07cc88932d9c1b1","unresolved":true,"context_lines":[{"line_number":1185,"context_line":"    if storage_configured:"},{"line_number":1186,"context_line":"        log(\"Ephemeral storage already configured, skipping\","},{"line_number":1187,"context_line":"            level\u003dDEBUG)"},{"line_number":1188,"context_line":"        if encrypt:"},{"line_number":1189,"context_line":"            update_encrypted_ephemeral_mount_options("},{"line_number":1190,"context_line":"                mountpoint,"},{"line_number":1191,"context_line":"                encrypted_ephemeral_device_timeout()"}],"source_content_type":"text/x-python","patch_set":3,"id":"6532e230_d9531941","line":1188,"range":{"start_line":1188,"start_character":0,"end_line":1188,"end_character":19},"in_reply_to":"2b63145c_4ce2e672","updated":"2026-07-06 11:53:33.000000000","message":"That should say the functional tests run by this charm.","commit_id":"043a66830cf85ab24ca7f81312a36037af0f22f9"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"5ef51e600148c2e21a6e898c6c8294db385dd5bf","unresolved":true,"context_lines":[{"line_number":1185,"context_line":"    if storage_configured:"},{"line_number":1186,"context_line":"        log(\"Ephemeral storage already configured, skipping\","},{"line_number":1187,"context_line":"            level\u003dDEBUG)"},{"line_number":1188,"context_line":"        if encrypt:"},{"line_number":1189,"context_line":"            update_encrypted_ephemeral_mount_options("},{"line_number":1190,"context_line":"                mountpoint,"},{"line_number":1191,"context_line":"                encrypted_ephemeral_device_timeout()"}],"source_content_type":"text/x-python","patch_set":3,"id":"23b86f33_1bdc3377","line":1188,"range":{"start_line":1188,"start_character":0,"end_line":1188,"end_character":19},"in_reply_to":"6532e230_d9531941","updated":"2026-07-17 04:17:19.000000000","message":"hi @edward.hope-morley@canonical.com , thanks for the review, I\u0027ve added the code to support barbian-vault, here is my test result - https://pastebin.com/aQ2gX2q5","commit_id":"043a66830cf85ab24ca7f81312a36037af0f22f9"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"7dd0f1fc990c1720b5e4a5ebd8480b44d606272a","unresolved":false,"context_lines":[{"line_number":1185,"context_line":"    if storage_configured:"},{"line_number":1186,"context_line":"        log(\"Ephemeral storage already configured, skipping\","},{"line_number":1187,"context_line":"            level\u003dDEBUG)"},{"line_number":1188,"context_line":"        if encrypt:"},{"line_number":1189,"context_line":"            update_encrypted_ephemeral_mount_options("},{"line_number":1190,"context_line":"                mountpoint,"},{"line_number":1191,"context_line":"                encrypted_ephemeral_device_timeout()"}],"source_content_type":"text/x-python","patch_set":3,"id":"349bd790_392f9bed","line":1188,"range":{"start_line":1188,"start_character":0,"end_line":1188,"end_character":19},"in_reply_to":"8fdbbb78_82ba8f61","updated":"2026-09-22 03:39:38.000000000","message":"Hi Ed @edward.hope-morley@canonical.com , thanks for the review. I\u0027ve set \u0027encrypt: true\u0027 in noble-caracal.yaml as default, and also add a zaza test - https://github.com/openstack-charmers/zaza-openstack-tests/pull/1439","commit_id":"043a66830cf85ab24ca7f81312a36037af0f22f9"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"26ac428c5967740f97db0e4b76f7bbed40ca3f9a","unresolved":false,"context_lines":[{"line_number":1185,"context_line":"    if storage_configured:"},{"line_number":1186,"context_line":"        log(\"Ephemeral storage already configured, skipping\","},{"line_number":1187,"context_line":"            level\u003dDEBUG)"},{"line_number":1188,"context_line":"        if encrypt:"},{"line_number":1189,"context_line":"            update_encrypted_ephemeral_mount_options("},{"line_number":1190,"context_line":"                mountpoint,"},{"line_number":1191,"context_line":"                encrypted_ephemeral_device_timeout()"}],"source_content_type":"text/x-python","patch_set":3,"id":"f0567d5a_8d3b3148","line":1188,"range":{"start_line":1188,"start_character":0,"end_line":1188,"end_character":19},"in_reply_to":"da432127_860deef9","updated":"2026-08-11 07:14:23.000000000","message":"Hi Ed, I also discussed this with Seyeong before, and we agreed not to add a permanent zaza test for this change. The relevant case is an upgrade of an already vaultlocker-managed mount while encrypt\u003dfalse; the default bundle does not create that state.\n\nReproducing it would require extending the bundle with Vault and encrypted storage, or manually modifying fstab, which would add a relatively fragile scenario for this narrowly scoped config update.\n\nThe unit tests cover both vaultlocker fstab signatures and verify that non-vaultlocker mounts are not changed. I also validated the update on a live deployment by changing encrypt-device-timeout and confirming that the existing vaultlocker fstab entry was updated. Based on this, I would prefer to keep the coverage at the unit-test level for this change.\n\n\nand for your first question about \u0027barbican-vault (secrets-storage-relation)\u0027, I initially treated the secrets-storage relation as an encryption signal, but that could incorrectly encrypt newly provisioned ephemeral storage when encrypt\u003dfalse, so I removed that approach.\n\nThe upgrade path now detects an existing vaultlocker-managed fstab entry directly, using either the comment\u003dvaultlocker marker or the vaultlocker-decrypt@...service systemd dependency. It updates the timeout only for those existing encrypted mounts, independent of the current encrypt setting or relation state. Fresh encryption remains controlled only by encrypt\u003dtrue.","commit_id":"043a66830cf85ab24ca7f81312a36037af0f22f9"},{"author":{"_account_id":6737,"name":"Edward Hope-Morley","email":"edward.hope-morley@canonical.com","username":"hopem"},"change_message_id":"c5efe0070e04adce289287e97469c7f86c2d1746","unresolved":false,"context_lines":[{"line_number":1185,"context_line":"    if storage_configured:"},{"line_number":1186,"context_line":"        log(\"Ephemeral storage already configured, skipping\","},{"line_number":1187,"context_line":"            level\u003dDEBUG)"},{"line_number":1188,"context_line":"        if encrypt:"},{"line_number":1189,"context_line":"            update_encrypted_ephemeral_mount_options("},{"line_number":1190,"context_line":"                mountpoint,"},{"line_number":1191,"context_line":"                encrypted_ephemeral_device_timeout()"}],"source_content_type":"text/x-python","patch_set":3,"id":"8fdbbb78_82ba8f61","line":1188,"range":{"start_line":1188,"start_character":0,"end_line":1188,"end_character":19},"in_reply_to":"f0567d5a_8d3b3148","updated":"2026-09-01 16:37:44.000000000","message":"Hi Joshua,\n\nI\u0027m trying to understand why you would have vaultlocker managed encrytped mount when encrypt\u003dFalse since setting encrypt\u003dTrue is a requirement for installing vaultlocker and encrypting volumes?\n\nI understand that your code is updating fstab regardless of if encrypt is True or False (although that make sense if encrypt\u003dFalse?) but regarding the functional I think it would (a) be worth running them since your code will run in all cases and (b) consider adding encrypt\u003dTrue to the test bundle since that is a pretty common setting to enable and even if you don\u0027t add more tests it will be testing more than before since it will make sure that encryption works with your patch.","commit_id":"043a66830cf85ab24ca7f81312a36037af0f22f9"},{"author":{"_account_id":5112,"name":"Seyeong Kim","email":"seyeong.kim@canonical.com","username":"xtrusia"},"change_message_id":"1b01b4dd920d24899fc156eb35102f21ff86413d","unresolved":true,"context_lines":[{"line_number":213,"context_line":"def encrypted_ephemeral_device_timeout():"},{"line_number":214,"context_line":"    device_timeout \u003d config(\u0027encrypt-device-timeout\u0027)"},{"line_number":215,"context_line":"    if device_timeout is None:"},{"line_number":216,"context_line":"        return ENCRYPTED_EPHEMERAL_DEVICE_TIMEOUT_DEFAULT"},{"line_number":217,"context_line":""},{"line_number":218,"context_line":"    return device_timeout"},{"line_number":219,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"017445bd_134ab446","line":216,"updated":"2026-08-04 07:41:59.000000000","message":"we might check negative number of the config option and if so we might set it as default.","commit_id":"3570d4d7a5cd71134c94d40fb4a1f0459deeb426"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"26ac428c5967740f97db0e4b76f7bbed40ca3f9a","unresolved":false,"context_lines":[{"line_number":213,"context_line":"def encrypted_ephemeral_device_timeout():"},{"line_number":214,"context_line":"    device_timeout \u003d config(\u0027encrypt-device-timeout\u0027)"},{"line_number":215,"context_line":"    if device_timeout is None:"},{"line_number":216,"context_line":"        return ENCRYPTED_EPHEMERAL_DEVICE_TIMEOUT_DEFAULT"},{"line_number":217,"context_line":""},{"line_number":218,"context_line":"    return device_timeout"},{"line_number":219,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"c6beeaa4_57613e46","line":216,"in_reply_to":"017445bd_134ab446","updated":"2026-08-11 07:14:23.000000000","message":"now I\u0027ve changed it to:\n+    if device_timeout is None or device_timeout \u003c 0:\n+        return ENCRYPTED_EPHEMERAL_DEVICE_TIMEOUT_DEFAULT","commit_id":"3570d4d7a5cd71134c94d40fb4a1f0459deeb426"},{"author":{"_account_id":5112,"name":"Seyeong Kim","email":"seyeong.kim@canonical.com","username":"xtrusia"},"change_message_id":"1b01b4dd920d24899fc156eb35102f21ff86413d","unresolved":true,"context_lines":[{"line_number":219,"context_line":""},{"line_number":220,"context_line":""},{"line_number":221,"context_line":"def encrypted_ephemeral_storage_enabled():"},{"line_number":222,"context_line":"    return config(\u0027encrypt\u0027) or bool(relation_ids(\u0027secrets-storage\u0027))"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"def update_encrypted_ephemeral_mount_options(mountpoint, device_timeout):"}],"source_content_type":"text/x-python","patch_set":6,"id":"7407c8b9_a45c78ec","line":222,"updated":"2026-08-04 07:41:59.000000000","message":"encrypt and relation should be the set both of them at deployment time as documentation.\nhttps://docs.openstack.org/charm-guide/latest/admin/storage/encryption-at-rest.html","commit_id":"3570d4d7a5cd71134c94d40fb4a1f0459deeb426"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"26ac428c5967740f97db0e4b76f7bbed40ca3f9a","unresolved":false,"context_lines":[{"line_number":219,"context_line":""},{"line_number":220,"context_line":""},{"line_number":221,"context_line":"def encrypted_ephemeral_storage_enabled():"},{"line_number":222,"context_line":"    return config(\u0027encrypt\u0027) or bool(relation_ids(\u0027secrets-storage\u0027))"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"def update_encrypted_ephemeral_mount_options(mountpoint, device_timeout):"}],"source_content_type":"text/x-python","patch_set":6,"id":"e66a82e8_78fb39e5","line":222,"in_reply_to":"7407c8b9_a45c78ec","updated":"2026-08-11 07:14:23.000000000","message":"Agreed. I changed the code to:\n     if storage_configured:\n         log(\"Ephemeral storage already configured, skipping\",\n             level\u003dDEBUG)\n+        update_ephemeral_device_timeout(\n+            mountpoint,\n+            encrypted_ephemeral_device_timeout()\n+        )\n\nFresh local ephemeral encryption remains controlled solely by encrypt\u003dtrue, as documented. The secrets-storage relation alone no longer enables encryption for a newly provisioned disk. For upgrades, the timeout is updated only when the existing fstab entry provides vaultlocker evidence, so existing encrypted deployments are still covered even when encrypt\u003dfalse.","commit_id":"3570d4d7a5cd71134c94d40fb4a1f0459deeb426"},{"author":{"_account_id":5112,"name":"Seyeong Kim","email":"seyeong.kim@canonical.com","username":"xtrusia"},"change_message_id":"1b01b4dd920d24899fc156eb35102f21ff86413d","unresolved":true,"context_lines":[{"line_number":222,"context_line":"    return config(\u0027encrypt\u0027) or bool(relation_ids(\u0027secrets-storage\u0027))"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"def update_encrypted_ephemeral_mount_options(mountpoint, device_timeout):"},{"line_number":226,"context_line":"    fstab \u003d Fstab()"},{"line_number":227,"context_line":"    entry \u003d fstab.get_entry_by_attr(\u0027mountpoint\u0027, mountpoint)"},{"line_number":228,"context_line":"    if not entry:"}],"source_content_type":"text/x-python","patch_set":6,"id":"3c29dfcb_dbf35e05","line":225,"updated":"2026-08-04 07:41:59.000000000","message":"This function doesn\u0027t seem to have any encryption-specific behavior. Would update_ephemeral_device_timeout() be a more accurate name?","commit_id":"3570d4d7a5cd71134c94d40fb4a1f0459deeb426"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"26ac428c5967740f97db0e4b76f7bbed40ca3f9a","unresolved":true,"context_lines":[{"line_number":222,"context_line":"    return config(\u0027encrypt\u0027) or bool(relation_ids(\u0027secrets-storage\u0027))"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"def update_encrypted_ephemeral_mount_options(mountpoint, device_timeout):"},{"line_number":226,"context_line":"    fstab \u003d Fstab()"},{"line_number":227,"context_line":"    entry \u003d fstab.get_entry_by_attr(\u0027mountpoint\u0027, mountpoint)"},{"line_number":228,"context_line":"    if not entry:"}],"source_content_type":"text/x-python","patch_set":6,"id":"8b9da7d1_65eccf1d","line":225,"in_reply_to":"3c29dfcb_dbf35e05","updated":"2026-08-11 07:14:23.000000000","message":"Renamed to update_ephemeral_device_timeout() now","commit_id":"3570d4d7a5cd71134c94d40fb4a1f0459deeb426"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"3a5e72af4e896dcac84ff05f71a5b2c2b3f42dc4","unresolved":false,"context_lines":[{"line_number":222,"context_line":"    return config(\u0027encrypt\u0027) or bool(relation_ids(\u0027secrets-storage\u0027))"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"def update_encrypted_ephemeral_mount_options(mountpoint, device_timeout):"},{"line_number":226,"context_line":"    fstab \u003d Fstab()"},{"line_number":227,"context_line":"    entry \u003d fstab.get_entry_by_attr(\u0027mountpoint\u0027, mountpoint)"},{"line_number":228,"context_line":"    if not entry:"}],"source_content_type":"text/x-python","patch_set":6,"id":"3e06f8b2_a9fb9552","line":225,"in_reply_to":"8b9da7d1_65eccf1d","updated":"2026-10-09 07:30:20.000000000","message":"Done","commit_id":"3570d4d7a5cd71134c94d40fb4a1f0459deeb426"},{"author":{"_account_id":5112,"name":"Seyeong Kim","email":"seyeong.kim@canonical.com","username":"xtrusia"},"change_message_id":"8cfe0ef5282304076ea2c28c91faebfb44e33d50","unresolved":false,"context_lines":[{"line_number":222,"context_line":"    return config(\u0027encrypt\u0027) or bool(relation_ids(\u0027secrets-storage\u0027))"},{"line_number":223,"context_line":""},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"def update_encrypted_ephemeral_mount_options(mountpoint, device_timeout):"},{"line_number":226,"context_line":"    fstab \u003d Fstab()"},{"line_number":227,"context_line":"    entry \u003d fstab.get_entry_by_attr(\u0027mountpoint\u0027, mountpoint)"},{"line_number":228,"context_line":"    if not entry:"}],"source_content_type":"text/x-python","patch_set":6,"id":"8a97580d_b2441e2a","line":225,"in_reply_to":"8b9da7d1_65eccf1d","updated":"2026-10-13 03:35:46.000000000","message":"Done","commit_id":"3570d4d7a5cd71134c94d40fb4a1f0459deeb426"},{"author":{"_account_id":5112,"name":"Seyeong Kim","email":"seyeong.kim@canonical.com","username":"xtrusia"},"change_message_id":"1b01b4dd920d24899fc156eb35102f21ff86413d","unresolved":true,"context_lines":[{"line_number":223,"context_line":""},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"def update_encrypted_ephemeral_mount_options(mountpoint, device_timeout):"},{"line_number":226,"context_line":"    fstab \u003d Fstab()"},{"line_number":227,"context_line":"    entry \u003d fstab.get_entry_by_attr(\u0027mountpoint\u0027, mountpoint)"},{"line_number":228,"context_line":"    if not entry:"},{"line_number":229,"context_line":"        log(\"Encrypted ephemeral mount \u0027{}\u0027 not found in fstab; skipping \""}],"source_content_type":"text/x-python","patch_set":6,"id":"bfa408a9_4dadb1a7","line":226,"updated":"2026-08-04 07:41:59.000000000","message":"We may use context manager. \"with Fstab() as fstab:\"","commit_id":"3570d4d7a5cd71134c94d40fb4a1f0459deeb426"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"26ac428c5967740f97db0e4b76f7bbed40ca3f9a","unresolved":false,"context_lines":[{"line_number":223,"context_line":""},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"def update_encrypted_ephemeral_mount_options(mountpoint, device_timeout):"},{"line_number":226,"context_line":"    fstab \u003d Fstab()"},{"line_number":227,"context_line":"    entry \u003d fstab.get_entry_by_attr(\u0027mountpoint\u0027, mountpoint)"},{"line_number":228,"context_line":"    if not entry:"},{"line_number":229,"context_line":"        log(\"Encrypted ephemeral mount \u0027{}\u0027 not found in fstab; skipping \""}],"source_content_type":"text/x-python","patch_set":6,"id":"99bd5c2a_6a04873b","line":226,"in_reply_to":"bfa408a9_4dadb1a7","updated":"2026-08-11 07:14:23.000000000","message":"Updated to use with Fstab() as fstab:.","commit_id":"3570d4d7a5cd71134c94d40fb4a1f0459deeb426"},{"author":{"_account_id":5112,"name":"Seyeong Kim","email":"seyeong.kim@canonical.com","username":"xtrusia"},"change_message_id":"1b01b4dd920d24899fc156eb35102f21ff86413d","unresolved":true,"context_lines":[{"line_number":243,"context_line":"    updated_entry \u003d deepcopy(entry)"},{"line_number":244,"context_line":"    updated_entry.options \u003d updated_options"},{"line_number":245,"context_line":"    fstab.remove_entry(entry)"},{"line_number":246,"context_line":"    fstab.add_entry(updated_entry)"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"BASE_RESOURCE_MAP \u003d {"}],"source_content_type":"text/x-python","patch_set":6,"id":"462db795_3c333c42","line":246,"updated":"2026-08-04 07:41:59.000000000","message":"We might check the return values from both calls and handle a failure here.","commit_id":"3570d4d7a5cd71134c94d40fb4a1f0459deeb426"},{"author":{"_account_id":2711,"name":"Zhang Hua","display_name":"Zhang Hua","email":"joshua.zhang@canonical.com","username":"zhhuabj"},"change_message_id":"26ac428c5967740f97db0e4b76f7bbed40ca3f9a","unresolved":false,"context_lines":[{"line_number":243,"context_line":"    updated_entry \u003d deepcopy(entry)"},{"line_number":244,"context_line":"    updated_entry.options \u003d updated_options"},{"line_number":245,"context_line":"    fstab.remove_entry(entry)"},{"line_number":246,"context_line":"    fstab.add_entry(updated_entry)"},{"line_number":247,"context_line":""},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"BASE_RESOURCE_MAP \u003d {"}],"source_content_type":"text/x-python","patch_set":6,"id":"55bd4914_165d35d8","line":246,"in_reply_to":"462db795_3c333c42","updated":"2026-08-11 07:14:23.000000000","message":"Added checks for both remove_entry() and add_entry(). On a failed replacement, the code logs the failure and restores the original fstab entry where possible.","commit_id":"3570d4d7a5cd71134c94d40fb4a1f0459deeb426"}]}
