cluster-api-provider-aws icon indicating copy to clipboard operation
cluster-api-provider-aws copied to clipboard

:bug: fix: Fix instance PrivateDNSName when domain-name is set in dhcpOpts

Open jparrill opened this issue 1 year ago • 7 comments
trafficstars

What this PR does / why we need it:

When a VPC sets a DHCPOption's domain-name with a custom DNS name, it's being ignored. Now, with this PR, ensure that during instance creation, the controller checks the DHCPOptions and sets the proper PrivateDNSName.

Signed-off-by: Juan Manuel Parrilla Madrid [email protected]

What type of PR is this?

/kind bug

Which issue(s) this PR fixes :

  • https://github.com/kubernetes-sigs/cluster-api-provider-aws/issues/1691 Fixes #OCPBUGS-29391

Checklist:

  • [x] squashed commits
  • [ ] includes documentation
  • [ ] includes emojis
  • [x] adds unit tests
  • [ ] adds or updates e2e tests

Release note:

NONE

jparrill avatar Mar 01 '24 14:03 jparrill

Welcome @jparrill!

It looks like this is your first PR to kubernetes-sigs/cluster-api-provider-aws 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/cluster-api-provider-aws has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. :smiley:

k8s-ci-robot avatar Mar 01 '24 14:03 k8s-ci-robot

Hi @jparrill. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

k8s-ci-robot avatar Mar 01 '24 14:03 k8s-ci-robot

/ok-to-test

richardcase avatar Mar 05 '24 11:03 richardcase

I need to change the approach, modifying the status.addresses to change the PrivateDnsName reported instead of change that value directly.

jparrill avatar Mar 05 '24 17:03 jparrill

/lgtm

muraee avatar Mar 19 '24 13:03 muraee

/test pull-cluster-api-provider-aws-e2e

Ankitasw avatar Mar 22 '24 06:03 Ankitasw

/test pull-cluster-api-provider-aws-e2e

jparrill avatar Mar 22 '24 11:03 jparrill

/test pull-cluster-api-provider-aws-e2e

jparrill avatar Mar 22 '24 15:03 jparrill

@jparrill: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cluster-api-provider-aws-e2e 82556f89b6dfdfed3120d922b5755ac007703853 link false /test pull-cluster-api-provider-aws-e2e

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

k8s-ci-robot avatar Mar 22 '24 16:03 k8s-ci-robot

/approve

Ankitasw avatar Mar 27 '24 05:03 Ankitasw

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Ankitasw

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 /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Mar 27 '24 05:03 k8s-ci-robot

@Ankitasw it was a good merge? I mean it was failing the cluster creation in E2E isn't it?

jparrill avatar Mar 27 '24 06:03 jparrill

/cherry-pick release-2.4

damdo avatar Apr 11 '24 09:04 damdo

@damdo: new pull request created: #4920

In response to this:

/cherry-pick release-2.4

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.

Fix included in accepted release 4.16.0-0.nightly-2024-04-13-070448

openshift-merge-robot avatar Apr 13 '24 14:04 openshift-merge-robot