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

Application Gateway Bug request routing rule always recreated #18422

Closed
1 task done
faisaleem-na opened this issue Sep 17, 2022 · 6 comments
Closed
1 task done

Application Gateway Bug request routing rule always recreated #18422

faisaleem-na opened this issue Sep 17, 2022 · 6 comments

Comments

@faisaleem-na
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

0.14.7

AzureRM Provider Version

3.12.0

Affected Resource(s)/Data Source(s)

azurerm_application_gateway

Terraform Configuration Files

dynamic "request_routing_rule" {
    for_each = var.gateway[each.key].request_routing_rule
    content {
      name                       = "${lookup(request_routing_rule.value, "name", null)}-rqrt"
      rule_type                  = lookup(request_routing_rule.value, "rule_type", null)
      priority                   = lookup(request_routing_rule.value, "priority", 1)
      http_listener_name         = lookup(request_routing_rule.value, "lsnrname", null) != null ? "${lookup(request_routing_rule.value, "lsnrname")}-httplstn" : "${lookup(request_routing_rule.value, "name", null)}-httplstn"
      backend_address_pool_name  = lookup(request_routing_rule.value, "beapname", null) != null ? "${lookup(request_routing_rule.value, "beapname")}-beap" : null
      backend_http_settings_name = lookup(request_routing_rule.value, "behtstname", null) != null ? "${lookup(request_routing_rule.value, "behtstname")}-be-htst" : lookup(request_routing_rule.value, "rdrcfgname", null) != null ? null : lookup(request_routing_rule.value, "rule_type") == "Basic" ? "${lookup(request_routing_rule.value, "name", null)}-be-htst" : null
      redirect_configuration_name= lookup(request_routing_rule.value, "rdrcfgname", null) != null ? "${lookup(request_routing_rule.value, "rdrcfgname", null)}-rdrcfg" : null
      rewrite_rule_set_name      = lookup(request_routing_rule.value, "rwrstname", null) != null ? "${lookup(request_routing_rule.value, "rwrstname", null)}-rwrst" : null
      url_path_map_name          = lookup(request_routing_rule.value, "rule_type") == "PathBasedRouting" ? lookup(request_routing_rule.value, "url_path_map_name") : null
    }
  }

Debug Output/Panic Output

gist coming soon

Expected Behaviour

no configuration changes required

Actual Behaviour

https://gist.github.com/faisaleem-na/377f850bf238482bf6dde88be9cc417b

Steps to Reproduce

terraform plan

Important Factoids

No response

References

No response

@github-actions github-actions bot removed the bug label Sep 17, 2022
@ms-zhenhua
Copy link
Contributor

ms-zhenhua commented Sep 20, 2022

Hi @faisaleem-na, thank you for reaching out.
It is a little difficult to confirm this issue through the configuration snippet you provided. Could you kindly help provide a complete runnable configuration (You can first remove all sensitive information from it) for this issue ? Then we can do more investigation on it.
You can compress all the configuration files into a .zip file and attach it in this GH issue if it's too large.
Thanks.

@faisaleem-na
Copy link
Author

Hi @ms-zhenhua,

ok no problem, i will do that, will just need a day or so as currently quite busy. will aim to have it here by COB thursday
thanks

@rolandjohann
Copy link

Seems to hit this bug #16136

@faisaleem-na
Copy link
Author

Seems to hit this bug #16136

yep spot on, should have known it was already reported but this is the exact issue. bit concerned that the fix is way off though :(

@rcskosir
Copy link
Contributor

rcskosir commented Jun 2, 2023

@faisaleem-na Thanks for taking the time to submit this issue. It looks like this is a duplicate of #16136. We like to try to keep discussions consolidated, so we’re going to close this newer issue in favor of #16136.

@rcskosir rcskosir closed this as not planned Won't fix, can't repro, duplicate, stale Jun 2, 2023
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants