cisco-open / terraform-provider-meraki

A Terraform Provider for Cisco Meraki
Mozilla Public License 2.0
15 stars 6 forks source link

meraki_networks_appliance_warm_spare got error with operation UpdateNetworkApplianceWarmSpare #95

Closed efernando87 closed 1 month ago

efernando87 commented 2 months ago

Prerequisites

Describe the bug unable to config MX warm spare and got error with operation UpdateNetworkApplianceWarmSpare

Expected behavior can update and add the warm spare

Screenshots below are the tf script and the result

resource "meraki_networks_appliance_warm_spare" "secondary_mx" {
   count        = local.create_network && var.secondary_mx_serial != "" ? 1 : 0
   enabled      = true
   network_id   = meraki_networks.network[0].network_id
   spare_serial = var.secondary_mx_serial
}

result

 Error: Failure when executing UpdateNetworkApplianceWarmSpare
│ 
│   with module.network.meraki_networks_appliance_warm_spare.secondary_mx[0],
│   on ../Module-Networks/devices.tf line 26, in resource "meraki_networks_appliance_warm_spare" "secondary_mx":
│   26: resource "meraki_networks_appliance_warm_spare" "secondary_mx" {
│ 
│ error with operation UpdateNetworkApplianceWarmSpare

Environment (please complete the following information):

Additional context Add any other context about the problem here.

fmunozmiranda commented 1 month ago

Could you activate the provider debug and share it?

provider "meraki" {
  meraki_debug = "true"
}
export TF_LOG="DEBUG"
efernando87 commented 1 month ago

Hi @fmunozmiranda ,

debug attached.

thanks for your help terraform meraki debug log.txt

fmunozmiranda commented 1 month ago

See this:

image

Looks like it's an API fail, because an invalid request.

efernando87 commented 1 month ago

hmmmm so the uplink mode might be required attribute instead of optional?

let me try

efernando87 commented 1 month ago

it is working now when i add the attribute "uplinkMode"

just need your help on this related issue: https://github.com/cisco-open/terraform-provider-meraki/issues/99

because after spare added, the next terraform run will hit this issue.

fmunozmiranda commented 1 month ago

Ok, Closing this one to see the another one