Hi Experts,

I am trying to run ovirt-system-test in my local lab, which need proxy to access internet. ovirt cannot work with proxy to access ovirt glance repository, whose URL is: http://glance.ovirt.org:9292, a related bugzilla was filed by someone and in open status: https://bugzilla.redhat.com/show_bug.cgi?id=1362433

Some ovirt system tests depend on ovirt glance repository for VM images, these tests either skipped or failed, then subsequent VM related tests cannot be run. Here is the test file: https://github.com/oVirt/ovirt-system-tests/blob/master/basic-suite-4.2/test-scenarios/004_basic_sanity.py, and the verify_glance_import failed, then other test blocked too.

Below is exception message and details test log see attachment.


Running test scenario 004_basic_sanity.py
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="nosetests" tests="3" errors="1" failures="0" skip="1">
  <testcase classname="004_basic_sanity" name="add_blank_vms" time="2.473"/>   <testcase classname="004_basic_sanity" name="verify_glance_import" time="0.050">     <skipped type="unittest.case.SkipTest" message="Glance is not available"><![CDATA[SkipTest: Glance is not available
]]></skipped>
  </testcase>
  <testcase classname="004_basic_sanity" name="add_vm1_from_template" time="0.266">     <error type="exceptions.IndexError" message="list index out of range"><![CDATA[Traceback (most recent call last):
  File "/usr/lib64/python2.7/unittest/case.py", line 369, in run
    testMethod()
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/usr/lib/python2.7/site-packages/ovirtlago/testlib.py", line 142, in wrapped_test
    test()
  File "/usr/lib/python2.7/site-packages/ovirtlago/testlib.py", line 60, in wrapper
    return func(get_test_prefix(), *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/ovirtlago/testlib.py", line 79, in wrapper
    prefix.virt_env.engine_vm().get_api(api_ver=4), *args, **kwargs
  File "/mnt/zz/bak/ovirt-system-tests-master/basic-suite-4.2/test-scenarios/004_basic_sanity.py", line 748, in add_vm1_from_template
    )[0]
IndexError: list index out of range
]]></error>
  </testcase>
</testsuite>

Thanks,

Xu

2019-02-14 10:37:33.608866112+0000 run_suite.sh::main::INFO:: Using lago 
0.45.0
2019-02-14 10:37:34.108960551+0000 run_suite.sh::main::INFO:: Using lago 
ovirt 0.45.0
2019-02-14 10:37:34.114868893+0000 run_suite.sh::main::INFO:: Running 
suite found in /mnt/zz/bak/ovirt-system-tests-master/basic-suite-4.2
2019-02-14 10:37:34.117947363+0000 run_suite.sh::main::INFO:: Environment 
will be deployed at 
/mnt/zz/bak/ovirt-system-tests-master/deployment-basic-suite-4.2
nat-settings: &nat-settings
    type: nat
    dhcp:
      start: 100
      end: 254
    management: False

vm-common-settings: &vm-common-settings
    root-password: 123456
    service_provider: systemd
    artifacts:
      - /var/log
      - /etc/resolv.conf

domains:
  lago-basic-suite-4-2-engine:
    <<: *vm-common-settings
    vm-type: ovirt-engine
    memory: 4096
    nics:
      - net: lago-basic-suite-4-2-net-management
      - net: lago-basic-suite-4-2-net-storage
    disks:
      - template_name: el7.6-base
        type: template
        name: root
        dev: vda
        format: qcow2
      - comment: Main NFS device
        size: 101G
        type: empty
        name: nfs
        dev: sda
        format: raw
      - comment: Main iSCSI device
        size: 105G
        type: empty
        name: iscsi
        dev: sdc
        format: raw
    metadata:
      ovirt-engine-password: 123
      deploy-scripts:
        - $LAGO_INITFILE_PATH/deploy-scripts/add_local_repo.sh
        - $LAGO_INITFILE_PATH/deploy-scripts/setup_engine.sh
    artifacts:
      - /var/log
      - /var/cache/ovirt-engine
      - /var/lib/pgsql/upgrade_rh-postgresql95-postgresql.log
      - /var/lib/ovirt-engine/setup/answers
      - /etc/ovirt-engine
      - /etc/ovirt-engine-dwh
      - /etc/ovirt-engine-metrics
      - /etc/ovirt-engine-setup.conf.d
      - /etc/ovirt-engine-setup.env.d
      - /etc/ovirt-host-deploy.conf.d
      - /etc/ovirt-imageio-proxy
      - /etc/ovirt-provider-ovn
      - /etc/ovirt-vmconsole
      - /etc/ovirt-web-ui
      - /etc/dnf
      - /etc/firewalld
      - /etc/httpd
      - /etc/sysconfig
      - /etc/yum
      - /etc/resolv.conf
      - /tmp/ovirt*
      - /tmp/otopi*
  lago-basic-suite-4-2-host-0:
    <<: *vm-common-settings
    vm-type: ovirt-host
    memory: 2047
    nics:
      - net: lago-basic-suite-4-2-net-management
      - net: lago-basic-suite-4-2-net-storage
      - net: lago-basic-suite-4-2-net-bonding
      - net: lago-basic-suite-4-2-net-bonding
    disks:
      - template_name: el7.6-base
        type: template
        name: root
        dev: vda
        format: qcow2
    metadata:
      deploy-scripts:
        - $LAGO_INITFILE_PATH/deploy-scripts/add_local_repo.sh
        - $LAGO_INITFILE_PATH/deploy-scripts/setup_host_el7.sh
        - $LAGO_INITFILE_PATH/deploy-scripts/setup_1st_host_el7.sh
        
    artifacts:
      - /etc/resolv.conf
      - /var/log
      
  lago-basic-suite-4-2-host-1:
    <<: *vm-common-settings
    vm-type: ovirt-host
    memory: 2047
    nics:
      - net: lago-basic-suite-4-2-net-management
      - net: lago-basic-suite-4-2-net-storage
      - net: lago-basic-suite-4-2-net-bonding
      - net: lago-basic-suite-4-2-net-bonding
    disks:
      - template_name: el7.6-base
        type: template
        name: root
        dev: vda
        format: qcow2
    metadata:
      deploy-scripts:
        - $LAGO_INITFILE_PATH/deploy-scripts/add_local_repo.sh
        - $LAGO_INITFILE_PATH/deploy-scripts/setup_host_el7.sh
        
        
    artifacts:
      - /etc/resolv.conf
      - /var/log
      
nets:
  lago-basic-suite-4-2-net-management:
    <<: *nat-settings
    management: true
    dns_domain_name: lago.local
  lago-basic-suite-4-2-net-bonding:
    <<: *nat-settings
  lago-basic-suite-4-2-net-storage:
    <<: *nat-settings
/mnt/zz/bak/ovirt-system-tests-master
[Prefix]:
    Base directory: 
/mnt/zz/bak/ovirt-system-tests-master/deployment-basic-suite-4.2/default
    [Networks]:
        [lago-basic-suite-4-2-net-bonding]:
            gateway: 192.168.204.1
            management: False
            status: up
        [lago-basic-suite-4-2-net-management]:
            gateway: 192.168.203.1
            management: True
            status: up
        [lago-basic-suite-4-2-net-storage]:
            gateway: 192.168.205.1
            management: False
            status: up
    UUID: 8a3d79fa304411e99f21002128a2f0d8
    [VMs]:
        [lago-basic-suite-4-2-engine]:
            [NICs]:
                [eth0]:
                    ip: 192.168.203.2
                    network: lago-basic-suite-4-2-net-management
                [eth1]:
                    ip: 192.168.205.2
                    network: lago-basic-suite-4-2-net-storage
            distro: el7
            [metadata]:
                deploy-scripts: 
                    
$LAGO_PREFIX_PATH/scripts/_mnt_zz_bak_ovirt-system-tests-master_basic-suite-4.2_deploy-scripts_add_local_repo.sh
                    
$LAGO_PREFIX_PATH/scripts/_mnt_zz_bak_ovirt-system-tests-master_basic-suite-4.2_deploy-scripts_setup_engine.sh
                ovirt-engine-password: 123
            root password: 123456
            status: running
        [lago-basic-suite-4-2-host-0]:
            [NICs]:
                [eth0]:
                    ip: 192.168.203.3
                    network: lago-basic-suite-4-2-net-management
                [eth1]:
                    ip: 192.168.205.3
                    network: lago-basic-suite-4-2-net-storage
                [eth2]:
                    ip: 192.168.204.2
                    network: lago-basic-suite-4-2-net-bonding
                [eth3]:
                    ip: 192.168.204.3
                    network: lago-basic-suite-4-2-net-bonding
            distro: el7
            [metadata]:
                deploy-scripts: 
                    
$LAGO_PREFIX_PATH/scripts/_mnt_zz_bak_ovirt-system-tests-master_basic-suite-4.2_deploy-scripts_add_local_repo.sh
                    
$LAGO_PREFIX_PATH/scripts/_mnt_zz_bak_ovirt-system-tests-master_basic-suite-4.2_deploy-scripts_setup_host_el7.sh
                    
$LAGO_PREFIX_PATH/scripts/_mnt_zz_bak_ovirt-system-tests-master_basic-suite-4.2_deploy-scripts_setup_1st_host_el7.sh
            root password: 123456
            status: running
        [lago-basic-suite-4-2-host-1]:
            [NICs]:
                [eth0]:
                    ip: 192.168.203.4
                    network: lago-basic-suite-4-2-net-management
                [eth1]:
                    ip: 192.168.205.4
                    network: lago-basic-suite-4-2-net-storage
                [eth2]:
                    ip: 192.168.204.4
                    network: lago-basic-suite-4-2-net-bonding
                [eth3]:
                    ip: 192.168.204.5
                    network: lago-basic-suite-4-2-net-bonding
            distro: el7
            [metadata]:
                deploy-scripts: 
                    
$LAGO_PREFIX_PATH/scripts/_mnt_zz_bak_ovirt-system-tests-master_basic-suite-4.2_deploy-scripts_add_local_repo.sh
                    
$LAGO_PREFIX_PATH/scripts/_mnt_zz_bak_ovirt-system-tests-master_basic-suite-4.2_deploy-scripts_setup_host_el7.sh
            root password: 123456
            status: running
/mnt/zz/bak/ovirt-system-tests-master
/mnt/zz/bak/ovirt-system-tests-master
Running test scenario 001_initialize_engine.py
/mnt/zz/bak/ovirt-system-tests-master
/mnt/zz/bak/ovirt-system-tests-master
Running test scenario 002_bootstrap.py
/mnt/zz/bak/ovirt-system-tests-master
/mnt/zz/bak/ovirt-system-tests-master
Running test scenario 003_basic_networking.py
/mnt/zz/bak/ovirt-system-tests-master
/mnt/zz/bak/ovirt-system-tests-master
Running test scenario 004_basic_sanity.py
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="nosetests" tests="3" errors="1" failures="0" skip="1">
  <testcase classname="004_basic_sanity" name="add_blank_vms" time="2.473"/>
  <testcase classname="004_basic_sanity" name="verify_glance_import" 
time="0.050">
    <skipped type="unittest.case.SkipTest" message="Glance is not 
available"><![CDATA[SkipTest: Glance is not available
]]></skipped>
  </testcase>
  <testcase classname="004_basic_sanity" name="add_vm1_from_template" 
time="0.266">
    <error type="exceptions.IndexError" message="list index out of 
range"><![CDATA[Traceback (most recent call last):
  File "/usr/lib64/python2.7/unittest/case.py", line 369, in run
    testMethod()
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/usr/lib/python2.7/site-packages/ovirtlago/testlib.py", line 142, in 
wrapped_test
    test()
  File "/usr/lib/python2.7/site-packages/ovirtlago/testlib.py", line 60, in 
wrapper
    return func(get_test_prefix(), *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/ovirtlago/testlib.py", line 79, in 
wrapper
    prefix.virt_env.engine_vm().get_api(api_ver=4), *args, **kwargs
  File 
"/mnt/zz/bak/ovirt-system-tests-master/basic-suite-4.2/test-scenarios/004_basic_sanity.py",
 line 748, in add_vm1_from_template
    )[0]
IndexError: list index out of range
]]></error>
  </testcase>
</testsuite>
/mnt/zz/bak/ovirt-system-tests-master
/mnt/zz/bak/ovirt-system-tests-master
@@@@ ERROR: Failed running 
/mnt/zz/bak/ovirt-system-tests-master/basic-suite-4.2/test-scenarios/004_basic_sanity.py
2019-02-14 11:22:27.087710782+0000 run_suite.sh::on_exit::ERROR:: on_exit: 
Exiting with a non-zero status
2019-02-14 11:22:27.091095811+0000 run_suite.sh::on_exit::INFO:: Dumping 
lago env status
[Prefix]:
    Base directory: 
/mnt/zz/bak/ovirt-system-tests-master/deployment-basic-suite-4.2/default
    [Networks]:
        [lago-basic-suite-4-2-net-bonding]:
            gateway: 192.168.204.1
            management: False
            status: up
        [lago-basic-suite-4-2-net-management]:
            gateway: 192.168.203.1
            management: True
            status: up
        [lago-basic-suite-4-2-net-storage]:
            gateway: 192.168.205.1
            management: False
            status: up
    UUID: 8a3d79fa304411e99f21002128a2f0d8
    [VMs]:
        [lago-basic-suite-4-2-engine]:
            [NICs]:
                [eth0]:
                    ip: 192.168.203.2
                    network: lago-basic-suite-4-2-net-management
                [eth1]:
                    ip: 192.168.205.2
                    network: lago-basic-suite-4-2-net-storage
            distro: el7
            [metadata]:
                deploy-scripts: 
                    
$LAGO_PREFIX_PATH/scripts/_mnt_zz_bak_ovirt-system-tests-master_basic-suite-4.2_deploy-scripts_add_local_repo.sh
                    
$LAGO_PREFIX_PATH/scripts/_mnt_zz_bak_ovirt-system-tests-master_basic-suite-4.2_deploy-scripts_setup_engine.sh
                ovirt-engine-password: 123
            root password: 123456
            status: running
        [lago-basic-suite-4-2-host-0]:
            [NICs]:
                [eth0]:
                    ip: 192.168.203.3
                    network: lago-basic-suite-4-2-net-management
                [eth1]:
                    ip: 192.168.205.3
                    network: lago-basic-suite-4-2-net-storage
                [eth2]:
                    ip: 192.168.204.2
                    network: lago-basic-suite-4-2-net-bonding
                [eth3]:
                    ip: 192.168.204.3
                    network: lago-basic-suite-4-2-net-bonding
            distro: el7
            [metadata]:
                deploy-scripts: 
                    
$LAGO_PREFIX_PATH/scripts/_mnt_zz_bak_ovirt-system-tests-master_basic-suite-4.2_deploy-scripts_add_local_repo.sh
                    
$LAGO_PREFIX_PATH/scripts/_mnt_zz_bak_ovirt-system-tests-master_basic-suite-4.2_deploy-scripts_setup_host_el7.sh
                    
$LAGO_PREFIX_PATH/scripts/_mnt_zz_bak_ovirt-system-tests-master_basic-suite-4.2_deploy-scripts_setup_1st_host_el7.sh
            root password: 123456
            status: running
        [lago-basic-suite-4-2-host-1]:
            [NICs]:
                [eth0]:
                    ip: 192.168.203.4
                    network: lago-basic-suite-4-2-net-management
                [eth1]:
                    ip: 192.168.205.4
                    network: lago-basic-suite-4-2-net-storage
                [eth2]:
                    ip: 192.168.204.4
                    network: lago-basic-suite-4-2-net-bonding
                [eth3]:
                    ip: 192.168.204.5
                    network: lago-basic-suite-4-2-net-bonding
            distro: el7
            [metadata]:
                deploy-scripts: 
                    
$LAGO_PREFIX_PATH/scripts/_mnt_zz_bak_ovirt-system-tests-master_basic-suite-4.2_deploy-scripts_add_local_repo.sh
                    
$LAGO_PREFIX_PATH/scripts/_mnt_zz_bak_ovirt-system-tests-master_basic-suite-4.2_deploy-scripts_setup_host_el7.sh
            root password: 123456
            status: running
/mnt/zz/bak/ovirt-system-tests-master
_______________________________________________
Devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/ZQRRCNOHIO52BXIPCS342L6FWVGUJNZ2/

Reply via email to