Skip to content

Conversation

@nupurg-ibm
Copy link
Collaborator

@nupurg-ibm nupurg-ibm commented Mar 13, 2025

Description

Release required?

  • No release
  • Patch release (x.x.X)
  • Minor release (x.X.x)
  • Major release (X.x.x)
Release notes content

Run the pipeline

If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.

Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:

/run pipeline

Checklist for reviewers

  • If relevant, a test for the change is included or updated with this PR.
  • If relevant, documentation for the change is included or updated with this PR.

For mergers

  • Use a conventional commit message to set the release level. Follow the guidelines.
  • Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
  • Use the Squash and merge option.

"lines": null
},
"generated_at": "2024-04-08T15:16:34Z",
"generated_at": "2025-03-12T08:49:38Z",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the latest one ? Or you need to use what we have on our HPCaaS repo ? @manirtm

@@ -1,3 +1,3 @@
data "ibm_resource_group" "itself" {
name = var.resource_group
data "ibm_resource_group" "resource_group" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manirtm May be here also can we use it as existing_resource_group as a resource name ?

# var.network_cidr
])
resource_group_id = var.resource_group != null ? data.ibm_resource_group.itself.id : ""
resource_group_id = var.existing_resource_group != null ? data.ibm_resource_group.resource_group.id : ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manirtm Once we make the changes above, probably here also you can change that to existing_resource_group

locals.tf Outdated
#vpc_id = var.vpc == null ? module.landing_zone.vpc_id[0] : data.ibm_is_vpc.itself[0].id
#vpc_crn = var.vpc == null ? module.landing_zone.vpc_crn[0] : data.ibm_is_vpc.itself[0].crn
#vpc_id = var.vpc_name == null ? module.landing_zone.vpc_id[0] : data.ibm_is_vpc.existing_vpc[0].id
#vpc_crn = var.vpc_name == null ? module.landing_zone.vpc_crn[0] : data.ibm_is_vpc.existing_vpc[0].crn
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manirtm If we do not need this content, can we please remove the commented lines ?

locals.tf Outdated
service_rg = var.resource_group == null ? module.landing_zone.resource_group_id[0]["service-rg"] : data.ibm_resource_group.resource_group[0].id
workload_rg = var.resource_group == null ? module.landing_zone.resource_group_id[0]["workload-rg"] : data.ibm_resource_group.resource_group[0].id
# management_rg = var.existing_resource_group == null ? module.landing_zone.resource_group_id[0]["management-rg"] : one(values(one(module.landing_zone.resource_group_id)))
service_rg = var.existing_resource_group == null ? module.landing_zone.resource_group_id[0]["service-rg"] : data.ibm_resource_group.resource_group[0].id
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manirtm even here when we change the resource name to existing_resource_group.. The data source name should be changed

ha_shared_dir = local.ha_shared_dir
nfs_install_dir = local.nfs_install_dir
Enable_Monitoring = local.Enable_Monitoring
enable_monitoring = local.enable_monitoring
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manirtm We are setting enable_monitoring as false on the locals above. What monitoring is this used for ? Is this the observability monitoring ?

@@ -1,4 +1,4 @@
data "ibm_resource_group" "itself" {
data "ibm_resource_group" "resource_group" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manirtm I would prefer to use the same existing_resource_group

source = "./../key"
private_key_path = var.enable_bastion ? "${path.root}/../../modules/ansible-roles/compute_id_rsa" : "${path.root}/modules/ansible-roles/compute_id_rsa" #checkov:skip=CKV_SECRET_6
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manirtm I see that the version for using the landing_zone_vsi module is 4.2.0.. But we are already on 4.5.0. Please make sure the versions are upgraded now itself. If there are any issues then we will have to debug and make changes again !

The latest is 4.6.0. But we are using 4.5.0 on our existing code. Please see this:
https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vsi

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep a note on line 62: skip_iam_authorization_policy = var.enable_bastion ? true : false

I dont want the changes now. When we implement the existing bastion concept we need the changes to implemented like below. Which is already there on our LSF DA

skip_iam_authorization_policy = var.bastion_instance_name != null ? false : local.skip_iam_authorization_policy @manirtm

)
description = "Total Number of instances to be launched for compute cluster."
}
# variable "management_instances" {
Copy link
Contributor

@bksagar bksagar Mar 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see these are not needed on the deployer node. As these are created through another module. Can we remove this from here. I dont want any commented codes . @manirtm

scale_cloud_infra_repo_url = "https://github.com/IBM/ibm-spectrum-scale-install-infra"
scale_cloud_infra_repo_name = "ibm-spectrum-scale-install-infra"
scale_cloud_infra_repo_tag = "ibmcloud_v2.6.0"
# scale_cloud_deployer_path = "/opt/IBM/ibm-spectrumscale-cloud-deploy"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manirtm Please see this line no -2: Tags

I see we are hardcoding it as HPC.. Either we need to update this or come up with a appropriate name.. As the deployer node is common for all the solutions. It cannot be hpc.. We need to talk through this.

And where ever we add tags, please ensure for scale they are as scale and for lsf it is lsf.

@@ -1,14 +1,14 @@
# resource "local_sensitive_file" "itself" {
# resource "local_sensitive_file" "mount_path_file" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manirtm As discussed if this is not used, please remove this commented lines

# version = ">= 3.4.3, < 4.0.0"
# }
# time = {
# source = "hashicorp/time"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check if these versions are needed or not !!

@@ -1,17 +1,14 @@
module "hpcaas" {
source = "./../.."
scheduler = "HPCaaS"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manirtm Why are we removing this scheduler attribute from here ?

"prefix": $PREFIX,
"zones": "[\"ca-tor-1\"]",
"resource_group": "geretain-hpc-rg",
"zone": "ca-tor-1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manirtm We need the zone value to be a list of string like below:
["ca-tor-1"] This is required on our DA pipelines

description = "Password for IBM Spectrum LSF Application Center database GUI."
}
# variable "app_center_db_password" {
# type = string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variable is not needed and we are not supporting.. Need to review once and then remove ! @manirtm

{
"ibmcloud_api_key": $VALIDATION_APIKEY,
"prefix": $PREFIX,
"zones": "[\"ca-tor-1\"]",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manirtm same as above we need it in this format only

Copy link
Contributor

@bksagar bksagar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed with @manirtm and reviewed the changes and looks good.

This can be merged once we do the deployment directly from LSF folder for end-end and one deployment from scale folder . If both of them are passed we are good to merge this PR

@bksagar
Copy link
Contributor

bksagar commented Mar 17, 2025

Discussed with @manirtm and understood that the deployment for the LSF with this changes are working as expected. And there are some hicups with doing deployments as we have the implementation of the deployer node. So the scale deployments are failing. Considering the requirement of other PR merging,

This can be considered as merged !

@bksagar bksagar merged commit 45df77a into develop Mar 17, 2025
@bksagar bksagar deleted the pre-commit-fix-pr-199 branch March 17, 2025 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants