-
Notifications
You must be signed in to change notification settings - Fork 10
storage: limit data written per VDI with --write-volume-cap #481
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -140,17 +140,17 @@ def test_invalid_vdi_size(self, nfs_sr: SR, image_format: ImageFormat): | |
| @pytest.mark.usefixtures('vm_ref') | ||
| @pytest.mark.parametrize('dispatch_nfs', ['vm_on_nfs_sr', 'vm_on_nfs4_sr'], indirect=True) | ||
| @pytest.mark.parametrize("compression", ["none", "gzip", "zstd"]) | ||
| def test_xva_export_import(self, dispatch_nfs: VM, compression: XVACompression, temp_large_dir: str, defer: Defer) \ | ||
| -> None: | ||
| if "NFS4" in dispatch_nfs.vdis[0].sr.get_name_label() and config.volume_size > 20 * GiB: | ||
| def test_xva_export_import(self, dispatch_nfs: VM, compression: XVACompression, temp_large_dir: str, | ||
| defer: Defer) -> None: | ||
| if "NFS4" in dispatch_nfs.vdis[0].sr.get_name_label() and config.write_volume_cap > 20 * GiB: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry if asked previously but why magic numbers are duplicated, and not a constant introduced?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because I didn't feel a need for it, I suppose. Indeed, I think we've already had this discussion :) |
||
| pytest.skip("Skipping NFSv4 large VDI test (known performance issue)") | ||
| xva_export_import(dispatch_nfs, compression, temp_large_dir, defer) | ||
|
|
||
| @pytest.mark.small_vm | ||
| @pytest.mark.parametrize('dispatch_nfs', ['nfs_sr', 'nfs4_sr'], indirect=True) | ||
| def test_vdi_export_import(self, storage_test_vm: VM, dispatch_nfs: SR, image_format: ImageFormat, | ||
| temp_large_dir: str, defer: Defer) -> None: | ||
| if "NFS4" in dispatch_nfs.get_name_label() and config.volume_size > 20 * GiB: | ||
| if "NFS4" in dispatch_nfs.get_name_label() and config.write_volume_cap > 20 * GiB: | ||
| pytest.skip("Skipping NFSv4 large VDI test (known performance issue)") | ||
| vdi_export_import(storage_test_vm, dispatch_nfs, image_format, temp_large_dir, defer) | ||
|
|
||
|
|
||
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.
is it twice volume size ?