Skip to content

adds a synthetic test for checking if the pod.spec.nodeName field is immutable#26772

Merged
deads2k merged 1 commit intoopenshift:masterfrom
p0lyn0mial:check-pod-nodeName-immutability
Jan 21, 2022
Merged

adds a synthetic test for checking if the pod.spec.nodeName field is immutable#26772
deads2k merged 1 commit intoopenshift:masterfrom
p0lyn0mial:check-pod-nodeName-immutability

Conversation

@p0lyn0mial
Copy link
Contributor

a simple monitor test for checking immutability of pod.spec.nodeName field.
The field is not allowed to change once set i.e. a pod assigned to a node must stay on it.

It will help gather more data (if any) for https://bugzilla.redhat.com/show_bug.cgi?id=2042657

@p0lyn0mial
Copy link
Contributor Author

/assign @deads2k

@p0lyn0mial p0lyn0mial force-pushed the check-pod-nodeName-immutability branch from ad4e036 to 21bd96d Compare January 21, 2022 08:30
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 21, 2022

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

Test name Commit Details Required Rerun command
ci/prow/e2e-gcp-upgrade 21bd96d link true /test e2e-gcp-upgrade
ci/prow/e2e-aws-csi 21bd96d link false /test e2e-aws-csi
ci/prow/e2e-aws-serial 21bd96d link true /test e2e-aws-serial
ci/prow/e2e-gcp-csi 21bd96d link false /test e2e-gcp-csi
ci/prow/e2e-aws-single-node 21bd96d link false /test e2e-aws-single-node

Full PR test history. Your PR dashboard.

Details

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.

conditions = append(conditions, monitorapi.Condition{
Level: monitorapi.Error,
Locator: locatePod(pod),
Message: fmt.Sprintf("invariant violation, pod once assigned to a node must stay on it. The pod previously scheduled to %s, has just been assigned to a new node %s", oldPod.Spec.NodeName, pod.Spec.NodeName),
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: if this gets cleared, you will constantly wonder what that nodename is. I suggest

  1. include the resourceversion for old and new.
  2. use %q for your node names
  3. inspect the field owners in metadata for old and new to determine who overwrite the value.

@deads2k
Copy link
Contributor

deads2k commented Jan 21, 2022

this is significantly better than what we have. I think my suggestions are good/valuable, but if you aren't going to get to them, you can release the hold

/lgtm
/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 21, 2022
@deads2k deads2k added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Jan 21, 2022
@deads2k
Copy link
Contributor

deads2k commented Jan 21, 2022

trying to work out the scope of our problem, bypassing bug requirement

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 21, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 21, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, p0lyn0mial

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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 Jan 21, 2022
@deads2k
Copy link
Contributor

deads2k commented Jan 21, 2022

looks like he's out. This is strictly better than nothing. merging.

@deads2k deads2k merged commit 21e669c into openshift:master Jan 21, 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. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments