HewlettPackard / terraform-provider-oneview

Automates the provisioning of physical infrastructure from a private cloud using templates from HPE OneView with Terraform
Apache License 2.0
49 stars 30 forks source link

Error: Failed to instantiate provider "oneview" to obtain schema: Incompatible API version with plugin. Plugin version: 4, Client versions: [5] #163

Closed ghost closed 4 years ago

ghost commented 4 years ago

Need a help. I am getting below error messages

ubuntu@terraform:~/go/src/github.com/HewlettPackard/terraform-provider-oneview$ terraform init

Initializing the backend...

Initializing provider plugins...

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands should now work.

If you ever set or change modules or backend configuration for Terraform, rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you to do so if necessary. ubuntu@terraform:~/go/src/github.com/HewlettPackard/terraform-provider-oneview$ terraform plan

Error: Failed to instantiate provider "oneview" to obtain schema: Incompatible API version with plugin. Plugin version: 4, Client versions: [5]

Terraform config file:

provider "oneview" { ov_username = "v191usradmin" ov_password = "xxxxx" ov_endpoint = "https://10.188.10.10" ov_sslverify = false ov_apiversion = 1200 ov_ifmatch = "*" }

resource "oneview_fc_network" "default" { name = "FC-SAN F01" type = "fc-networkV300" }

Environment: Oneview version : 5.0 Terraform version : 0.12 Ubuntu VM

Regards Soibam

ghost commented 4 years ago

The issue is resolved. Downgrade terraform version to 0.11