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

[release-4.11] OCPBUGS-7726: [build] Fix k8s version reporting #1420

Conversation

openshift-cherrypick-robot

This is an automated cherry-pick of #1407

/assign aravindhp

The openshift/kubernetes repo does not propagate all tags from upstream.
Only the X.Y.0 tag is propagated. This causes the Windows kubelet and
kube-proxy Z version to lag behind its Linux counterparts. The Linux
build [0] of kubelet and kube-proxy figures out the Z version at build
time. To do something similar for Windows, we can leverage the
hack/update_submodules.sh script which is always used to update the
kubelet and kube-proxy submodules. To achieve this, the following
changes are made:
- Add kubelet and kube-proxy version variables to the Makefile along
  with make endpoints
- Call these make endpoints in the Dockerfile
- Update hack/update_submodules.sh to pull upstream tags and generate
  a commit that updates the Makefile version variables

Now the built binaries will have the correct version encoded in them.

[0] https://github.com/openshift/doozer/blob/a34e303682ca180e4f071f85cc4c34e6d333787e/doozerlib/metadata.py#L788

(manually cherry picked from commit 60c4b4b)
@openshift-ci-robot
Copy link

@openshift-cherrypick-robot: An error was encountered cloning bug for cherrypick for bug OCPBUGS-7336 on the Jira server at https://issues.redhat.com/. No known errors were detected, please see the full error message for details.

Full error message. request failed. Please analyze the request body for more details. Status code: 400: {"errorMessages":[],"errors":{"summary":"You must specify a summary of the issue.","versions":"Affects Version/s is required."}}

Please contact an administrator to resolve this issue, then request a bug refresh with /jira refresh.

In response to this:

This is an automated cherry-pick of #1407

/assign aravindhp

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.

@aravindhp
Copy link
Contributor

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/severity-low Referenced Jira bug's severity is low for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Feb 17, 2023
@openshift-ci-robot
Copy link

@aravindhp: This pull request references Jira Issue OCPBUGS-7336, which is invalid:

  • expected the bug to target the "4.11.z" version, but it targets "4.12.z" instead
  • expected the bug to be in one of the following states: NEW, ASSIGNED, POST, but it is MODIFIED instead
  • expected dependent Jira Issue OCPBUGS-6635 to target a version in 4.12.0, 4.12.z, but it targets "4.13.0" instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

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

In response to this:

/jira refresh

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.

@aravindhp
Copy link
Contributor

/jira cherrypick OCPBUGS-7336

@openshift-ci-robot
Copy link

@aravindhp: Jira Issue OCPBUGS-7336 has been cloned as Jira Issue OCPBUGS-7726. Retitling PR to link against new bug.
/retitle OCPBUGS-7726: [release-4.11] OCPBUGS-7336: [build] Fix k8s version reporting

In response to this:

/jira cherrypick OCPBUGS-7336

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 openshift-ci bot changed the title [release-4.11] OCPBUGS-7336: [build] Fix k8s version reporting OCPBUGS-7726: [release-4.11] OCPBUGS-7336: [build] Fix k8s version reporting Feb 17, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 17, 2023

@openshift-cherrypick-robot: No Bugzilla bug is referenced in the title of this pull request.
To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

In response to this:

OCPBUGS-7726: [release-4.11] OCPBUGS-7336: [build] Fix k8s version reporting

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-robot
Copy link

@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-7726, which is invalid:

  • expected dependent Jira Issue OCPBUGS-7336 to be in one of the following states: VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), but it is MODIFIED instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

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

In response to this:

This is an automated cherry-pick of #1407

/assign aravindhp

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.

@aravindhp
Copy link
Contributor

/retitle [release-4.11] OCPBUGS-7726: [build] Fix k8s version reporting

@aravindhp
Copy link
Contributor

/cherry-pick release-4.10

@openshift-cherrypick-robot
Copy link
Author

@aravindhp: once the present PR merges, I will cherry-pick it on top of release-4.10 in a new PR and assign it to you.

In response to this:

/cherry-pick release-4.10

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 openshift-ci bot changed the title OCPBUGS-7726: [release-4.11] OCPBUGS-7336: [build] Fix k8s version reporting [release-4.11] OCPBUGS-7726: [build] Fix k8s version reporting Feb 17, 2023
Copy link
Contributor

@aravindhp aravindhp left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 17, 2023

@openshift-cherrypick-robot: No Bugzilla bug is referenced in the title of this pull request.
To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

In response to this:

[release-4.11] OCPBUGS-7726: [build] Fix k8s version reporting

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 openshift-ci bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 17, 2023
@aravindhp
Copy link
Contributor

aravindhp commented Feb 18, 2023

/hold

Kubelet version test is failing:

 === RUN   TestWMCO/create/Node_Metadata/ip-10-0-240-8.ec2.internal_Validation_Tests/Kubelet_Version
    validation_test.go:67: 
        	Error Trace:	validation_test.go:67
        	Error:      	Should be true
        	Test:       	TestWMCO/create/Node_Metadata/ip-10-0-240-8.ec2.internal_Validation_Tests/Kubelet_Version
        	Messages:   	expected kubelet version v1.24 was not present on ip-10-0-240-8.ec2.internal. Found v1.26.0+feedbee

We can either force merge this PR as the next submodule update should fix things up. Or we have to manually cherry pick this with a fake "correct" kubelet version. We don't see this issue in the release-4.12 branch because we removed the test there.

@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 Feb 18, 2023
Update the fake k8s version in the branch to match the cluster.
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Feb 20, 2023
@aravindhp
Copy link
Contributor

/retest-required

Copy link
Contributor

@aravindhp aravindhp left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 20, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aravindhp, openshift-cherrypick-robot

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 lgtm Indicates that a PR is ready to be merged. label Feb 20, 2023
@aravindhp
Copy link
Contributor

/tide merge-method-squash

@aravindhp
Copy link
Contributor

/unhold

Added commit to workaround the version test failing.

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 20, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 20, 2023

@openshift-cherrypick-robot: 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
ci/prow/aws-e2e-ccm-install afb409f link true /test aws-e2e-ccm-install

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.

@aravindhp
Copy link
Contributor

/retest-required

Windows nodes are again taking a long time to get configured.

@aravindhp
Copy link
Contributor

/label tide/merge-method-squash

@openshift-ci openshift-ci bot added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Feb 22, 2023
@aravindhp
Copy link
Contributor

/remove-label tide/merge-method-squash

Not sure if missing the merge commit will cause issues in the pipeline.

@openshift-ci openshift-ci bot removed the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Feb 22, 2023
@aravindhp
Copy link
Contributor

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Feb 23, 2023
@openshift-ci-robot
Copy link

@aravindhp: This pull request references Jira Issue OCPBUGS-7726, which is valid. The bug has been moved to the POST state.

6 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.11.z) matches configured target version for branch (4.11.z)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)
  • dependent bug Jira Issue OCPBUGS-7336 is in the state Verified, which is one of the valid states (VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE))
  • dependent Jira Issue OCPBUGS-7336 targets the "4.12.z" version, which is one of the valid target versions: 4.12.0, 4.12.z
  • bug has dependents

Requesting review from QA contact:
/cc @rrasouli

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

In response to this:

/jira refresh

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 openshift-ci bot requested a review from rrasouli February 23, 2023 15:11
@openshift-merge-robot openshift-merge-robot merged commit d430d7a into openshift:release-4.11 Feb 23, 2023
@openshift-ci-robot
Copy link

@openshift-cherrypick-robot: All pull requests linked via external trackers have merged:

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

In response to this:

This is an automated cherry-pick of #1407

/assign aravindhp

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-cherrypick-robot
Copy link
Author

@aravindhp: new pull request created: #1430

In response to this:

/cherry-pick release-4.10

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.

mansikulkarni96 pushed a commit to mansikulkarni96/windows-machine-config-operator that referenced this pull request Aug 7, 2023
…openshift-cherrypick-robot/cherry-pick-1407-to-release-4.11

Updated upstream source commit.
Commit details follow:

Signed-off-by: OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>
Project: https://github.com/openshift/windows-machine-config-operator.git
Branch:  release-4.11
Commit:  d430d7a
Author:  OpenShift Merge Robot
Date:    Thu, 23 Feb 2023 19:31:02 +0100

    Merge pull request openshift#1420 from openshift-cherrypick-robot/cherry-pick-1407-to-release-4.11

    [release-4.11] OCPBUGS-7726: [build] Fix k8s version reporting

Referenced RedHat JIRA issue: OCPBUGS-7726

automerge: yes
x-md5: 71d010e48a05ac73c156be1074ed641e
Change-Id: I1d200610034e922aa3656915b9744748f122a5d0
mansikulkarni96 pushed a commit to mansikulkarni96/windows-machine-config-operator that referenced this pull request Aug 7, 2023
…ed641e' into 'rhaos-4.11-rhel-8'

Updated US source to: d430d7a Merge pull request openshift#1420 from openshift-cherrypick-robot/cherry-pick-1407-to-release-4.11

See merge request openshift-winc-midstream/openshift-winc-midstream!136
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. jira/severity-low Referenced Jira bug's severity is low for the branch this PR is targeting. 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

4 participants