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

Deleting iRules from Virtual Server Configs #923

Closed
atyanh opened this issue Jan 15, 2024 · 9 comments · Fixed by #932
Closed

Deleting iRules from Virtual Server Configs #923

atyanh opened this issue Jan 15, 2024 · 9 comments · Fixed by #932
Labels
Backlog issue will be tracked by JIRA in backlog enhancement
Milestone

Comments

@atyanh
Copy link

atyanh commented Jan 15, 2024

Environment

  • TMOS/Bigip Version: BIG-IP 16.1.2.2 Build 0.0.28 Point Release 2
  • Terraform Version: v1.6.6
  • Terraform bigip provider Version: v1.20.2

Summary

Terraform doesn't change iRule list in Virtual Server configurations when I leave the list empty. It works correctly if I leave at least one iRule but if we delete all and leave it the array empty it doesn't do anything.

Steps To Reproduce

Steps to reproduce the behavior:

For example
irules = [ bigip_ltm_irule.rule1.name, bigip_ltm_irule.rule2.name ]
This works correctly, but when I delete iRules it shows on the plan but doesn't do anything
irules = [ ]

@atyanh atyanh added the bug label Jan 15, 2024
@pgouband
Copy link
Collaborator

Hi @atyanh,

I tested and it works uring:
irules = [ "" ]

Could you test?

@atyanh
Copy link
Author

atyanh commented Jan 15, 2024

Hi @atyanh,

I tested and it works uring: irules = [ "" ]

Could you test?

You are right it worked, thank you.

But now every time I execute terraform plan it shows that the rules will be updated.

  ~ resource "bigip_ltm_virtual_server" "test-proj_https" {
        id                         = "/Common/https-app-tf-12347"
      ~ irules                     = [
          + "",
        ]
        name                       = "/Common/https-app-tf-12347"
        # (19 unchanged attributes hidden)
    }

Is this okay? I think it will interfere with work when I provision some resources.

@pgouband
Copy link
Collaborator

pgouband commented Jan 15, 2024

Hi @atyanh,

You're right about the output of plan but you can avoid that removing the line "irules".

@atyanh
Copy link
Author

atyanh commented Jan 15, 2024

Thank you for your answer, but I'm creating modules and should always pass a value for irules attribute.Can I find a way to do that?

@pgouband
Copy link
Collaborator

Hi @atyanh,

Can you create two modules? One with irules list and one without?

@atyanh
Copy link
Author

atyanh commented Jan 15, 2024

Hi @atyanh,

Can you create two modules? One with irules list and one without?

Yes I can, but I don't think it's the best solution to duplicate 4 modules just for irules. I thought it would be easy to resolve and would like to help with developing the provider.Whatever thank you :)

@pgouband
Copy link
Collaborator

Hi,

Thanks for reporting. Added to the backlog and internal tracking ID for this request is: INFRAANO-1417.

@pgouband pgouband added enhancement Backlog issue will be tracked by JIRA in backlog and removed waiting-response labels Jan 15, 2024
@atyanh
Copy link
Author

atyanh commented Jan 16, 2024

Okay Thank you

@atyanh atyanh closed this as completed Jan 16, 2024
@pgouband pgouband reopened this Jan 16, 2024
wojtek0806 added a commit to wojtek0806/terraform-provider-bigip that referenced this issue Jan 29, 2024
@RavinderReddyF5 RavinderReddyF5 added this to the v1.21.0 milestone Feb 14, 2024
@RavinderReddyF5
Copy link
Collaborator

fixed in v1.21.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backlog issue will be tracked by JIRA in backlog enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants