Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually removed firewall rules not detected by provider #1505

Open
kbcz1989 opened this issue Aug 22, 2024 · 0 comments
Open

Manually removed firewall rules not detected by provider #1505

kbcz1989 opened this issue Aug 22, 2024 · 0 comments
Labels
🐛 bug Something isn't working

Comments

@kbcz1989
Copy link

Describe the bug
When tf managed rule is manually removed from gui, provider detects no change, even though it receives the answer "500 no rule at position X"

To Reproduce
Steps to reproduce the behavior:

  1. Create a resource proxmox_virtual_environment_firewall_rules
  2. Manually remove one of more created rules from GUI
  3. Run terraform plan again
  4. It shows no changes

Please also provide a minimal Terraform configuration that reproduces the issue.

resource "proxmox_virtual_environment_firewall_rules" "inbound" {
  node_name = var.node_name
  vm_id     = var.vm_id

  rule {
    type    = "in"
    action  = "ACCEPT"
    comment = "Allow HTTP"
    dest    = "192.168.1.5"
    dport   = "80"
    proto   = "tcp"
    log     = "info"
  }

  rule {
    type    = "in"
    action  = "ACCEPT"
    comment = "Allow HTTPS"
    dest    = "192.168.1.5"
    dport   = "443"
    proto   = "tcp"
    log     = "info"
  }
}

Expected behavior
Manually removed rule should be created again.

  • Single or clustered Proxmox: clustered
  • Proxmox version: 8.2.4
  • Provider version (ideally it should be the latest version): 0.62.0
  • Terraform/OpenTofu version: terraform 1.8.3
  • OS (where you run Terraform/OpenTofu from): Ubuntu 22.04
  • Debug logs (TF_LOG=DEBUG terraform apply):
    https://gist.github.com/kbcz1989/fab8b054b3fc55c064532b3ae223526e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant