Skip to content
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

Virsh domiftune #1

Open
wants to merge 278 commits into
base: local
Choose a base branch
from
Open

Virsh domiftune #1

wants to merge 278 commits into from

Conversation

cevich
Copy link

@cevich cevich commented Jul 5, 2013

Rebase + small fixups. Crosses a few dead-head / non-ff updates on next recently, these are the relevant commits:

0cf984614e69bf528440ed1b41d4037fff190a62
d986de5bc91de4e8769219fcba59b8cd13a041c4
4c702fe5dc2a78b42f4b86149bf8a3831e188894
96621f4cebc7ecf16a57e53267c9ff196ad463e3
0f3b6e32da31ca0ebe921314d492e35ac7ada329

zhouqt and others added 30 commits July 3, 2013 13:33
These tests will create some other format of image, so the
options for qcow3 would affect them.
To make these cases still work with qcow3 format, reset the
'image_extra_params' parameter in them.

Signed-off-by: Qingtang Zhou <[email protected]>
If the parameters are missing, just skip this test.

Signed-off-by: Qingtang Zhou <[email protected]>
Add remote_edit method into virttest/remote.py.
virt: repair Cart config unittest test data.
Fix qemu-img create snapshot file failed when image format is raw
Corrected block stream command in human monitor (block-stream ->
block_stream)

changes from v1:
    Removed configuration to set QMP as default monitor

Signed-off-by: Xu Tian <[email protected]>
qemu: Minor fixes for qemu test cases
qemu.test: make block_stream test work with qmp monitor
Signed-off-by: yangdongsheng <[email protected]>

Adapt all virsh.start() to new @return.

Signed-off-by: yangdongsheng <[email protected]>
Signed-off-by: yangdongsheng <[email protected]>
Fix the context_pattern in get_context_from_str method.
The old pattern will not match the '_' in context such as
'svirt_image_t'.

utils_selinux_unittest: replace assertIn with assertTrue.

Signed-off-by: yangdongsheng <[email protected]>
Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
Replace templates.subtitution by eval in Cartesian config.
It allows use basic python expression in configuration code.
Speed is almost same as with tempaltes.subtitution.

Example:
 cfg:
   mem = 1000
   real_mem = ${float(mem) * 0.7}M

 output:
    mem = 1000
    real_mem = 700M

Signed-off-by: Jiří Župka <[email protected]>
The JeOS image itself has no wget preinstalled, and other images
that could be used with this may share the same characteristic.

So, use plain python (and ugly command line) to download the
installer script.

Signed-off-by: Cleber Rosa <[email protected]>
Update the query_regex for check KSM status for RHEL 5 host.
The old one is out of date, and can not work any more.

Signed-off-by: Yiqiao Pu <[email protected]>
After we kill the previous guest. We still need wait the command line
finish in the last guest. Also need send the die() command in the session
for the last vm.

Signed-off-by: Yiqiao Pu <[email protected]>
Merge autotest and virttest cgroup_utils library
This C code is used for time device testing.

Signed-off-by: Qingtang Zhou <[email protected]>
…tation

After a disucssion I'm removing the support for readconfig-like
format of qemu format.

Signed-off-by: Lukáš Doktor <[email protected]>
It seems that some test uses those special keywords for negative
testing.

Signed-off-by: Lukáš Doktor <[email protected]>
iterate over values instead of keys.

Signed-off-by: Lukáš Doktor <[email protected]>
QSparseBus uses integers for addressing. We have to get integer
from the device's address.

Signed-off-by: Lukáš Doktor <[email protected]>
This is a first part of unittest which is focused on qemu devices.

Signed-off-by: Lukáš Doktor <[email protected]>
krcmarik and others added 30 commits August 7, 2013 01:55
- remove kill_all function
- support for 4 tests for host subject values for ssl tests
 Testing: valid explicit host subject value, valid implicit host subject value,
 invalid explicit host subject value, invalid implicit host subject value.
- enable connecting using menu and not cli
 Done by adding a new parameter (rv_menu) and handling it accordingly
 Also renames and modifies send_ticket(), as this function is now
 more generic and allows sending of arbitrary strings; the new
 function might later be moved to qemu_vm.py or some utils
- add support for disable audio option
- add support for smartcard options
- add possibility to connect to ipv6 address

Signed-off-by: Tomas Jamrisko <[email protected]>
Signed-off-by: Vimal Patel <[email protected]>
Signed-off-by: Marian Krcmarik <[email protected]>
- add support to add the ip address for SSL Host Subject tests.
- add support for semicolon
- fix used port if VM running
 Previously, when the VM was already running the spice_port for the
 VM was automatically generated anyway -> VM had incorrect parameters
 and connection failed.
 This patch makes sure, that spice_port with which the VM got created
 will persist between launches of autotest.
- suppport to set VM listening address.
 Listening address can be none, explicit ipv4 or
 an explicit ipv6 address.
- add getting spice info from the qemu monitor
- add devices needed for smartcard support

Signed-off-by: Vimal Patel <[email protected]>
Signed-off-by: Tomas Jamrisko <[email protected]>
This tests audio between client and guest

Signed-off-by: Tomas Jamrisko <[email protected]>
- migration test
- audio test
- smartcard test
- video test
- vdagent test

Signed-off-by: Marian Krcmarik <[email protected]>
- migration tests
- smartcard tests
- audio tests
- r-v connect through menu
- SSL subject tests
- vdagent restart/start tests
- ipv6 connect tests

Signed-off-by: Marian Krcmarik <[email protected]>
Adding 4 tests to test the spice vdagent service
(a) starting vdagent,
(b) stopping vdagent,
(c) restarting vdagent when it is running, and
(d) restarting vdagent when it is not running.

Signed-off-by: Vimal Patel <[email protected]>
Adding 2 software smart card tests:
(1) Verifying the smartcard can be seen and certs
 in the smartcard can be seen.
(2) Verifying the smartcard can be seen and details
 of the certs in smartcard can be obtained.

Signed-off-by: Vimal Patel <[email protected]>
The setup test will create certs on client that
will be used by remote-viewer to pass as options to the VM.

Signed-off-by: Vimal Patel <[email protected]>
Add a video file asset definition which is
a requirement for spice video test.

Signed-off-by: Marian Krcmarik <[email protected]>
  - testing audio requires a loopback device
   This loads alsa loopback kernel modules by default at each start
   of our VMs.
   Note, that this does not modify the default devices.
  - add Smart Card support packages to the VMs for testing
  - add possibility to shutdown VM under test user

Signed-off-by: Tomas Jamrisko <[email protected]>
Signed-off-by: Vimal Patel <[email protected]>
Signed-off-by: Marian Krcmarik <[email protected]>
* we can not assume the guest with 1 vcpu.
Change the pattern in sed from `1<\/vcpu>` to `[0-9]*<\/vcpu>`

* add a vcpucount function in virsh module. And use it in virsh_edit
to get the vcpucount of VM.

Signed-off-by: yangdongsheng <[email protected]>
Fix ImportError when import  "error" module and drop unused module 'common'

Signed-off-by: Xu Tian <[email protected]>
Libvirt has changed the path where cgroups are stored and therefore
the tests fails for newer libvirt because it cannot get the value
of cgroups. To fix this, we should check if the old path exists and
eventualy change the path to new one and for sure also check it.

Also, fix incorrect imports used by the modified tests.

Signed-off-by: Pavel Hrdina <[email protected]>
Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
In the recent unattended install patchset, we referred
to a VM attribute, serial_consoles, not present on the
libvirt implementation. So add another exception handling
to avoid libvirt installs breaking.

Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
libvirt: Fix a bug in virsh_change_media test
Some case will try to create images in shared/data/,
but it should be in shared/data/images/, update the
cfg file of these cases, so that it can create the
images in correct directory.

Signed-off-by: Mike Qiu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.