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

Failure when executing GetNetworkSwitchRoutingOspf #115

Closed
mcparaf opened this issue Jul 19, 2024 · 2 comments
Closed

Failure when executing GetNetworkSwitchRoutingOspf #115

mcparaf opened this issue Jul 19, 2024 · 2 comments

Comments

@mcparaf
Copy link

mcparaf commented Jul 19, 2024

Prerequisites

  • [ v ] Have you tested the operation in the API directly?
  • [ v ] Do you have the latest Terraform provider version?
  • [ x ] Review the compatibility matrix before opening an issue. - the page does not exist

Describe the bug
When trying to work with a terraform configuration containing a meraki_networks_switch_routing_ospf resource the plugin tries to download the switch stack ospf configuration and fails. This happens before I get the chance to review, confirm and apply the configuration, this is just when the data is retrieved.

Plugin log:

2024-07-19T14:43:10.311+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: ==============================================================================
2024-07-19T14:43:10.311+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: ~~~ REQUEST ~~~
2024-07-19T14:43:10.311+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: GET  /api/v1/networks/L_709316941310853998/switch/routing/ospf  HTTP/1.1
2024-07-19T14:43:10.311+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: HOST   : api.meraki.com
2024-07-19T14:43:10.313+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: HEADERS:
2024-07-19T14:43:10.313+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 	Accept: application/json
2024-07-19T14:43:10.313+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 	Authorization: Bearer ****b91c9
2024-07-19T14:43:10.313+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 	Content-Type: application/json
2024-07-19T14:43:10.314+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 	User-Agent: go-meraki/1.44.1 MerakiTerraform/1.47.0 Cisco
2024-07-19T14:43:10.314+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: BODY   :
2024-07-19T14:43:10.314+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: ***** NO CONTENT *****
2024-07-19T14:43:10.314+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: ------------------------------------------------------------------------------
2024-07-19T14:43:10.314+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: ~~~ RESPONSE ~~~
2024-07-19T14:43:10.314+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: STATUS       : 200 OK
2024-07-19T14:43:10.314+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: PROTO        : HTTP/2.0
2024-07-19T14:43:10.314+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: RECEIVED AT  : 2024-07-19T14:43:10.311087+02:00
2024-07-19T14:43:10.314+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: TIME DURATION: 170.734667ms
2024-07-19T14:43:10.314+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: HEADERS      :
2024-07-19T14:43:10.314+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 	Cache-Control: no-cache, no-store, max-age=0, must-revalidate
2024-07-19T14:43:10.314+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 	Content-Type: application/json; charset=utf-8
2024-07-19T14:43:10.314+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 	Date: Fri, 19 Jul 2024 12:43:10 GMT
2024-07-19T14:43:10.314+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 	Expires: Fri, 01 Jan 1990 00:00:00 GMT
2024-07-19T14:43:10.314+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 	Pragma: no-cache
2024-07-19T14:43:10.314+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 	Strict-Transport-Security: max-age=31536000; includeSubDomains
2024-07-19T14:43:10.314+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 	Vary: Accept-Encoding
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 	X-Content-Type-Options: nosniff
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 	X-Frame-Options: sameorigin
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 	X-Request-Id: 8b1cdf524d236fea17ad189e84becbb2
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 	X-Robots-Tag: none
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 	X-Runtime: 0.049219
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 	X-Xss-Protection: 1; mode=block, 1; mode=block
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: BODY         :
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: {
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:    "enabled": true,
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:    "helloTimerInSeconds": 10,
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:    "deadTimerInSeconds": 40,
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:    "areas": [
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:       {
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:          "areaId": 5,
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:          "areaName": "BACKBONE",
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:          "areaType": "normal"
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:       }
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:    ],
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:    "v3": {
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:       "enabled": false,
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:       "helloTimerInSeconds": 10,
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:       "deadTimerInSeconds": 40,
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:       "areas": []
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:    },
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:    "md5AuthenticationEnabled": true,
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:    "md5AuthenticationKey": {
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:       "id": 1,
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:       "passphrase": "Cisco123"
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha:    }
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: }
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: ==============================================================================
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 2024/07/19 14:43:10 json: cannot unmarshal number into Go struct field ResponseSwitchGetNetworkSwitchRoutingOspfAreas.areas.areaId of type string, Attempt 3
2024-07-19T14:43:10.315+0200 [DEBUG] provider.terraform-provider-meraki_v0.2.6-alpha: 2024/07/19 14:43:10 json: cannot unmarshal number into Go struct field ResponseSwitchGetNetworkSwitchRoutingOspfAreas.areas.areaId of type string
2024-07-19T14:43:10.316+0200 [ERROR] provider.terraform-provider-meraki_v0.2.6-alpha: Response contains error diagnostic: diagnostic_summary="Failure when executing GetNetworkSwitchRoutingOspf" tf_proto_version=6.6 tf_req_id=766c0fab-a26d-b20c-4c87-dc9c205a4af3 tf_rpc=ReadResource @module=sdk.proto diagnostic_detail="json: cannot unmarshal number into Go struct field ResponseSwitchGetNetworkSwitchRoutingOspfAreas.areas.areaId of type string" diagnostic_severity=ERROR tf_provider_addr=registry.terraform.io/CiscoDevNet/meraki tf_resource_type=meraki_networks_switch_routing_ospf @caller=github.com/hashicorp/[email protected]/tfprotov6/internal/diag/diagnostics.go:58 timestamp="2024-07-19T14:43:10.312+0200"
2024-07-19T14:43:10.317+0200 [ERROR] vertex "module.meraki.meraki_networks_switch_routing_ospf.net_switch_routing_ospf[\"0\"] (orphan)" error: Failure when executing GetNetworkSwitchRoutingOspf

Environment (please complete the following information):

  • Meraki Dashboard version: current version at https://n260.meraki.com
  • Terraform version: 1.9.1
  • Meraki provider version: 0.2.6-alpha
  • OS Version: macOS Sonoma 14.5
fmunozmiranda added a commit that referenced this issue Jul 23, 2024
Failure when executing GetNetworkSwitchRoutingOspf #115
fmunozmiranda added a commit that referenced this issue Jul 23, 2024
BUGFIXES:
* meraki_networks_switch_stp - plugin crash when reading #114.
* Failure when executing GetNetworkSwitchRoutingOspf #115.
* meraki_networks_vlan_profiles silently fails when attempting to create a resource on the default profile #94.
* Resource meraki_networks_sensor_alerts_profiles error with operation CreateNetworkSensorAlertsProfile #91.
* Resource meraki_networks_wireless_rf_profiles error when trying to create new profile.
#88.
@fmunozmiranda
Copy link
Collaborator

Please try it with new version please and update us. @mcparaf

@mcparaf
Copy link
Author

mcparaf commented Jul 24, 2024

it works, thank you :D

@mcparaf mcparaf closed this as completed Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants