You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "tomaspekarovic (via GitHub)" <gi...@apache.org> on 2024/11/21 09:42:35 UTC
[I] ACL_ID not accepting id [cloudstack-terraform-provider]
tomaspekarovic opened a new issue, #145:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/145
i have this code: using (0.5.0 provider)
```
22 resource "cloudstack_vpc" "tomas_vpc" {
21 name = "tomas_vpc"
20 display_text = "Tomas VPC"
19 cidr = "10.20.0.0/16"
18 vpc_offering = "Default VPC Offering"
17 zone = "SK-WDS01"
16 }
15
14 resource "cloudstack_network" "tomas_network" {
13 name = "tomas_network"
12 display_text = "Tomasova siet"
11 network_offering = "DefaultIsolatedNetworkOfferingForVpcNetworks"
10 zone = "SK-WDS01"
9 vpc_id = cloudstack_vpc.tomas_vpc.id
8 cidr = "10.20.1.0/24"
7 gateway = "10.20.1.1"
6 acl_id = "ibdb115e1-16aa-11ef-9251-42ad207a9833"
5 }
```
vpc is created but when network is going to be created, acl_id fails with:
```
│ Error: Error creating network tomas_network: CloudStack API error 431 (CSExceptionErrorCode: 9999): Unable to execute API command createnetwork due to invalid value. Invalid parameter aclid value=ibdb115e1-16aa-11ef-9251-42ad207a9833 due to incorrect long value format, or entity does not exist or due to incorrect parameter annotation for the field in api cmd class.
│
│ with cloudstack_network.tomas_network,
│ on main.tf line 44, in resource "cloudstack_network" "tomas_network":
│ 44: resource "cloudstack_network" "tomas_network" {
```
Acl exists, and lot of networks has this attached ...
--
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] ACL_ID not accepting id [cloudstack-terraform-provider]
Posted by "kiranchavala (via GitHub)" <gi...@apache.org>.
kiranchavala closed issue #145: ACL_ID not accepting id
URL: https://github.com/apache/cloudstack-terraform-provider/issues/145
--
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] ACL_ID not accepting id [cloudstack-terraform-provider]
Posted by "kiranchavala (via GitHub)" <gi...@apache.org>.
kiranchavala commented on issue #145:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/145#issuecomment-3197599597
Closing the issue as it's not reproducible
--
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] ACL_ID not accepting id [cloudstack-terraform-provider]
Posted by "kiranchavala (via GitHub)" <gi...@apache.org>.
kiranchavala commented on issue #145:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/145#issuecomment-2871964439
@tomaspekarovic are you still facing the issue .
can I go ahead and close the issue
--
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] ACL_ID not accepting id [cloudstack-terraform-provider]
Posted by "kiranchavala (via GitHub)" <gi...@apache.org>.
kiranchavala commented on issue #145:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/145#issuecomment-2646959508
@tomaspekarovic ACL rules are tied to a specific vpc network in cloudstack.
An existing acl for a vpc cannot be used for another vpc.
Please try the following terraform code create a acl rule and attach it to a vpc
```
resource "cloudstack_vpc" "tomas_vpc" {
name = "tomas_vpc"
display_text = "Tomas VPC"
cidr = "10.20.0.0/16"
vpc_offering = "Default VPC Offering"
zone = "83bddd7d-3f56-4085-a709-f9694b9e8608"
}
resource "cloudstack_network_acl" "default" {
name = "test-acl"
vpc_id = cloudstack_vpc.tomas_vpc.id
}
resource "cloudstack_network_acl_rule" "default" {
acl_id = cloudstack_network_acl.default.id
rule {
action = "allow"
cidr_list = ["10.0.0.0/8"]
protocol = "tcp"
ports = ["80", "1000-2000"]
traffic_type = "ingress"
}
}
resource "cloudstack_network" "tomas_network" {
name = "tomas_network"
display_text = "Tomasova siet"
network_offering = "DefaultIsolatedNetworkOfferingForVpcNetworks"
zone = "83bddd7d-3f56-4085-a709-f9694b9e8608"
vpc_id = cloudstack_vpc.tomas_vpc.id
cidr = "10.20.1.0/24"
gateway = "10.20.1.1"
acl_id = cloudstack_network_acl.default.id
}
```
--
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