Fix local pool import: match actual ZFS config #43
No reviewers
Labels
No labels
IaC
admin
agent-containers
automation
blockchain
cleanup
data
documentation
hardware
hotfix
infrastructure
maintenance
metrics
ml
monitoring
networking
resilience
security
tailscale
trading
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midwitmoneymgmt/m3-infra!43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "46-import-local-pool"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Fixes the failed import from !42 — the
incus_storage_pool.localresource was declared withoutsource,zfs.pool_name, ordescription, so OpenTofu saw a config mismatch and tried to destroy/recreate the pool (which failed because it's in use).Fix
Added the actual pool config to match
incus storage show local:source = "local/incus"zfs.pool_name = "local/incus"description = "Local storage pool (on system drive)"Expected behavior
The import block re-imports (or recognizes the pool is already in state), sees the config now matches, and produces no changes.
Ref #46
assigned to @AlexCaswen
added 3 commits
maindfafe826- Merge branch 'main' into '46-import-local-pool'Compare with previous version
approved this merge request
mentioned in commit
0398d05e64mentioned in merge request !44