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

Bug in "panos_panorama_management_profile" resource #441

Open
saic-smitty opened this issue Jul 3, 2024 · 0 comments
Open

Bug in "panos_panorama_management_profile" resource #441

saic-smitty opened this issue Jul 3, 2024 · 0 comments
Labels

Comments

@saic-smitty
Copy link

Describe the bug

While attempting to deploy the panos_panorama_management_profile resource I get the following error:
Error: profiles -> interface-management-profile -> mgmt_default -> userid-syslog-listener-udp unexpected here | profiles -> interface-management-profile is invalid │ │ with module.management_profiles["test-template"].panos_panorama_management_profile.this["mgmt_default"], │ on ../../modules/terraform-panos-ngfw-modules/modules/management_profiles/main.tf line 9, in resource "panos_panorama_management_profile" "this": │ 9: resource "panos_panorama_management_profile" "this" {

Expected behavior

Expected behavior is for a successful terraform apply resulting in a configured Interface Management Profile on a Panorama appliance based on the successful plan, as seen below:
`Terraform will perform the following actions:

panos_panorama_management_profile.this["test"] will be created

  • resource "panos_panorama_management_profile" "this" {
    • http = false
    • http_ocsp = false
    • https = true
    • id = (known after apply)
    • name = "test"
    • permitted_ips = [
      • "10.0.0.10/32",
      • "10.0.1.10/32",
        ]
    • ping = true
    • response_pages = false
    • snmp = false
    • ssh = true
    • telnet = false
    • template = "test-template"
    • userid_service = false
    • userid_syslog_listener_ssl = false
    • userid_syslog_listener_udp = false
      }

Plan: 1 to add, 0 to change, 0 to destroy.`

Current behavior

Terraform apply errors with the error code above.

Possible solution

Update the "panos_panorama_management_profile" resource to omit the "userid_syslog_listener_udp" if this is truly not supposed to be used here. Additionally, update provider documentation accordingly.

Steps to reproduce

Attempt to create "panos_panorama_management_profile" on a Panorama 11.2.0 VM-Series (AWS)

Screenshots

Context

Unable to automate the configuration of Palo Alto NGFW appliances.

Your Environment

Terraform v1.5.0
registry.terraform.io/paloaltonetworks/panos v1.11.1
Palo Alto Networks Panorama 11.2.0
WSL Ubuntu Linux

@saic-smitty saic-smitty added the bug label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant