-
Notifications
You must be signed in to change notification settings - Fork 50
feat: updates for 1.80.4, update PER DCs and update deprecated apis #546
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
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: prb112 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@prb112: PR is not mergeable. DetailsThe PR state is: blocked Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
| } | ||
|
|
||
| resource "ibm_pi_network_port" "bastion_vip" { | ||
| resource "ibm_pi_network_interface" "bastion_vip" { |
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.
ibm_pi_network_port was replaced with ibm_pi_network_interface
| output "bastion_external_vip" { | ||
| depends_on = [null_resource.bastion_init] | ||
| value = local.bastion_count > 1 ? ibm_pi_network_port.bastion_internal_vip[0].public_ip : "" | ||
| value = local.bastion_count > 1 ? ibm_pi_network_interface.bastion_internal_vip[0].ip_address : "" |
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.
This will be a problem in ssh command output, DNS host entries, wildcard DNS. Somehow can we get the public IP from network?
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.
Hey @yussufsh
I looked at the terraform-provider-ibm, it's unclear if this is the public IP address. Further looking into the api, it's not clear the API network, instance et cetra is suitable for returning the public ip (I anticipate they built it for VPC entry into the PowerVS workspace).
I'll have to experiment it a bit. I'll do that on Monday.
Thanks,
Paul
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.
Hey Yussuf, still not clear on the replacement.
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.
Could we loop over the public interface IPs to fetch the public VIP? Prefetch the IPs in the order and replace the ip_address at that index.
2c6f428 to
785c435
Compare
77bb098 to
4f2abf4
Compare
4f2abf4 to
1c7cd76
Compare
0712718 to
043463a
Compare
043463a to
599b04b
Compare
599b04b to
0ff846b
Compare
cbbfb14 to
08cfbd9
Compare
499d606 to
b1fe4eb
Compare
added the case where the image is pulled from the catalog Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
b1fe4eb to
39c68d8
Compare
| } | ||
| provisioner "remote-exec" { | ||
| inline = [ | ||
| "sudo timedatectl set-timezone UTC", |
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.
In certain circumstances, the images used are not configured with UTC, however the coreos nodes default to UTC. If Sydney, Chennai or other locations before UTC are used the certificates are evaluated as After when they should be in sync.
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.
Looks like this should be set by default for every install.
We can directly set it during bastion setup without a variable or new resource.
| pi_volume_type = local.bastion_storage_type == "" && local.bastion_storage_pool == "" ? "tier3" : local.bastion_storage_type | ||
| pi_volume_shareable = var.volume_shareable | ||
| pi_cloud_instance_id = var.service_instance_id | ||
| } | ||
|
|
||
| resource "ibm_pi_instance" "bastion" { | ||
| count = local.bastion_count | ||
|
|
||
| pi_memory = var.bastion["memory"] | ||
| pi_processors = var.bastion["processors"] | ||
| pi_instance_name = "${var.name_prefix}bastion-${count.index}" | ||
| pi_proc_type = var.processor_type | ||
| pi_image_id = local.bastion_image_id | ||
| pi_key_pair_name = ibm_pi_key.key.name | ||
| pi_sys_type = var.system_type | ||
| pi_cloud_instance_id = var.service_instance_id | ||
| pi_health_status = var.bastion_health_status | ||
| pi_volume_ids = var.storage_type == "nfs" ? ibm_pi_volume.volume.*.volume_id : null | ||
| pi_storage_pool = local.bastion_storage_pool | ||
| pi_storage_type = local.bastion_storage_type | ||
| pi_storage_type = local.bastion_storage_type == "" && local.bastion_storage_pool == "" ? "tier3" : local.bastion_storage_type |
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.
Sets the default when using the catalog image.
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.
Can we set it above in locals instead of here?
1.80.4 is needed due to CIS changes which cause a NIL pointer and are addressed in this release.