Permalink
Commits on Mar 15, 2012
  1. client.tests: Introduce libvirt-test-api wrapper

    Introduce a wrapper for the libvirt_test_api. This
    testsuite is a functional suite for libvirt, that
    makes use of the python bindings available.
    
    Some base config files are provided so the user
    can tweak appropriately before running the test.
    The tests currently cover:
    
     * domain: all classical lifetime operations, installation of
    various guests OSes, snapshots
     * interfaces: define, create, destroy, undefine, NPIV
     * virtual networks: define, create, destroy, undefine
     * storage: regression tests for most storage types and
    configurations dir, disk, netfs, iSCSI, multipath
    
    Signed-off-by: Guannan Ren <gren@redhat.com>
    Guannan Ren committed with lmr Feb 23, 2012
  2. apache: avoid globally modifying /media serving

    When attempting to serve a sles11-sp2 install from cobbler on the same
    host as autotest, I got 404s for
    
    http://<server>/cblr/links/sles11-sp2-suseboot-ppc64/media.1
    
    with httpd complaining:
    
    File does not exist: x/usr/lib/python2.7/site-packages/django/contrib/admin/media/.1
    
    This is because of the django directives from autotest being global to
    apache's configuration, so they affect more than just autotest's
    installation. Fix this by pushing the RewriteRules under the Location
    tag.
    
    Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
    Nishanth Aravamudan committed with lmr Mar 14, 2012
  3. deps: Update stale tarball links.

    Signed-off-by: Vinson Lee <vlee@twitter.com>
    vinsonlee committed with lmr Mar 15, 2012
Commits on Mar 14, 2012
  1. Add configuration for "virsh capabilities" test

    This adds configuration for "virsh capabilities" test.
    
    Signed-off-by: Gu Yanhua <guyanhua-fnst@cn.fujitsu.com>
    lmr committed Mar 14, 2012
  2. Add three test cases for "virsh capabilities" command

    This patch adds three test cases for "virsh capabilities" command.
    
    Use three cases:(1) Call virsh capabilities
                     (2) Call virsh capabilities with an unexpected option
                     (3) Call virsh capabilities with libvirtd service stop
    
    Signed-off-by: Gu Yanhua <guyanhua-fnst@cn.fujitsu.com>
    guyanhua committed with lmr Mar 14, 2012
  3. dhclient failed in nic_bonding cases V3

    Before dhclient, we need to check if it has been running,and then kill it
    
    Signed-off-by: Lei Yang <yanglei.fage@gmail.com>
    leiyang committed with lmr Mar 14, 2012
Commits on Mar 13, 2012
  1. memory_api: Do not recreate the temporary test directory.

    The directory has already been created by base_test.
    
    Fixes OSError exception.
    
    Signed-off-by: Vinson Lee <vlee@twitter.com>
    vinsonlee committed with lmr Mar 14, 2012
  2. virt test: Make cpus check pattern configurable

    The cpus info output from monitor is different between human
    monitor and qmp monitor, so make it configurable to fit different
    cases.
    
    changes from v1:
      - typo fix
      - Add default value for the pattern. Use the pattern for human
        monitor as default
      - Add comments in base.cfg.sample for the value of qmp monitor
    
    Signed-off-by: Yiqiao Pu <ypu@redhat.com>
    ypu committed with lmr Mar 13, 2012
  3. common_lib.base_utils: Fix spelling errors.

    Signed-off-by: Vinson Lee <vlee@twitter.com>
    vinsonlee committed with lmr Mar 13, 2012
  4. Disable drive_cache for xen hvm installation

    Commit b6bb711 fix using drive_cache option. However, this is not
    supported by xen qemu and so breaks xen hvm installation.
    
    This patch unset drive_cache so it is not used for hvm installation.
    
    Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
    LaneWolf committed with lmr Mar 12, 2012
Commits on Mar 12, 2012
  1. kernbench: Bump kernel version used to 3.2.1

    The version 2.6.11 does not compile anymore on older
    distros, asking for an update.
    
    Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
    lmr committed Mar 12, 2012
  2. client.tests.cpu_hotplug: Fix test execution and parsing

    As it was, the cpu_hotplug test was executing the lhcs
    suite main entry point and checking its return value.
    However, the suite was not well structured, and it will
    return 0 even if the subtests failed.
    
    So worked on the suite itself and created a patch
    that makes it comply with the rules stablished by
    the testsuite author:
    
    http://cpansearch.perl.org/src/BRYCE/Test-Parser-1.3/lib/Test/Parser/LHCS.pm
    
    Also, made the autotest wrapper to parse correctly
    the test suite output. Now it should execute and
    actually report failures during the test execution.
    
    Some of the testcases were disabled, since they
    describe a behavior in the userspace program sar
    that I can't reproduce with any sar available in
    Fedora or RHEL 5-6 to date, and one of the testcases
    does require a linux kernel tree for kernel
    compilation.
    
    Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
    lmr committed Mar 12, 2012
Commits on Mar 8, 2012
  1. tests.cgroup: Fix cfg parameters

    This patch solves the problem with smp parameter.
    * cpu_cfs_util - test creates the first VM instead of preprocess
    * cpu_share - 'cgroup_use_max_smp' cfg parameter let test calculate smp
    * cpuset_cpus - when cpusets is defined it calculates smp from it. Otherwise
                    user can force test to set smp by cgroup_use_half_smp.
                    When nothing is specified it tries to run on current VM(s).
    
    Signed-off-by: Lukas Doktor <ldoktor@redhat.com>
    ldoktor committed with lmr Mar 8, 2012
  2. client tests: Introduce libvirt_tck wrapper

        This is an autotest wrapper based on the released
        TCK version 0.1.0.
    
         *Sys-Virt-TCK-v0.1.0.tar.gz  libvirt-tck tarball
         *control
         *default.cfg
         *ks.cfg
         *libvirt_tck.py
         *testcase.cfg
    
    Signed-off-by: Guannan Ren <gren@redhat.com>
    Guannan Ren committed with lmr Mar 8, 2012
  3. virt.tests.ethtool: Improving logging and fixing loop execution

    Make sure we go through all tests available and record the failures.
    
    Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
    lmr committed Mar 8, 2012
Commits on Mar 7, 2012
  1. virt.tests.netstress_kill_guest: Workaround udev writing to serial

    On some Linux guests such as RHEL 6.2, it's common that when
    the succession of rmmods and modprobes happen, udev, SELinux
    and other platform software write messages directly to the
    serial, confusing aexpect. So let's write some code to
    work around this peculiarity, being more robust in handling
    these situations.
    
    Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
    lmr committed Mar 7, 2012
  2. client.fio: Update fio from 1.16.5 to 2.0.5

    Since 1.16.5 version of fio can't be compiled on Fedora16 and
    RHEL6 boxes, update this fio package to 2.0.5.
    
    Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
    zhouqt committed with lmr Mar 7, 2012
Commits on Mar 6, 2012
  1. virt: replace is_alive with isAlive as commit d03dd09

    Check the whole autotest repo by grep, fix rest problem.
    
    threading.is_alive is only available starting with Python 2.6.
    
    Signed-off-by: Amos Kong <akong@redhat.com>
    amoskong committed with lmr Mar 6, 2012
  2. common_lib.base_utils: Replace is_alive with isAlive.

    threading.is_alive is only available starting with Python 2.6.
    
    Fixes asynctest on Centos 5.7 (Python 2.4.3).
    
    Signed-off-by: Vinson Lee <vlee@twitter.com>
    vinsonlee committed with lmr Mar 6, 2012
Commits on Mar 3, 2012
  1. libvirt.virsh_uri: Fixes to the virsh_uri libvirt test

    Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
    lmr committed Mar 3, 2012
  2. virt: Add RHEL 5.8 definition

    Signed-off-by: Chris Evich <cevich@redhat.com>
    cevich committed with lmr Mar 3, 2012
  3. utils/run_pylint.py: Do not stop Pylint after checking first file.

    pylint.lint.Run calls sys.exit when the function completes. Starting
    with Pylint 0.20.0, Run can take an additional argument to not exit.
    This will allow run_pylint.py to continue checking other files.
    
    Signed-off-by: Vinson Lee <vlee@twitter.com>
    vinsonlee committed with lmr Mar 2, 2012
  4. virt.scripts.ntttcp.au3: Fixing script permission

    So pylint will stop complaining.
    
    Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
    lmr committed Mar 3, 2012
  5. utils/run_pylint.py: Fix exception with disable-msg-cat option.

    This patch fixes an exception with the disable-msg-cat command line
    option on older versions of Pylint. The command line option expects just
    one letter and not an entire string.
    
    Tested that it fixes the Pylint 0.19 crash on Ubuntu 10.04. The
    disable-msg-cat option is no longer available with Pylint 0.21.1 on
    Ubuntu 10.10.
    
    There's a bug report and some history at
    https://bugzilla.redhat.com/show_bug.cgi?id=500272.
    
    Signed-off-by: Vinson Lee <vlee@twitter.com>
    vinsonlee committed with lmr Mar 2, 2012
Commits on Mar 1, 2012
  1. Add configuration for "virsh uri" test

    This adds configuration for "virsh uri" test.
    
    Signed-off-by: Gu Yanhua <guyanhua-fnst@cn.fujitsu.com>
    guyanhua committed with lmr Mar 1, 2012
  2. Add four test cases for "virsh uri" command

    This patch adds four test cases for "virsh uri" command.
    
    Use four cases:(1) Call virsh uri
                   (2) Call virsh -c remote_uri uri
                   (3) Call virsh uri with an unexpected option
                   (4) Call virsh uri with libvirtd service stop
    
    Signed-off-by: Gu Yanhua <guyanhua-fnst@cn.fujitsu.com>
    guyanhua committed with lmr Mar 1, 2012
  3. server.monitors_utils_unittest: Used named constant for O_NONBLOCK

    Signed-off-by: Vinson Lee <vlee@twitter.com>
    vinsonlee committed with lmr Mar 2, 2012
Commits on Feb 29, 2012
  1. virt.guest-hw.cfg.sample: Override smp settings for cgroups

    It's a bad workaround, but we'll have to do it for now
    
    Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
    lmr committed Feb 29, 2012
  2. Revert "tests.cfg.sample: change import order"

    This reverts commit e64b17d,
    as it's causing problems with the test execution order.
    
    Signed-off-by: Lucas Meneghel Rodrigues
    lmr committed Feb 29, 2012
  3. virt: Use pre-python-2.7 TestCase methods in unit tests.

    This patch substitutes out TestCase methods that were introduced with
    Python 2.7 with TestCase.assertTrue.
    
    Fixes unittest_suite failures on Ubuntu 10.04 (Python 2.6.5).
    
    Signed-off-by: Vinson Lee <vlee@twitter.com>
    vinsonlee committed with lmr Feb 29, 2012
  4. virt.subtests.cfg.sample: Fix tcpdump commands

    The same mechanism to verify background activity is employed
    in several tests, we forgot to apply the correction in several
    tests. This commit follows up b94fe88
    and should fix random problems with 'pgrep tcpdump' in
    many tests.
    
    Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
    lmr committed Feb 29, 2012
  5. client/boottool: add default entry in set_default if no default exists

    If no 'default' entry is in yaboot.conf (the only type of bootloader I
    tested on), then boottool --set-default= will fail to change the default
    and reboots will go back to the first listed kernel. Fix this by
    determining if we have found a default line and if not, inserting one at
    the top of the file.
    
    Changes from v1:
     * Fixed perl syntax error
    
    Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
    Nishanth Aravamudan committed with lmr Feb 25, 2012
  6. client/base: fix cleanup_kernels string manipulation

    This code uses the length of a variable, which includes the '/boot'
    prefix to trim the length of the kernel name, which in turn does not
    have the /boot prefix. So this results in bad kernel version strings --
    and when using autotest to build kernels, the default control file
    results in all kernels being deleted from the system.
    
    Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
    Nishanth Aravamudan committed with lmr Feb 25, 2012
  7. client/kernexpand: handle 3.0-style kernel versions

    Passing in 3.0 to autotest results in messages about
    being unable to parse the major/minor version. This
    is because the code assumes a 3-digit verions number.
    Additionally, the 'raise' in this chunk of code throws
    its own exception due to a raw string parameter.
    
    Fix both by having an alternate function to check
    post-2.x version numbers, that will also consider
    this new naming schema. It's forward compatible,
    for the (potentially) far away 4.x times (well,
    assuming that the naming schema will remain the
    same).
    
    Changes from v2:
     * Open the urls and after that close them
    
    Changes from v1:
     * Rewrite of the original patch code
     * Addition of unittests
     * Fixed incorrect logic that printed unavailable
       URLs when it shouldn't do that
     * Used urllib2 instead of external programs to
       verify the state of a given URL
     * Fixed docstrings and comments
     * Fixed use of string exceptions
    
    Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
    Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
    Nishanth Aravamudan committed with lmr Feb 25, 2012
  8. client/kernel: fallback to defconfig if no .config is present

    due to `mv' not finding the source file. Rather than relying on .config
    being present, fallback to defconfig when its not.
    
    Changes from v1:
      * Fix kernel_unittest.py and add a new unittest for
        testing extraversion with no config.
    
    Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
    Nishanth Aravamudan committed with lmr Feb 25, 2012