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

Data Source opennebula_template: broken name query #479

Closed
TGM opened this issue Jul 31, 2023 · 1 comment · Fixed by #480
Closed

Data Source opennebula_template: broken name query #479

TGM opened this issue Jul 31, 2023 · 1 comment · Fixed by #480

Comments

@TGM
Copy link

TGM commented Jul 31, 2023

Description

Release v1.3.0 needs a review.

data resource opennebula_template breaks the name query.

Terraform and Provider version

terraform -v
Terraform v1.3.6
on linux_amd64
+ provider registry.terraform.io/opennebula/opennebula v1.3.0

Affected resources and data sources

data opennebula_template

Terraform configuration

# Provider configuration
terraform {
  required_providers {
    opennebula = {
      source  = "OpenNebula/opennebula"
      version = "~> 1.2"
    }
  }
}


data "opennebula_template" "template" {
  name = "rocky_8.7"
}

output "debug" {
  value = data.opennebula_template.template
}


### Expected behavior

Should have return the template details.

The template is in place.
![image](https://github.com/OpenNebula/terraform-provider-opennebula/assets/584882/70d746a9-fb3b-4e70-a348-fe764c47e854)


### Actual behavior

erraform plan
data.opennebula_template.template: Reading...

│ Error: templates filtering failed

│ with data.opennebula_template.template,
│ on main.tf line 17, in data "opennebula_template" "template":
│ 17: data "opennebula_template" "template" {

│ no templates match the constraints

root@danc-laptop:~/dev/repos/terraform/iaas/tftest# terraform -v
Terraform v1.3.6
on linux_amd64

  • provider registry.terraform.io/opennebula/opennebula v1.3.0

Your version of Terraform is out of date! The latest version
is 1.5.4. You can update by downloading from https://www.terraform.io/downloads.html


### Steps to Reproduce

Query a data source with opennebula_template.

### Debug output

_No response_

### Panic output

_No response_

### Important factoids

_No response_

### References

_No response_
@frousselet frousselet added this to the 1.3.1 milestone Jul 31, 2023
@frousselet frousselet changed the title Release v1.3.0 Data Source opennebula_template: broken name query Jul 31, 2023
treywelsh added a commit that referenced this issue Aug 1, 2023
treywelsh added a commit that referenced this issue Aug 1, 2023
@evmnaumov
Copy link

Also have problem on 1.3.0 version

data "opennebula_template" "debian11" {
  name = "Debian 11"
}

during plan have an error:

Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: templates filtering failed
│ 
│   with data.opennebula_template.debian11,
│   on datasources.tf line 5, in data "opennebula_template" "debian11":
│    5: data "opennebula_template" "debian11" {
│ 
│ no templates match the constraints

On 1.2.1 works fine.

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

Successfully merging a pull request may close this issue.

3 participants