mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-21 11:46:37 +00:00
9e8e944faa
Root cause: when terminating instances, the vpc.delete-nat event was published with an empty logicalIP. vpcd's DeleteNAT looked for a dnat_and_snat rule with logicalIP="" — found nothing — and the real rule was left as a stale entry in OVN. When the IPAM later recycled that public IP for an EIP/NAT Gateway, OVN had conflicting rules: stale dnat_and_snat AND new snat, both using the same external IP. Fix: extract PrivateIpAddress from instance.Instance before publishing vpc.delete-nat, in both running and stopped termination paths. Also adds 14 unit tests for NAT Gateway service.
44 lines
554 B
Plaintext
44 lines
554 B
Plaintext
# Terraform/OpenTofu
|
|
.terraform/
|
|
.terraform.lock.hcl
|
|
*.tfstate
|
|
*.tfstate.*
|
|
*.tfvars
|
|
!example.tfvars
|
|
scripts/iac/proxmox/clusters/
|
|
|
|
# Go workspace
|
|
go.work
|
|
go.work.sum
|
|
|
|
# Build outputs
|
|
bin/
|
|
dist/
|
|
!spinifex/services/spinifexui/frontend/dist/
|
|
tmp/
|
|
*.test
|
|
*.out
|
|
|
|
# Config
|
|
config/dev.yaml
|
|
|
|
# OS files
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Environment
|
|
.env
|
|
|
|
# Test reports
|
|
*-report.txt
|
|
|
|
# Internal docs (moved to private mulga repo)
|
|
docs/INTERNAL.md
|
|
docs/PRIVATE.md
|
|
docs/DEVNOTES.md
|
|
docs/PLAN.md
|
|
docs/TODO.md
|
|
docs/development/
|
|
docs/internal/
|
|
scripts/iac/aws/spinifex-test.pem
|