-
Notifications
You must be signed in to change notification settings - Fork 190
virsh_attach_device: add qcow2 disk at/dt test variants #6911
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
Open
sneh-3
wants to merge
4
commits into
autotest:master
Choose a base branch
from
sneh-3:add_qcow2_disk_at_dt
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
f577640
virsh_pool_vol: support multiple storage pools and volumes with hot p…
sneh-3 c108f85
virsh_attach_detach_disk: add domblklist verification and disk format…
sneh-3 7c13057
virsh_attach_device: add qcow2 disk at/dt test variants
sneh-3 06cfcc7
memory_hotplug_virshdump: add sequential attach/dump
sneh-3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| # Memory Hotplug with Virsh Dump Test Configuration | ||
|
|
||
| - memory_hotplug_virshdump: | ||
| type = memory_hotplug_virshdump | ||
| start_vm = yes | ||
| kill_vm = yes | ||
| kill_vm_gracefully = yes | ||
|
|
||
| # Memory configuration | ||
| mem = 2097152 | ||
| current_mem = 2097152 | ||
| max_mem = 20971520 | ||
| max_mem_rt = 20971520 | ||
| mem_unit = "KiB" | ||
|
|
||
| # Memory device parameters | ||
| tg_size = 524288 | ||
| tg_sizeunit = "KiB" | ||
| tg_node = 0 | ||
| mem_model = "dimm" | ||
| slots = 40 | ||
|
|
||
| # VM configuration | ||
| vcpu_cores = 4 | ||
| vcpu_threads = 1 | ||
| vcpu_sockets = 1 | ||
| numa_cells = 1 | ||
|
|
||
| variants: | ||
| - continuous_hotplug: | ||
| variants: | ||
| - virshdump: | ||
| variants: | ||
| - positive: | ||
| variants: | ||
| - basic_test: | ||
| mem_hotplug_iterations = 16 | ||
| mem_hotplug_delay = 10 | ||
| virshdump_iterations = 16 | ||
| virshdump_delay = 2 | ||
| dump_path = "./virsh_dumps" | ||
| dump_options = "--memory-only --bypass-cache" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,169 @@ | ||
| - virsh.pool_vol: | ||
| type = virsh_pool_vol | ||
| vms = '' | ||
| main_vm = '' | ||
| start_vm = no | ||
| vol_capacity = "10G" | ||
| status_error = "no" | ||
| test_attach = "no" | ||
| at_options = "--live" | ||
| dt_options = "--live" | ||
| test_attach_device = "no" | ||
| ad_options = "" | ||
| dd_options = "" | ||
| disk_bus = "virtio" | ||
| disk_slot = "0x09" | ||
|
|
||
| variants: | ||
| - dirpool: | ||
| pool_name = "dirpool" | ||
| pool_type = "dir" | ||
| pool_target = "/var/lib/libvirt/images/dirpool" | ||
| variants: | ||
| - vol_qcow2: | ||
| vol_name = "vol1.qcow2" | ||
| vol_format = "qcow2" | ||
| - vol_raw: | ||
| vol_name = "vol1.raw" | ||
| vol_format = "raw" | ||
| - attach_disk_qcow2: | ||
| vol_name = "vol1.qcow2" | ||
| vol_format = "qcow2" | ||
| test_attach = "yes" | ||
| start_vm = yes | ||
| vms = avocado-vt-vm1 | ||
| main_vm = avocado-vt-vm1 | ||
| disk_target = "vdh" | ||
| - attach_disk_raw: | ||
| vol_name = "vol1.raw" | ||
| vol_format = "raw" | ||
| test_attach = "yes" | ||
| start_vm = yes | ||
| vms = avocado-vt-vm1 | ||
| main_vm = avocado-vt-vm1 | ||
| disk_target = "vdh" | ||
|
|
||
| - attach_device_xml_qcow2: | ||
| vol_name = "dir-vol1.qcow2" | ||
| vol_format = "qcow2" | ||
| test_attach_device = "yes" | ||
| start_vm = no | ||
| vms = avocado-vt-vm1 | ||
| main_vm = avocado-vt-vm1 | ||
| disk_target = "vdb" | ||
| disk_bus = "virtio" | ||
| disk_slot = "0x09" | ||
|
|
||
| - attach_device_xml_raw: | ||
| vol_name = "dir-vol1.raw" | ||
| vol_format = "raw" | ||
| test_attach_device = "yes" | ||
| start_vm = no | ||
| vms = avocado-vt-vm1 | ||
| main_vm = avocado-vt-vm1 | ||
| disk_target = "vdb" | ||
| disk_bus = "virtio" | ||
| disk_slot = "0x09" | ||
|
|
||
| - fspool: | ||
| pool_name = "fspool" | ||
| pool_type = "fs" | ||
| pool_source_format = "ext4" | ||
| pool_target = "/mnt/fs-pool" | ||
| vol_capacity = "20G" | ||
| variants: | ||
| - vol_qcow2: | ||
| vol_name = "fsv1.qcow2" | ||
| vol_format = "qcow2" | ||
| - vol_raw: | ||
| vol_name = "fsv1.raw" | ||
| vol_format = "raw" | ||
|
|
||
| - attach_disk_qcow2: | ||
| vol_name = "fsv1.qcow2" | ||
| vol_format = "qcow2" | ||
| test_attach = "yes" | ||
| start_vm = yes | ||
| vms = avocado-vt-vm1 | ||
| main_vm = avocado-vt-vm1 | ||
| disk_target = "vdh" | ||
| - attach_disk_raw: | ||
| vol_name = "fsv1.raw" | ||
| vol_format = "raw" | ||
| test_attach = "yes" | ||
| start_vm = yes | ||
| vms = avocado-vt-vm1 | ||
| main_vm = avocado-vt-vm1 | ||
| disk_target = "vdh" | ||
|
|
||
| - attach_device_xml_qcow2: | ||
| vol_name = "fs-vol1.qcow2" | ||
| vol_format = "qcow2" | ||
| test_attach_device = "yes" | ||
| start_vm = no | ||
| vms = avocado-vt-vm1 | ||
| main_vm = avocado-vt-vm1 | ||
| disk_target = "vdb" | ||
| disk_bus = "virtio" | ||
| disk_slot = "0x09" | ||
|
|
||
| - attach_device_xml_raw: | ||
| vol_name = "fs-vol1.raw" | ||
| vol_format = "raw" | ||
| test_attach_device = "yes" | ||
| start_vm = no | ||
| vms = avocado-vt-vm1 | ||
| main_vm = avocado-vt-vm1 | ||
| disk_target = "vdb" | ||
| disk_bus = "virtio" | ||
| disk_slot = "0x09" | ||
|
|
||
| - defaultpool: | ||
| pool_name = "defaultpool" | ||
| pool_type = "dir" | ||
| pool_target = "/var/lib/libvirt/images/defaultpool" | ||
| variants: | ||
| - vol_qcow2: | ||
| vol_name = "def-vol1.qcow2" | ||
| vol_format = "qcow2" | ||
| - vol_raw: | ||
| vol_name = "def-vol1.raw" | ||
| vol_format = "raw" | ||
| - attach_disk_qcow2: | ||
| vol_name = "def-vol1.qcow2" | ||
| vol_format = "qcow2" | ||
| test_attach = "yes" | ||
| start_vm = yes | ||
| vms = avocado-vt-vm1 | ||
| main_vm = avocado-vt-vm1 | ||
| disk_target = "vdh" | ||
| - attach_disk_raw: | ||
| vol_name = "def-vol1.raw" | ||
| vol_format = "raw" | ||
| test_attach = "yes" | ||
| start_vm = yes | ||
| vms = avocado-vt-vm1 | ||
| main_vm = avocado-vt-vm1 | ||
| disk_target = "vdh" | ||
|
|
||
| - attach_device_xml_qcow2: | ||
| vol_name = "def-vol1.qcow2" | ||
| vol_format = "qcow2" | ||
| test_attach_device = "yes" | ||
| start_vm = no | ||
| vms = avocado-vt-vm1 | ||
| main_vm = avocado-vt-vm1 | ||
| disk_target = "vdb" | ||
| disk_bus = "virtio" | ||
| disk_slot = "0x09" | ||
|
|
||
| - attach_device_xml_raw: | ||
| vol_name = "def-vol1.raw" | ||
| vol_format = "raw" | ||
| test_attach_device = "yes" | ||
| start_vm = no | ||
| vms = avocado-vt-vm1 | ||
| main_vm = avocado-vt-vm1 | ||
| disk_target = "vdb" | ||
| disk_bus = "virtio" | ||
| disk_slot = "0x09" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
This variant will write roughly 100 GiB of dump data per run.
With
mem=2097152,tg_size=524288, and 16 attach+dump cycles, the guest grows from ~2.5 GiB to ~10 GiB before each--memory-onlydump. The implementation keeps every file under./virsh_dumps, so this single case ends up around 100 GiB of disk writes. That is likely to fill many test workers and fail unrelated jobs. Please either delete each dump after validating it or reduce the iteration/count sizing here.🤖 Prompt for AI Agents