Git Product home page Git Product logo

Comments (3)

sharif-cameco avatar sharif-cameco commented on August 28, 2024 1

Hi, thank you very much. It worked.

from hpc-toolkit.

sharif-cameco avatar sharif-cameco commented on August 28, 2024

I tried with removing network module from main.tf and providing existing network information.

project_id = "prj-n-005-cloudops-618d"
network_id = "8272936923228017775"
network_name = "vpc-n-shared-restricted"
network_self_link = "projects/prj-n-shared-restricted-8521/global/networks/vpc-n-shared-restricted"
subnetwork_name = "sb-n-shared-restricted-northamerica-northeast1"
subnetwork_self_link = "projects/prj-n-shared-restricted-8521/regions/northamerica-northeast1/subnetworks/sb-n-shared-restricted-northamerica-northeast1"
subnetwork_project = "prj-n-shared-restricted-8521"

But they don't find the subnetwork I provided here.

module "debug_partition" {
source = "./modules/schedmd-slurm-gcp-v5-partition"
is_default = true
zone = var.zone
project_id = var.project_id
region = var.region
subnetwork = var.subnetwork_name
subnetwork_self_link = var.subnetwork_self_link
network_storage = flatten([module.homefs.network_storage])
deployment_name = var.deployment_name
enable_placement = false
node_groups = flatten([module.debug_node_group.node_groups])
labels = merge(var.labels, { ghpc_role = "compute",})
partition_name = "debug"
subnetwork_project = var.subnetwork_project
}

module "compute_partition" {
source = "./modules/schedmd-slurm-gcp-v5-partition"
node_groups = flatten([module.compute_node_group.node_groups])
project_id = var.project_id
partition_name = "compute"
network_storage = flatten([module.homefs.network_storage])
zone = var.zone
deployment_name = var.deployment_name
region = var.region
labels = merge(var.labels, { ghpc_role = "compute",})
subnetwork = var.subnetwork_name
subnetwork_self_link = var.subnetwork_self_link
subnetwork_project = var.subnetwork_project
}

from hpc-toolkit.

rohitramu avatar rohitramu commented on August 28, 2024

I see that you are using the module modules/network/vpc. However, I think you're after the module modules/network/pre-existing-vpc. See here for documentation on this module.

Please let me know if this works for you!

from hpc-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.