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

SlurmV6. Make cleanup_compute_nodes depends_on on network #2126

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ module "slurm_controller_instance" {
static_ips = var.static_ips
subnetwork = var.subnetwork_self_link
zone = var.zone

metadata = var.metadata
metadata = var.metadata

depends_on = [
module.slurm_files,
Expand Down Expand Up @@ -155,6 +154,11 @@ module "cleanup_compute_nodes" {
slurm_cluster_name = local.slurm_cluster_name
project_id = var.project_id
when_destroy = true

# Depend on controller network, as a best effort to avoid
# subnetwork resourceInUseByAnotherResource error
# NOTE: Can not use nodeset subnetworks as "A static list expression is required"
depends_on = [var.subnetwork_self_link]
}


Expand Down
Loading