Error in kimchi model test

I have seem this error in my machine: - Fedora 20 - x86_64 - libvirt-1.1.3.3-2.fc20.x86_64 Can anyone try this test please, and let me know if you see the error ? *************************************************************************** [rotru@dhcp-9-18-235-188 tests]$ sudo ./run_tests.sh test_model.ModelTests.test_delete_running_vm libvirt: DBus Utils error : Invalid argument E ====================================================================== ERROR: test_delete_running_vm (test_model.ModelTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_model.py", line 630, in test_delete_running_vm inst.vm_start(u'kīмkhī-∨м') File "/home/rotru/Projetos/Kimchi/kimchi/src/kimchi/model/vms.py", line 371, in start dom.create() File "/home/rotru/Projetos/Kimchi/kimchi/src/kimchi/model/libvirtconnection.py", line 65, in wrapper ret = f(*args, **kwargs) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 708, in create if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) libvirtError: Invalid argument ---------------------------------------------------------------------- Ran 1 test in 0.369s FAILED (errors=1) *************************************************************************** I could get rid of this error changing the name of the vm created. The current name uses weird characters and unicode, but this in intentional to check unicode in libvirt. You can see the code in commit '5f04ac0750aacc97befa0088ae69fd036236349a' Thanks, Rodrigo Trujillo

Hi Trujillo, I'm running the same environment as you (Fedora 20, libvirt-1.1.3.3-2.fc20.x86_64) and I hit that (and other) error. I executed "cd tests/ && sudo ./run_tests.sh" on commit 9f33184 and this is the end of the error report: ====================================================================== ERROR: test_delete_running_vm (test_model.ModelTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/vianac/LTC/kimchi/tests/test_model.py", line 630, in test_delete_running_vm inst.vm_start(u'kīмkhī-∨м') File "/home/vianac/LTC/kimchi/src/kimchi/model/vms.py", line 358, in start dom.create() File "/home/vianac/LTC/kimchi/src/kimchi/model/libvirtconnection.py", line 65, in wrapper ret = f(*args, **kwargs) File "/home/vianac/LTC/kimchi/src/kimchi/model/libvirtconnection.py", line 65, in wrapper ret = f(*args, **kwargs) File "/home/vianac/LTC/kimchi/src/kimchi/model/libvirtconnection.py", line 65, in wrapper ret = f(*args, **kwargs) File "/home/vianac/LTC/kimchi/src/kimchi/model/libvirtconnection.py", line 65, in wrapper ret = f(*args, **kwargs) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 708, in create if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) libvirtError: Invalid argument ====================================================================== FAIL: test_debug_reports (test_model.ModelTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/vianac/LTC/kimchi/tests/test_model.py", line 709, in test_debug_reports "It is not necessary an error. " AssertionError: It is not necessary an error. You may need to increase the timeout number by TEST_REPORT_TIMEOUT=200 ./run_tests.sh test_model ---------------------------------------------------------------------- Ran 137 tests in 128.179s FAILED (failures=1, errors=1)

Hey Cristian, the second error: """ AssertionError: It is not necessary an error. You may need to increase the timeout number by TEST_REPORT_TIMEOUT=200 ./run_tests.sh test_model """ is related to sosreport. If you run it manually, you can see that it outputs some errors and probably, the return code is different. Seems to be a problem in sosreport with F20 version only. The first seems to be something wrong in kimchi... we need to dig more. Thanks for the answer. Trujillo On 02/04/2014 09:30 PM, Crístian Viana wrote:
Hi Trujillo,
I'm running the same environment as you (Fedora 20, libvirt-1.1.3.3-2.fc20.x86_64) and I hit that (and other) error. I executed "cd tests/ && sudo ./run_tests.sh" on commit 9f33184 and this is the end of the error report:
====================================================================== ERROR: test_delete_running_vm (test_model.ModelTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/vianac/LTC/kimchi/tests/test_model.py", line 630, in test_delete_running_vm inst.vm_start(u'kīмkhī-∨м') File "/home/vianac/LTC/kimchi/src/kimchi/model/vms.py", line 358, in start dom.create() File "/home/vianac/LTC/kimchi/src/kimchi/model/libvirtconnection.py", line 65, in wrapper ret = f(*args, **kwargs) File "/home/vianac/LTC/kimchi/src/kimchi/model/libvirtconnection.py", line 65, in wrapper ret = f(*args, **kwargs) File "/home/vianac/LTC/kimchi/src/kimchi/model/libvirtconnection.py", line 65, in wrapper ret = f(*args, **kwargs) File "/home/vianac/LTC/kimchi/src/kimchi/model/libvirtconnection.py", line 65, in wrapper ret = f(*args, **kwargs) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 708, in create if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) libvirtError: Invalid argument
====================================================================== FAIL: test_debug_reports (test_model.ModelTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/vianac/LTC/kimchi/tests/test_model.py", line 709, in test_debug_reports "It is not necessary an error. " AssertionError: It is not necessary an error. You may need to increase the timeout number by TEST_REPORT_TIMEOUT=200 ./run_tests.sh test_model
---------------------------------------------------------------------- Ran 137 tests in 128.179s
FAILED (failures=1, errors=1)
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel

Hi Cristian and Trujillo: Seems this is a bug of Fedora 20. On F20, libvirt can create a pool with non-ascii name, and start it. However, libvirt can also create a VM with non-ascii name, but it can not start it. libvirt can send this VM name to qemu, and qemu can start this VM. But libvirt fails to start this VM for something wrong with DBus file this bug to redhat bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1062943 On 02/05/2014 07:50 AM, Rodrigo Trujillo wrote:
Hey Cristian,
the second error: """ AssertionError: It is not necessary an error. You may need to increase the timeout number by TEST_REPORT_TIMEOUT=200 ./run_tests.sh test_model """ is related to sosreport. If you run it manually, you can see that it outputs some errors and probably, the return code is different. Seems to be a problem in sosreport with F20 version only.
The first seems to be something wrong in kimchi... we need to dig more.
Thanks for the answer.
Trujillo
On 02/04/2014 09:30 PM, CrÃstian Viana wrote:
Hi Trujillo,
I'm running the same environment as you (Fedora 20, libvirt-1.1.3.3-2.fc20.x86_64) and I hit that (and other) error. I executed "cd tests/ && sudo ./run_tests.sh" on commit 9f33184 and this is the end of the error report:
====================================================================== ERROR: test_delete_running_vm (test_model.ModelTests) ---------------------------------------------------------------------- Traceback (most recent call last):  File "/home/vianac/LTC/kimchi/tests/test_model.py", line 630, in test_delete_running_vm    inst.vm_start(u'kīмkhÄ«-â¨Ð¼')  File "/home/vianac/LTC/kimchi/src/kimchi/model/vms.py", line 358, in start    dom.create()  File "/home/vianac/LTC/kimchi/src/kimchi/model/libvirtconnection.py", line 65, in wrapper    ret = f(*args, **kwargs)  File "/home/vianac/LTC/kimchi/src/kimchi/model/libvirtconnection.py", line 65, in wrapper    ret = f(*args, **kwargs)  File "/home/vianac/LTC/kimchi/src/kimchi/model/libvirtconnection.py", line 65, in wrapper    ret = f(*args, **kwargs)  File "/home/vianac/LTC/kimchi/src/kimchi/model/libvirtconnection.py", line 65, in wrapper    ret = f(*args, **kwargs)  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 708, in create    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) libvirtError: Invalid argument
====================================================================== FAIL: test_debug_reports (test_model.ModelTests) ---------------------------------------------------------------------- Traceback (most recent call last):  File "/home/vianac/LTC/kimchi/tests/test_model.py", line 709, in test_debug_reports    "It is not necessary an error. " AssertionError: It is not necessary an error. You may need to increase the timeout number by TEST_REPORT_TIMEOUT=200 ./run_tests.sh test_model
---------------------------------------------------------------------- Ran 137 tests in 128.179s
FAILED (failures=1, errors=1)
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
-- Thanks and best regards! Sheldon Feng(å¯å°å)<shaohef@linux.vnet.ibm.com> IBM Linux Technology Center

Thanks for report the problem Sheldon. Should we create a bug in Github ? Then we can track the problem internally too Rodrigo On 02/10/2014 12:15 AM, Sheldon wrote:
Hi Cristian and Trujillo:
Seems this is a bug of Fedora 20.
On F20, libvirt can create a pool with non-ascii name, and start it.
However, libvirt can also create a VM with non-ascii name, but it can not start it.
libvirt can send this VM name to qemu, and qemu can start this VM.
But libvirt fails to start this VM for something wrong with DBus
file this bug to redhat bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1062943
On 02/05/2014 07:50 AM, Rodrigo Trujillo wrote:
Hey Cristian,
the second error: """ AssertionError: It is not necessary an error. You may need to increase the timeout number by TEST_REPORT_TIMEOUT=200 ./run_tests.sh test_model """ is related to sosreport. If you run it manually, you can see that it outputs some errors and probably, the return code is different. Seems to be a problem in sosreport with F20 version only.
The first seems to be something wrong in kimchi... we need to dig more.
Thanks for the answer.
Trujillo
On 02/04/2014 09:30 PM, CrÃstian Viana wrote:
Hi Trujillo,
I'm running the same environment as you (Fedora 20, libvirt-1.1.3.3-2.fc20.x86_64) and I hit that (and other) error. I executed "cd tests/ && sudo ./run_tests.sh" on commit 9f33184 and this is the end of the error report:
====================================================================== ERROR: test_delete_running_vm (test_model.ModelTests) ---------------------------------------------------------------------- Traceback (most recent call last):  File "/home/vianac/LTC/kimchi/tests/test_model.py", line 630, in test_delete_running_vm    inst.vm_start(u'kīмkhÄ«-â¨Ð¼')  File "/home/vianac/LTC/kimchi/src/kimchi/model/vms.py", line 358, in start    dom.create()  File "/home/vianac/LTC/kimchi/src/kimchi/model/libvirtconnection.py", line 65, in wrapper    ret = f(*args, **kwargs)  File "/home/vianac/LTC/kimchi/src/kimchi/model/libvirtconnection.py", line 65, in wrapper    ret = f(*args, **kwargs)  File "/home/vianac/LTC/kimchi/src/kimchi/model/libvirtconnection.py", line 65, in wrapper    ret = f(*args, **kwargs)  File "/home/vianac/LTC/kimchi/src/kimchi/model/libvirtconnection.py", line 65, in wrapper    ret = f(*args, **kwargs)  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 708, in create    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self) libvirtError: Invalid argument
====================================================================== FAIL: test_debug_reports (test_model.ModelTests) ---------------------------------------------------------------------- Traceback (most recent call last):  File "/home/vianac/LTC/kimchi/tests/test_model.py", line 709, in test_debug_reports    "It is not necessary an error. " AssertionError: It is not necessary an error. You may need to increase the timeout number by TEST_REPORT_TIMEOUT=200 ./run_tests.sh test_model
---------------------------------------------------------------------- Ran 137 tests in 128.179s
FAILED (failures=1, errors=1)
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
participants (3)
-
Crístian Viana
-
Rodrigo Trujillo
-
Sheldon