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

[Bug]: Fix race condition when deploying Charmed HPC #2

Open
NucciTheBoss opened this issue Sep 20, 2024 · 0 comments
Open

[Bug]: Fix race condition when deploying Charmed HPC #2

NucciTheBoss opened this issue Sep 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@NucciTheBoss
Copy link
Member

There current exists a race condition with how Terraform constructs the deployment plan for Charmed HPC.

The issue is caused by us referring to the model name as regular string rather than as a Terraform resource. When parallelism is enabled, sometimes the Charmed HPC deployment will fail, however, if we do not use parallelism - terraform apply -auto-approve -parallelism=1- the Terraform will succeed at deploying the Charmed HPC cloud.

Possible fix

Refer to model name using a Terraform resource rather than as a regular string:

# Instead of this
model = var.model_name

# Do this instead
model = juju_model.charmed-hpc.name

Relevant screenshots

Race conditions being shown by Terraform:

image

image

@NucciTheBoss NucciTheBoss added the bug Something isn't working label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant