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

OCPBUGS-11882: Added safe-to-evict annotation to ovnkube-master and multus admission controller components #1822

Merged
merged 1 commit into from Jun 1, 2023

Conversation

jparrill
Copy link
Contributor

This PR fixes part of this bug: https://issues.redhat.com/browse/OCPBUGS-11882.

Basically adding this annotation to the pods which contains volumes or emptyDirs will allow the ClusterAutoscaler to drain the pods properly.

@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels May 25, 2023
@openshift-ci-robot
Copy link
Contributor

@jparrill: This pull request references Jira Issue OCPBUGS-11882, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.14.0) matches configured target version for branch (4.14.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

This PR fixes part of this bug: https://issues.redhat.com/browse/OCPBUGS-11882.

Basically adding this annotation to the pods which contains volumes or emptyDirs will allow the ClusterAutoscaler to drain the pods properly.

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.

@@ -53,6 +53,7 @@ spec:
annotations:
hypershift.openshift.io/release-image: {{.ReleaseImage}}
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
Copy link
Member

@enxebre enxebre May 25, 2023

Choose a reason for hiding this comment

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

does this annotation somehow skip PDBs? If so that's highly undesired and will need to use safe-to-evict-local-volumes https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-types-of-pods-can-prevent-ca-from-removing-a-node

How do those annotations differ?

Copy link
Member

@enxebre enxebre May 25, 2023

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've changed that just pointing to the EmptyDir concrete volumes. Also added to the multus-admission-controller deployment.

@jparrill jparrill changed the title OCPBUGS-11882: Added safe-to-evict annotation to ovnkube-master pods OCPBUGS-11882: Added safe-to-evict annotation to ovnkube-master and multus admission controller components May 26, 2023
@jparrill
Copy link
Contributor Author

/retest

@jparrill
Copy link
Contributor Author

/retest-required

1 similar comment
@jparrill
Copy link
Contributor Author

/retest-required

…us admission controller and cloud-network-config components

Signed-off-by: Juan Manuel Parrilla Madrid <jparrill@redhat.com>
@jparrill
Copy link
Contributor Author

/retest-required

1 similar comment
@jparrill
Copy link
Contributor Author

/retest-required

@jparrill
Copy link
Contributor Author

/test e2e-aws-ovn-network-migration

@csrwng
Copy link
Contributor

csrwng commented May 30, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 30, 2023
@jparrill
Copy link
Contributor Author

/test e2e-aws-ovn-network-migration

2 similar comments
@jparrill
Copy link
Contributor Author

/test e2e-aws-ovn-network-migration

@jparrill
Copy link
Contributor Author

jparrill commented Jun 1, 2023

/test e2e-aws-ovn-network-migration

@dcbw
Copy link
Contributor

dcbw commented Jun 1, 2023

/override ci/prow/e2e-aws-ovn-network-migration
/approve
/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 1, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: csrwng, dcbw, jparrill

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 1, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 1, 2023

@dcbw: Overrode contexts on behalf of dcbw: ci/prow/e2e-aws-ovn-network-migration

In response to this:

/override ci/prow/e2e-aws-ovn-network-migration
/approve
/lgtm

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.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 1, 2023

@jparrill: all tests passed!

Full PR test history. Your PR dashboard.

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.

@openshift-merge-robot openshift-merge-robot merged commit 6c0b42e into openshift:master Jun 1, 2023
31 checks passed
@openshift-ci-robot
Copy link
Contributor

@jparrill: Jira Issue OCPBUGS-11882: Some pull requests linked via external trackers have merged:

The following pull requests linked via external trackers have not merged:

These pull request must merge or be unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with /jira refresh.

Jira Issue OCPBUGS-11882 has not been moved to the MODIFIED state.

In response to this:

This PR fixes part of this bug: https://issues.redhat.com/browse/OCPBUGS-11882.

Basically adding this annotation to the pods which contains volumes or emptyDirs will allow the ClusterAutoscaler to drain the pods properly.

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.

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. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants