ClusterLabs/pcs

pcs_test.tier0 failed

Jazyy opened this issue · 2 comments

base env: python3.7.9 pcs-0.10.17
Problem:
when I execute the cmd rpmbuild -ba pcs.spec to make src rpm , error occuried, error msg as follow:

+ /usr/bin/python3 pcs_test/suite --tier0 -v --vanilla --all-but pcs_test.tier0.daemon.app.test_app_remote.SyncConfigMutualExclusive.test_get_not_locked pcs_test.tier0.daemon.app.test_app_remote.SyncConfigMutualExclusive.test_post_not_locked
Preparing tier1 fixtures...
Tier1 fixtures prepared in 0.000s
pcs_test (unittest.loader._FailedTest) ... ERROR
test_deal_with_explicit_address (pcs_test.tier0.cli.cluster.test_command.ParseNodeAddRemote) ... ok
test_deal_with_implicit_address (pcs_test.tier0.cli.cluster.test_command.ParseNodeAddRemote) ... ok
pcs_test (unittest.loader._FailedTest) ... ERROR
pcs_test (unittest.loader._FailedTest) ... ERROR
pcs_test (unittest.loader._FailedTest) ... ERROR


test_parsable (pcs_test.tier0.test_capabilities.TestCapabilities) ... ok
pcs_test (unittest.loader._FailedTest) ... ERROR

======================================================================
ERROR: pcs_test (unittest.loader._FailedTest)
----------------------------------------------------------------------
AttributeError: type object '_FailedTest' has no attribute 'pcs_test'

======================================================================
ERROR: pcs_test (unittest.loader._FailedTest)
----------------------------------------------------------------------
AttributeError: type object '_FailedTest' has no attribute 'pcs_test'

======================================================================
ERROR: pcs_test (unittest.loader._FailedTest)
----------------------------------------------------------------------
AttributeError: type object '_FailedTest' has no attribute 'pcs_test'

======================================================================
ERROR: pcs_test (unittest.loader._FailedTest)
----------------------------------------------------------------------
AttributeError: type object '_FailedTest' has no attribute 'pcs_test'

======================================================================
ERROR: pcs_test (unittest.loader._FailedTest)
----------------------------------------------------------------------
AttributeError: type object '_FailedTest' has no attribute 'pcs_test'

======================================================================
ERROR: pcs_test (unittest.loader._FailedTest)
----------------------------------------------------------------------
AttributeError: type object '_FailedTest' has no attribute 'pcs_test'

======================================================================
ERROR: pcs_test (unittest.loader._FailedTest)
----------------------------------------------------------------------
AttributeError: type object '_FailedTest' has no attribute 'pcs_test'

======================================================================
ERROR: pcs_test (unittest.loader._FailedTest)
----------------------------------------------------------------------
AttributeError: type object '_FailedTest' has no attribute 'pcs_test'

ERROR: pcs_test (unittest.loader._FailedTest)
----------------------------------------------------------------------
AttributeError: type object '_FailedTest' has no attribute 'pcs_test'

======================================================================
ERROR: pcs_test (unittest.loader._FailedTest)
----------------------------------------------------------------------
AttributeError: type object '_FailedTest' has no attribute 'pcs_test'

======================================================================
ERROR: pcs_test (unittest.loader._FailedTest)
----------------------------------------------------------------------
AttributeError: type object '_FailedTest' has no attribute 'pcs_test'

----------------------------------------------------------------------
Ran 562 tests in 5.327s

FAILED (errors=183)

Is this error due to that the minimum python version was unsatisfied? What are the minimum python and ruby version requirements for pcs-0.10.17?

Hi @Jazyy,
minimal python version for pcs-0.10.17 is 3.6 and minimal ruby version is 2.2. You are ok with your python version of 3.7.9.
Please see pcs-0.10#dependencies for more details.

These errors are there because of some missing python dependencies. It looks like an issue in your custom spec file.

Thank you for your help. This is indeed due to the dataclasses dependency issue in Python 3.7 version. I solved this problem by removing the dataclasses dependency.