Multiple tests are failing on RHEL6.3

Bug #1113181 reported by Joshua Harlow
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Alexej Ababilov

Bug Description

Running on RHEL6.3 it appears that multiple unit tests are failing.

Not quite sure how these tests were passing previously...

Tests results:

$ testr failing
======================================================================
FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_rescue_no_kernel
----------------------------------------------------------------------
Empty attachments:
  stderr
  stdout

pythonlogging:'nova': {{{
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
}}}

Traceback (most recent call last):
  File "nova/tests/test_libvirt.py", line 1171, in test_xml_and_uri_rescue_no_kernel
    expect_ramdisk=True, rescue=instance_data)
  File "nova/tests/test_libvirt.py", line 2190, in _check_xml_and_uri
    (check(tree), expected_result, i))
MismatchError: !=:
reference = '8f1d9994-8786-49df-83b2-1241710e0b41'
actual = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
: 8f1d9994-8786-49df-83b2-1241710e0b41 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 14
======================================================================
ERROR: nova.tests.test_crypto.EncryptionTests.test_ssh_encrypt_decrypt_text
----------------------------------------------------------------------
Empty attachments:
  stdout

pythonlogging:'nova': {{{
Loading network driver 'nova.network.linux_net'
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
}}}

stderr: {{{
/usr/lib64/python2.6/site-packages/sqlalchemy/dialects/sqlite/base.py:723: SAWarning: Did not recognize type 'BIGINT' of column 'bw_in'
  default, primary_key))
/usr/lib64/python2.6/site-packages/sqlalchemy/dialects/sqlite/base.py:723: SAWarning: Did not recognize type 'BIGINT' of column 'bw_out'
  default, primary_key))
/usr/lib64/python2.6/site-packages/sqlalchemy/dialects/sqlite/base.py:723: SAWarning: Did not recognize type 'BIGINT' of column 'last_ctr_in'
  default, primary_key))
/usr/lib64/python2.6/site-packages/sqlalchemy/dialects/sqlite/base.py:723: SAWarning: Did not recognize type 'BIGINT' of column 'last_ctr_out'
  default, primary_key))
/usr/lib64/python2.6/site-packages/sqlalchemy/dialects/sqlite/base.py:723: SAWarning: Did not recognize type 'BIGINT' of column 'tot_reads'
  default, primary_key))
/usr/lib64/python2.6/site-packages/sqlalchemy/dialects/sqlite/base.py:723: SAWarning: Did not recognize type 'BIGINT' of column 'tot_read_bytes'
  default, primary_key))
/usr/lib64/python2.6/site-packages/sqlalchemy/dialects/sqlite/base.py:723: SAWarning: Did not recognize type 'BIGINT' of column 'tot_writes'
  default, primary_key))
/usr/lib64/python2.6/site-packages/sqlalchemy/dialects/sqlite/base.py:723: SAWarning: Did not recognize type 'BIGINT' of column 'tot_write_bytes'
  default, primary_key))
/usr/lib64/python2.6/site-packages/sqlalchemy/dialects/sqlite/base.py:723: SAWarning: Did not recognize type 'BIGINT' of column 'curr_reads'
  default, primary_key))
/usr/lib64/python2.6/site-packages/sqlalchemy/dialects/sqlite/base.py:723: SAWarning: Did not recognize type 'BIGINT' of column 'curr_read_bytes'
  default, primary_key))
/usr/lib64/python2.6/site-packages/sqlalchemy/dialects/sqlite/base.py:723: SAWarning: Did not recognize type 'BIGINT' of column 'curr_writes'
  default, primary_key))
/usr/lib64/python2.6/site-packages/sqlalchemy/dialects/sqlite/base.py:723: SAWarning: Did not recognize type 'BIGINT' of column 'curr_write_bytes'
  default, primary_key))
}}}

Traceback (most recent call last):
  File "nova/tests/test_crypto.py", line 207, in test_ssh_encrypt_decrypt_text
    enc = crypto.ssh_encrypt_text(self.pubkey, self.text)
  File "nova/crypto.py", line 212, in ssh_encrypt_text
    raise exception.EncryptionFailure(reason=exc.stderr)
EncryptionFailure: Failed to encrypt text: ssh-keygen: illegal option -- m
usage: ssh-keygen [options]
Options:
  -a trials Number of trials for screening DH-GEX moduli.
  -B Show bubblebabble digest of key file.
  -b bits Number of bits in the key to create.
  -C comment Provide new comment.
  -c Change comment in private and public key files.
  -e Convert OpenSSH to RFC 4716 key file.
  -F hostname Find hostname in known hosts file.
  -f filename Filename of the key file.
  -G file Generate candidates for DH-GEX moduli.
  -g Use generic DNS resource record format.
  -H Hash names in known_hosts file.
  -i Convert RFC 4716 to OpenSSH key file.
  -l Show fingerprint of key file.
  -M memory Amount of memory (MB) to use for generating DH-GEX moduli.
  -N phrase Provide new passphrase.
  -P phrase Provide old passphrase.
  -p Change passphrase of private key file.
  -q Quiet.
  -R hostname Remove host from known_hosts file.
  -r hostname Print DNS resource record.
  -S start Start point (hex) for generating DH-GEX moduli.
  -T file Screen candidates for DH-GEX moduli.
  -t type Specify type of key to create.
  -v Verbose.
  -W gen Generator to use for generating DH-GEX moduli.
  -y Read private key file and print public key.
======================================================================
FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_no_ramdisk
----------------------------------------------------------------------
Empty attachments:
  stderr
  stdout

pythonlogging:'nova': {{{
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
}}}

Traceback (most recent call last):
  File "nova/tests/test_libvirt.py", line 1140, in test_xml_and_uri_no_ramdisk
    expect_kernel=True, expect_ramdisk=False)
  File "nova/tests/test_libvirt.py", line 2190, in _check_xml_and_uri
    (check(tree), expected_result, i))
MismatchError: !=:
reference = '8f1d9994-8786-49df-83b2-1241710e0b41'
actual = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
: 8f1d9994-8786-49df-83b2-1241710e0b41 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 12
======================================================================
FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_rescue_no_kernel_no_ramdisk
----------------------------------------------------------------------
Empty attachments:
  stderr
  stdout

pythonlogging:'nova': {{{
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
}}}

Traceback (most recent call last):
  File "nova/tests/test_libvirt.py", line 1165, in test_xml_and_uri_rescue_no_kernel_no_ramdisk
    expect_ramdisk=False, rescue=instance_data)
  File "nova/tests/test_libvirt.py", line 2190, in _check_xml_and_uri
    (check(tree), expected_result, i))
MismatchError: !=:
reference = '8f1d9994-8786-49df-83b2-1241710e0b41'
actual = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
: 8f1d9994-8786-49df-83b2-1241710e0b41 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 14
======================================================================
FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_no_ramdisk_no_kernel
----------------------------------------------------------------------
Empty attachments:
  stderr
  stdout

pythonlogging:'nova': {{{
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
}}}

Traceback (most recent call last):
  File "nova/tests/test_libvirt.py", line 1121, in test_xml_and_uri_no_ramdisk_no_kernel
    expect_kernel=False, expect_ramdisk=False)
  File "nova/tests/test_libvirt.py", line 2190, in _check_xml_and_uri
    (check(tree), expected_result, i))
MismatchError: !=:
reference = '8f1d9994-8786-49df-83b2-1241710e0b41'
actual = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
: 8f1d9994-8786-49df-83b2-1241710e0b41 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 14
======================================================================
FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_rescue
----------------------------------------------------------------------
Empty attachments:
  stderr
  stdout

pythonlogging:'nova': {{{
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
}}}

Traceback (most recent call last):
  File "nova/tests/test_libvirt.py", line 1160, in test_xml_and_uri_rescue
    expect_ramdisk=True, rescue=instance_data)
  File "nova/tests/test_libvirt.py", line 2190, in _check_xml_and_uri
    (check(tree), expected_result, i))
MismatchError: !=:
reference = '8f1d9994-8786-49df-83b2-1241710e0b41'
actual = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
: 8f1d9994-8786-49df-83b2-1241710e0b41 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 12
======================================================================
FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_rescue_no_ramdisk
----------------------------------------------------------------------
Empty attachments:
  stderr
  stdout

pythonlogging:'nova': {{{
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
}}}

Traceback (most recent call last):
  File "nova/tests/test_libvirt.py", line 1177, in test_xml_and_uri_rescue_no_ramdisk
    expect_ramdisk=False, rescue=instance_data)
  File "nova/tests/test_libvirt.py", line 2190, in _check_xml_and_uri
    (check(tree), expected_result, i))
MismatchError: !=:
reference = '8f1d9994-8786-49df-83b2-1241710e0b41'
actual = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
: 8f1d9994-8786-49df-83b2-1241710e0b41 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 12
======================================================================
FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri
----------------------------------------------------------------------
Empty attachments:
  stderr
  stdout

pythonlogging:'nova': {{{
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
}}}

Traceback (most recent call last):
  File "nova/tests/test_libvirt.py", line 1153, in test_xml_and_uri
    expect_kernel=True, expect_ramdisk=True)
  File "nova/tests/test_libvirt.py", line 2190, in _check_xml_and_uri
    (check(tree), expected_result, i))
MismatchError: !=:
reference = '8f1d9994-8786-49df-83b2-1241710e0b41'
actual = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
: 8f1d9994-8786-49df-83b2-1241710e0b41 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 12
======================================================================
FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_no_kernel
----------------------------------------------------------------------
Empty attachments:
  stderr
  stdout

pythonlogging:'nova': {{{
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
Loading network driver 'nova.network.linux_net'
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
This shouldn't be getting called except during testing.
}}}

Traceback (most recent call last):
  File "nova/tests/test_libvirt.py", line 1146, in test_xml_and_uri_no_kernel
    expect_kernel=False, expect_ramdisk=False)
  File "nova/tests/test_libvirt.py", line 2190, in _check_xml_and_uri
    (check(tree), expected_result, i))
MismatchError: !=:
reference = '8f1d9994-8786-49df-83b2-1241710e0b41'
actual = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
: 8f1d9994-8786-49df-83b2-1241710e0b41 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 14
Ran 9 tests
FAILED (id=5, failures=9)

System info:

$ lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.3 (Santiago)
Release: 6.3
Codename: Santiago

$ pip-python freeze
Babel==0.9.6
Cheetah==2.4.4
Jinja2==2.2.1
Magic-file-extensions==0.1
Markdown==2.2.1
MySQL-python==1.2.3c1
PIL==1.1.6
Paste==1.7.4
PasteDeploy==1.5.0
PyYAML==3.10
Pygments==1.1.1
Routes==1.12.3
SQLAlchemy==0.7.9
Tempita==0.5.1
WebOb==1.2.3
WebTest==1.4.3
amqplib==1.0.2
anyjson==0.3.1
argparse==1.2.1
boto==2.5.2
cas==0.15
cliff==1.3
cliff-tablib==1.0
cloud-init==0.7.2
cmd2==0.6.4
colorama==0.2.4
configobj==4.6.0
coverage==3.6
decorator==3.4.0
discover==0.4.0
distribute==0.6.10
docutils==0.6
egenix-mx-base==3.1.1
eventlet==0.9.17
extras==0.0.3
feedparser==5.0.1
fixtures==0.3.12
-e git://github.com/openstack/glance.git@7feecf19eaeeaf19b68b2b4001e28759f8852788#egg=glance-2013.1.a50.g7feecf1-py2.6-dev
greenlet==0.3.1
hgtools==2.0.2
httplib2==0.7.7
iniparse==0.3.1
iotop==0.3.2
iso8601==0.1.4
jsonschema==0.2
keyring==1.2
-e git://github.com/openstack/keystone.git@5bc46d861e9c8f355d2bdd68912be3e64c2dc9e9#egg=keystone-2013.1-py2.6-dev
kombu==1.1.3
lockfile==0.8
logilab-astng==0.20.1
logilab-common==0.50.3
lxml==2.3.5
mock==0.8.0
mox==0.5.3
netaddr==0.7.5
netifaces==0.5
netsnmp-python==1.0a1
nose-exclude==0.1.9
nosehtmloutput==0.0.4
nosexcover==1.0.7
-e git://github.com/openstack/nova.git@a1072dd7da33243326c72256a7ee72f8a815ffd1#egg=nova-2013.1-py2.6-dev
oauth==1.0.1
openstack.nose-plugin==0.11
ordereddict==1.1
pam==0.1.4
paramiko==1.7.5
passlib==1.5.3
pep8==1.4.1
perf==0.1
pretty==0.1
prettytable==0.6.1
progressbar==2.2
psutil==0.4.1
pyOpenSSL==0.10
pycrypto==2.6
pycurl==7.19.0
pygpgme==0.1
pylint==0.21.1
pyparsing==1.5.6
pysendfile==2.0.0
-e git://github.com/openstack/python-cinderclient.git@f0a6dee19f573d260f8028106e66842451f82e21#egg=python_cinderclient-1.0.2.11.gf0a6dee-py2.6-dev
python-dateutil==1.4.1
python-distutils-extra==2.32
python-dmidecode==3.10.13
-e git://github.com/openstack/python-glanceclient.git@ed67c320144c74bd56f64e421ca069c6555771d6#egg=python_glanceclient-0.7.0_12_ged67c32-py2.6-dev
-e git://github.com/openstack/python-keystoneclient.git@92bf8a7af9b742e4b96689cccea1186b38ca41bf#egg=python_keystoneclient-0.2.2_21_g92bf8a7-py2.6-dev
-e git://github.com/openstack/python-novaclient.git@3ca976d4a076c13c7d68de859a8821cc281c9271#egg=python_novaclient-2.10.0_89_g3ca976d-py2.6-dev
-e git://github.com/openstack/python-openstackclient.git@b26cb5bf683e7f4f03d9704524a188b76ac5e9b9#egg=python_openstackclient-b26cb5b-py2.6-dev
-e git://github.com/openstack/python-quantumclient.git@2bca8ee4407aee03a83592395d3191f097c459a5#egg=python_quantumclient-2.1_40_g2bca8ee-py2.6-dev
python-subunit==0.0.9
raidctl==0.0.7
requests==0.14.2
setuptools-git==1.0b1
simplejson==2.0.9
sqlalchemy-migrate==0.7.2
stevedore==0.8
suds==0.4
tablib==0.9.11
termcolor==1.1.0
testrepository==0.0.13
testtools==0.9.27
unittest2==0.5.1
urlgrabber==3.9.1
warlock==0.4.0
websockify==0.2.0
wsgiref==0.1.2
xattr==0.6.4
yum-metadata-parser==1.1.2
yum-presto==0.4.4

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

https://bugs.launchpad.net/nova/+bug/1102501 covers the second one - test_ssh_encrypt_decrypt_text

Changed in nova:
assignee: nobody → Clark Boylan (cboylan)
status: New → In Progress
Changed in nova:
assignee: Clark Boylan (cboylan) → Alessio Ababilov (aababilov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/21491
Committed: http://github.com/openstack/nova/commit/dbbbbf4ecb2c7b03ebb30fa11e077d35b2186cbb
Submitter: Jenkins
Branch: master

commit dbbbbf4ecb2c7b03ebb30fa11e077d35b2186cbb
Author: Clark Boylan <email address hidden>
Date: Thu Feb 7 21:39:31 2013 -0800

    Enable tox use of site-packages for libvirt.

    Enable the use of site-packages in tox which will allow the use of the
    system install of libvirt while testing.

    Hardcode the libvirt host UUID for tests that check this UUID when
    system libvirt is being used. Without this hardcoding eight tests
    would fail when using the system libvirt install.

    Partially fixes bug #1113181

    Change-Id: I59c5fbd45639962c0963298203c39759b6ca2d11

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-1 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.