Hi!
don't create backup plan use vk-cs provider for terraform.
successful create backup vm and db, but create plan for automatic create backup's :(
help me please. what's the mistake?
code use for create backup plan:
terraform plan:
DB
2024-10-14T13:43:46.669+0500 [INFO] backend/local: plan operation completed
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
resource "vkcs_backup_plan" "backup_plan" {
name = "backup-plan-tf-instance"
provider_name = "cloud_servers"
incremental_backup = true
'# Create full backup every Monday at 04:00 MSK
'# Incremental backups are created each other day at the same time
schedule = {
date = ["Mo"]
time = "04:00+03"
}
full_retention = {
max_full_backup = 25
}
instance_ids = ["vm"]
}
2024-10-14T12:20:18.676+0500 [DEBUG] provider.terraform-provider-vkcs_0.5.0: Called provider defined Resource Create: tf_mux_provider=proto6server.Server tf_provider_addr=vk-cs/vkcs tf_req_id=3a540804-6c22-c7b9-5a9d-500cb907d5b8 tf_resource_type=vkcs_backup_plan tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.2.0/internal/fwserver/server_createresource.go:98 @module=sdk.framework timestamp=2024-10-14T12:20:18.676+0500
2024-10-14T12:20:18.676+0500 [ERROR] provider.terraform-provider-vkcs_0.5.0: Response contains error diagnostic: tf_resource_type=vkcs_backup_plan tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-go@v0.15.0/tfprotov6/internal/diag/diagnostics.go:55 @module=sdk.proto diagnostic_summary="Error creating VKCS backup client" tf_provider_addr=vk-cs/vkcs tf_req_id=3a540804-6c22-c7b9-5a9d-500cb907d5b8 tf_proto_version=6.3 diagnostic_detail="No suitable endpoint could be found in the service catalog." diagnostic_severity=ERROR timestamp=2024-10-14T12:20:18.676+0500
2024-10-14T12:20:18.677+0500 [DEBUG] State storage remote.State declined to persist a state snapshot
2024-10-14T12:20:18.677+0500 [ERROR] vertex "vkcs_backup_plan.backup_plan" error: Error creating VKCS backup client
2024-10-14T12:20:18.678+0500 [DEBUG] states/remote: state read serial is: 2; serial is: 2
2024-10-14T12:20:18.678+0500 [DEBUG] states/remote: state read lineage is: 5998a435-e99b-4be7-b7a6-e970d2acbfd0; lineage is: 5998a435-e99b-4be7-b7a6-e970d2acbfd0
2024-10-14T12:20:18.687+0500 [DEBUG] POST https://gitlab
│ Error: Error creating VKCS backup client
│
│ with vkcs_backup_plan.backup_plan,
│ on backup.tf line 6, in resource "vkcs_backup_plan" "backup_plan":
│ 6: resource "vkcs_backup_plan" "backup_plan" {
│
│ No suitable endpoint could be found in the service catalog.
╵
2024-10-14T12:20:20.088+0500 [DEBUG] DELETE https://gitlab.
2024-10-14T12:20:20.257+0500 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2024-10-14T12:20:20.258+0500 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/vk-cs/vkcs/0.5.0/darwin_arm64/terraform-provider-vkcs_0.5.0 pid=92472
2024-10-14T12:20:20.258+0500 [DEBUG] provider: plugin exited
Hi! don't create backup plan use vk-cs provider for terraform.
successful create backup vm and db, but create plan for automatic create backup's :(
help me please. what's the mistake?
code use for create backup plan:
terraform plan: DB 2024-10-14T13:43:46.669+0500 [INFO] backend/local: plan operation completed Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
Terraform will perform the following actions:
'# vkcs_backup_plan.backup_plan will be created
Plan: 1 to add, 0 to change, 0 to destroy.
resource "vkcs_backup_plan" "backup_plan" { name = "backup-plan-tf-postgres" provider_name = "dbaas" incremental_backup = false schedule = { every_hours = 12 } full_retention = { max_full_backup = 25 } instance_ids = [vkcs_db_instance.postgres_01.id] }
2024-10-14T12:33:24.717+0500 [DEBUG] provider.terraform-provider-vkcs_0.5.0: Calling provider defined Resource Create: tf_req_id=be8009b1-76e7-9c77-2ece-43e907aba907 tf_resource_type=vkcs_backup_plan tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.2.0/internal/fwserver/server_createresource.go:96 tf_provider_addr=vk-cs/vkcs tf_mux_provider=proto6server.Server @module=sdk.framework timestamp=2024-10-14T12:33:24.716+0500 2024-10-14T12:33:24.717+0500 [DEBUG] provider.terraform-provider-vkcs_0.5.0: 2024/10/14 12:33:24 [DEBUG] OpenStack Region is: RegionOne 2024-10-14T12:33:24.717+0500 [DEBUG] provider.terraform-provider-vkcs_0.5.0: Called provider defined Resource Create: @caller=github.com/hashicorp/terraform-plugin-framework@v1.2.0/internal/fwserver/server_createresource.go:98 tf_mux_provider=proto6server.Server tf_rpc=ApplyResourceChange tf_resource_type=vkcs_backup_plan @module=sdk.framework tf_provider_addr=vk-cs/vkcs tf_req_id=be8009b1-76e7-9c77-2ece-43e907aba907 timestamp=2024-10-14T12:33:24.717+0500 2024-10-14T12:33:24.717+0500 [ERROR] provider.terraform-provider-vkcs_0.5.0: Response contains error diagnostic: tf_provider_addr=vk-cs/vkcs tf_req_id=be8009b1-76e7-9c77-2ece-43e907aba907 @caller=github.com/hashicorp/terraform-plugin-go@v0.15.0/tfprotov6/internal/diag/diagnostics.go:55 diagnostic_detail="No suitable endpoint could be found in the service catalog." diagnostic_severity=ERROR diagnostic_summary="Error creating VKCS backup client" tf_proto_version=6.3 tf_resource_type=vkcs_backup_plan @module=sdk.proto tf_rpc=ApplyResourceChange timestamp=2024-10-14T12:33:24.717+0500 2024-10-14T12:33:24.718+0500 [DEBUG] State storage *remote.State declined to persist a state snapshot 2024-10-14T12:33:24.718+0500 [ERROR] vertex "vkcs_backup_plan.backup_plan" error: Error creating VKCS backup client 2024-10-14T12:33:24.718+0500 [DEBUG] states/remote: state read serial is: 3; serial is: 3 2024-10-14T12:33:24.718+0500 [DEBUG] states/remote: state read lineage is: 5998a435-e99b-4be7-b7a6-e970d2acbfd0; lineage is: 5998a435-e99b-4be7-b7a6-e970d2acbfd0 2024-10-14T12:33:24.728+0500 [DEBUG] POST https://gitlab Error: Error creating VKCS backup client │ │ with vkcs_backup_plan.backup_plan, │ on backup.tf line 21, in resource "vkcs_backup_plan" "backup_plan": │ 21: resource "vkcs_backup_plan" "backup_plan" { │ │ No suitable endpoint could be found in the service catalog. ╵ 2024-10-14T12:33:25.303+0500 [DEBUG] DELETE https://gitlab 2024-10-14T12:33:25.483+0500 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF" 2024-10-14T12:33:25.485+0500 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/vk-cs/vkcs/0.5.0/darwin_arm64/terraform-provider-vkcs_0.5.0 pid=98208 2024-10-14T12:33:25.485+0500 [DEBUG] provider: plugin exited
VM
2024-10-14T13:45:33.976+0500 [INFO] backend/local: plan operation completed
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
Terraform will perform the following actions:
'# vkcs_backup_plan.backup_plan will be created
Plan: 1 to add, 0 to change, 0 to destroy.
resource "vkcs_backup_plan" "backup_plan" { name = "backup-plan-tf-instance" provider_name = "cloud_servers" incremental_backup = true '# Create full backup every Monday at 04:00 MSK '# Incremental backups are created each other day at the same time schedule = { date = ["Mo"] time = "04:00+03" } full_retention = { max_full_backup = 25 } instance_ids = ["vm"] }
2024-10-14T12:20:18.676+0500 [DEBUG] provider.terraform-provider-vkcs_0.5.0: Called provider defined Resource Create: tf_mux_provider=proto6server.Server tf_provider_addr=vk-cs/vkcs tf_req_id=3a540804-6c22-c7b9-5a9d-500cb907d5b8 tf_resource_type=vkcs_backup_plan tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.2.0/internal/fwserver/server_createresource.go:98 @module=sdk.framework timestamp=2024-10-14T12:20:18.676+0500 2024-10-14T12:20:18.676+0500 [ERROR] provider.terraform-provider-vkcs_0.5.0: Response contains error diagnostic: tf_resource_type=vkcs_backup_plan tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-go@v0.15.0/tfprotov6/internal/diag/diagnostics.go:55 @module=sdk.proto diagnostic_summary="Error creating VKCS backup client" tf_provider_addr=vk-cs/vkcs tf_req_id=3a540804-6c22-c7b9-5a9d-500cb907d5b8 tf_proto_version=6.3 diagnostic_detail="No suitable endpoint could be found in the service catalog." diagnostic_severity=ERROR timestamp=2024-10-14T12:20:18.676+0500 2024-10-14T12:20:18.677+0500 [DEBUG] State storage remote.State declined to persist a state snapshot 2024-10-14T12:20:18.677+0500 [ERROR] vertex "vkcs_backup_plan.backup_plan" error: Error creating VKCS backup client 2024-10-14T12:20:18.678+0500 [DEBUG] states/remote: state read serial is: 2; serial is: 2 2024-10-14T12:20:18.678+0500 [DEBUG] states/remote: state read lineage is: 5998a435-e99b-4be7-b7a6-e970d2acbfd0; lineage is: 5998a435-e99b-4be7-b7a6-e970d2acbfd0 2024-10-14T12:20:18.687+0500 [DEBUG] POST https://gitlab
│ Error: Error creating VKCS backup client │ │ with vkcs_backup_plan.backup_plan, │ on backup.tf line 6, in resource "vkcs_backup_plan" "backup_plan": │ 6: resource "vkcs_backup_plan" "backup_plan" { │ │ No suitable endpoint could be found in the service catalog. ╵ 2024-10-14T12:20:20.088+0500 [DEBUG] DELETE https://gitlab. 2024-10-14T12:20:20.257+0500 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF" 2024-10-14T12:20:20.258+0500 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/vk-cs/vkcs/0.5.0/darwin_arm64/terraform-provider-vkcs_0.5.0 pid=92472 2024-10-14T12:20:20.258+0500 [DEBUG] provider: plugin exited