Description
In version 1.5.0 of the provider, attempting to use data "opennebula_marketplace_appliance" { ... } results in an error: "The provider opennebula/opennebula does not support data source "opennebula_marketplace_appliance'".
Terraform and Provider version
terraform -v
Terraform v1.14.5
on linux_amd64
terraform {
required_providers {
opennebula = {
source = "OpenNebula/opennebula"
version = "1.5.0"
}
}
}
Affected resources and data sources
data "opennebula_marketplace_appliance" "example"
Terraform configuration
data "opennebula_marketplace_appliance" "base_image" {
id = "12345"
}
output "base_image_info" {
value = data.opennebula_marketplace_appliance.base_image
}
terraform {
required_providers {
opennebula = {
source = "OpenNebula/opennebula"
version = "1.5.0"
}
}
}
provider "opennebula" {
insecure = false
endpoint = var.one_endpoint
username = var.one_username
password = var.one_password
default_tags {
tags = {
environment = "test"
}
}
}
Expected behavior
The data source should exist, as hinted in documentation (e.g., https://registry.terraform.io/providers/OpenNebula/opennebula/latest/docs/data-sources/marketplaceapp or similar mirrors like library.tf).
Actual behavior
╷
│ Error: Invalid data source
│
│ on test.tf line 1, in data "opennebula_marketplace_appliance" "base_image":
│ 1: data "opennebula_marketplace_appliance" "base_image" {
│
│ The provider opennebula/opennebula does not support data source "opennebula_marketplace_appliance".
│
│ Did you intend to use the managed resource type "opennebula_marketplace_appliance"? If so, declare this using a "resource" block
│ instead of a "data" block.
╵
Steps to Reproduce
- Use provider version 1.5.0.
- Add this to your .tf file:
data "opennebula_marketplace_appliance" "base_image" {
id = "<some-id>"
}
output "base_image_info" {
value = data.opennebula_marketplace_appliance.base_image
}
- Run
- Check existing of resource "opennebula_marketplace_appliance"
terraform providers schema -json | jq '.provider_schemas["registry.terraform.io/opennebula/opennebula"].resource_schemas["opennebula_marketplace_appliance"]'
- Check not existing of data "opennebula_marketplace_appliance"
terraform providers schema -json | jq '.provider_schemas["registry.terraform.io/opennebula/opennebula"].data_source_schemas["opennebula_marketplace_appliance"]'
Debug output
Not needed here
Panic output
No response
Important factoids
No response
References
https://registry.terraform.io/providers/OpenNebula/opennebula/latest/docs/data-sources/marketplaceapp#example-usage
Description
In version 1.5.0 of the provider, attempting to use
data "opennebula_marketplace_appliance" { ... }results in an error: "The provider opennebula/opennebula does not support data source "opennebula_marketplace_appliance'".Terraform and Provider version
terraform -v
Affected resources and data sources
data "opennebula_marketplace_appliance" "example"Terraform configuration
Expected behavior
The data source should exist, as hinted in documentation (e.g., https://registry.terraform.io/providers/OpenNebula/opennebula/latest/docs/data-sources/marketplaceapp or similar mirrors like library.tf).
Actual behavior
Steps to Reproduce
Debug output
Not needed here
Panic output
No response
Important factoids
No response
References
https://registry.terraform.io/providers/OpenNebula/opennebula/latest/docs/data-sources/marketplaceapp#example-usage