mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 11:16:47 +00:00
attach_disk (new or existing volume, CD-ROM), add_guest_agent and remove_guest_agent acted only when the status was running (1) or shut off (5). On a paused VM they changed neither definition and the request reported success. They now use the same rule as the NIC edits: the running definition while the VM is active, paused included, and the persistent one always. remove_guest_agent reads each definition from its own XML, so a channel present only in the persistent one is removed too. Unit tests check paused, running and stopped VMs (paused fails on the previous code). The live effects test adds attach_disk and add_guest_agent, and now also checks that edits meant for the running VM reach it, which showed that an ejected CD-ROM keeps an empty <source> in the live XML; NIC unplug is left to the guest tests, as these VMs have no OS to acknowledge it. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| connection.py | ||
| create.py | ||
| hostdetails.py | ||
| instance.py | ||
| interface.py | ||
| network.py | ||
| nwfilters.py | ||
| rwlock.py | ||
| storage.py | ||
| test_change_network.py | ||
| test_connection.py | ||
| test_console_setters.py | ||
| test_iso_media.py | ||
| test_network_ip.py | ||
| test_persistent_edits.py | ||
| test_resize_disk.py | ||
| test_rwlock.py | ||
| test_util.py | ||
| test_xml_safety.py | ||
| util.py | ||
| virtsecrets.py | ||