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

clusterloader2: Fix error of probes about metrics-server #2066

Merged
merged 1 commit into from
Jun 9, 2022

Conversation

yangjunmyfm192085
Copy link
Contributor

What type of PR is this?
/kind bug

What this PR does / why we need it:
When using InClusterAPIServerRequestLatency to measure the latency of metrics-server, need to add serviceMonitor and other information, and update the probe image
Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

"NONE"

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

"NONE"

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 13, 2022
@k8s-ci-robot k8s-ci-robot requested review from mborsz and mm4tt May 13, 2022 02:51
@yangjunmyfm192085
Copy link
Contributor Author

yangjunmyfm192085 commented May 13, 2022

Plan to use perf-test in kubernetes-sigs/metrics-server, which requires the probe resources, fix the bugs
/cc @wojtek-t @mborsz @mm4tt

spec:
containers:
- name: prober
image: gcr.io/k8s-testimages/probes:v0.0.4
image: gcr.io/k8s-testimages/probes:v0.0.5
Copy link
Contributor Author

@yangjunmyfm192085 yangjunmyfm192085 May 13, 2022

Choose a reason for hiding this comment

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

@mm4tt, I build the image using https://github.com/kubernetes/perf-tests/blob/master/util-images/probes/Dockerfile but don't have permission to push gcr.io/k8s-testimages/probes:v0.0.5.
I think I need help to push an image gcr.io/k8s-testimages/probes:v0.0.5 to registry

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -4,27 +4,27 @@ metadata:
namespace: probes
name: metrics-server-prober
labels:
probe: metrics-server-probe
probe: kube-client
Copy link
Member

Choose a reason for hiding this comment

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

Hmm - I actually likes the metrics-server-probe (or sth like that).

kube-client seems too generic too me.

Why are you changing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, thanks for review. I have updated all suggestions

@@ -0,0 +1,14 @@
---
apiVersion: rbac.authorization.k8s.io/v1
Copy link
Member

Choose a reason for hiding this comment

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

What's the point of splitting into multiple files? Keeping whole BRA-related stuff in one file as it was actually is pretty convinient to use...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, I have I have rollbacked to use one file.

@yangjunmyfm192085
Copy link
Contributor Author

/test pull-perf-tests-clusterloader2

@yangjunmyfm192085
Copy link
Contributor Author

/retest

Copy link
Contributor Author

@yangjunmyfm192085 yangjunmyfm192085 left a comment

Choose a reason for hiding this comment

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

/cc @wojtek-t I have updated all suggestions.

apiVersion: v1
kind: List
items:
- apiVersion: rbac.authorization.k8s.io/v1
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand this...

k8s doesn't support list containing multiple types of objects...

I still don't understand why you're touching it - what didn't work with the original file?

Copy link
Contributor Author

@yangjunmyfm192085 yangjunmyfm192085 May 17, 2022

Choose a reason for hiding this comment

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

The issue is here

obj, err := templateProvider.TemplateToObject(filepath.Base(manifest), templateMapping)

According to the original file, only the first object can be parsed from the file, and the following cannot be parsed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

/cc @wojtek-t
In the original file, only one type of resource can be loaded, and the rest cannot be loaded.

Copy link
Contributor Author

@yangjunmyfm192085 yangjunmyfm192085 May 30, 2022

Choose a reason for hiding this comment

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

and I observed that other manifest files also have only one resource.

Copy link
Member

Choose a reason for hiding this comment

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

OK - that makes sense.

@k8s-ci-robot
Copy link
Contributor

@yangjunmyfm192085: 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-perf-tests-clusterloader2-e2e-gce-scale-performance-manual d74cfe8 link true /test pull-perf-tests-clusterloader2-e2e-gce-scale-performance-manual

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.

Copy link
Contributor Author

@yangjunmyfm192085 yangjunmyfm192085 left a comment

Choose a reason for hiding this comment

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

/test pull-perf-tests-clusterloader2-e2e-gce-scale-performance-manual

@k8s-ci-robot
Copy link
Contributor

@yangjunmyfm192085: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test pull-perf-tests-benchmark-kube-dns
  • /test pull-perf-tests-clusterloader2
  • /test pull-perf-tests-clusterloader2-kubemark
  • /test pull-perf-tests-util-images
  • /test pull-perf-tests-verify-all-python
  • /test pull-perf-tests-verify-dashboard
  • /test pull-perf-tests-verify-lint
  • /test pull-perf-tests-verify-test

The following commands are available to trigger optional jobs:

  • /test pull-perf-tests-100-adhoc
  • /test soak-tests-capz-windows-2019

Use /test all to run the following jobs that were automatically triggered:

  • pull-perf-tests-clusterloader2
  • pull-perf-tests-clusterloader2-kubemark
  • pull-perf-tests-verify-all-python
  • pull-perf-tests-verify-lint
  • pull-perf-tests-verify-test

In response to this:

/test pull-perf-tests-clusterloader2-e2e-gce-scale-performance-manual

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.

Copy link
Contributor Author

@yangjunmyfm192085 yangjunmyfm192085 left a comment

Choose a reason for hiding this comment

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

/retest

@yangjunmyfm192085
Copy link
Contributor Author

Hi, @wojtek-t, Is this analysis correct?

@wojtek-t
Copy link
Member

wojtek-t commented Jun 2, 2022

/assign @marseel

@marseel - can you please help with pushing the new image?

@wojtek-t
Copy link
Member

wojtek-t commented Jun 2, 2022

/approve

But we need to push the image before lgtm-ing.

@marseel
Copy link
Member

marseel commented Jun 6, 2022

I've pushed 0.0.5, but please change also util-images/probes/Makefile version from 0.0.4 to 0.0.5

@marseel marseel removed their assignment Jun 6, 2022
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 6, 2022
Copy link
Contributor Author

@yangjunmyfm192085 yangjunmyfm192085 left a comment

Choose a reason for hiding this comment

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

/cc @marseel

@yangjunmyfm192085
Copy link
Contributor Author

I've pushed 0.0.5, but please change also util-images/probes/Makefile version from 0.0.4 to 0.0.5

Hi, @marseel I have applied all modifications, any other updates?

@marseel
Copy link
Member

marseel commented Jun 9, 2022

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: marseel, wojtek-t, yangjunmyfm192085

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 k8s-ci-robot merged commit 47169b6 into kubernetes:master Jun 9, 2022
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants