-
Notifications
You must be signed in to change notification settings - Fork 254
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
Enable DataVolume garbage collection by default #2421
Enable DataVolume garbage collection by default #2421
Conversation
df99933
to
8b60b7b
Compare
/hold |
8b60b7b
to
62e6cd4
Compare
/unhold |
f7ee3e9
to
95b9263
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mhenriks 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 |
/lgtm |
/retest |
95b9263
to
f2f86e6
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.
We can figure out what to do with that test case later
/lgtm
@@ -33,6 +33,11 @@ var _ = Describe("[Upgrade]", func() { | |||
|
|||
table.DescribeTable("[rfe_id:5493]DV status.name is populated after upgrade", func(dvName string) { |
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.
We should consider removing the test case altogether since we no longer "encourage" looking at DVs after they're done.
Or we could keep this test but change it to just ensure upgraded DVs are not GC'd if they shouldn't be
On the next kubevirt-bot Bump kubevirtci PR (with bump-cdi), it will fail on all kubevirtci lanes with tests referring DVs, as the tests IsDataVolumeGC() looks at CDIConfig Spec.DataVolumeTTLSeconds and assumes default is disabled. This should be fixed there. Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
f2f86e6
to
91a0343
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.
I do not see any problems, looks good
@@ -4961,7 +4961,7 @@ | |||
"type": "object", | |||
"properties": { | |||
"dataVolumeTTLSeconds": { | |||
"description": "DataVolumeTTLSeconds is the time in seconds after DataVolume completion it can be garbage collected.", | |||
"description": "DataVolumeTTLSeconds is the time in seconds after DataVolume completion it can be garbage collected. The default is 0 sec. To disable GC use -1.", |
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.
👍
Maybe you can update the kubevirt test case proactively, before even new kubevirtci is introduced. I suppose the same way it work with HCO? |
Great idea, so simply put 0 instead of false here: |
Prevent DV-related CI failures in the next kubevirt-bot kubevirtci bump PR (with bump-cdi), due to: kubevirt/containerized-data-importer#2421 Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
Prevent DV-related CI failures in the next kubevirt-bot kubevirtci bump PR (with bump-cdi), due to: kubevirt/containerized-data-importer#2421 Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
CDI is enabling DataVolume garbage collection by default since: kubevirt/containerized-data-importer#2421 To prevent DV-related CI failures due to the old GC disabled default reference, we enabled GC by default for all lanes in cluster-deploy: kubevirt#8479 With the current fix, we no more need to explicitly enable it by default in cluster-deploy. Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
CDI is enabling DataVolume garbage collection by default since: kubevirt/containerized-data-importer#2421 To prevent DV-related CI failures due to the old GC disabled default reference, we enabled GC by default for all lanes in cluster-deploy: kubevirt#8479 With the current fix, we no more need to explicitly enable it by default in cluster-deploy. Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
CDI is enabling DataVolume garbage collection by default since: kubevirt/containerized-data-importer#2421 To prevent DV-related CI failures due to the old GC disabled default reference, we enabled GC by default for all lanes in cluster-deploy: kubevirt#8479 With the current fix, we no more need to explicitly enable it by default in cluster-deploy. Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
CDI is enabling DataVolume garbage collection by default since: kubevirt/containerized-data-importer#2421 To prevent DV-related CI failures due to the old GC disabled default reference, we enabled GC by default for all lanes in cluster-deploy: kubevirt#8479 With the current fix, we no more need to explicitly enable it by default in cluster-deploy. Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
CDI is enabling DataVolume garbage collection by default since: kubevirt/containerized-data-importer#2421 To prevent DV-related CI failures due to the old GC disabled default reference, we enabled GC by default for all lanes in cluster-deploy: kubevirt#8479 With the current fix, we no more need to explicitly enable it by default in cluster-deploy. Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
CDI is enabling DataVolume garbage collection by default since: kubevirt/containerized-data-importer#2421 To prevent DV-related CI failures due to the old GC disabled default reference, we enabled GC by default for all lanes in cluster-deploy: kubevirt#8479 With the current fix, we no more need to explicitly enable it by default in cluster-deploy. Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
Signed-off-by: Arnon Gilboa agilboa@redhat.com
What this PR does / why we need it:
It's time to enable DataVolume garbage collection by default.
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 #
Special notes for your reviewer:
On the next kubevirt-bot Bump kubevirtci PR (with bump-cdi), it will fail on all kubevirtci lanes with tests referring DVs, as the tests IsDataVolumeGC() looks at CDIConfig Spec.DataVolumeTTLSeconds and assumes default is disabled. This should be fixed there.
Release note: