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

Release v1.17.0 #1276

Merged
merged 167 commits into from
May 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
7aee743
Replace startup-srcipt examples with bool inputs (#1100)
mr0re1 Apr 4, 2023
c66acf0
Copy all embedded modules into deployment, use unique source for loca…
mr0re1 Apr 4, 2023
0a3c649
Close copy file descriptor in EmbeddedSourceReader
mr0re1 Apr 4, 2023
16b6c0a
Improve error match in embedded_test
mr0re1 Apr 4, 2023
79f3f33
Adds a k8s-cluster module to community
nick-stroud Apr 4, 2023
791051a
Merge pull request #1113 from nick-stroud/gke-cluster
nick-stroud Apr 4, 2023
ad16970
updating DAOS documentation to point to v0.3.0
cboneti Apr 4, 2023
a8286e3
Merge pull request #1116 from cboneti/daos-docs-update
cboneti Apr 4, 2023
24c53ec
Updating packer documentation to make usage easier to find
cboneti Apr 4, 2023
0416e3b
Simplify and relax type constraints for variables.tf (#1111)
mr0re1 Apr 4, 2023
2cbdb5e
Make every integration test into individual build config (#1112)
mr0re1 Apr 5, 2023
062e3d0
Fix validator test_deployment_variable_not_used (#1120)
mr0re1 Apr 5, 2023
4646f4a
Add basic documentation for gke-cluster module and example
nick-stroud Apr 4, 2023
adc924a
Merge pull request #1117 from nick-stroud/gke-cluster-docs
nick-stroud Apr 5, 2023
eeb3bba
Addressing feedback on packer documentation changes
cboneti Apr 5, 2023
ac5beea
Merge pull request #1118 from cboneti/packer-docs-update
cboneti Apr 5, 2023
5906794
Add `image_storage_locations` input to `modules/packer/custom-image` …
mr0re1 Apr 5, 2023
4b2c58e
Add TF definition for DAILY-test-X,PR-test-X, and PR-validation (#1119)
mr0re1 Apr 6, 2023
2ccd054
Add "babysit_tests" tool to automatically approve PR tests (#1106)
mr0re1 Apr 6, 2023
432dbd0
Add HCL String function to varRef
tpdownes Apr 6, 2023
a7906c5
Adopt HclString func
tpdownes Apr 6, 2023
7ba99ae
Properly handle deployment variables in IsIntergroup test
tpdownes Apr 6, 2023
81d8029
Explicitly specify daily-tests properties what will be set by CloudBu…
mr0re1 Apr 6, 2023
88c5c2c
Remove `http_target.headers` from `google_cloud_scheduler_job`
mr0re1 Apr 6, 2023
8364463
Move SlurmV5 test affected by stockouts to us-west4-c
mr0re1 Apr 6, 2023
affc08d
Address feedback from #1127
tpdownes Apr 6, 2023
2b0bd98
Merge pull request #1127 from tpdownes/hcl_string
tpdownes Apr 6, 2023
2cb15f5
Remove test groups, update documentation
mr0re1 Apr 6, 2023
f5dacb5
Fix bug in check for mixing module kinds within a group (#1130)
mr0re1 Apr 6, 2023
ba4c816
Update GitHub bug report template (#1131)
mr0re1 Apr 7, 2023
f188bd5
Remove deprecated pod_security_policy
nick-stroud Apr 7, 2023
a48513c
Merge pull request #1133 from nick-stroud/gke-pod-security-deprecated
nick-stroud Apr 7, 2023
7cdd5b4
Add instructions for connecting to the gke-cluster
nick-stroud Apr 7, 2023
61cb273
Add test selectors to babysit tool (#1136)
mr0re1 Apr 7, 2023
e8d19c9
Add TF for legacy PR tests. To be removed after release (#1135)
mr0re1 Apr 7, 2023
e9846a9
Add SPACK_CACHE secret to spack-gromacs test (#1132)
mr0re1 Apr 7, 2023
3caa4f9
Address need for SystemD override in HTCondor module
tpdownes Apr 7, 2023
cbdb71f
Merge pull request #1138 from nick-stroud/gke-connect-to-cluster
nick-stroud Apr 7, 2023
6a56f67
Merge pull request #1139 from tpdownes/reword_systemd_override
tpdownes Apr 7, 2023
36afaa1
Bump github.com/otiai10/copy from 1.9.0 to 1.10.0
dependabot[bot] Apr 10, 2023
0ee879f
Update TFLint Google rules plugin
tpdownes Apr 10, 2023
fd53483
Update TFLint to v0.46.0
tpdownes Apr 10, 2023
ec53633
Enable specification of all fields of module outputs
tpdownes Apr 10, 2023
b3c5da1
Adopt OutputInfo in ModuleInfo struct
tpdownes Apr 10, 2023
9371f6e
Merge pull request #1146 from tpdownes/tflint_newver
tpdownes Apr 10, 2023
6d6fc24
Add double quotes on variables: SC2086 – ShellCheck
nick-stroud Apr 10, 2023
07c0969
Address feedback from #1129
tpdownes Apr 10, 2023
e18de6a
Merge pull request #1148 from nick-stroud/shellcheck_fix
nick-stroud Apr 10, 2023
e78c0c5
Merge pull request #1129 from tpdownes/sensitive_variables
tpdownes Apr 10, 2023
8079367
Represent TerraformBackend.Config with cty.Value
mr0re1 Apr 9, 2023
1391628
Address comments
mr0re1 Apr 10, 2023
9e372f8
Bump google.golang.org/api from 0.114.0 to 0.117.0
dependabot[bot] Apr 10, 2023
345bfc8
Reduce the number of execution hosts in pbs test to reduce the change…
nick-stroud Apr 10, 2023
9e88626
Truncate short sha length to 7 chars when filtering from cloud build
nick-stroud Apr 10, 2023
cff65a0
Merge pull request #1143 from GoogleCloudPlatform/dependabot/go_modul…
nick-stroud Apr 10, 2023
838ed99
Bump github.com/spf13/cobra from 1.6.1 to 1.7.0
dependabot[bot] Apr 10, 2023
d5bf212
Merge pull request #1145 from GoogleCloudPlatform/dependabot/go_modul…
nick-stroud Apr 11, 2023
411f35c
Merge pull request #1151 from nick-stroud/force-sha-to-7
nick-stroud Apr 11, 2023
0d85385
Merge pull request #1150 from GoogleCloudPlatform/dependabot/go_modul…
nick-stroud Apr 11, 2023
7dbf888
Pin google terraform provider to latest version
nick-stroud Apr 11, 2023
1161665
Add selectors for batch and spack tests to babysit_tests tool
nick-stroud Apr 11, 2023
0e7794d
Merge pull request #1153 from GoogleCloudPlatform/main
nick-stroud Apr 11, 2023
46749f9
Merge pull request #1154 from nick-stroud/update-terraform-provider
nick-stroud Apr 11, 2023
e679c02
Merge pull request #1155 from nick-stroud/add-selectors
nick-stroud Apr 11, 2023
15c4115
Merge pull request #1149 from nick-stroud/pbs-reduce-hosts-in-test
nick-stroud Apr 11, 2023
d05414c
Adding support for OFE deployment from the file
ek-nag Apr 12, 2023
1273c3b
Updating OFE admin guide
ek-nag Apr 12, 2023
a4691d8
OFE deploy from file no confirm
ek-nag Apr 12, 2023
c124926
Ensure that PBS test config explicitly uses network module
tpdownes Apr 12, 2023
6a2848b
Align internal use of Toolkit GitHub refs
tpdownes Apr 12, 2023
f9216f4
Fix HTCondor central manager configuration
tpdownes Apr 12, 2023
5f5a6b5
Merge pull request #1159 from tpdownes/fix_pbs_use
tpdownes Apr 12, 2023
ebd890b
Merge pull request #1160 from tpdownes/update_internal_refs
tpdownes Apr 12, 2023
63a2f96
Move Ubuntu test and example to reduce chance of stockout
nick-stroud Apr 12, 2023
27d0b68
Merge pull request #1163 from nick-stroud/move-ubuntu-test
nick-stroud Apr 12, 2023
90d898e
Merge pull request #1162 from tpdownes/fix_htcondor_cm_config
tpdownes Apr 12, 2023
671f943
Split threads per core calc into separage file for reuse
nick-stroud Apr 7, 2023
54f88a9
Add cluster_id output to gke-cluster
nick-stroud Apr 7, 2023
21b015b
Fix: taint value can be string or bool
nick-stroud Apr 7, 2023
9ef05bf
Create gke-node-pool module
nick-stroud Apr 7, 2023
821a769
OFE Django password from the env variable
ek-nag Apr 13, 2023
5f6bc06
Updating OFE admin guide to reflect new changes
ek-nag Apr 13, 2023
9819703
OFE teardown script support for automated implementations
ek-nag Apr 13, 2023
00ef20e
Move Slurm v5 high io test to reduce stockouts
nick-stroud Apr 13, 2023
5972890
Add specialized tokenizer to handle `((HCL literals))` (#1167)
mr0re1 Apr 13, 2023
6c57ed8
Merge pull request #1168 from nick-stroud/move-hpc-high-io-v5
nick-stroud Apr 13, 2023
ae92c27
Instructions to run the toolkit from Cloud Workstations
cboneti Apr 13, 2023
d882169
Set gke-node-pool auto_upgrade default to false
nick-stroud Apr 13, 2023
2e21fb3
Mark T2A family as not smt capable
nick-stroud Apr 13, 2023
fcdc953
feat: update SchedMD modules to 5.6.3 (from 5.6.2)
SkylerMalinowski Apr 13, 2023
8e1acd7
docs: update SchedMD modules to 5.6.3 (from 5.6.2)
SkylerMalinowski Apr 13, 2023
ada1b8b
Merge pull request #1140 from nick-stroud/gke-node-pool
nick-stroud Apr 13, 2023
c22945f
Make babysit_tests compatible with Python3.7 (VertexAI)
mr0re1 Apr 13, 2023
8b25436
Do not write unused deployment variables
tpdownes Apr 13, 2023
9429656
Adopt single func for automatically generating output names
tpdownes Apr 13, 2023
ec79802
Write initial deployment metadata file
tpdownes Apr 13, 2023
7a73ba2
Address feedback from #1169
tpdownes Apr 13, 2023
160be1b
Improving setup of toolkit repo
cboneti Apr 13, 2023
6c34383
Merge pull request #1170 from cboneti/workstations
cboneti Apr 14, 2023
a0cdcdd
Merge pull request #1169 from tpdownes/filter_tf_vars
tpdownes Apr 14, 2023
041ab42
Update quantum example with new build instructions
tpdownes Apr 14, 2023
62d1551
Merge pull request #1176 from tpdownes/fix_quantum_example
tpdownes Apr 14, 2023
013798b
Add TransformSimpleToHcl for cty.Value (#1165)
mr0re1 Apr 14, 2023
589d30d
Developer setup on login is causing workstation to crash on startup
nick-stroud Apr 14, 2023
e81e504
Merge pull request #1177 from nick-stroud/rollback-dev-setup-on-login
nick-stroud Apr 14, 2023
0376fa9
Add conditions on Slurm partition enable_placement, exclusive, Oversu…
mr0re1 Apr 14, 2023
a7286ef
Move tests to avoid stockouts
nick-stroud Apr 15, 2023
6739571
updated chrome remote desktop module for slurm image support
saltysoup Apr 15, 2023
beaf945
Bump cloud.google.com/go/compute from 1.19.0 to 1.19.1
dependabot[bot] Apr 17, 2023
8d1f00c
Bump google.golang.org/api from 0.117.0 to 0.118.0
dependabot[bot] Apr 17, 2023
2621881
Merge pull request #1179 from nick-stroud/move-stockout-tests
nick-stroud Apr 17, 2023
9f0df1f
Use a unique Packer SSH username to avoid clashes with previous Packe…
nick-stroud Apr 17, 2023
c336c32
Merge pull request #1184 from nick-stroud/packer-username
nick-stroud Apr 17, 2023
4c6b649
Merge pull request #1183 from GoogleCloudPlatform/dependabot/go_modul…
cboneti Apr 17, 2023
ea2ffe1
Merge pull request #1182 from GoogleCloudPlatform/dependabot/go_modul…
cboneti Apr 17, 2023
6253c2d
Merge pull request #1171 from SkylerMalinowski/slurm-gcp-5.6.3
cboneti Apr 17, 2023
0819946
Adding comment to explain how CRD module is being used
saltysoup Apr 18, 2023
257c97a
Fixed indenting for remote_desktop_startup module
saltysoup Apr 18, 2023
c14c95c
Fixing minor linting issues.
cboneti Apr 18, 2023
f05f2f3
Merge pull request #1 from cboneti/pr/1181
saltysoup Apr 18, 2023
cad6cfd
Merge pull request #1181 from saltysoup/develop
cboneti Apr 18, 2023
b44894f
Add HclExpression struct (#1180)
mr0re1 Apr 18, 2023
a31a254
Make "2-component" sole valid format. (#1188)
mr0re1 Apr 19, 2023
fa89346
Ensure that outputs are written as HCL references
tpdownes Apr 19, 2023
7243142
Rename `HclExpression` -> `Expression` (#1189)
mr0re1 Apr 19, 2023
1fea6b3
Merge pull request #1190 from tpdownes/fix_outputs
tpdownes Apr 19, 2023
5b9372c
Updating the builder image to use newer shellcheck
cboneti Apr 19, 2023
120f5d3
Make Blueprint.Vars a Dict instead of map[string]interface{} (#1187)
mr0re1 Apr 19, 2023
58e19c4
Merge pull request #1157 from ek-nag/develop
cboneti Apr 19, 2023
51be1d8
Merge pull request #1191 from cboneti/new-builder-image
cboneti Apr 19, 2023
5a49289
Enable IGC references
tpdownes Apr 19, 2023
7b00415
Add "advanced usage" intergroup reference warning
tpdownes Apr 19, 2023
0a8b2b7
Allow ResolveVariables to skip certain failures
tpdownes Apr 19, 2023
bd6266a
Remove 2-field use modules
tpdownes Apr 19, 2023
299f8a7
Address feedback from #1193
tpdownes Apr 19, 2023
d11a575
Minor changes to Expression (#1192)
mr0re1 Apr 19, 2023
522213b
Fix: missing flag for adding master-authorized-networks
nick-stroud Apr 7, 2023
b0f8220
Update GKE documentation to include gke-node-pool
nick-stroud Apr 19, 2023
157bc87
Merge pull request #1193 from tpdownes/enable_igc
tpdownes Apr 19, 2023
440b9bb
Merge pull request #1196 from nick-stroud/gke-node-pool-doc
nick-stroud Apr 19, 2023
40a9cb4
Refactor resolution of RequiredApis into separate function, so rest c…
mr0re1 Apr 19, 2023
912174d
Allow user to specify authorized networks in settings
nick-stroud Apr 20, 2023
16fb78a
Limiting line legnth to 2K to avoid bufio.Scanner: token too long issues
cboneti Apr 20, 2023
3970534
Merge pull request #1197 from nick-stroud/gke-auth-networks
nick-stroud Apr 20, 2023
7fbf832
Use struct for packer/terraform kind values
tpdownes Apr 20, 2023
6071612
Merge pull request #1198 from cboneti/omnia-broken-pipe
cboneti Apr 20, 2023
b6e3046
Fix missing edge in graph for explicit connections
tpdownes Apr 20, 2023
fd42806
Merge pull request #1201 from tpdownes/fix_explicit_edges
tpdownes Apr 20, 2023
9f34e29
Make `validatorConfig.Inputs` `Dict` (#1195)
mr0re1 Apr 20, 2023
b4cf505
Add "Golden copy" test runner with single test (#1202)
mr0re1 Apr 20, 2023
87f0e9d
Ensure IGC outputs are marked sensitive to reduce output verbosity
tpdownes Apr 20, 2023
24d3a31
Eliminate trailing newline in outputs.tf
tpdownes Apr 20, 2023
66d3174
Merge pull request #1199 from tpdownes/sensitive_igc_outputs
tpdownes Apr 20, 2023
910205c
Merge pull request #1200 from tpdownes/bekind_rewind
tpdownes Apr 21, 2023
12cd97f
Add missing files for golden copy test (#1203)
mr0re1 Apr 21, 2023
df3fbee
Add golden copy tests for terraform IGC (#1204)
mr0re1 Apr 21, 2023
434c428
Add license to generated YAML files
mr0re1 Apr 21, 2023
01f9000
Merge pull request #1206 from mr0re1/ylic
tpdownes Apr 21, 2023
1479350
Update DAILY schedule to run on weekdays only. (#1208)
mr0re1 Apr 24, 2023
185854d
Remove unused `DeploymentConfig.expanded` (#1207)
mr0re1 Apr 24, 2023
3156ed8
Update PR template to remove checklist
tpdownes Apr 24, 2023
0522f42
Merge pull request #1212 from tpdownes/update_pr_template
tpdownes Apr 24, 2023
8790c2b
Address security alert CVE-2023-30608
tpdownes Apr 28, 2023
7d35086
Merge pull request #1241 from tpdownes/fix_security_alert
tpdownes Apr 28, 2023
4d9629f
Update version to 1.17.0 (#1266)
mr0re1 May 3, 2023
f700bfc
Fix Chrome Remote Desktop NVIDIA Grid installation
tpdownes Apr 27, 2023
dce79b2
Enable Debian 11 and Ubuntu 22.04 support in Chrome Remote Desktop mo…
tpdownes Apr 28, 2023
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
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ assignees: ''

---

**If you find a similar existing issue, please comment on that issue instead of creating a new one.**

**If you are submitting a feature request, please start a [discussion](https://github.com/GoogleCloudPlatform/hpc-toolkit/discussions/new?category=ideas-and-feature-requests) instead of creating an issue.**

### Describe the bug

A clear and concise description of what the bug is.
Expand Down
16 changes: 9 additions & 7 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
### Submission Checklist

* [ ] Have you installed and run this change against pre-commit? (`pre-commit
install`)
* [ ] Are all tests passing? (`make tests`)
* [ ] Have you written unit tests to cover this change?
* [ ] Is unit test coverage still above 80%?
* [ ] Have you updated all applicable documentation?
* [ ] Have you followed the guidelines in our Contributing document?
Please take the following actions before submitting this pull request.

* Fork your PR branch from the Toolkit "develop" branch (not main)
* Test all changes with pre-commit in a local branch [#](https://goo.gle/hpc-toolkit#development)
* Confirm that "make tests" passes all tests
* Add or modify unit tests to cover code changes
* Ensure that unit test coverage remains above 80%
* Update all applicable documentation
* Follow Cloud HPC Toolkit Contribution guidelines [#](https://goo.gle/hpc-toolkit-contributing)
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@ terraform.rc
#### PACKER
packer-manifest.json
*.auto.pkrvars.hcl

#### Exclude from gitingore
!tools/validate_configs/golden_copies/*/*/*/defaults.auto.pkrvars.hcl
!tools/validate_configs/golden_copies/*/*/terraform.tfvars
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ repos:
entry: tools/autodoc/terraform_docs.sh
language: script
types: [terraform]
exclude: \.terraform|pkg\/.*$
exclude: (\.terraform|pkg\/.*$)|(tools/validate_configs/golden_copies/.*)
pass_filenames: true
require_serial: true
- id: packer-readme
Expand Down Expand Up @@ -103,3 +103,4 @@ repos:
rev: v4.4.0
hooks:
- id: end-of-file-fixer
exclude: tools/validate_configs/golden_copies/.*
2 changes: 1 addition & 1 deletion .tflint.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.
plugin "google" {
enabled = true
version = "0.20.0"
version = "0.23.0"
source = "github.com/terraform-linters/tflint-ruleset-google"
}
rule "terraform_deprecated_index" {
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ MIN_GOLANG_VERSION=1.18 # for building ghpc
.PHONY: install install-user tests format add-google-license install-dev-deps \
warn-go-missing warn-terraform-missing warn-packer-missing \
warn-go-version warn-terraform-version warn-packer-version \
test-engine validate_configs packer-check \
test-engine validate_configs validate_golden_copy packer-check \
terraform-format packer-format \
check-tflint check-pre-commit

Expand Down Expand Up @@ -47,7 +47,7 @@ install: install-user

endif

tests: warn-terraform-version warn-packer-version test-engine validate_configs packer-check
tests: warn-terraform-version warn-packer-version test-engine validate_golden_copy validate_configs packer-check

format: warn-go-version warn-terraform-version warn-packer-version terraform-format packer-format
$(info **************** formatting go code *******************)
Expand Down Expand Up @@ -157,6 +157,10 @@ validate_configs: ghpc
$(info *********** running basic integration tests ***********)
tools/validate_configs/validate_configs.sh

validate_golden_copy: ghpc
$(info *********** running "Golden copy" tests ***********)
tools/validate_configs/validate_golden_copy.sh

terraform-format:
$(info *********** cleaning terraform files syntax and generating terraform documentation ***********)
@for folder in ${TERRAFORM_FOLDERS}; do \
Expand Down
2 changes: 1 addition & 1 deletion cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func runCreateCmd(cmd *cobra.Command, args []string) {
if err := deploymentConfig.ExpandConfig(); err != nil {
log.Fatal(err)
}
if err := modulewriter.WriteDeployment(&deploymentConfig.Config, outputDir, overwriteDeployment); err != nil {
if err := modulewriter.WriteDeployment(deploymentConfig, outputDir, overwriteDeployment); err != nil {
var target *modulewriter.OverwriteDeniedError
if errors.As(err, &target) {
fmt.Printf("\n%s\n", err.Error())
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ HPC deployments on the Google Cloud Platform.`,
log.Fatalf("cmd.Help function failed: %s", err)
}
},
Version: "v1.16.0",
Version: "v1.17.0",
Annotations: annotation,
}
)
Expand Down
45 changes: 45 additions & 0 deletions community/examples/gke.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---

blueprint_name: small-gke

vars:
project_id: ## Set GCP Project ID Here ##
deployment_name: cluster-01
region: us-central1

deployment_groups:
- group: primary
modules:
- id: network1
source: modules/network/vpc
settings:
subnetwork_name: gke-subnet
secondary_ranges:
gke-subnet:
- range_name: pods
ip_cidr_range: 10.4.0.0/14
- range_name: services
ip_cidr_range: 10.0.32.0/20

- id: gke_cluster
source: community/modules/scheduler/gke-cluster
use: [network1]
outputs: [instructions]

- id: compute_pool
source: community/modules/compute/gke-node-pool
use: [gke_cluster]
2 changes: 1 addition & 1 deletion community/examples/quantum-circuit-simulator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ deployment_groups:
pip install pybind11 cirq
git clone https://github.com/quantumlib/qsim.git /opt/qsim
cd /opt/qsim
export CUQUANTUM_DIR=/opt/conda/envs/qsim
export CUQUANTUM_ROOT=/opt/conda/envs/qsim
make
pip install .
- type: data
Expand Down
127 changes: 127 additions & 0 deletions community/examples/slurm-chromedesktop.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---

blueprint_name: slurm-crd

vars:
project_id: ## Set GCP Project ID Here ##
deployment_name: slurm-chromedesktop
region: us-central1
zone: us-central1-c

# Documentation for each of the modules used below can be found at
# https://github.com/GoogleCloudPlatform/hpc-toolkit/blob/main/modules/README.md

deployment_groups:
- group: primary
modules:
- id: network1
source: modules/network/vpc

- id: homefs
source: modules/file-system/filestore
use: [network1]
settings:
local_mount: /home

- id: remote-desktop
source: community/modules/remote-desktop/chrome-remote-desktop
use: [network1]
settings:
install_nvidia_driver: true
# instance_count: 0 will create installation scripts only
# which can be used with slurm node provisioning
instance_count: 0

- id: remote_desktop_startup
source: modules/scripts/startup-script
settings:
runners:
- type: ansible-local
source: modules/chrome-remote-desktop/scripts/configure-grid-drivers.yml
destination: /tmp/configure-grid-drivers.yml
- type: ansible-local
source: modules/chrome-remote-desktop/scripts/configure-chrome-desktop.yml
destination: /tmp/configure-chrome-desktop.yml
- type: ansible-local
source: modules/chrome-remote-desktop/scripts/disable-sleep.yml
destination: /tmp/disable-sleep.yml

- id: crd_node_group
source: community/modules/compute/schedmd-slurm-gcp-v5-node-group
settings:
machine_type: n1-standard-8
node_count_dynamic_max: 1
disable_public_ips: false
instance_image:
family: schedmd-v5-slurm-22-05-8-ubuntu-2004-lts
project: projects/schedmd-slurm-public/global/images/family
guest_accelerator:
- type: nvidia-tesla-t4-vws
count: 1

- id: crd_partition
source: community/modules/compute/schedmd-slurm-gcp-v5-partition
use:
- network1
- homefs
- remote_desktop_startup
- crd_node_group
settings:
partition_name: desktop
enable_placement: false
partition_startup_scripts_timeout: 900

- id: compute_node_group
source: community/modules/compute/schedmd-slurm-gcp-v5-node-group
settings:
machine_type: n2-standard-4
node_count_dynamic_max: 1

- id: compute_partition
source: community/modules/compute/schedmd-slurm-gcp-v5-partition
use:
- network1
- homefs
- compute_node_group
settings:
partition_name: compute

- id: slurm_controller
source: community/modules/scheduler/schedmd-slurm-gcp-v5-controller
use:
- network1
- homefs
- crd_partition
- compute_partition
settings:
disable_controller_public_ips: false
compute_startup_scripts_timeout: 900
cloud_parameters:
resume_rate: 0
resume_timeout: 900
suspend_rate: 0
suspend_timeout: 300
no_comma_params: false

- id: slurm_login
source: community/modules/scheduler/schedmd-slurm-gcp-v5-login
use:
- network1
- slurm_controller
settings:
machine_type: n2-standard-4
disable_login_public_ips: false
4 changes: 2 additions & 2 deletions community/examples/slurm-gcp-v5-high-io.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ blueprint_name: hpc-cluster-high-io-v5
vars:
project_id: ## Set GCP Project ID Here ##
deployment_name: high-io-slurm-gcp-v5
region: us-central1
zone: us-central1-c
region: us-west4
zone: us-west4-c
# By default, public IPs are set in the login and controller to allow easier
# SSH access. To turn this behavior off, set this to true.
disable_public_ips: false
Expand Down
4 changes: 2 additions & 2 deletions community/examples/slurm-gcp-v5-hpc-centos7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ blueprint_name: slurm-gcp-v5-hpc-centos7
vars:
project_id: ## Set GCP Project ID Here ##
deployment_name: slurm-gcp-v5
region: us-central1
zone: us-central1-c
region: us-west4
zone: us-west4-c

# Documentation for each of the modules used below can be found at
# https://github.com/GoogleCloudPlatform/hpc-toolkit/blob/main/modules/README.md
Expand Down
4 changes: 2 additions & 2 deletions community/examples/slurm-gcp-v5-ubuntu2004.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ blueprint_name: slurm-gcp-v5-ubuntu2004
vars:
project_id: ## Set GCP Project ID Here ##
deployment_name: slurm-gcp-v5
region: us-central1
zone: us-central1-c
region: us-west4
zone: us-west4-c
instance_image:
# Please refer to the following link for the latest images:
# https://github.com/SchedMD/slurm-gcp/blob/master/docs/images.md#supported-operating-systems
Expand Down
Loading