Skip to content
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

use LoadBalancer type service for e2e service test to patch ingress status #119454

Merged
merged 2 commits into from
Aug 19, 2023

Conversation

pacoxu
Copy link
Member

@pacoxu pacoxu commented Jul 20, 2023

What type of PR is this?

/kind failing-test
/kind flake

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #119452

Special notes for your reviewer:

The failure is after #118895.
/cc @RyanAoh

This test is flake not failing every time.

Does this PR introduce a user-facing change?

None

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jul 20, 2023
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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 k8s-ci-robot added the needs-priority Indicates a PR lacks a `priority/foo` label and requires one. label Jul 20, 2023
@k8s-ci-robot k8s-ci-robot added area/test sig/network Categorizes an issue or PR as relevant to SIG Network. sig/testing Categorizes an issue or PR as relevant to SIG Testing. and removed do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Jul 20, 2023
@pacoxu
Copy link
Member Author

pacoxu commented Jul 20, 2023

/priority important-soon

@k8s-ci-robot k8s-ci-robot added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Jul 20, 2023
@RyanAoh
Copy link
Member

RyanAoh commented Jul 20, 2023

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 20, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 317b55dc51fd032fd40c8255374daa7c29d57ba0

@pacoxu
Copy link
Member Author

pacoxu commented Jul 20, 2023

/assign @MrHohn @robscott

@robscott
Copy link
Member

@RyanAoh It seems like there must be some kind of mistake here. If I'm understanding this PR correctly, it appears that IPMode was added as a required field without a default value, which would be a backwards incompatible change. Did you mean to add the new field as optional?

/cc @aojea @thockin

@RyanAoh
Copy link
Member

RyanAoh commented Jul 21, 2023

IPMode is an optional field. Looks like we should allow the load-balancer status updated with only ingress.ip specified, and the ingress.ipMode will default to "VIP" eventually.
The fllowing validation may need to be removed:

if utilfeature.DefaultFeatureGate.Enabled(features.LoadBalancerIPMode) && ingress.IPMode == nil {
if len(ingress.IP) > 0 {
allErrs = append(allErrs, field.Required(idxPath.Child("ipMode"), "must be specified when `ip` is set"))
}

Any advice? @thockin

@pacoxu pacoxu changed the title add IPMode for ingress in e2e service Fix IPMode have to be specified for ingress in e2e service if IP is set Jul 21, 2023
@pacoxu
Copy link
Member Author

pacoxu commented Jul 21, 2023

The following validation may need to be removed.

  • remove the validation
  • default to "VIP"

Either can solve the failure without the e2e test change.

@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 6c480982b7afb633749f9fce9a31047050ba7ae0

@thockin
Copy link
Member

thockin commented Jul 31, 2023

/retest

@pacoxu
Copy link
Member Author

pacoxu commented Aug 1, 2023

+1 for Warn and then discard the value. It seems to be a more API-consistent change.

@aojea
Copy link
Member

aojea commented Aug 1, 2023

/approve

heh, this is why everybody loves Service 🙃

what an interesting failure

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aojea, pacoxu, thockin

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

@aojea
Copy link
Member

aojea commented Aug 1, 2023

/hold cancel
/milestone next-candidate

only impacts an alpha feature gate

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 1, 2023
@k8s-ci-robot k8s-ci-robot added this to the next-candidate milestone Aug 1, 2023
@pacoxu
Copy link
Member Author

pacoxu commented Aug 16, 2023

/retest

@pacoxu
Copy link
Member Author

pacoxu commented Aug 16, 2023

/checkcla
/easycla
/retest

Copy link
Member

@thockin thockin left a comment

Choose a reason for hiding this comment

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

I think the timeout at L3518 is now too short for an LB service.

We should either call GetServiceLoadBalancerPropagationTimeout or call e2eservice.WaitForServiceDeletedWithFinalizer or just bump this timeout or something.

Do we really need to test patch here? If not, it would be simpler to remove this section - it is exercised in the loadbalancer tests already.

@aojea

@pacoxu
Copy link
Member Author

pacoxu commented Aug 17, 2023

/retest

@pacoxu
Copy link
Member Author

pacoxu commented Aug 17, 2023

/retest-required

@aojea
Copy link
Member

aojea commented Aug 17, 2023

/hold

we need to understand the consequnces of using a LoadBalancer

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 17, 2023
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 18, 2023
@@ -3357,6 +3357,7 @@ var _ = common.SIGDescribe("Services", func() {
Port: int32(80),
TargetPort: intstr.FromInt(80),
}},
LoadBalancerClass: utilpointer.String("test.com/test"),
Copy link
Member

Choose a reason for hiding this comment

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

super super nit: example.com should be used for things like this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated to "example.com/internal-vip. Is this OK?

Copy link
Member

@thockin thockin left a comment

Choose a reason for hiding this comment

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

I'm going to approve it, but not LGTM. Change the domain name and then LGTM is easy.

@thockin thockin removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 18, 2023
@thockin
Copy link
Member

thockin commented Aug 19, 2023

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 19, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 769a3ecc3d8d347c1c3cd431c9921c4a5bda2e6d

@k8s-ci-robot k8s-ci-robot merged commit c2bddad into kubernetes:master Aug 19, 2023
15 of 16 checks passed
@k8s-ci-robot k8s-ci-robot modified the milestones: next-candidate, v1.29 Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/test cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note-none Denotes a PR that doesn't merit a release note. sig/network Categorizes an issue or PR as relevant to SIG Network. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failure cluster [878e052f...] ipMode: Required value: must be specified when ip is set
7 participants