You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2023/01/16 17:05:19 UTC

[GitHub] [cloudstack-terraform-provider] ccycv opened a new issue, #48: error retrieving ID of zone all: No match found for all: &{Count:0 Zones:[]}

ccycv opened a new issue, #48:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/48

   Is there a way to register a template in all the available zones without having to specify each zone?
   
   I tested with value "all" and I get this error.
   
   
   ```
   cloudstack_template.Test1: Creating...
   ╷
   │ Error: Error retrieving ID of zone all: No match found for all: &{Count:0 Zones:[]}
   │
   │   with cloudstack_template.Test1,
   │   on acs.tf line 95, in resource "cloudstack_template" "Test1":
   │   95: resource "cloudstack_template" "Test1" {
   
   ```
   
   And with value "-1" works... but is still get this error even the template is registered in all cloudstack zones.
   
   
   ```
   cloudstack_template.Test1: Still creating... [10s elapsed]
   ╷
   │ Error: There is more then one result for Template UUID: f16ffd67-c9a8-42fe-91b1-30624a3635ba!
   │
   │   with cloudstack_template.Test1,
   │   on acs.tf line 96, in resource "cloudstack_template" "Test1":
   │   96: resource "cloudstack_template" "Test1" {
   │
   ╵
   PS I:\terraform\cloudstack Register Templates>
   ``` 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] error retrieving ID of zone all: No match found for all: &{Count:0 Zones:[]} [cloudstack-terraform-provider]

Posted by "rohityadavcloud (via GitHub)" <gi...@apache.org>.
rohityadavcloud closed issue #48: error retrieving ID of zone all: No match found for all: &{Count:0 Zones:[]}
URL: https://github.com/apache/cloudstack-terraform-provider/issues/48


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] error retrieving ID of zone all: No match found for all: &{Count:0 Zones:[]} [cloudstack-terraform-provider]

Posted by "kiranchavala (via GitHub)" <gi...@apache.org>.
kiranchavala commented on issue #48:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/48#issuecomment-1978338596

   I think this can be fixed by including the zoneids parameter
   
   Need to include zoneids parameter in the terraform code (resourceCloudStackTemplate, resourceCloudStackTemplateCreate)
   
   https://github.com/apache/cloudstack-terraform-provider/blob/c8279b9ae5f45f29c16322ad21271e2325ec3d81/cloudstack/resource_cloudstack_template.go#L32
   
   
   https://cloudstack.apache.org/api/apidocs-4.19/apis/registerTemplate.html
   
   cc @vishesh92 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org