mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
## What this PR does Adds the `skip-adjust-when-device-inaccessible.diff` patch (upstream [LINBIT/linstor-server#477](https://github.com/LINBIT/linstor-server/pull/477)) which: - Skips DRBD adjust and .res file regeneration when child layer devices are inaccessible (fixes encrypted resource deletion) - Skips lsblk when device path doesn't physically exist yet (fixes race condition after drbdadm adjust) - Only checks child devices when disk access is actually needed (allows network reconnect from StandAlone) - Fixes missing `setExists(true)` in `LuksLayer` — the root cause of all new DRBD+LUKS+STORAGE resources failing with "not defined in your config" ### Release note ```release-note [linstor] Fix DRBD+LUKS+STORAGE resource creation: all new encrypted volumes were failing because the DRBD .res file was never written due to a missing exists flag in the LUKS layer ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved handling of inaccessible storage devices by adding pre-checks before performing operations * Operations are now skipped when underlying storage devices are unavailable, preventing unnecessary failures * Enhanced error recovery during storage adjustments when devices are temporarily inaccessible <!-- end of auto-generated comment: release notes by coderabbit.ai -->