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-34544: Disable PersistentVolumeLabel admission plugin #4107

Merged

Conversation

jsafrane
Copy link
Contributor

What this PR does / why we need it:
PersistentVolumeLabel admission plugin needs a valid cloud config. kube-apiserver does not get it in HyperShift, and thus it rejects valid Azure Disk PVs.

The admission plugin was deprecated upstream a long time ago, it was removed from Kubernetes 1.31 (OCP 4.18) and it cannot work without a cloud provider in kube-apiserver anyway.

It's also being disabled in standalone OCP, openshift/cluster-kube-apiserver-operator#1693

Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes OCPBUGS-34544
Related to OCPBUGS-31371

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

cc @openshift/storage

@openshift-ci-robot openshift-ci-robot added jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. labels May 29, 2024
@openshift-ci-robot
Copy link

@jsafrane: This pull request references Jira Issue OCPBUGS-34544, which is valid.

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

No GitHub users were found matching the public email listed for the QA contact in Jira ([email protected]), skipping review request.

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

In response to this:

What this PR does / why we need it:
PersistentVolumeLabel admission plugin needs a valid cloud config. kube-apiserver does not get it in HyperShift, and thus it rejects valid Azure Disk PVs.

The admission plugin was deprecated upstream a long time ago, it was removed from Kubernetes 1.31 (OCP 4.18) and it cannot work without a cloud provider in kube-apiserver anyway.

It's also being disabled in standalone OCP, openshift/cluster-kube-apiserver-operator#1693

Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes OCPBUGS-34544
Related to OCPBUGS-31371

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

cc @openshift/storage

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label May 29, 2024
@openshift-ci openshift-ci bot requested review from isco-rodriguez and sjenning May 29, 2024 09:22
@openshift-ci openshift-ci bot added area/control-plane-operator Indicates the PR includes changes for the control plane operator - in an OCP release and removed do-not-merge/needs-area labels May 29, 2024
@jsafrane
Copy link
Contributor Author

/hold
for coordinated merge with openshift/cluster-kube-apiserver-operator#1693.

@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 May 29, 2024
Copy link

netlify bot commented May 29, 2024

Deploy Preview for hypershift-docs ready!

Name Link
🔨 Latest commit db98028
🔍 Latest deploy log https://app.netlify.com/sites/hypershift-docs/deploys/666fed7a2b55d50008babed3
😎 Deploy Preview https://deploy-preview-4107--hypershift-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@bryan-cox
Copy link
Member

/retest

@bryan-cox
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 31, 2024
@stevekuznetsov
Copy link
Contributor

/assign @sjenning

@bryan-cox
Copy link
Member

/retest

@jsafrane
Copy link
Contributor Author

jsafrane commented Jun 6, 2024

/hold cancel
The admission plugin is disabled in standalone ocp: openshift/cluster-kube-apiserver-operator#1693

@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 Jun 6, 2024
@bryan-cox
Copy link
Member

/approve

@bryan-cox
Copy link
Member

/retest

Copy link
Contributor

openshift-ci bot commented Jun 11, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bryan-cox, jsafrane

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 11, 2024
@bryan-cox
Copy link
Member

@jsafrane - you probably need to rebase to fix the konflux issue

@bryan-cox
Copy link
Member

/retest

PersistentVolumeLabel admission plugin needs a valid cloud config.
kube-apiserver does not get it in HyperShift, and thus it rejects valid
Azure Disk PVs.

The admission plugin was deprecated upstream a long time ago, it was
removed from Kubernetes 1.31 (OCP 4.18) and it cannot work without
a cloud provider in kube-apiserver anyway.

It's also being disabled in standalone OCP, openshift/cluster-kube-apiserver-operator#1693
@jsafrane jsafrane force-pushed the remove-PersistentVolumeLabel branch from 97548ad to db98028 Compare June 17, 2024 08:02
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jun 17, 2024
@jsafrane
Copy link
Contributor Author

Rebased

Copy link
Contributor

openshift-ci bot commented Jun 17, 2024

@jsafrane: 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/e2e-kubevirt-azure-ovn 97548ad link false /test e2e-kubevirt-azure-ovn

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-sigs/prow repository. I understand the commands that are listed here.

@bryan-cox
Copy link
Member

/test e2e-aws

@enxebre
Copy link
Member

enxebre commented Jun 18, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 18, 2024
@jsafrane
Copy link
Contributor Author

/cherry-pick release-4.16

@openshift-cherrypick-robot

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

In response to this:

/cherry-pick release-4.16

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-sigs/prow repository.

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 2324187 and 2 for PR HEAD db98028 in total

@openshift-merge-bot openshift-merge-bot bot merged commit 1b9dbe5 into openshift:main Jun 18, 2024
12 of 13 checks passed
@openshift-ci-robot
Copy link

@jsafrane: Jira Issue OCPBUGS-34544: All pull requests linked via external trackers have merged:

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

In response to this:

What this PR does / why we need it:
PersistentVolumeLabel admission plugin needs a valid cloud config. kube-apiserver does not get it in HyperShift, and thus it rejects valid Azure Disk PVs.

The admission plugin was deprecated upstream a long time ago, it was removed from Kubernetes 1.31 (OCP 4.18) and it cannot work without a cloud provider in kube-apiserver anyway.

It's also being disabled in standalone OCP, openshift/cluster-kube-apiserver-operator#1693

Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes OCPBUGS-34544
Related to OCPBUGS-31371

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

cc @openshift/storage

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-cherrypick-robot

@jsafrane: new pull request created: #4241

In response to this:

/cherry-pick release-4.16

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-sigs/prow 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. area/control-plane-operator Indicates the PR includes changes for the control plane operator - in an OCP release jira/severity-moderate Referenced Jira bug's severity is moderate 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.

7 participants