[Avocado-devel] 'module' object has no attribute 'TestNAError'

Andrei Stepanov astepano at redhat.com
Wed Sep 9 18:36:00 UTC 2015


Sorry,

all files from package autotest-framework have zero size.

# rpm -qV autotest-framework | grep error
S.5......
/usr/lib/python2.7/site-packages/autotest/client/shared/error.py
S.5....T.
/usr/lib/python2.7/site-packages/autotest/client/shared/error.pyc
S.5......
/usr/lib/python2.7/site-packages/autotest/client/shared/error.pyo

size & md5 differs

# ls -l /usr/lib/python2.7/site-packages/autotest/client/shared/e*
-rw-r--r--. 1 root root   0 Mar 18 15:48
/usr/lib/python2.7/site-packages/autotest/client/shared/enum.py
-rw-r--r--. 2 root root   0 Mar 18 18:47
/usr/lib/python2.7/site-packages/autotest/client/shared/enum.pyc
-rw-r--r--. 2 root root   0 Mar 18 18:47
/usr/lib/python2.7/site-packages/autotest/client/shared/enum.pyo
-rw-r--r--. 1 root root   0 Mar 18 15:48
/usr/lib/python2.7/site-packages/autotest/client/shared/error.py
-rw-r--r--. 1 root root 151 Sep  9 12:55
/usr/lib/python2.7/site-packages/autotest/client/shared/error.pyc
-rw-r--r--. 1 root root   0 Mar 18 18:47
/usr/lib/python2.7/site-packages/autotest/client/shared/error.pyo

Strange.

It can be selinux/vm-host problem ...

Host has logs:
[494782.183454] kvm [3088]: vcpu0 unhandled wrmsr: 0x680 data 0
[494782.177296] kvm [3088]: vcpu0 unhandled rdmsr: 0x345
[494767.083012] kvm: zapping shadow pages for mmio generation wraparound


yum remove / install solved the problem




On Wed, Sep 9, 2015 at 6:51 PM, Lukáš Doktor <ldoktor at redhat.com> wrote:

> Well, Andrei, try running "rpm -qV autotest-framework", maybe something
> happened on your machine...
>
> Dne 9.9.2015 v 18:49 Lucas Meneghel Rodrigues napsal(a):
>
>> I've just tried in my spare RHEL7 VM and the definition is also there.
>>
>> Maybe there's a corruption / badly installed rpm in your machine?
>>
>> On Wed, Sep 9, 2015 at 1:40 PM, Andrei Stepanov <astepano at redhat.com>
>> wrote:
>>
>>> Hello
>>>
>>> I am trying to run test unattended_install
>>> It fails..
>>>
>>>
>>> In logs I can see:
>>>
>>> 18:11:12 test             L0499 ERROR| ERROR
>>>
>>> io-github-autotest-qemu.unattended_install.url.extra_cdrom_ks.default_install.aio_threads.1
>>> -> AttributeError: 'module' object has no attribute 'TestNAError'
>>>
>>> 18:11:11 stacktrace       L0039 ERROR| Reproduced traceback from:
>>> /mnt/tests/spice/qe-tests/avocado/avocado/core/plugins/vt.py:573
>>> 18:11:11 stacktrace       L0042 ERROR| Traceback (most recent call last):
>>> 18:11:11 stacktrace       L0042 ERROR|   File
>>> "/mnt/tests/spice/qe-tests/avocado/avocado/core/plugins/vt.py", line
>>> 367, in runTest
>>> 18:11:11 stacktrace       L0042 ERROR|     except error.TestNAError,
>>> details:
>>> 18:11:11 stacktrace       L0042 ERROR| AttributeError: 'module' object
>>> has no attribute 'TestNAError'
>>> 18:11:11 stacktrace       L0043 ERROR|
>>> 18:11:11 test             L0482 ERROR| Traceback (most recent call last):
>>>
>>> 18:11:11 test             L0482 ERROR|   File
>>> "/mnt/tests/spice/qe-tests/avocado/avocado/core/plugins/vt.py", line
>>> 615, in _run_avocado
>>>     raise test_exception
>>>
>>> 18:11:11 test             L0482 ERROR| AttributeError: 'module' object
>>> has no attribute 'TestNAError'
>>>
>>>
>>>
>>> # rpm -q autotest-framework
>>> autotest-framework-0.16.2-1.el7.noarch
>>>
>>> grep -rn TestNAError /usr/lib/python2.7/site-packages/autotest
>>>
>>> nothing
>>>
>>>
>>>
>>> Full logs now available at:
>>>
>>>
>>> http://astepano1.brq.redhat.com/job-results/job-2015-09-09T18.11-481cfe4/job.log
>>>
>>>
>>>
>>>
>>>
>> _______________________________________________
>> Avocado-devel mailing list
>> Avocado-devel at redhat.com
>> https://www.redhat.com/mailman/listinfo/avocado-devel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/avocado-devel/attachments/20150909/07977c71/attachment.htm>


More information about the Avocado-devel mailing list