Skip to content

Commit

Permalink
Merge pull request #3440 from mr0re1/rename_sg
Browse files Browse the repository at this point in the history
Rename `/community/module/internal/slurm-gcp-v6` to `slurm-gcp`
  • Loading branch information
mr0re1 authored Dec 19, 2024
2 parents 069875a + 9658bbc commit 8284083
Show file tree
Hide file tree
Showing 28 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ modules. For support with the underlying modules, see the instructions in the
| Name | Source | Version |
|------|--------|---------|
| <a name="module_slurm_nodeset_template"></a> [slurm\_nodeset\_template](#module\_slurm\_nodeset\_template) | ../../internal/slurm-gcp-v6/instance_template | n/a |
| <a name="module_slurm_nodeset_template"></a> [slurm\_nodeset\_template](#module\_slurm\_nodeset\_template) | ../../internal/slurm-gcp/instance_template | n/a |
## Resources
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ locals {
}

module "slurm_nodeset_template" {
source = "../../internal/slurm-gcp-v6/instance_template"
source = "../../internal/slurm-gcp/instance_template"

project_id = var.project_id
region = var.region
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,12 @@ limitations under the License.
| <a name="module_daos_network_storage_scripts"></a> [daos\_network\_storage\_scripts](#module\_daos\_network\_storage\_scripts) | ../../../../modules/scripts/startup-script | n/a |
| <a name="module_nodeset_cleanup"></a> [nodeset\_cleanup](#module\_nodeset\_cleanup) | ./modules/cleanup_compute | n/a |
| <a name="module_nodeset_cleanup_tpu"></a> [nodeset\_cleanup\_tpu](#module\_nodeset\_cleanup\_tpu) | ./modules/cleanup_tpu | n/a |
| <a name="module_slurm_controller_template"></a> [slurm\_controller\_template](#module\_slurm\_controller\_template) | ../../internal/slurm-gcp-v6/instance_template | n/a |
| <a name="module_slurm_controller_template"></a> [slurm\_controller\_template](#module\_slurm\_controller\_template) | ../../internal/slurm-gcp/instance_template | n/a |
| <a name="module_slurm_files"></a> [slurm\_files](#module\_slurm\_files) | ./modules/slurm_files | n/a |
| <a name="module_slurm_login_instance"></a> [slurm\_login\_instance](#module\_slurm\_login\_instance) | ../../internal/slurm-gcp-v6/instance | n/a |
| <a name="module_slurm_login_template"></a> [slurm\_login\_template](#module\_slurm\_login\_template) | ../../internal/slurm-gcp-v6/instance_template | n/a |
| <a name="module_slurm_nodeset_template"></a> [slurm\_nodeset\_template](#module\_slurm\_nodeset\_template) | ../../internal/slurm-gcp-v6/instance_template | n/a |
| <a name="module_slurm_nodeset_tpu"></a> [slurm\_nodeset\_tpu](#module\_slurm\_nodeset\_tpu) | ../../internal/slurm-gcp-v6/nodeset_tpu | n/a |
| <a name="module_slurm_login_instance"></a> [slurm\_login\_instance](#module\_slurm\_login\_instance) | ../../internal/slurm-gcp/instance | n/a |
| <a name="module_slurm_login_template"></a> [slurm\_login\_template](#module\_slurm\_login\_template) | ../../internal/slurm-gcp/instance_template | n/a |
| <a name="module_slurm_nodeset_template"></a> [slurm\_nodeset\_template](#module\_slurm\_nodeset\_template) | ../../internal/slurm-gcp/instance_template | n/a |
| <a name="module_slurm_nodeset_tpu"></a> [slurm\_nodeset\_tpu](#module\_slurm\_nodeset\_tpu) | ../../internal/slurm-gcp/nodeset_tpu | n/a |

## Resources

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ locals {

# INSTANCE TEMPLATE
module "slurm_controller_template" {
source = "../../internal/slurm-gcp-v6/instance_template"
source = "../../internal/slurm-gcp/instance_template"

project_id = var.project_id
region = var.region
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# TEMPLATE
module "slurm_login_template" {
source = "../../internal/slurm-gcp-v6/instance_template"
source = "../../internal/slurm-gcp/instance_template"

for_each = { for x in var.login_nodes : x.name_prefix => x }

Expand Down Expand Up @@ -56,7 +56,7 @@ module "slurm_login_template" {

# INSTANCE
module "slurm_login_instance" {
source = "../../internal/slurm-gcp-v6/instance"
source = "../../internal/slurm-gcp/instance"
for_each = { for x in var.login_nodes : x.name_prefix => x }

access_config = each.value.access_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ def delete_reservation(lkp: util.Lookup, reservation_name: str) -> None:
def create_reservation(lkp: util.Lookup, reservation_name: str, node: str, start_time: datetime) -> None:
# Format time to be compatible with slurm reservation.
formatted_start_time = start_time.strftime('%Y-%m-%dT%H:%M:%S')

util.run(f"{lkp.scontrol} create reservation user=slurm starttime={formatted_start_time} duration=180 nodes={node} reservationname={reservation_name} flags=maint,ignore_jobs")


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ locals {
# NODESET
# TODO: remove dependency on slurm-gcp repo, move to local template module
module "slurm_nodeset_template" {
source = "../../internal/slurm-gcp-v6/instance_template"
source = "../../internal/slurm-gcp/instance_template"
for_each = local.nodeset_map

project_id = var.project_id
Expand Down Expand Up @@ -104,7 +104,7 @@ locals {

# NODESET TPU
module "slurm_nodeset_tpu" {
source = "../../internal/slurm-gcp-v6/nodeset_tpu"
source = "../../internal/slurm-gcp/nodeset_tpu"
for_each = local.nodeset_tpu_map

project_id = var.project_id
Expand Down

0 comments on commit 8284083

Please sign in to comment.