-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add Chennai region and zones and update SysTypes #15
Add Chennai region and zones and update SysTypes #15
Conversation
Welcome @arshadd-b! It looks like this is your first PR to ppc64le-cloud/powervs-utils 🎉 |
/cc @dharaneeshvrd @Karthik-K-N please review and also Chennai DC and also go through this doc - https://cloud.ibm.com/docs/power-iaas?topic=power-iaas-ibm-cloud-reg and see what else is missing. |
f8b6a3b
to
76469e2
Compare
@arshadd-b
|
76469e2
to
adc1ded
Compare
region.go
Outdated
@@ -11,13 +11,11 @@ func GetRegion(zone string) (region string, err error) { | |||
case strings.HasPrefix(zone, "us-south"): | |||
region = "us-south" | |||
case strings.HasPrefix(zone, "dal"): | |||
region = "dal" | |||
region = "us-south" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this change? Not sure it might cause some breakage to existing modules using this func. Please validate this across OpenShift and capi projects for its usage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had referred this mapping https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/main/docs/book/src/reference/regions-zones-mapping.md
Could see that the zones us-south dal10 dal12
having same region us-south
same case with wdc
It is getting used just here , I don't think will create any issue
https://github.com/openshift/machine-api-provider-powervs/blob/e253fa30d99bb7ed00c1f27ca3d810fa682a1901/pkg/client/powervs_client.go#L162C36-L162C45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I think @Karthik-K-N can comment here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think when we are setting provider id we set / so till now its dal/dal10, I think it will affect it.
@KeerthanaAP @Shilpa-Gokul whats the value you set for region when using dal10 zone? in IPI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We set the powervs region as "dal" while using "dal10" zone and I think we use "us-south" for VPCRegion.
https://github.com/openshift/installer/blob/release-4.15/pkg/types/powervs/powervs_regions.go#L24C3-L24C6
Zones: []string{ | ||
"che01", | ||
}, | ||
SysTypes: []string{"s922", "e980"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hope you have validated the sys types available in Chennai! If not you can check via PowerVS workspace in cloud.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have checked the machine types for this zone che01
I can see only these two machine types
Do we need to include Dedicated host types
as well in sysTypes ?
adc1ded
to
b8b8a24
Compare
I have noticed new machine Types added in zones, I have added those as well For now we have kept the common machine Types in zones |
Individual zone based machine types would alter the current region map. |
we shouldn't have made public if not required!
|
b8b8a24
to
3187642
Compare
Have created different issue for this #16 |
Overall LGTM! |
3187642
to
52428b5
Compare
done |
@@ -16,8 +16,6 @@ func GetRegion(zone string) (region string, err error) { | |||
region = "sao" | |||
case strings.HasPrefix(zone, "us-east"): | |||
region = "us-east" | |||
case strings.HasPrefix(zone, "tor"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this removed? I still see an entry here for tor - https://cloud.ibm.com/docs/power-iaas?topic=power-iaas-ibm-cloud-reg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Prajyot-Parab @dharaneeshvrd @Karthik-K-N am I missing something here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its a dup entry, that's why she removed I guess.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah two entries were there for tor
, so I have removed one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: arshadd-b, mkumatag The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR adds regions and zones and updates SysTypes
Fixes issue #14