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

cluster read should base check if ip of cluster is already connected #14

Closed
Sczlog opened this issue Jun 26, 2023 · 2 comments
Closed

Comments

@Sczlog
Copy link
Collaborator

Sczlog commented Jun 26, 2023

use cluster resource which already connected to server throw internal connect cluster error.


cloudtower_cluster.sample_cluster: Creating...
╷
│ Error: [POST /connect-cluster][500] connectClusterInternalServerError  &{Message:0xc0004ce720 OperationName:0xc0004ce6f0 Path:0xc0004ce6c0 Props:map[createCluster:map[code:CLUSTER_ALREADY_CONNECTED message:cluster already connected]] Stack:0xc0004ce750 Status:0xc00028afb0}
│ 
│   with cloudtower_cluster.sample_cluster,
│   on create.tf line 25, in resource "cloudtower_cluster" "sample_cluster":
│   25: resource "cloudtower_cluster" "sample_cluster" {
│ 
╵
@Sczlog
Copy link
Collaborator Author

Sczlog commented Jun 26, 2023

temporary, terraform doesn't support mark one field as uniqueness

hashicorp/terraform-plugin-sdk#224

@Sczlog
Copy link
Collaborator Author

Sczlog commented Jun 27, 2023

wait until terraofrm support global uniquesness detection

@Sczlog Sczlog closed this as completed Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant