Bug 1908349 - Volume snapshot tests are failing after 1.20 rebase
Summary: Volume snapshot tests are failing after 1.20 rebase
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.7
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.7.0
Assignee: Jan Safranek
QA Contact: Wei Duan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-16 13:41 UTC by Jan Safranek
Modified: 2021-02-24 15:45 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 15:45:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-csi-snapshot-controller-operator pull 70 0 None closed Bug 1908349: Don't validate v1 objects 2021-01-15 09:57:51 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:45:25 UTC

Description Jan Safranek 2020-12-16 13:41:07 UTC
Description of problem:

All Feature:VolumeSnapshotDataSource tests are failing with:

        ErrStatus: {
            TypeMeta: {Kind: "Status", APIVersion: "v1"},
            ListMeta: {
                SelfLink: "",
                ResourceVersion: "",
                Continue: "",
                RemainingItemCount: nil,
            },
            Status: "Failure",
            Message: "admission webhook \"volumesnapshotclasses.snapshot.storage.k8s.io\" denied the request: expect resource to be {snapshot.storage.k8s.io v1beta1 volumesnapshots} or {snapshot.storage.k8s.io v1beta1 volumesnapshotcontents}",
            Reason: "",
            Details: nil,
            Code: 400,
        },


https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/25764/pull-ci-openshift-origin-master-e2e-gcp-csi/1339183779394097152

The test creates snapshot.storage.k8s.io/v1 object, while the webhook handles only snapshot.storage.k8s.io/v1beta1. Upstream webhook validates only snapshot.storage.k8s.io/v1beta1 objects, so we should do the same downstream. At least for now.

Comment 5 errata-xmlrpc 2021-02-24 15:45:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:5633


Note You need to log in before you can comment on or make changes to this bug.