2 Errors in vdsm storage tests

Nir Soffer nsoffer at redhat.com
Thu Jun 5 21:31:16 UTC 2014


Hi all,

I found that vdsm storage tests failed [1], and checked console output. Turns out that
the storage tests were fine, but the test infrastructure is broken:

21:59:17 StorageTest
21:59:17     testCreatePoolErrors                                        OK
21:59:23     testStorage(backendType='localfs', domVersion='0')          OK
22:00:40     testStorage(backendType='localfs', domVersion='3')          OK
22:00:50 
...
22:00:52 [vdsm_master_storage_functional_tests_localfs_gerrit] $ /bin/sh -xe /tmp/hudson2560576493759199190.sh
22:00:52 + sudo cp /var/log/vdsm/vdsm.log
22:00:52 cp: missing destination file operand after '/var/log/vdsm/vdsm.log'
22:00:52 Try 'cp --help' for more information.
22:00:54 POST BUILD TASK : FAILURE
22:00:54 END OF POST BUILD TASK : 0
22:00:54 Archiving artifacts
22:00:55 ERROR: No artifacts found that match the file pattern "*vdsm.log". Configuration error?
22:00:55 ERROR: ?*vdsm.log? doesn?t match anything
22:00:55 Build step 'Archive the artifacts' changed build result to FAILURE
22:00:55 Recording test results
22:00:56 Build step 'Groovy Postbuild' marked build as failure
22:00:57 Finished: FAILURE

This bogus failure showed on gerrit as:

http://jenkins.ovirt.org/job/vdsm_master_storage_functional_tests_localfs_gerrit/1100/ : FAILURE

There are 3 errors here:

1. cp command is missing an argument
   I fixed this in the job configuration

2. Error in artifacts archiving - probably because the previous step in the script failed,
   but nobody checks for error codes.
   Maybe the script should run with "set -e" ?

3. Error in the tests environment should result in "ERROR" output on gerrit, not "FAILURE".

Hopefully someone can fix these errors.

[1] http://jenkins.ovirt.org/job/vdsm_master_storage_functional_tests_localfs_gerrit/1100/

Thanks,
Nir



More information about the Infra mailing list