[ovirt-devel] [OST/SDK4] ValueError: urandom is not a valid RngSource

Milan Zamazal mzamazal at redhat.com
Wed May 10 12:55:59 UTC 2017


Ondra Machacek <omachace at redhat.com> writes:

> On Wed, May 10, 2017 at 1:32 PM, Milan Zamazal <mzamazal at redhat.com> wrote:
>
>> Hi, I'm trying to run ovirt-system-tests from git master with
>> basic-suite-master on my RHEL machine.  The tests had been failing on
>> missing ovirtsdk4 Python module, so I installed
>> python-ovirt-engine-sdk4-4.0.4-2.el7ev.x86_64 package.  Now the tests
>> fail early and I'm getting the following error:
>>
>>   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 129,
>> in wrapped_test
>>     test()
>>   File "/usr/lib/python2.7/site-packages/ovirtlago/testlib.py", line 59,
>> in wrapper
>>     return func(get_test_prefix(), *args, **kwargs)
>>   File "/home/pdm/ovirt/lago/ovirt-system-tests/basic-suite-
>> master/test-scenarios/002_bootstrap.py", line 215, in add_cluster
>>     add_cluster_4(prefix)
>>   File "/home/pdm/ovirt/lago/ovirt-system-tests/basic-suite-
>> master/test-scenarios/002_bootstrap.py", line 256, in add_cluster_4
>>     ballooning_enabled=True,
>>   File "/usr/lib64/python2.7/site-packages/ovirtsdk4/services.py", line
>> 3758, in add
>>     return readers.ClusterReader.read_one(reader)
>>   File "/usr/lib64/python2.7/site-packages/ovirtsdk4/readers.py", line
>> 1740, in read_one
>>     obj.required_rng_sources = [types.RngSource(s.lower()) for s in
>> Reader.read_strings(reader)]
>>   File "/usr/lib/python2.7/site-packages/enum/__init__.py", line 330, in
>> __call__
>>     return cls.__new__(cls, value)
>>   File "/usr/lib/python2.7/site-packages/enum/__init__.py", line 642, in
>> __new__
>>     raise ValueError("%s is not a valid %s" % (value, cls.__name__))
>>   ValueError: urandom is not a valid RngSource
>>
>> Does anybody know what's wrong and how to make the tests working?
>>
>
> Yes, this was bug[1] in Python SDK. It's fixed in Pyhon SDK version 4.1.2.
>
> [1] https://gerrit.ovirt.org/#/c/73301/

Thank you for the hint!  After upgrading Python SDK to 4.1.3
ovirt-system-tests pass completely on my machine.

Thanks,
Milan


More information about the Devel mailing list