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

STOR-2136: Enable volume groupsnapshots APIs v1beta1 version #219

Merged
merged 13 commits into from
Dec 17, 2024

Conversation

gnufied
Copy link
Member

@gnufied gnufied commented Nov 20, 2024

This is meant to be used with openshift/csi-external-snapshotter#166 which relies on using featuregate for enabling group snapshots.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Nov 20, 2024
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Nov 20, 2024

@gnufied: This pull request references STOR-2136 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set.

In response to this:

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.

@gnufied
Copy link
Member Author

gnufied commented Nov 20, 2024

/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 Nov 20, 2024
Copy link
Contributor

openshift-ci bot commented Nov 20, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gnufied

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 Nov 20, 2024
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Nov 22, 2024

@gnufied: This pull request references STOR-2136 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set.

In response to this:

This is meant to be sued with openshift/csi-external-snapshotter#166 which relies on using featuregate for enabling group snapshots.

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.

@jsafrane
Copy link
Contributor

jsafrane commented Dec 5, 2024

@gnufied you need to update the assets/ with v1beta1 CRDs

@jsafrane
Copy link
Contributor

jsafrane commented Dec 5, 2024

and manifests/05_operand_rbac.yaml with the new permissions for the snapshot-controller from here

@gnufied gnufied changed the title STOR-2136: Bump API from forked version to make featuregate GA WIP: STOR-2136: Bump API from forked version to make featuregate GA Dec 5, 2024
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 5, 2024
pkg/operator/starter.go Outdated Show resolved Hide resolved
@gnufied gnufied changed the title WIP: STOR-2136: Bump API from forked version to make featuregate GA STOR-2136: Bump API from forked version to make featuregate GA Dec 10, 2024
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 10, 2024
Also change the flag for featuregates
@gnufied gnufied force-pushed the enable-volume-group-apis branch from 87e1508 to 3d5a735 Compare December 10, 2024 22:00
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Dec 11, 2024

@gnufied: This pull request references STOR-2136 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set.

In response to this:

This is meant to be used with openshift/csi-external-snapshotter#166 which relies on using featuregate for enabling group snapshots.

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.

go.mod Outdated
@@ -124,3 +124,5 @@ replace cloud.google.com/go => cloud.google.com/go v0.104.0

// need this replace to keep upstream on go version 1.22 for bumping to 4.18, delete this in bump to 4.19
replace sigs.k8s.io/json => sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd

replace github.com/openshift/api => github.com/gnufied/api v0.0.0-20241120011244-2372cad37b95
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please remove openshift/api bump from this PR? We still want to have group snapshots under TechPreviewNoUpgrade until it's proven stable.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have removed this.

Copy link
Member

Choose a reason for hiding this comment

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

@jsafrane - what does "proven stable" mean for you? The goal is to have multi-vol snapshots GA in 4.18

Copy link
Member Author

Choose a reason for hiding this comment

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

It means we have an e2e test that says, this is working fine in 4.19. We are not there yet in 4.19. We are still aiming for GA in 4.18, but first we need to prove this that this works in 4.19.

@jsafrane
Copy link
Contributor

CI complains:

   "resource=operator.openshift.io/v1, Resource=csisnapshotcontrollers is missing condition \"CSISnapshotWebhookControllerAvailable\" that was present in 4.17.  If this is intentional, update the list in this test.",
   "resource=operator.openshift.io/v1, Resource=csisnapshotcontrollers is missing condition \"CSISnapshotWebhookControllerDegraded\" that was present in 4.17.  If this is intentional, update the list in this test.",
   "resource=operator.openshift.io/v1, Resource=csisnapshotcontrollers is missing condition \"CSISnapshotWebhookControllerProgressing\" that was present in 4.17.  If this is intentional, update the list in this test.",
   "resource=operator.openshift.io/v1, Resource=csisnapshotcontrollers is missing condition \"WebhookControllerDegraded\" that was present in 4.17.  If this is intentional, update the list in this test.",

Please add those exceptions to openshift/origin (?)

@gnufied gnufied force-pushed the enable-volume-group-apis branch from addbffc to 49b0de1 Compare December 11, 2024 17:06
@gnufied gnufied changed the title STOR-2136: Bump API from forked version to make featuregate GA STOR-2136: Enable volume groupsnapshots APIs v1beta1 version Dec 11, 2024
@gnufied
Copy link
Member Author

gnufied commented Dec 12, 2024

/hold cancel

@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 Dec 12, 2024
pkg/operator/webhook_removal_controller.go Outdated Show resolved Hide resolved
pkg/operator/webhook_removal_controller.go Outdated Show resolved Hide resolved
pkg/operator/webhook_removal_controller.go Outdated Show resolved Hide resolved
pkg/operator/webhook_removal_controller.go Show resolved Hide resolved
@Phaow
Copy link
Contributor

Phaow commented Dec 13, 2024

/retest

Comment on lines +86 to +94
for _, result := range mgmtResouceRemovalResult {
if result.Error != nil {
allErrors = append(allErrors, result.Error)
}
}

if len(allErrors) > 0 {
return utilerrors.NewAggregate(allErrors)
}
Copy link
Contributor

@jsafrane jsafrane Dec 13, 2024

Choose a reason for hiding this comment

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

NewAggregate already filters nil and empty slices. In theory, this could be enough:

guestResourceRemovalErr := resourceapply.DeleteAll()
mgmtResouceRemovalErr := resourceapply.DeleteAll()
if err := utilerrors.NewAggregate(append(guestResourceRemovalErr,mgmtResouceRemovalErr... ); err != nil {
     return err
}

Copy link
Member Author

Choose a reason for hiding this comment

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

wait, I forgot. we will have to still extract errors from these objects in a loop. Result of .DeleteAll call is not of error type.

@gnufied
Copy link
Member Author

gnufied commented Dec 13, 2024

/retest

Copy link
Contributor

openshift-ci bot commented Dec 13, 2024

@gnufied: 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/okd-scos-e2e-aws-ovn face14a link false /test okd-scos-e2e-aws-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.

@jsafrane
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 16, 2024
@duanwei33
Copy link

QE verified the volumesnapshot/volumesgroupnapshot feature with openshift/csi-external-snapshotter#166,openshift/cluster-csi-snapshot-controller-operator#219,openshift/api#2106,openshift/kubernetes#2155, which looks good.

@duanwei33
Copy link

/label qe-approved

@openshift-ci openshift-ci bot added the qe-approved Signifies that QE has signed off on this PR label Dec 17, 2024
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Dec 17, 2024

@gnufied: This pull request references STOR-2136 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set.

In response to this:

This is meant to be used with openshift/csi-external-snapshotter#166 which relies on using featuregate for enabling group snapshots.

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.

@duanwei33
Copy link

/test e2e-hypershift-conformance

@openshift-merge-bot openshift-merge-bot bot merged commit 9dceffb into openshift:master Dec 17, 2024
11 of 13 checks passed
@openshift-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

Distgit: ose-cluster-csi-snapshot-controller-operator
This PR has been included in build ose-cluster-csi-snapshot-controller-operator-container-v4.19.0-202412170739.p0.g9dceffb.assembly.stream.el9.
All builds following this will include this PR.

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-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. qe-approved Signifies that QE has signed off on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants