Skip to content

Add encrypted ephemeral storage timeout test - #1439

Open
zhhuabj wants to merge 1 commit into
openstack-charmers:masterfrom
zhhuabj:decrypt
Open

zhhuabj wants to merge 1 commit into
openstack-charmers:masterfrom
zhhuabj:decrypt

Conversation

@zhhuabj

@zhhuabj zhhuabj commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Enable encrypted ephemeral storage in the noble-caracal nova-compute bundle and relate nova-compute directly to Vault through its secrets-storage endpoint.

Add a NovaCompute functional test that verifies the instance storage fstab entry is vaultlocker-managed and contains an x-systemd.device-timeout value matching the deployed charm configuration.

Depends-On: https://review.opendev.org/c/openstack/charm-nova-compute/+/987606
Related-Bug: https://launchpad.net/bugs/2086718

Enable encrypted ephemeral storage in the noble-caracal nova-compute
bundle and relate nova-compute directly to Vault through its
secrets-storage endpoint.

Add a NovaCompute functional test that verifies the instance storage
fstab entry is vaultlocker-managed and contains an
x-systemd.device-timeout value matching the deployed charm
configuration.

Depends-On: https://review.opendev.org/c/openstack/charm-nova-compute/+/987606
Related-Bug: https://launchpad.net/bugs/2086718
Signed-off-by: Zhang Hua <joshua.zhang@canonical.com>
openstackadmin pushed a commit to openstack/charm-nova-compute that referenced this pull request Oct 27, 2026
Add x-systemd.device-timeout for existing vaultlocker-managed
ephemeral storage when configure_local_ephemeral_storage() runs on
units that already have storage-configured=True.

Detect existing encrypted mounts from their fstab metadata: either the
legacy comment=vaultlocker marker or the vaultlocker-decrypt systemd
dependency. This covers existing vaultlocker deployments even when
encrypt is now false, without treating a secrets-storage relation as
an instruction to encrypt a newly configured ephemeral device.

Also avoid modifying non-vaultlocker fstab entries and restore the
original entry if updating fstab fails.

Change-Id: I08ba0c1a3a13d72e4bb36a4463b8d2848d8c8d2a
Func-Test-Pr: openstack-charmers/zaza-openstack-tests#1439
Closes-Bug: #2086718
Signed-off-by: Zhang Hua <joshua.zhang@canonical.com>
openstackadmin pushed a commit to openstack/openstack that referenced this pull request Oct 27, 2026
* Update charm-nova-compute from branch 'master'
  to a6eafe3eb6b0d1a149b8308bb7ec68e3421336b6
  - Merge "Update encrypted ephemeral fstab timeout on upgrade"
  - Update encrypted ephemeral fstab timeout on upgrade
    
    Add x-systemd.device-timeout for existing vaultlocker-managed
    ephemeral storage when configure_local_ephemeral_storage() runs on
    units that already have storage-configured=True.
    
    Detect existing encrypted mounts from their fstab metadata: either the
    legacy comment=vaultlocker marker or the vaultlocker-decrypt systemd
    dependency. This covers existing vaultlocker deployments even when
    encrypt is now false, without treating a secrets-storage relation as
    an instruction to encrypt a newly configured ephemeral device.
    
    Also avoid modifying non-vaultlocker fstab entries and restore the
    original entry if updating fstab fails.
    
    Change-Id: I08ba0c1a3a13d72e4bb36a4463b8d2848d8c8d2a
    Func-Test-Pr: openstack-charmers/zaza-openstack-tests#1439
    Closes-Bug: #2086718
    Signed-off-by: Zhang Hua <joshua.zhang@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant