Skip to content

Commit cc87651

Browse files
authored
Merge pull request #312 from GoogleCloudPlatform/develop
Release 0.7.2-alpha
2 parents 9eaa870 + 6f20821 commit cc87651

File tree

41 files changed

+499
-127
lines changed

Some content is hidden

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

41 files changed

+499
-127
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
### Describe the bug
11+
12+
A clear and concise description of what the bug is.
13+
14+
### Steps to reproduce
15+
16+
Steps to reproduce the behavior:
17+
18+
1.
19+
20+
### Expected behavior
21+
22+
A clear and concise description of what you expected to happen.
23+
24+
### Actual behavior
25+
26+
What happened instead.
27+
28+
### Version (`ghpc --version`)
29+
30+
### Blueprint
31+
32+
If applicable, attach or paste the blueprint YAML used to produce the bug.
33+
34+
```yaml
35+
36+
```
37+
38+
### Expanded Blueprint
39+
40+
If applicable, please attach or paste the expanded blueprint. The expanded blueprint can be obtained by running `ghpc expand your-blueprint.yaml`.
41+
42+
Disregard if the bug occurs when running `ghpc expand ...` as well.
43+
44+
```yaml
45+
46+
```
47+
48+
### Output and logs
49+
50+
```text
51+
52+
```
53+
54+
### Screenshots
55+
56+
If applicable, add screenshots to help explain your problem.
57+
58+
### Execution environment
59+
60+
- OS: [macOS, ubuntu, ...]
61+
- Shell (To find this, run `ps -p $$`): [bash, zsh, ...]
62+
- go version:
63+
64+
### Additional context
65+
66+
Add any other context about the problem here.

.github/pull_request_template.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### Submission Checklist
2+
3+
* [ ] Have you installed and run this change against pre-commit? (`pre-commit
4+
install`)
5+
* [ ] Are all tests passing? (`make tests`)
6+
* [ ] Have you written unit tests to cover this change?
7+
* [ ] Is unit test coverage still above 80%?
8+
* [ ] Have you updated all applicable documentation?
9+
* [ ] Have you followed the guidelines in our Contributing document?

Makefile

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ MIN_PACKER_VERSION=1.6 # for building images
33
MIN_TERRAFORM_VERSION=1.0 # for deploying modules
44
MIN_GOLANG_VERSION=1.16 # for building ghpc
55

6-
.PHONY: tests format add-google-license install-dev-deps \
6+
.PHONY: install install-user tests format add-google-license install-dev-deps \
77
warn-go-missing warn-terraform-missing warn-packer-missing \
8-
warn-go-version warn-terraform-version warn-packer-version \
9-
test-engine validate_configs packer-check \
10-
terraform-format packer-format \
8+
warn-go-version warn-terraform-version warn-packer-version \
9+
test-engine validate_configs packer-check \
10+
terraform-format packer-format \
1111
check-tflint check-pre-commit
1212

1313
ENG = ./cmd/... ./pkg/...
@@ -20,6 +20,21 @@ ghpc: warn-go-version warn-terraform-version warn-packer-version $(shell find ./
2020
$(info **************** building ghpc ************************)
2121
go build ghpc.go
2222

23+
install-user:
24+
$(info ******** installing ghpc in ~/bin *********************)
25+
mkdir -p ~/bin
26+
install -t ~/bin ./ghpc
27+
28+
ifeq ($(shell id -u), 0)
29+
install:
30+
$(info ***** installing ghpc in /usr/local/bin ***************)
31+
install -t /usr/local/bin ./ghpc
32+
33+
else
34+
install: install-user
35+
36+
endif
37+
2338
tests: warn-terraform-version warn-packer-version test-engine validate_configs packer-check
2439

2540
format: warn-go-version warn-terraform-version warn-packer-version terraform-format packer-format

cmd/README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,42 @@
11
# gHPC Commands
22

3+
## Usage
4+
5+
```text
6+
gHPC provides a flexible and simple to use interface to accelerate
7+
HPC deployments on the Google Cloud Platform.
8+
9+
Usage:
10+
ghpc [flags]
11+
ghpc [command]
12+
13+
Available Commands:
14+
completion Generate completion script
15+
create Create a new deployment.
16+
expand Expand the Environment Blueprint.
17+
help Help about any command
18+
19+
Flags:
20+
-h, --help help for ghpc
21+
22+
Use "ghpc [command] --help" for more information about a command.
23+
```
24+
325
## Create
426

527
`ghpc create` takes as input a blueprint file and creates a deployment directory
628
based on the requested components that can be used to deploy an HPC cluster on
7-
GCP
29+
GCP.
830

931
## Expand
1032

1133
`ghpc expand` takes as input a blueprint file and expands all the fields
1234
necessary to create a deployment without actually creating the deployment
1335
directory. It outputs an expanded blueprint, which can be used for debugging
1436
purposes and can be used as input to `ghpc create`.
37+
38+
## Completion
39+
Generates a script that enables command completion for `ghpc` for a given shell.
40+
41+
## Help
42+
`ghpc help` prints the usage information from above to the console.

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ HPC deployments on the Google Cloud Platform.`,
3434
log.Fatalf("cmd.Help function failed: %s", err)
3535
}
3636
},
37-
Version: "v0.7.1-alpha (private preview)",
37+
Version: "v0.7.2-alpha (private preview)",
3838
}
3939
)
4040

community/examples/intel/hpc-cluster-intel-select.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ vars:
2222
zone: us-central1-c
2323
controller_image_family: slurm-intel-hpc-controller
2424
compute_image_family: slurm-intel-hpc-compute
25-
# this example works due to hard-coding the name of the VPC network and
26-
# subnetwork created by the VPC module; we will resolve this in future
27-
# ghpc releases
28-
network_name: hpc-intel-select-net
29-
subnetwork_name: hpc-intel-select-primary-subnet
25+
network_name: intel-select-net
26+
subnetwork_name: intel-select-primary-subnet
3027

3128
deployment_groups:
3229
- group: primary

community/modules/compute/SchedMD-slurm-on-gcp-partition/versions.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ terraform {
2121
version = ">= 3.83"
2222
}
2323
}
24+
provider_meta "google" {
25+
module_name = "blueprints/terraform/hpc-toolkit:SchedMD-slurm-on-gcp-partition/v0.7.2"
26+
}
2427

2528
required_version = ">= 0.14.0"
2629
}

community/modules/database/slurm-cloudsql-federation/versions.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ terraform {
2929
version = "~> 3.0"
3030
}
3131
}
32+
provider_meta "google" {
33+
module_name = "blueprints/terraform/hpc-toolkit:slurm-cloudsql-federation/v0.7.2"
34+
}
35+
provider_meta "google-beta" {
36+
module_name = "blueprints/terraform/hpc-toolkit:slurm-cloudsql-federation/v0.7.2"
37+
}
3238

3339
required_version = ">= 0.13.0"
3440
}

community/modules/file-system/nfs-server/versions.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ terraform {
2525
version = "~> 3.0"
2626
}
2727
}
28+
provider_meta "google" {
29+
module_name = "blueprints/terraform/hpc-toolkit:nfs-server/v0.7.2"
30+
}
2831

2932
required_version = ">= 0.14.0"
3033
}

community/modules/project/service-enablement/versions.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ terraform {
2121
version = ">= 3.83"
2222
}
2323
}
24+
provider_meta "google" {
25+
module_name = "blueprints/terraform/hpc-toolkit:service-enablement/v0.7.2"
26+
}
2427

2528
required_version = ">= 0.14.0"
2629
}
27-

0 commit comments

Comments
 (0)