sapcc / terraform-provider-ccloud

Terraform provider for Converged Cloud extended OpenStack Services
Mozilla Public License 2.0
11 stars 5 forks source link

quota apply hangs when domain_id and region_id not set #99

Closed zentale closed 4 months ago

zentale commented 1 year ago

https://github.com/sapcc/terraform-provider-ccloud/blob/2816e80c9521e9e5e54c48aad96c77f317ff839b/ccloud/resource_ccloud_quota_project_v1.go#L246-L250

Above snippet doesnt check if domain_id and region_id exists. Updating Quota for: /:

2023-11-03T08:41:05.341+0100 [INFO]  Starting apply for module.resource_limits.ccloud_quota_project_v1.project_resource_limits
2023-11-03T08:41:05.343+0100 [INFO]  provider.terraform-provider-ccloud_v1.5.1: 2023/11/03 08:41:05 [DEBUG] Updating Quota for: /: timestamp=2023-11-03T08:41:05.343+0100

The output hangs on waiting for active state.

2023-11-03T08:41:05.794+0100 [INFO]  provider.terraform-provider-ccloud_v1.5.1: 2023/11/03 08:41:05 [DEBUG] compute.instances: {40 }: timestamp=2023-11-03T08:41:05.793+0100
2023-11-03T08:41:05.794+0100 [INFO]  provider.terraform-provider-ccloud_v1.5.1: 2023/11/03 08:41:05 [DEBUG] Service Changed: volumev2: timestamp=2023-11-03T08:41:05.793+0100
2023-11-03T08:41:05.794+0100 [INFO]  provider.terraform-provider-ccloud_v1.5.1: 2023/11/03 08:41:05 [DEBUG] Waiting for state to become: [active]: timestamp=2023-11-03T08:41:05.793+0100
2023-11-03T08:41:07.051+0100 [INFO]  provider.terraform-provider-ccloud_v1.5.1: 2023/11/03 08:41:07 [TRACE] Waiting 1s before next try: timestamp=2023-11-03T08:41:07.051+0100
2023-11-03T08:41:08.156+0100 [INFO]  provider.terraform-provider-ccloud_v1.5.1: 2023/11/03 08:41:08 [TRACE] Waiting 2s before next try: timestamp=2023-11-03T08:41:08.155+0100
2023-11-03T08:41:10.257+0100 [INFO]  provider.terraform-provider-ccloud_v1.5.1: 2023/11/03 08:41:10 [TRACE] Waiting 4s before next try: timestamp=2023-11-03T08:41:10.256+0100
2023-11-03T08:41:14.369+0100 [INFO]  provider.terraform-provider-ccloud_v1.5.1: 2023/11/03 08:41:14 [TRACE] Waiting 8s before next try: timestamp=2023-11-03T08:41:14.368+0100
module.resource_limits.ccloud_quota_project_v1.project_resource_limits: Still creating... [10s elapsed]
kayrus commented 4 months ago

The quota resource was deprecated since the quota model was moved to a Pay-As-You-Go model.