-
Notifications
You must be signed in to change notification settings - Fork 267
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
Status reporting for CSI & Smart clones with WFFC storage #2364
Conversation
9feac4b
to
6ca7192
Compare
No functional test for this? Can we create a temporary storageclass/volumesnapshotclass based on rook-ceph-block that is WFFC? |
/hold |
6ca7192
to
95d5dbb
Compare
95d5dbb
to
4be087b
Compare
/hold cancel |
/test all |
4be087b
to
637d9ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good minor nitpick
@@ -901,7 +908,7 @@ func (r *DatavolumeReconciler) reconcileCsiClonePvc(log logr.Logger, | |||
r.updateCloneStatusPhase(cdiv1.CloneScheduled, datavolume, nil, CsiClone) | |||
} | |||
|
|||
log.Info("Creating PVC for datavolume") | |||
log.Info("reconcileCsiClonePvc: Creating PVC for datavolume") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this not be something like:
log.WithName("reconcileCsiClonePvc").Info("Creating PVC for datavolume")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep done
Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>
Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>
637d9ae
to
ef82763
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: awels 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 |
/retest |
/retest-required |
/cherrypick release-v1.53 |
@akalenyu: new pull request created: #2400 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 kubernetes/test-infra repository. |
* Status reporting for CSI & Smart clones with WFFC storage (#2364) * Fix logging level so we respect it in controllers/operator Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com> * Fix CSI & Smart clones with WFFC storage status reporting Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com> * Check for pvc populated before doing any clone validations and actions (#2375) In case our pvc is already populated no need to check for source PVC unknown size etc. Signed-off-by: Shelly Kagan <skagan@redhat.com> Signed-off-by: Shelly Kagan <skagan@redhat.com> Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com> Signed-off-by: Shelly Kagan <skagan@redhat.com> Co-authored-by: Shelly Kagan <78472213+ShellyKa13@users.noreply.github.com>
What this PR does / why we need it:
Currently, fancy clones (CSI/Smart clone) with WFFC storage classes will just hang in "progress" phases such as
SnapshotForSmartCloneInProgress
instead of WaitForFirstConsumer.This change reports the correct status for those target DataVolumes.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes kubevirt/kubevirt#7927
Special notes for your reviewer:
The first commit is about all logging that's not V(1) being broken, unless I'm missing something
Release note: