Skip to content

Commit be4c44e

Browse files
authored
Merge pull request GoogleCloudPlatform#4416 from GoogleCloudPlatform/release-candidate
Release candidate: v1.59.0
2 parents 243ed79 + 4192abc commit be4c44e

92 files changed

Lines changed: 438 additions & 654 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cluster-toolkit-writers.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,5 +367,11 @@
367367
},
368368
{
369369
"login": "ljqg"
370+
},
371+
{
372+
"login": "sarthakag"
373+
},
374+
{
375+
"login": "rachit-google"
370376
}
371377
]

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ HPC deployments on the Google Cloud Platform.`,
5353
logging.Fatal("cmd.Help function failed: %s", err)
5454
}
5555
},
56-
Version: "v1.58.0",
56+
Version: "v1.59.0",
5757
Annotations: annotation,
5858
}
5959
)

community/front-end/ofe/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ google-cloud-billing==1.16.2
3737
google-cloud-core==2.4.3
3838
google-cloud-pubsub==2.29.0
3939
google-cloud-compute==1.29.0
40-
google-cloud-storage==2.19.0
40+
google-cloud-storage==3.1.1
4141
google-cloud-secret-manager==2.22.1
4242
google-crc32c==1.5.0
4343
google-resumable-media==2.7.2
@@ -63,7 +63,7 @@ mccabe==0.7.0
6363
mypy-extensions==1.0.0
6464
nodeenv==1.9.1
6565
oauthlib==3.2.2
66-
path==16.7.1
66+
path==17.1.0
6767
pkgutil_resolve_name==1.3.10
6868
platformdirs==4.3.7
6969
pre-commit==4.2.0

community/modules/compute/htcondor-execute-point/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ terraform {
2929
}
3030

3131
provider_meta "google" {
32-
module_name = "blueprints/terraform/hpc-toolkit:htcondor-execute-point/v1.58.0"
32+
module_name = "blueprints/terraform/hpc-toolkit:htcondor-execute-point/v1.59.0"
3333
}
3434
}

community/modules/compute/mig/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ terraform {
2222
}
2323
}
2424
provider_meta "google" {
25-
module_name = "blueprints/terraform/hpc-toolkit:mig/v1.58.0"
25+
module_name = "blueprints/terraform/hpc-toolkit:mig/v1.59.0"
2626
}
2727
}

community/modules/compute/schedmd-slurm-gcp-v6-nodeset-dynamic/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ modules. For support with the underlying modules, see the instructions in the
6666
6767
## Providers
6868
69-
| Name | Version |
70-
|------|---------|
71-
| <a name="provider_google"></a> [google](#provider\_google) | >= 5.11 |
69+
No providers.
7270
7371
## Modules
7472
@@ -79,9 +77,7 @@ modules. For support with the underlying modules, see the instructions in the
7977
8078
## Resources
8179
82-
| Name | Type |
83-
|------|------|
84-
| [google_compute_image.slurm](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/compute_image) | data source |
80+
No resources.
8581
8682
## Inputs
8783

community/modules/compute/schedmd-slurm-gcp-v6-nodeset-dynamic/source_image_logic.tf

Lines changed: 37 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -32,46 +32,49 @@ locals {
3232
# https://github.com/terraform-google-modules/terraform-google-vm/blob/735bd415fc5f034d46aa0de7922e8fada2327c0c/modules/instance_template/main.tf#L28
3333
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
3434
source_image_project_normalized = (can(var.instance_image.family) ?
35-
"projects/${data.google_compute_image.slurm.project}/global/images/family" :
36-
"projects/${data.google_compute_image.slurm.project}/global/images"
35+
"projects/${var.instance_image.project}/global/images/family" :
36+
"projects/${var.instance_image.project}/global/images"
3737
)
38-
source_image_family = can(var.instance_image.family) ? data.google_compute_image.slurm.family : ""
39-
source_image = can(var.instance_image.name) ? data.google_compute_image.slurm.name : ""
38+
source_image_family = try(var.instance_image.family, "")
39+
source_image = try(var.instance_image.name, "")
4040
}
4141

42-
data "google_compute_image" "slurm" {
43-
family = try(var.instance_image.family, null)
44-
name = try(var.instance_image.name, null)
45-
project = var.instance_image.project
42+
check "image_validation" {
43+
data "google_compute_image" "slurm" {
44+
family = try(var.instance_image.family, null)
45+
name = try(var.instance_image.name, null)
46+
project = var.instance_image.project
47+
}
4648

47-
lifecycle {
48-
precondition {
49-
condition = length(regexall("^projects/.+?/global/images/family$", var.instance_image.project)) == 0
50-
error_message = "The \"project\" field in var.instance_image no longer supports a long-form ending in \"family\". Specify only the project ID."
51-
}
49+
assert {
50+
condition = length(regexall("^projects/.+?/global/images/family$", var.instance_image.project)) == 0
51+
error_message = "The \"project\" field in var.instance_image no longer supports a long-form ending in \"family\". Specify only the project ID."
52+
}
5253

53-
postcondition {
54-
condition = var.instance_image_custom || contains(keys(local.known_project_families), self.project)
55-
error_message = <<-EOD
56-
Images in project ${self.project} are not published by SchedMD. Images must be created by compatible releases of the Terraform and Packer modules following the guidance at https://goo.gle/hpc-slurm-images. Set var.instance_image_custom to true to silence this error and acknowledge that you are using a compatible image.
54+
assert {
55+
condition = var.instance_image_custom || contains(keys(local.known_project_families), data.google_compute_image.slurm.project)
56+
error_message = <<-EOD
57+
Images in project ${data.google_compute_image.slurm.project} are not published by SchedMD. Images must be created by compatible releases of the Terraform and Packer modules following the guidance at https://goo.gle/hpc-slurm-images. Set var.instance_image_custom to true to silence this error and acknowledge that you are using a compatible image.
5758
EOD
58-
}
59-
postcondition {
60-
condition = !contains(keys(local.known_project_families), self.project) || try(contains(local.known_project_families[self.project], self.family), false)
61-
error_message = <<-EOD
62-
Image family ${self.family} published by SchedMD in project ${self.project} is not compatible with this release of the Terraform Slurm modules. Select from known compatible releases:
63-
${join("\n", [for p in try(local.known_project_families[self.project], []) : "\t\"${p}\""])}
59+
}
60+
61+
assert {
62+
condition = !contains(keys(local.known_project_families), data.google_compute_image.slurm.project) || try(contains(local.known_project_families[data.google_compute_image.slurm.project], data.google_compute_image.slurm.family), false)
63+
error_message = <<-EOD
64+
Image family ${data.google_compute_image.slurm.family} published by SchedMD in project ${data.google_compute_image.slurm.project} is not compatible with this release of the Terraform Slurm modules. Select from known compatible releases:
65+
${join("\n", [for p in try(local.known_project_families[data.google_compute_image.slurm.project], []) : "\t\"${p}\""])}
6466
EOD
65-
}
66-
postcondition {
67-
condition = var.disk_size_gb >= self.disk_size_gb
68-
error_message = "'disk_size_gb: ${var.disk_size_gb}' is smaller than the image size (${self.disk_size_gb}GB), please increase the blueprint disk size"
69-
}
70-
postcondition {
71-
# Condition needs to check the suffix of the license, as prefix contains an API version which can change.
72-
# Example license value: https://www.googleapis.com/compute/v1/projects/cloud-hpc-image-public/global/licenses/hpc-vm-image-feature-disable-auto-updates
73-
condition = var.allow_automatic_updates || anytrue([for license in self.licenses : endswith(license, "/projects/cloud-hpc-image-public/global/licenses/hpc-vm-image-feature-disable-auto-updates")])
74-
error_message = "Disabling automatic updates is not supported with the selected VM image. More information: https://cloud.google.com/compute/docs/instances/create-hpc-vm#disable_automatic_updates"
75-
}
67+
}
68+
69+
assert {
70+
condition = var.disk_size_gb >= data.google_compute_image.slurm.disk_size_gb
71+
error_message = "'disk_size_gb: ${var.disk_size_gb}' is smaller than the image size (${data.google_compute_image.slurm.disk_size_gb}GB), please increase the blueprint disk size"
72+
}
73+
74+
assert {
75+
# Condition needs to check the suffix of the license, as prefix contains an API version which can change.
76+
# Example license value: https://www.googleapis.com/compute/v1/projects/cloud-hpc-image-public/global/licenses/hpc-vm-image-feature-disable-auto-updates
77+
condition = var.allow_automatic_updates || anytrue([for license in data.google_compute_image.slurm.licenses : endswith(license, "/projects/cloud-hpc-image-public/global/licenses/hpc-vm-image-feature-disable-auto-updates")])
78+
error_message = "Disabling automatic updates is not supported with the selected VM image. More information: https://cloud.google.com/compute/docs/instances/create-hpc-vm#disable_automatic_updates"
7679
}
7780
}

community/modules/compute/schedmd-slurm-gcp-v6-nodeset-dynamic/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ terraform {
2424
}
2525
}
2626
provider_meta "google" {
27-
module_name = "blueprints/terraform/hpc-toolkit:schedmd-slurm-gcp-v6-nodeset-dynamic/v1.58.0"
27+
module_name = "blueprints/terraform/hpc-toolkit:schedmd-slurm-gcp-v6-nodeset-dynamic/v1.59.0"
2828
}
2929
}

community/modules/compute/schedmd-slurm-gcp-v6-nodeset-tpu/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ terraform {
1818
required_version = ">= 1.3"
1919

2020
provider_meta "google" {
21-
module_name = "blueprints/terraform/hpc-toolkit:schedmd-slurm-gcp-v6-nodeset-tpu/v1.58.0"
21+
module_name = "blueprints/terraform/hpc-toolkit:schedmd-slurm-gcp-v6-nodeset-tpu/v1.59.0"
2222
}
2323
}

community/modules/compute/schedmd-slurm-gcp-v6-nodeset/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ modules. For support with the underlying modules, see the instructions in the
151151
| Name | Type |
152152
|------|------|
153153
| [terraform_data.machine_type_zone_validation](https://registry.terraform.io/providers/hashicorp/terraform/latest/docs/resources/data) | resource |
154-
| [google_compute_image.slurm](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/compute_image) | data source |
155154
| [google_compute_machine_types.machine_types_by_zone](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/compute_machine_types) | data source |
156155
| [google_compute_reservation.reservation](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/compute_reservation) | data source |
157156
| [google_compute_zones.available](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/compute_zones) | data source |
@@ -160,6 +159,7 @@ modules. For support with the underlying modules, see the instructions in the
160159

161160
| Name | Description | Type | Default | Required |
162161
|------|-------------|------|---------|:--------:|
162+
| <a name="input_accelerator_topology"></a> [accelerator\_topology](#input\_accelerator\_topology) | Specifies the shape of the Accelerator (GPU/TPU) slice. | `string` | `null` | no |
163163
| <a name="input_access_config"></a> [access\_config](#input\_access\_config) | Access configurations, i.e. IPs via which the VM instance can be accessed via the Internet. | <pre>list(object({<br/> nat_ip = string<br/> network_tier = string<br/> }))</pre> | `[]` | no |
164164
| <a name="input_additional_disks"></a> [additional\_disks](#input\_additional\_disks) | Configurations of additional disks to be included on the partition nodes. | <pre>list(object({<br/> disk_name = optional(string)<br/> device_name = optional(string)<br/> disk_size_gb = optional(number)<br/> disk_type = optional(string)<br/> disk_labels = optional(map(string))<br/> auto_delete = optional(bool)<br/> boot = optional(bool)<br/> disk_resource_manager_tags = optional(map(string))<br/> }))</pre> | `[]` | no |
165165
| <a name="input_additional_networks"></a> [additional\_networks](#input\_additional\_networks) | Additional network interface details for GCE, if any. | <pre>list(object({<br/> network = optional(string)<br/> subnetwork = string<br/> subnetwork_project = optional(string)<br/> network_ip = optional(string, "")<br/> nic_type = optional(string)<br/> stack_type = optional(string)<br/> queue_count = optional(number)<br/> access_config = optional(list(object({<br/> nat_ip = string<br/> network_tier = string<br/> })), [])<br/> ipv6_access_config = optional(list(object({<br/> network_tier = string<br/> })), [])<br/> alias_ip_range = optional(list(object({<br/> ip_cidr_range = string<br/> subnetwork_range_name = string<br/> })), [])<br/> }))</pre> | `[]` | no |

0 commit comments

Comments
 (0)