ScatterHQ / flocker

Container data volume manager for your Dockerized application
Apache License 2.0
69 stars 9 forks source link

Flocker tests are failing #8

Open Nayana-ibm opened 7 years ago

Nayana-ibm commented 7 years ago

Hi,

Flocker tests are failing on RHEL7 and Ubuntu 16.04 on Intel x86. Flocker version 1.15.0

I have executed flocker test suite using "tox" command however getting below failures:

Failure: testtools.testresult.real._StringException: Empty attachments

Ran 2770 tests in 1030.296s
FAILED (skips=280, failures=5, successes=2485)
ERROR:   py27: commands failed

Tests failing with above error are:

flocker.control.test.test_persistence.GenerationHashTests.test_consistent_hash
flocker.control.test.test_persistence.LatestGoldenFilesValid.test_can_create_latest_golden
flocker.restapi.testtools.ConfigurationContainersSchemaTests.test_fails_validation_maxItems_0
flocker.restapi.testtools.ConfigurationDatasetsCreateSchemaTests.test_fails_validation_pattern_1
flocker.restapi.testtools.ConfigurationDatasetsSchemaTests.test_fails_validation_pattern_1

Traceback for test flocker.control.test.test_persistence.GenerationHashTests.test_consistent_hash:

[FAIL]
Traceback (most recent call last):
Failure: testtools.testresult.real._StringException: Empty attachments:
  twisted-eliot-log
  twisted-log

Traceback (most recent call last):
  File "/home/flocker/flocker/control/test/test_persistence.py", line 970, in test_consistent_hash
    Equals(TEST_DEPLOYMENT_1_HASH)
  File "/home/flocker/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = '\x87\x13\xcbG`\xd7\xab\x0f0\xd5\xd2x\xe8\x12]\x11'
actual    = '\xcf\x9e\xa0\xe7\x8f\x7f\xa3?\x8c\rH\xfb\x06\xc8\xeay'

I have followed below steps to build flocker:

git clone https://github.com/ClusterHQ/flocker
cd flocker
git checkout 1.15.0
pip install -e .
tox

Also, same result with below steps:

yum install python-devel openssl-devel git libffi-devel python-pip
yum groupinstall "Development tools"
pip install virtualenvwrapper
source /usr/bin/virtualenvwrapper.sh
mkvirtualenv flocker
git clone https://github.com/ClusterHQ/flocker
cd flocker/
pip install --requirement dev-requirements.txt
trial flocker

Tried with git clone https://github.com/ScatterHQ/flocker as well.

Any idea on these failures? are these failures expected?

Note: I had raised this issue here also.

Nayana-ibm commented 7 years ago

Any updates ?