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] 0.36.0 │ Error: Failed to load plugin schemas #528

Closed
sblaisot opened this issue Jan 9, 2024 · 5 comments · Fixed by #529
Closed

[BUG] 0.36.0 │ Error: Failed to load plugin schemas #528

sblaisot opened this issue Jan 9, 2024 · 5 comments · Fixed by #529
Assignees

Comments

@sblaisot
Copy link

sblaisot commented Jan 9, 2024

Describe the bug

Release 0.36.0 fail with

│ Error: Failed to load plugin schemas
│ 
│ Error while loading schemas for plugin components: Failed to obtain
│ provider schema: Could not load the schema for provider
│ registry.terraform.io/ovh/ovh: failed to retrieve schema from provider
│ "registry.terraform.io/ovh/ovh": Invalid Provider Server Combination: The
│ combined provider has differing provider schema implementations across
│ providers. Provider schemas must be identical across providers. This is
│ always an issue in the provider implementation and should be reported to
│ the provider developers.
│ 
│ Provider schema difference:   &tfprotov6.Schema{
│   	Version: 0,
│   	Block: &tfprotov6.SchemaBlock{
│   		Version: 0,
│   		Attributes: []*tfprotov6.SchemaAttribute{
│   			&{Name: "application_key", Type: s"tftypes.String", Description: "The
│ OVH API Application Key.", Optional: true, ...},
│   			&{Name: "application_secret", Type: s"tftypes.String", Description:
│ "The OVH API Application Secret.", Optional: true, ...},
│   			&{Name: "consumer_key", Type: s"tftypes.String", Description: "The OVH
│ API Consumer key.", Optional: true, ...},
│   			&{
│   				... // 2 identical fields
│   				NestedType:  nil,
│   				Description: `The OVH API endpoint to target (ex: "ovh-eu").`,
│ - 				Required:    true,
│ + 				Required:    false,
│ - 				Optional:    false,
│ + 				Optional:    true,
│   				Computed:    false,
│   				Sensitive:   false,
│   				... // 2 identical fields
│   			},
│   		},
│   		BlockTypes:  nil,
│   		Description: "",
│   		... // 2 identical fields
│   	},
│   }
│ ..
@yomovh yomovh changed the title [BUG] [BUG] 0.36.0 │ Error: Failed to load plugin schemas Jan 9, 2024
@yomovh
Copy link
Contributor

yomovh commented Jan 9, 2024

Thanks for your issue, we have reproduced it and will have a look to fix it.

In the mean time, a work around is to use the environment variables to provide the credentials (which is also a best practise). Can you please confirm that using this work around works for you ?

@pancochea
Copy link

pancochea commented Jan 9, 2024

Same issue with environment variables.

Temporary solution is to fix previous version.

@sblaisot
Copy link
Author

sblaisot commented Jan 9, 2024

Sticking to 0.35.0 was my workaround too

@rbeuque74
Copy link
Member

@sblaisot @pancochea Version 0.36.1 fixes this issue: https://github.com/ovh/terraform-provider-ovh/releases/tag/v0.36.1

Thanks for the report

@sblaisot
Copy link
Author

Thanks for the quick fix @rbeuque74 .
I can confirm 0.36.1 fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants