cloudstack-mirror/test/integration/plugins
Rene Peinthor 57671274d8
linstor: fix encrypted volume snapshot backup and restore (#13486)
Encrypted Linstor volumes use a LUKS layer inside the DRBD stack, so
the storage-layer snapshot device holds ciphertext while the DRBD
device CloudStack restores to is the decrypted view. Backing up the
raw snapshot and writing it back to the decrypted device corrupted the
volume (different data, unbootable root).

Back up encrypted snapshots from the decrypted DRBD device (forcing
the temporary-resource path) and store them as a LUKS-encrypted qcow2
using the volume passphrase, so snapshots are not kept in clear text
on secondary storage. On revert, decrypt the qcow2 and write plaintext
to the DRBD device; the LUKS layer re-encrypts it. The qemu-img shrink
is skipped for encrypted volumes (the DRBD device is already
net-sized).

Add an integration test (test_linstor_encrypted_snapshots.py): the
encrypted-root snapshot revert round-trip, that
create-volume-from-encrypted-snapshot is rejected by CloudStack core,
and a best-effort check that the backed-up qcow2 is LUKS-encrypted at
rest.
2026-07-10 12:50:33 +02:00
..
datera Add Python flake8 linting for W291 trailing whitespace with Super-Linter (#4687) 2022-03-28 11:40:26 -03:00
ldap Accept a role ID on linking an account to LDAP (#8236) 2024-06-26 01:26:28 +05:30
linstor linstor: fix encrypted volume snapshot backup and restore (#13486) 2026-07-10 12:50:33 +02:00
quota [Quota] Improve Quota balance calculation flow (#8581) 2024-06-18 07:22:27 +02:00
scaleio pre-commit auto add license for all Markdown files (#11870) 2025-10-24 16:04:22 +05:30
solidfire Enable Flake8 rule W391 (#6606) 2022-11-13 11:00:07 +01:00
storpool Support of snapshot copy to primary storage in different zones. (#9478) 2025-08-04 16:35:16 +05:30
tf Tungsten integration (#7065) 2023-02-01 09:19:53 +01:00
test_nicira_controller.py cloudstack: make code more inclusive 2021-06-08 15:47:20 +05:30
test_quota_tariff_order.py Quota tariff order (#8347) 2024-07-14 16:05:15 +02:00
test_quota.py Add Python flake8 linting for W291 trailing whitespace with Super-Linter (#4687) 2022-03-28 11:40:26 -03:00