kimchi-project / kimchi

An HTML5 management interface for KVM guests
https://github.com/kimchi-project/kimchi/releases/latest
Other
3.11k stars 364 forks source link

make check failing on fedora 24. #982

Open archu-s opened 8 years ago

archu-s commented 8 years ago

last commit from commit log: commit 351917d8e642b7eadc94a6eeda20dc337ffb774f Author: Socorro socorro@linux.vnet.ibm.com Date: Mon Aug 15 16:53:37 2016 -0700

Issue #317 Inconsistent button status when adding or creating new resources

- Addressed last comment by pvital in github issue in that only
the Network tab now has this problem in that the 'Create' button
is enabled after clicking on   Add a Newtwork. It should be
disabled by default until the minimum of the required fields are
filled. In the Network case, network name field (as long as valid)
will enable the Create button as soon as at least one character
is typed in.

Signed-off-by: Socorro <socorro@linux.vnet.ibm.com>

Below is the test result of make check on fedora 24: ./run_tests.sh

***\ Running unit test: test_model_storagepool... FAILED

ERROR: test_get_storagepools (test_model_storagepool.StoragepoolTests)

Traceback (most recent call last): File "test_model_storagepool.py", line 70, in test_get_storagepools self.assertIn('default', [pool['name'] for pool in storagepools]) TypeError: string indices must be integers


Ran 1 test in 12.261s

FAILED (errors=1) [17/Aug/2016:18:45:02] ENGINE Waiting for child threads to terminate... ***\ Running unit test: test_storagepoolxml... PASSED - Ran 1 test in 0.001s

***\ Running unit test: test_model_storagevolume... FAILED

FAIL: test_get_storagevolume (test_model_storagevolume.StorageVolumeTests)

Traceback (most recent call last): File "test_model_storagevolume.py", line 258, in test_get_storagevolume self.assertEquals(200, resp.status) AssertionError: 200 != 404

FAIL: test_storagevolume_action (test_model_storagevolume.StorageVolumeTests)

Traceback (most recent call last): File "test_model_storagevolume.py", line 274, in test_storagevolume_action _do_volume_test(self, model, host, ssl_port, 'default') File "test_model_storagevolume.py", line 73, in _do_volume_test self.assertEquals(200, resp.status) AssertionError: 200 != 404


Ran 2 tests in 12.696s

FAILED (failures=2) [17/Aug/2016:18:45:16] ENGINE Waiting for child threads to terminate... * Running unit test: test_vmtemplate... PASSED - Ran 7 tests in 0.018s * Running unit test: test_livemigration... PASSED - Ran 11 tests in 0.001s

***\ Running unit test: test_rest... FAILED

ERROR: setUpModule (test_rest)

Traceback (most recent call last): File "test_rest.py", line 58, in setUpModule model = mockmodel.MockModel('/tmp/obj-store-test') File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/mockmodel.py", line 140, in init self._create_virt_viewer_tmp_file() File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/mockmodel.py", line 146, in _create_virt_viewer_tmp_file delete=False File "/usr/lib64/python2.7/tempfile.py", line 475, in NamedTemporaryFile (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags) File "/usr/lib64/python2.7/tempfile.py", line 244, in _mkstemp_inner fd = _os.open(file, flags, 0600) OSError: [Errno 2] No such file or directory: '../data/virtviewerfiles/tmpxuRX1r'


Ran 0 tests in 1.659s

FAILED (errors=1) WARNING: no 'numpy' module, HyBi protocol will be slower

***\ Running unit test: test_mock_storagepool... FAILED

ERROR: setUpModule (test_mock_storagepool)

Traceback (most recent call last): File "test_mock_storagepool.py", line 43, in setUpModule model = MockModel('/tmp/obj-store-test') File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/mockmodel.py", line 140, in init self._create_virt_viewer_tmp_file() File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/mockmodel.py", line 146, in _create_virt_viewer_tmp_file delete=False File "/usr/lib64/python2.7/tempfile.py", line 475, in NamedTemporaryFile (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags) File "/usr/lib64/python2.7/tempfile.py", line 244, in _mkstemp_inner fd = _os.open(file, flags, 0600) OSError: [Errno 2] No such file or directory: '../data/virtviewerfiles/tmprgVeLX'


Ran 0 tests in 1.480s

FAILED (errors=1) WARNING: no 'numpy' module, HyBi protocol will be slower

***\ Running unit test: test_mock_network... FAILED

ERROR: setUpModule (test_mock_network)

Traceback (most recent call last): File "test_mock_network.py", line 46, in setUpModule model = MockModel('/tmp/obj-store-test') File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/mockmodel.py", line 140, in init self._create_virt_viewer_tmp_file() File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/mockmodel.py", line 146, in _create_virt_viewer_tmp_file delete=False File "/usr/lib64/python2.7/tempfile.py", line 475, in NamedTemporaryFile (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags) File "/usr/lib64/python2.7/tempfile.py", line 244, in _mkstemp_inner fd = _os.open(file, flags, 0600) OSError: [Errno 2] No such file or directory: '../data/virtviewerfiles/tmpy5CnX7'


Ran 0 tests in 1.539s

FAILED (errors=1) WARNING: no 'numpy' module, HyBi protocol will be slower

***\ Running unit test: test_mock_storagevolume... FAILED

ERROR: setUpModule (test_mock_storagevolume)

Traceback (most recent call last): File "test_mock_storagevolume.py", line 45, in setUpModule model = MockModel('/tmp/obj-store-test') File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/mockmodel.py", line 140, in init self._create_virt_viewer_tmp_file() File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/mockmodel.py", line 146, in _create_virt_viewer_tmp_file delete=False File "/usr/lib64/python2.7/tempfile.py", line 475, in NamedTemporaryFile (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags) File "/usr/lib64/python2.7/tempfile.py", line 244, in _mkstemp_inner fd = _os.open(file, flags, 0600) OSError: [Errno 2] No such file or directory: '../data/virtviewerfiles/tmpbbtlcx'


Ran 0 tests in 1.509s

FAILED (errors=1) WARNING: no 'numpy' module, HyBi protocol will be slower ***\ Running unit test: test_osinfo... PASSED - Ran 5 tests in 0.028s

***\ Running unit test: test_authorization... FAILED

ERROR: setUpModule (test_authorization)

Traceback (most recent call last): File "test_authorization.py", line 45, in setUpModule model = mockmodel.MockModel('/tmp/obj-store-test') File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/mockmodel.py", line 140, in init self._create_virt_viewer_tmp_file() File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/mockmodel.py", line 146, in _create_virt_viewer_tmp_file delete=False File "/usr/lib64/python2.7/tempfile.py", line 475, in NamedTemporaryFile (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags) File "/usr/lib64/python2.7/tempfile.py", line 244, in _mkstemp_inner fd = _os.open(file, flags, 0600) OSError: [Errno 2] No such file or directory: '../data/virtviewerfiles/tmplhJna3'


Ran 0 tests in 1.427s

FAILED (errors=1) WARNING: no 'numpy' module, HyBi protocol will be slower ***\ Running unit test: test_model_libvirtevents... PASSED - Ran 1 test in 45.746s

***\ Running unit test: test_template... FAILED

ERROR: setUpModule (test_template)

Traceback (most recent call last): File "test_template.py", line 50, in setUpModule model = MockModel('/tmp/obj-store-test') File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/mockmodel.py", line 140, in init self._create_virt_viewer_tmp_file() File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/mockmodel.py", line 146, in _create_virt_viewer_tmp_file delete=False File "/usr/lib64/python2.7/tempfile.py", line 475, in NamedTemporaryFile (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags) File "/usr/lib64/python2.7/tempfile.py", line 244, in _mkstemp_inner fd = _os.open(file, flags, 0600) OSError: [Errno 2] No such file or directory: '../data/virtviewerfiles/tmpntICrH'


Ran 0 tests in 1.780s

FAILED (errors=1) WARNING: no 'numpy' module, HyBi protocol will be slower

***\ Running unit test: test_host... FAILED

ERROR: setUpModule (test_host)

Traceback (most recent call last): File "test_host.py", line 44, in setUpModule model = MockModel(tmpfile) File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/mockmodel.py", line 140, in init self._create_virt_viewer_tmp_file() File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/mockmodel.py", line 146, in _create_virt_viewer_tmp_file delete=False File "/usr/lib64/python2.7/tempfile.py", line 475, in NamedTemporaryFile (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags) File "/usr/lib64/python2.7/tempfile.py", line 244, in _mkstemp_inner fd = _os.open(file, flags, 0600) OSError: [Errno 2] No such file or directory: '../data/virtviewerfiles/tmpbWkXW3'


Ran 0 tests in 1.596s

FAILED (errors=1) WARNING: no 'numpy' module, HyBi protocol will be slower ***\ Running unit test: test_networkxml... PASSED - Ran 10 tests in 0.003s

***\ Running unit test: test_mockmodel... FAILED

ERROR: setUpModule (test_mockmodel)

Traceback (most recent call last): File "test_mockmodel.py", line 46, in setUpModule model = mockmodel.MockModel('/tmp/obj-store-test') File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/mockmodel.py", line 140, in init self._create_virt_viewer_tmp_file() File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/mockmodel.py", line 146, in _create_virt_viewer_tmp_file delete=False File "/usr/lib64/python2.7/tempfile.py", line 475, in NamedTemporaryFile (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags) File "/usr/lib64/python2.7/tempfile.py", line 244, in _mkstemp_inner fd = _os.open(file, flags, 0600) OSError: [Errno 2] No such file or directory: '../data/virtviewerfiles/tmpcsFC1K'


Ran 0 tests in 1.503s

FAILED (errors=1) WARNING: no 'numpy' module, HyBi protocol will be slower ***\ Running unit test: test_config... PASSED - Ran 3 tests in 0.010s

***\ Running unit test: test_model_network... FAILED

ERROR: test_get_networks (test_model_network.NetworkTests)

Traceback (most recent call last): File "test_model_network.py", line 123, in test_get_networks self.assertIn('default', [net['name'] for net in networks]) TypeError: string indices must be integers

ERROR: test_network_lifecycle (test_model_network.NetworkTests)

Traceback (most recent call last): File "test_model_network.py", line 162, in test_network_lifecycle iface = interfaces[0]['name'] KeyError: 0

FAIL: test_bridge_network_create_fails_more_than_one_interface (test_model_network.NetworkTests)

Traceback (most recent call last): File "test_model_network.py", line 195, in test_bridge_network_create_fails_more_than_one_interface self.assertEquals(400, resp.status) AssertionError: 400 != 404

FAIL: test_macvtap_network_create_fails_more_than_one_interface (test_model_network.NetworkTests)

Traceback (most recent call last): File "test_model_network.py", line 183, in test_macvtap_network_create_fails_more_than_one_interface self.assertEquals(400, resp.status) AssertionError: 400 != 404


Ran 4 tests in 11.714s

FAILED (failures=2, errors=2) [17/Aug/2016:18:47:04] ENGINE Waiting for child threads to terminate...

***\ Running unit test: test_model... FAILED

ERROR: test_vm_virtviewerfile_vmlifecycle (test_model.ModelTests)

Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched return func(_args, *_keywargs) File "test_model.py", line 554, in test_vm_virtviewerfile_vmlifecycle vvmodel.lookup(vm_name.decode('utf-8')) File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/model/virtviewerfile.py", line 133, in lookup file_path = create_virt_viewer_file(name, graphics_info) File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/model/virtviewerfile.py", line 82, in create_virt_viewer_file {'name': vm_name, 'err': e.message}) OperationFailed: KCHVM0084E: KCHVM0084E


Ran 32 tests in 212.726s

FAILED (errors=1, skipped=1)

===================== Kimchi Unit Tests Summary ====================== Ran 77 tests in 307.697 seconds. test_model_network FAILED: (failures=2, errors=2) - full log available at /tmp/tmp.VLYkw2S0py test_model_storagepool FAILED: (errors=1) - full log available at /tmp/tmp.VLYkw2S0py test_mockmodel FAILED: (errors=1) - full log available at /tmp/tmp.VLYkw2S0py test_mock_network FAILED: (errors=1) - full log available at /tmp/tmp.VLYkw2S0py test_template FAILED: (errors=1) - full log available at /tmp/tmp.VLYkw2S0py test_rest FAILED: (errors=1) - full log available at /tmp/tmp.VLYkw2S0py test_mock_storagepool FAILED: (errors=1) - full log available at /tmp/tmp.VLYkw2S0py test_authorization FAILED: (errors=1) - full log available at /tmp/tmp.VLYkw2S0py test_mock_storagevolume FAILED: (errors=1) - full log available at /tmp/tmp.VLYkw2S0py test_model FAILED: (errors=1, skipped=1) - full log available at /tmp/tmp.VLYkw2S0py test_host FAILED: (errors=1) - full log available at /tmp/tmp.VLYkw2S0py test_model_storagevolume FAILED: (failures=2) - full log available at /tmp/tmp.VLYkw2S0py

pvital commented 8 years ago

Patch submitted to ML http://lists.ovirt.org/pipermail/kimchi-devel/2016-August/016081.html

archu-s commented 8 years ago

Thanks for the patch. With this patch error due to temporary file is solved, but still testcases are failing:

Below is test result with the above patch applied:

./run_tests.sh

***\ Running unit test: test_model_storagepool... FAILED

ERROR: test_get_storagepools (test_model_storagepool.StoragepoolTests)

Traceback (most recent call last): File "test_model_storagepool.py", line 70, in test_get_storagepools self.assertIn('default', [pool['name'] for pool in storagepools]) TypeError: string indices must be integers


Ran 1 test in 9.139s

FAILED (errors=1) [18/Aug/2016:09:32:28] ENGINE Waiting for child threads to terminate... ***\ Running unit test: test_storagepoolxml... PASSED - Ran 1 test in 0.001s

***\ Running unit test: test_model_storagevolume... FAILED

FAIL: test_get_storagevolume (test_model_storagevolume.StorageVolumeTests)

Traceback (most recent call last): File "test_model_storagevolume.py", line 258, in test_get_storagevolume self.assertEquals(200, resp.status) AssertionError: 200 != 404

FAIL: test_storagevolume_action (test_model_storagevolume.StorageVolumeTests)

Traceback (most recent call last): File "test_model_storagevolume.py", line 274, in test_storagevolume_action _do_volume_test(self, model, host, ssl_port, 'default') File "test_model_storagevolume.py", line 73, in _do_volume_test self.assertEquals(200, resp.status) AssertionError: 200 != 404


Ran 2 tests in 9.191s

FAILED (failures=2) [18/Aug/2016:09:32:38] ENGINE Waiting for child threads to terminate... * Running unit test: test_vmtemplate... PASSED - Ran 7 tests in 0.013s * Running unit test: test_livemigration... PASSED - Ran 11 tests in 0.001s

***\ Running unit test: test_rest... FAILED

ERROR: test_screenshot_refresh (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 1252, in test_screenshot_refresh wait_task(self._task_lookup, task['id']) KeyError: 'id'

ERROR: test_tasks (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 1323, in test_tasks tasks_ids = [int(t['id']) for t in tasks] TypeError: string indices must be integers

ERROR: test_screenshot_refresh (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 1252, in test_screenshot_refresh wait_task(self._task_lookup, task['id']) KeyError: 'id'

ERROR: test_tasks (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 1323, in test_tasks tasks_ids = [int(t['id']) for t in tasks] TypeError: string indices must be integers

FAIL: test_capabilities (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 1352, in test_capabilities self.assertEquals(sorted(keys), sorted(conf.keys())) AssertionError: Lists differ: [u'kernel_vfio', u'libvirt_str... != [u'call_stack', u'code', u'rea...

First differing element 0: u'kernel_vfio' u'call_stack'

First list contains 5 additional elements. First extra element 3: u'mem_hotplug_support'

FAIL: test_config (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 1343, in test_config self.assertEquals(keys, sorted(conf.keys())) AssertionError: Lists differ: ['federation', 'version'] != [u'call_stack', u'code', u'rea...

First differing element 0: 'federation' u'call_stack'

Second list contains 1 additional elements. First extra element 2: u'reason'

FAIL: test_create_vm_with_bad_template_uri (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 1119, in test_create_vm_with_bad_template_uri self.assertEquals(400, resp.status) AssertionError: 400 != 404

FAIL: test_create_vm_with_img_based_template (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 1129, in test_create_vm_with_img_based_template self.assertEquals(0, len(resp)) AssertionError: 0 != 3

FAIL: test_create_vm_without_template (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 1111, in test_create_vm_without_template self.assertEquals(400, resp.status) AssertionError: 400 != 404

FAIL: test_distros (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 1362, in test_distros self.assertIn('name', distro) AssertionError: 'name' not found in u'reason'

FAIL: test_edit_vm (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 140, in test_edit_vm self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_get_vms (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 106, in test_get_vms self.assertEquals(1, len(vms)) AssertionError: 1 != 3

FAIL: test_interfaces (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 1296, in test_interfaces self.assertIn('name', resp) AssertionError: 'name' not found in '{\n "reason":"Nothing matches the given URI",\n "code":"404 Not Found",\n "call_stack":"Traceback (most recent call last):\n File \"/usr/lib/python2.7/site-packages/cherrypy/_cprequest.py\", line 670, in respond\n response.body = self.handler()\n File \"/usr/lib/python2.7/site-packages/cherrypy/lib/encoding.py\", line 217, in call\n self.body = self.oldhandler(_args, *_kwargs)\n File \"/usr/lib/python2.7/site-packages/cherrypy/_cpdispatch.py\", line 67, in call\n raise sys.exc_info()[1]\nHTTPError: (404, None)\n"\n}'

FAIL: test_iso_scan_shallow (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 1176, in test_iso_scan_shallow self._create_pool('pool-3') File "test_rest.py", line 1160, in _create_pool self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_peers (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 1356, in test_peers self.assertEquals([], json.loads(resp)) AssertionError: [] != {u'reason': u'Nothing matches the given URI', u'code': u'404 Not Found', u'call_stack': u'Traceback (most recent call last):\n File "/usr/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 670, in respond\n response.body = self.handler()\n File "/usr/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 217, in call\n self.body = self.oldhandler(_args, *_kwargs)\n File "/usr/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 67, in call\n raise sys.exc_info()[1]\nHTTPError: (404, None)\n'}

FAIL: test_scsi_fc_storage (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 1035, in test_scsi_fc_storage self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_unnamed_vms (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 1094, in test_unnamed_vms self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_vm_customise_storage (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 985, in test_vm_customise_storage self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_vm_graphics (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 607, in test_vm_graphics self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_vm_iface (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 878, in test_vm_iface self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_vm_lifecycle (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 311, in test_vm_lifecycle self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_vm_netboot (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 549, in test_vm_netboot self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_vm_storage_devices (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 703, in test_vm_storage_devices self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_capabilities (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 1352, in test_capabilities self.assertEquals(sorted(keys), sorted(conf.keys())) AssertionError: Lists differ: [u'kernel_vfio', u'libvirt_str... != [u'call_stack', u'code', u'rea...

First differing element 0: u'kernel_vfio' u'call_stack'

First list contains 5 additional elements. First extra element 3: u'mem_hotplug_support'

FAIL: test_config (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 1343, in test_config self.assertEquals(keys, sorted(conf.keys())) AssertionError: Lists differ: ['federation', 'version'] != [u'call_stack', u'code', u'rea...

First differing element 0: 'federation' u'call_stack'

Second list contains 1 additional elements. First extra element 2: u'reason'

FAIL: test_create_vm_with_bad_template_uri (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 1119, in test_create_vm_with_bad_template_uri self.assertEquals(400, resp.status) AssertionError: 400 != 404

FAIL: test_create_vm_with_img_based_template (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 1129, in test_create_vm_with_img_based_template self.assertEquals(0, len(resp)) AssertionError: 0 != 3

FAIL: test_create_vm_without_template (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 1111, in test_create_vm_without_template self.assertEquals(400, resp.status) AssertionError: 400 != 404

FAIL: test_distros (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 1362, in test_distros self.assertIn('name', distro) AssertionError: 'name' not found in u'reason'

FAIL: test_edit_vm (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 140, in test_edit_vm self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_get_vms (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 106, in test_get_vms self.assertEquals(1, len(vms)) AssertionError: 1 != 3

FAIL: test_interfaces (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 1296, in test_interfaces self.assertIn('name', resp) AssertionError: 'name' not found in '{\n "reason":"Nothing matches the given URI",\n "code":"404 Not Found",\n "call_stack":"Traceback (most recent call last):\n File \"/usr/lib/python2.7/site-packages/cherrypy/_cprequest.py\", line 670, in respond\n response.body = self.handler()\n File \"/usr/lib/python2.7/site-packages/cherrypy/lib/encoding.py\", line 217, in call\n self.body = self.oldhandler(_args, *_kwargs)\n File \"/usr/lib/python2.7/site-packages/cherrypy/_cpdispatch.py\", line 67, in call\n raise sys.exc_info()[1]\nHTTPError: (404, None)\n"\n}'

FAIL: test_iso_scan_shallow (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 1176, in test_iso_scan_shallow self._create_pool('pool-3') File "test_rest.py", line 1160, in _create_pool self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_peers (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 1356, in test_peers self.assertEquals([], json.loads(resp)) AssertionError: [] != {u'reason': u'Nothing matches the given URI', u'code': u'404 Not Found', u'call_stack': u'Traceback (most recent call last):\n File "/usr/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 670, in respond\n response.body = self.handler()\n File "/usr/lib/python2.7/site-packages/cherrypy/lib/encoding.py", line 217, in call\n self.body = self.oldhandler(_args, *_kwargs)\n File "/usr/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 67, in call\n raise sys.exc_info()[1]\nHTTPError: (404, None)\n'}

FAIL: test_scsi_fc_storage (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 1035, in test_scsi_fc_storage self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_unnamed_vms (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 1094, in test_unnamed_vms self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_vm_customise_storage (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 985, in test_vm_customise_storage self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_vm_graphics (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 607, in test_vm_graphics self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_vm_iface (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 878, in test_vm_iface self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_vm_lifecycle (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 311, in test_vm_lifecycle self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_vm_netboot (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 549, in test_vm_netboot self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_vm_storage_devices (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 703, in test_vm_storage_devices self.assertEquals(201, resp.status) AssertionError: 201 != 404


Ran 42 tests in 8.435s

FAILED (failures=38, errors=4) [18/Aug/2016:09:33:11] ENGINE Waiting for child threads to terminate...

***\ Running unit test: test_mock_storagepool... FAILED

ERROR: test_storagepool (test_mock_storagepool.MockStoragepoolTests)

Traceback (most recent call last): File "test_mock_storagepool.py", line 70, in test_storagepool vg_names = [vg['name'] for vg in vgs] TypeError: string indices must be integers


Ran 1 test in 5.040s

FAILED (errors=1) [18/Aug/2016:09:33:17] ENGINE Waiting for child threads to terminate... ***\ Running unit test: test_mock_network... PASSED - Ran 1 test in 4.874s

***\ Running unit test: test_mock_storagevolume... FAILED

ERROR: test_storagevolume (test_mock_storagevolume.MockStorageVolumeTests)

Traceback (most recent call last): File "test_mock_storagevolume.py", line 68, in test_storagevolume devs = [dev['path'] for dev in partitions] TypeError: string indices must be integers


Ran 1 test in 4.949s

FAILED (errors=1) [18/Aug/2016:09:33:28] ENGINE Waiting for child threads to terminate... ***\ Running unit test: test_osinfo... PASSED - Ran 5 tests in 0.028s

***\ Running unit test: test_authorization... FAILED

FAIL: test_nonroot_access (test_authorization.AuthorizationTests)

Traceback (most recent call last): File "test_authorization.py", line 69, in test_nonroot_access self.assertEquals(200, resp.status) AssertionError: 200 != 404


Ran 1 test in 5.071s

FAILED (failures=1) [18/Aug/2016:09:33:34] ENGINE Waiting for child threads to terminate... ***\ Running unit test: test_model_libvirtevents... PASSED - Ran 1 test in 43.416s

***\ Running unit test: test_template... FAILED

FAIL: test_customized_network (test_template.TemplateTests)

Traceback (most recent call last): File "test_template.py", line 362, in test_customized_network self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_customized_storagepool (test_template.TemplateTests)

Traceback (most recent call last): File "test_template.py", line 399, in test_customized_storagepool self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_customized_tmpl (test_template.TemplateTests)

Traceback (most recent call last): File "test_template.py", line 188, in test_customized_tmpl self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_tmpl_integrity (test_template.TemplateTests)

Traceback (most recent call last): File "test_template.py", line 496, in test_tmpl_integrity self.assertEquals(201, resp.status) AssertionError: 201 != 404

FAIL: test_tmpl_lifecycle (test_template.TemplateTests)

Traceback (most recent call last): File "test_template.py", line 72, in test_tmpl_lifecycle self.assertEquals(200, resp.status) AssertionError: 200 != 404


Ran 5 tests in 5.636s

FAILED (failures=5) [18/Aug/2016:09:34:24] ENGINE Waiting for child threads to terminate...

***\ Running unit test: test_host... FAILED

ERROR: test_get_available_passthrough_devices (test_host.HostTests)

Traceback (most recent call last): File "test_host.py", line 115, in test_get_available_passthrough_devices all_devs = [dev['name'] for dev in json.loads(resp.read())] TypeError: string indices must be integers

ERROR: test_host_devices (test_host.HostTests)

Traceback (most recent call last): File "test_host.py", line 76, in test_host_devices self.assertEquals('scsi_host2', nodedev['name']) KeyError: 'name'

FAIL: test_host_partitions (test_host.HostTests)

Traceback (most recent call last): File "test_host.py", line 125, in test_host_partitions self.assertEquals(200, resp.status) AssertionError: 200 != 404


Ran 3 tests in 4.970s

FAILED (failures=1, errors=2) [18/Aug/2016:09:34:29] ENGINE Waiting for child threads to terminate... ***\ Running unit test: test_networkxml... PASSED - Ran 10 tests in 0.002s

***\ Running unit test: test_mockmodel... FAILED

ERROR: test_screenshot_refresh (test_mockmodel.MockModelTests)

Traceback (most recent call last): File "test_mockmodel.py", line 76, in test_screenshot_refresh wait_task(model.task_lookup, task['id']) KeyError: 'id'

ERROR: test_vm_list_sorted (test_mockmodel.MockModelTests)

Traceback (most recent call last): File "test_mockmodel.py", line 114, in test_vm_list_sorted add_vm(vm) File "test_mockmodel.py", line 110, in add_vm wait_task(model.task_lookup, task['id']) KeyError: 'id'


Ran 5 tests in 10.588s

FAILED (errors=2) /usr/lib/python2.7/site-packages/cherrypy/process/wspbus.py:233: RuntimeWarning: The main thread is exiting, but the Bus is in the states.STARTED state; shutting it down automatically now. You must either call bus.block() after start(), or call bus.exit() before the main thread exits. "main thread exits." % self.state, RuntimeWarning) [18/Aug/2016:09:34:41] ENGINE Bus STOPPING [18/Aug/2016:09:34:41] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('127.0.0.1', 44691)) shut down libvirt: Test Driver error : Domain not found libvirt: Test Driver error : Storage pool not found [18/Aug/2016:09:34:41] ENGINE Stopped thread 'Session cleanup'. [18/Aug/2016:09:34:41] ENGINE Stopped thread 'Autoreloader'. [18/Aug/2016:09:34:41] ENGINE Bus STOPPED [18/Aug/2016:09:34:41] ENGINE Bus EXITING Closing any VNC/SPICE firewall ports opened by Kimchi ... [18/Aug/2016:09:34:41] ENGINE Bus EXITED [18/Aug/2016:09:34:41] ENGINE Waiting for child threads to terminate... ***\ Running unit test: test_config... PASSED - Ran 3 tests in 0.002s

***\ Running unit test: test_model_network... FAILED

ERROR: test_get_networks (test_model_network.NetworkTests)

Traceback (most recent call last): File "test_model_network.py", line 123, in test_get_networks self.assertIn('default', [net['name'] for net in networks]) TypeError: string indices must be integers

ERROR: test_network_lifecycle (test_model_network.NetworkTests)

Traceback (most recent call last): File "test_model_network.py", line 162, in test_network_lifecycle iface = interfaces[0]['name'] KeyError: 0

FAIL: test_bridge_network_create_fails_more_than_one_interface (test_model_network.NetworkTests)

Traceback (most recent call last): File "test_model_network.py", line 195, in test_bridge_network_create_fails_more_than_one_interface self.assertEquals(400, resp.status) AssertionError: 400 != 404

FAIL: test_macvtap_network_create_fails_more_than_one_interface (test_model_network.NetworkTests)

Traceback (most recent call last): File "test_model_network.py", line 183, in test_macvtap_network_create_fails_more_than_one_interface self.assertEquals(400, resp.status) AssertionError: 400 != 404


Ran 4 tests in 9.382s

FAILED (failures=2, errors=2) [18/Aug/2016:09:34:51] ENGINE Waiting for child threads to terminate...

***\ Running unit test: test_model... PASSED - Ran 32 tests in 186.209s

===================== Kimchi Unit Tests Summary ====================== Ran 136 tests in 306.947 seconds. test_model_network FAILED: (failures=2, errors=2) - full log available at /tmp/tmp.TShk3L9Q9y test_model_storagepool FAILED: (errors=1) - full log available at /tmp/tmp.TShk3L9Q9y test_mockmodel FAILED: (errors=2) - full log available at /tmp/tmp.TShk3L9Q9y test_template FAILED: (failures=5) - full log available at /tmp/tmp.TShk3L9Q9y test_rest FAILED: (failures=38, errors=4) - full log available at /tmp/tmp.TShk3L9Q9y test_mock_storagepool FAILED: (errors=1) - full log available at /tmp/tmp.TShk3L9Q9y test_authorization FAILED: (failures=1) - full log available at /tmp/tmp.TShk3L9Q9y test_mock_storagevolume FAILED: (errors=1) - full log available at /tmp/tmp.TShk3L9Q9y test_host FAILED: (failures=1, errors=2) - full log available at /tmp/tmp.TShk3L9Q9y test_model_storagevolume FAILED: (failures=2) - full log available at /tmp/tmp.TShk3L9Q9y

pvital commented 8 years ago

This is the result of Kimchi test cases with today's HEAD (b73e7ae):

[pvital@LOL] [Thu Aug 18 10:45:39] 
[~/Projects/tmp/wok_test/src/wok/plugins/kimchi/tests] 
$ sudo ./run_tests.sh 
[sudo] password for pvital: 
***** Running unit test: test_model_network...   PASSED - Ran 4 tests in 40.404s
***** Running unit test: test_rest...    FAILED
======================================================================
ERROR: setUpModule (test_rest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_rest.py", line 58, in setUpModule
    model = mockmodel.MockModel('/tmp/obj-store-test')
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/mockmodel.py", line 140, in __init__
    self._create_virt_viewer_tmp_file()
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/mockmodel.py", line 146, in _create_virt_viewer_tmp_file
    delete=False
  File "/usr/lib64/python2.7/tempfile.py", line 475, in NamedTemporaryFile
    (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
  File "/usr/lib64/python2.7/tempfile.py", line 244, in _mkstemp_inner
    fd = _os.open(file, flags, 0600)
OSError: [Errno 2] No such file or directory: '../data/virtviewerfiles/tmprR3vzi'

----------------------------------------------------------------------
Ran 0 tests in 1.384s

FAILED (errors=1)
***** Running unit test: test_networkxml...      PASSED - Ran 10 tests in 0.029s
***** Running unit test: test_osinfo...      PASSED - Ran 5 tests in 0.034s
***** Running unit test: test_model_libvirtevents...     PASSED - Ran 1 test in 45.578s
***** Running unit test: test_vmtemplate...      PASSED - Ran 7 tests in 0.020s
***** Running unit test: test_livemigration...   PASSED - Ran 11 tests in 0.001s
***** Running unit test: test_model_storagevolume...     PASSED - Ran 2 tests in 47.949s
***** Running unit test: test_model_storagepool...   PASSED - Ran 1 test in 13.338s
***** Running unit test: test_mock_storagevolume...      FAILED
======================================================================
ERROR: setUpModule (test_mock_storagevolume)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_mock_storagevolume.py", line 45, in setUpModule
    model = MockModel('/tmp/obj-store-test')
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/mockmodel.py", line 140, in __init__
    self._create_virt_viewer_tmp_file()
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/mockmodel.py", line 146, in _create_virt_viewer_tmp_file
    delete=False
  File "/usr/lib64/python2.7/tempfile.py", line 475, in NamedTemporaryFile
    (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
  File "/usr/lib64/python2.7/tempfile.py", line 244, in _mkstemp_inner
    fd = _os.open(file, flags, 0600)
OSError: [Errno 2] No such file or directory: '../data/virtviewerfiles/tmpn05uu9'

----------------------------------------------------------------------
Ran 0 tests in 1.312s

FAILED (errors=1)
***** Running unit test: test_authorization...   FAILED
======================================================================
ERROR: setUpModule (test_authorization)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_authorization.py", line 45, in setUpModule
    model = mockmodel.MockModel('/tmp/obj-store-test')
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/mockmodel.py", line 140, in __init__
    self._create_virt_viewer_tmp_file()
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/mockmodel.py", line 146, in _create_virt_viewer_tmp_file
    delete=False
  File "/usr/lib64/python2.7/tempfile.py", line 475, in NamedTemporaryFile
    (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
  File "/usr/lib64/python2.7/tempfile.py", line 244, in _mkstemp_inner
    fd = _os.open(file, flags, 0600)
OSError: [Errno 2] No such file or directory: '../data/virtviewerfiles/tmpdqg418'

----------------------------------------------------------------------
Ran 0 tests in 1.225s

FAILED (errors=1)
***** Running unit test: test_template...    FAILED
======================================================================
ERROR: setUpModule (test_template)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_template.py", line 50, in setUpModule
    model = MockModel('/tmp/obj-store-test')
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/mockmodel.py", line 140, in __init__
    self._create_virt_viewer_tmp_file()
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/mockmodel.py", line 146, in _create_virt_viewer_tmp_file
    delete=False
  File "/usr/lib64/python2.7/tempfile.py", line 475, in NamedTemporaryFile
    (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
  File "/usr/lib64/python2.7/tempfile.py", line 244, in _mkstemp_inner
    fd = _os.open(file, flags, 0600)
OSError: [Errno 2] No such file or directory: '../data/virtviewerfiles/tmp0rQomF'

----------------------------------------------------------------------
Ran 0 tests in 1.290s

FAILED (errors=1)
***** Running unit test: test_mockmodel...   FAILED
======================================================================
ERROR: setUpModule (test_mockmodel)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_mockmodel.py", line 46, in setUpModule
    model = mockmodel.MockModel('/tmp/obj-store-test')
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/mockmodel.py", line 140, in __init__
    self._create_virt_viewer_tmp_file()
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/mockmodel.py", line 146, in _create_virt_viewer_tmp_file
    delete=False
  File "/usr/lib64/python2.7/tempfile.py", line 475, in NamedTemporaryFile
    (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
  File "/usr/lib64/python2.7/tempfile.py", line 244, in _mkstemp_inner
    fd = _os.open(file, flags, 0600)
OSError: [Errno 2] No such file or directory: '../data/virtviewerfiles/tmpRhZPbi'

----------------------------------------------------------------------
Ran 0 tests in 1.341s

FAILED (errors=1)
***** Running unit test: test_mock_storagepool...    FAILED
======================================================================
ERROR: setUpModule (test_mock_storagepool)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_mock_storagepool.py", line 43, in setUpModule
    model = MockModel('/tmp/obj-store-test')
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/mockmodel.py", line 140, in __init__
    self._create_virt_viewer_tmp_file()
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/mockmodel.py", line 146, in _create_virt_viewer_tmp_file
    delete=False
  File "/usr/lib64/python2.7/tempfile.py", line 475, in NamedTemporaryFile
    (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
  File "/usr/lib64/python2.7/tempfile.py", line 244, in _mkstemp_inner
    fd = _os.open(file, flags, 0600)
OSError: [Errno 2] No such file or directory: '../data/virtviewerfiles/tmpTuVkpq'

----------------------------------------------------------------------
Ran 0 tests in 1.345s

FAILED (errors=1)
***** Running unit test: test_host...    FAILED
======================================================================
ERROR: setUpModule (test_host)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_host.py", line 44, in setUpModule
    model = MockModel(tmpfile)
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/mockmodel.py", line 140, in __init__
    self._create_virt_viewer_tmp_file()
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/mockmodel.py", line 146, in _create_virt_viewer_tmp_file
    delete=False
  File "/usr/lib64/python2.7/tempfile.py", line 475, in NamedTemporaryFile
    (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
  File "/usr/lib64/python2.7/tempfile.py", line 244, in _mkstemp_inner
    fd = _os.open(file, flags, 0600)
OSError: [Errno 2] No such file or directory: '../data/virtviewerfiles/tmpSffGeU'

----------------------------------------------------------------------
Ran 0 tests in 1.228s

FAILED (errors=1)
***** Running unit test: test_config...      PASSED - Ran 3 tests in 0.003s
***** Running unit test: test_mock_network...    FAILED
======================================================================
ERROR: setUpModule (test_mock_network)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_mock_network.py", line 46, in setUpModule
    model = MockModel('/tmp/obj-store-test')
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/mockmodel.py", line 140, in __init__
    self._create_virt_viewer_tmp_file()
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/mockmodel.py", line 146, in _create_virt_viewer_tmp_file
    delete=False
  File "/usr/lib64/python2.7/tempfile.py", line 475, in NamedTemporaryFile
    (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
  File "/usr/lib64/python2.7/tempfile.py", line 244, in _mkstemp_inner
    fd = _os.open(file, flags, 0600)
OSError: [Errno 2] No such file or directory: '../data/virtviewerfiles/tmpQdGmYL'

----------------------------------------------------------------------
Ran 0 tests in 1.208s

FAILED (errors=1)
***** Running unit test: test_model...   FAILED
======================================================================
ERROR: test_image_based_template (test_model.ModelTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_model.py", line 283, in test_image_based_template
    task_id = inst.storagevolumes_create('default', params)['id']
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/model/storagevolumes.py", line 122, in create
    raise InvalidParameter('KCHVOL0001E', {'name': name})
InvalidParameter: KCHVOL0001E: KCHVOL0001E

======================================================================
ERROR: test_vm_virtviewerfile_vmlifecycle (test_model.ModelTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "test_model.py", line 555, in test_vm_virtviewerfile_vmlifecycle
    vvmodel.lookup(vm_name.decode('utf-8'))
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/model/virtviewerfile.py", line 133, in lookup
    file_path = create_virt_viewer_file(name, graphics_info)
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/model/virtviewerfile.py", line 82, in create_virt_viewer_file
    {'name': vm_name, 'err': e.message})
OperationFailed: KCHVM0084E: KCHVM0084E

----------------------------------------------------------------------
Ran 32 tests in 173.420s

FAILED (errors=2, skipped=1)
***** Running unit test: test_storagepoolxml...      PASSED - Ran 1 test in 0.001s
======================================================================
===================== Kimchi Unit Tests Summary ======================
Ran 77 tests in 331.110 seconds.
test_mockmodel FAILED: (errors=1) - full log available at /tmp/tmp.w0kIoGXsaR
test_mock_network FAILED: (errors=1) - full log available at /tmp/tmp.w0kIoGXsaR
test_template FAILED: (errors=1) - full log available at /tmp/tmp.w0kIoGXsaR
test_rest FAILED: (errors=1) - full log available at /tmp/tmp.w0kIoGXsaR
test_mock_storagepool FAILED: (errors=1) - full log available at /tmp/tmp.w0kIoGXsaR
test_authorization FAILED: (errors=1) - full log available at /tmp/tmp.w0kIoGXsaR
test_mock_storagevolume FAILED: (errors=1) - full log available at /tmp/tmp.w0kIoGXsaR
test_model FAILED: (errors=2, skipped=1) - full log available at /tmp/tmp.w0kIoGXsaR
test_host FAILED: (errors=1) - full log available at /tmp/tmp.w0kIoGXsaR
------------------------------------------------------------------------------- 
[pvital@LOL] [Thu Aug 18 10:52:02] 
[~/Projects/tmp/wok_test/src/wok/plugins/kimchi/tests] 
$ 

This is the result of Kimchi test cases with today's HEAD (b73e7ae) and my patch applied:

[pvital@LOL] [Thu Aug 18 10:54:03] 
[~/Projects/tmp/wok_test/src/wok/plugins/kimchi/tests] 
$ sudo ./run_tests.sh 
[sudo] password for pvital: 
***** Running unit test: test_model_network...   PASSED - Ran 4 tests in 17.724s
***** Running unit test: test_rest...    FAILED
======================================================================
FAIL: test_edit_vm (test_rest.HttpsRestTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_rest.py", line 167, in test_edit_vm
    self.assertEquals(200, resp.status)
AssertionError: 200 != 400

======================================================================
FAIL: test_edit_vm (test_rest.RestTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_rest.py", line 167, in test_edit_vm
    self.assertEquals(200, resp.status)
AssertionError: 200 != 400

----------------------------------------------------------------------
Ran 42 tests in 149.826s

FAILED (failures=2)
[18/Aug/2016:10:57:01] ENGINE Waiting for child threads to terminate...
***** Running unit test: test_networkxml...      PASSED - Ran 10 tests in 0.003s
***** Running unit test: test_osinfo...      PASSED - Ran 5 tests in 0.034s
***** Running unit test: test_model_libvirtevents...     PASSED - Ran 1 test in 43.449s
***** Running unit test: test_vmtemplate...      PASSED - Ran 7 tests in 0.014s
***** Running unit test: test_livemigration...   PASSED - Ran 11 tests in 0.001s
***** Running unit test: test_model_storagevolume...     PASSED - Ran 2 tests in 44.196s
***** Running unit test: test_model_storagepool...   PASSED - Ran 1 test in 10.800s
***** Running unit test: test_mock_storagevolume...      PASSED - Ran 1 test in 65.059s
***** Running unit test: test_authorization...   PASSED - Ran 1 test in 12.605s
***** Running unit test: test_template...    PASSED - Ran 5 tests in 22.424s
***** Running unit test: test_mockmodel...   PASSED - Ran 5 tests in 22.761s
***** Running unit test: test_mock_storagepool...    PASSED - Ran 1 test in 11.044s
***** Running unit test: test_host...    PASSED - Ran 3 tests in 5.282s
***** Running unit test: test_config...      PASSED - Ran 3 tests in 0.003s
***** Running unit test: test_mock_network...    PASSED - Ran 1 test in 4.994s
***** Running unit test: test_model...   FAILED
======================================================================
ERROR: test_image_based_template (test_model.ModelTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_model.py", line 283, in test_image_based_template
    task_id = inst.storagevolumes_create('default', params)['id']
  File "/home/pvital/Projects/tmp/wok_test/src/wok/plugins/kimchi/model/storagevolumes.py", line 122, in create
    raise InvalidParameter('KCHVOL0001E', {'name': name})
InvalidParameter: KCHVOL0001E: KCHVOL0001E

----------------------------------------------------------------------
Ran 32 tests in 172.669s

FAILED (errors=1, skipped=1)
***** Running unit test: test_storagepoolxml...      PASSED - Ran 1 test in 0.001s
======================================================================
===================== Kimchi Unit Tests Summary ======================
Ran 136 tests in 582.889 seconds.
test_rest FAILED: (failures=2) - full log available at /tmp/tmp.sEPep95QBX
test_model FAILED: (errors=1, skipped=1) - full log available at /tmp/tmp.sEPep95QBX
------------------------------------------------------------------------------- 
[pvital@LOL] [Thu Aug 18 11:04:29] 
[~/Projects/tmp/wok_test/src/wok/plugins/kimchi/tests] 
$ 

Both were executed in a Fedora 24 (x86_64) in a fresh built environment using Wok, GingerBase and Kimchi today's HEAD.

archu-s commented 8 years ago

After looking into logs, looks like its tring to upgrade objectstore place at ..wok/src/wok/plugins/kimchi/data/objectstore. And this result into error as there is no objectstore. For test isn't it should use /tmp/obj-store-test?

pvital commented 8 years ago

Yeah, generally the test cases are set to use a different objectstore. I'm going to check the logs you sent me in private later and confirm your points.

archu-s commented 8 years ago

I copied the /tmp/obj-store-test to .../kimchi/data/. and test result was as below:

[archana@archanasingh tests]$ sudo ./run_tests.sh [sudo] password for archana: * Running unit test: test_model_storagepool... PASSED - Ran 1 test in 11.000s * Running unit test: test_storagepoolxml... PASSED - Ran 1 test in 0.001s * Running unit test: test_model_storagevolume... PASSED - Ran 2 tests in 37.502s * Running unit test: test_vmtemplate... PASSED - Ran 7 tests in 0.016s ***\ Running unit test: test_livemigration... PASSED - Ran 11 tests in 0.001s

***\ Running unit test: test_rest... FAILED

FAIL: test_edit_vm (test_rest.HttpsRestTests)

Traceback (most recent call last): File "test_rest.py", line 167, in test_edit_vm self.assertEquals(200, resp.status) AssertionError: 200 != 400

FAIL: test_edit_vm (test_rest.RestTests)

Traceback (most recent call last): File "test_rest.py", line 167, in test_edit_vm self.assertEquals(200, resp.status) AssertionError: 200 != 400


Ran 42 tests in 160.957s

FAILED (failures=2) [22/Aug/2016:11:51:22] ENGINE Waiting for child threads to terminate... * Running unit test: test_mock_storagepool... PASSED - Ran 1 test in 12.084s * Running unit test: test_mock_network... PASSED - Ran 1 test in 5.230s * Running unit test: test_mock_storagevolume... PASSED - Ran 1 test in 66.159s * Running unit test: test_osinfo... PASSED - Ran 5 tests in 0.035s ***\ Running unit test: test_authorization... PASSED - Ran 1 test in 12.540s

***\ Running unit test: test_model_libvirtevents... FAILED

ERROR: test_events_vm_lifecycle (test_model_libvirtevents.LibvirtEventsTests)

Traceback (most recent call last): File "test_model_libvirtevents.py", line 153, in test_events_vm_lifecycle task = inst.vms_create(vm_params) File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/model/vms.py", line 129, in create raise InvalidOperation("KCHVM0001E", {'name': name}) InvalidOperation: KCHVM0001E: KCHVM0001E

ERROR: tearDownModule (test_model_libvirtevents)

Traceback (most recent call last): File "test_model_libvirtevents.py", line 57, in tearDownModule os.unlink(TMP_EVENT) OSError: [Errno 2] No such file or directory: '/tmp/tmpxUDLz0'


Ran 1 test in 6.535s

FAILED (errors=2) * Running unit test: test_template... PASSED - Ran 5 tests in 24.543s * Running unit test: test_host... PASSED - Ran 3 tests in 5.644s * Running unit test: test_networkxml... PASSED - Ran 10 tests in 0.002s * Running unit test: test_mockmodel... PASSED - Ran 5 tests in 23.526s ***\ Running unit test: test_config... PASSED - Ran 3 tests in 0.002s

***\ Running unit test: test_model_network... FAILED

FAIL: test_network_lifecycle (test_model_network.NetworkTests)

Traceback (most recent call last): File "test_model_network.py", line 171, in test_network_lifecycle _do_network_test(self, model, net) File "test_model_network.py", line 83, in _do_network_test self.assertEquals(200, resp.status) AssertionError: 200 != 500


Ran 4 tests in 17.158s

FAILED (failures=1) [22/Aug/2016:11:54:22] ENGINE Waiting for child threads to terminate...

***\ Running unit test: test_model... FAILED

ERROR: test_template_creates_user_defined_vol_format_instead_default (test_model.ModelTests)

Traceback (most recent call last): File "test_model.py", line 988, in test_template_creates_user_defined_vol_format_instead_default task = inst.vms_create(params) File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/model/vms.py", line 129, in create raise InvalidOperation("KCHVM0001E", {'name': name}) InvalidOperation: KCHVM0001E: KCHVM0001E

ERROR: test_template_get_default_vol_format_from_conf (test_model.ModelTests)

Traceback (most recent call last): File "test_model.py", line 959, in test_template_get_default_vol_format_from_conf task = inst.vms_create(params) File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/model/vms.py", line 129, in create raise InvalidOperation("KCHVM0001E", {'name': name}) InvalidOperation: KCHVM0001E: KCHVM0001E

ERROR: test_template_uses_qcow2_format_if_no_user_or_default_defined (test_model.ModelTests)

Traceback (most recent call last): File "test_model.py", line 1013, in test_template_uses_qcow2_format_if_no_user_or_default_defined task = inst.vms_create(params) File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/model/vms.py", line 129, in create raise InvalidOperation("KCHVM0001E", {'name': name}) InvalidOperation: KCHVM0001E: KCHVM0001E

ERROR: test_vm_edit (test_model.ModelTests)

Traceback (most recent call last): File "test_model.py", line 1189, in test_vm_edit task1 = inst.vms_create(params_1) File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/model/vms.py", line 129, in create raise InvalidOperation("KCHVM0001E", {'name': name}) InvalidOperation: KCHVM0001E: KCHVM0001E

ERROR: test_vm_ifaces (test_model.ModelTests)

Traceback (most recent call last): File "test_model.py", line 594, in test_vm_ifaces inst.networks_create(net_args) File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/model/networks.py", line 88, in create raise InvalidOperation("KCHNET0001E", {'name': name}) InvalidOperation: KCHNET0001E: KCHNET0001E

ERROR: test_vm_memory_hotplug (test_model.ModelTests)

Traceback (most recent call last): File "test_model.py", line 1033, in test_vm_memory_hotplug task1 = inst.vms_create(params) File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/model/vms.py", line 129, in create raise InvalidOperation("KCHVM0001E", {'name': name}) InvalidOperation: KCHVM0001E: KCHVM0001E

ERROR: test_vm_storage_provisioning (test_model.ModelTests)

Traceback (most recent call last): File "test_model.py", line 900, in test_vm_storage_provisioning task = inst.vms_create(params) File "/home/archana/Documents/f_drive/project/zKVM/Code/wok/src/wok/plugins/kimchi/model/vms.py", line 129, in create raise InvalidOperation("KCHVM0001E", {'name': name}) InvalidOperation: KCHVM0001E: KCHVM0001E


Ran 32 tests in 172.931s

FAILED (errors=7, skipped=1)

===================== Kimchi Unit Tests Summary ====================== Ran 136 tests in 555.866 seconds. test_model_libvirtevents FAILED: (errors=2) - full log available at /tmp/tmp.oPe0LV9f9j test_model_network FAILED: (failures=1) - full log available at /tmp/tmp.oPe0LV9f9j test_rest FAILED: (failures=2) - full log available at /tmp/tmp.oPe0LV9f9j test_model FAILED: (errors=7, skipped=1) - full log available at /tmp/tmp.oPe0LV9f9j