[CentOS-devel] [Cloud SIG]Build noarch pkgs fail

Thu Jun 30 03:58:42 UTC 2016
Hao Ran HR Hu <huhaoran at cn.ibm.com>

Hello,

I tried to rebuild the some noarch pkgs from Openstack Mitaka repo, but
some of them got issues in both x86 and ppc64le platform.

For example, for python-oslo-config(
http://vault.centos.org/7.2.1511/cloud/Source/openstack-mitaka/python-oslo-config-3.9.0-1.el7.src.rpm
)
When the build process went to check, Some unit tests were failed.

For my point of view, the source code in srpm need some update or my build
environment may have some issues. Did any buddy face the same situation
before?

some log from build:
running test
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 $
{PYTHON:-python} -m subunit.run discover -t ./ . --list
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 $
{PYTHON:-python} -m subunit.run discover -t ./ .
--load-list /tmp/tmpFiPlSa
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 $
{PYTHON:-python} -m subunit.run discover -t ./ .
--load-list /tmp/tmpbdPzKX
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 $
{PYTHON:-python} -m subunit.run discover -t ./ .
--load-list /tmp/tmpz2uYD0
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 $
{PYTHON:-python} -m subunit.run discover -t ./ .
--load-list /tmp/tmpCc_Hq1
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 $
{PYTHON:-python} -m subunit.run discover -t ./ .
--load-list /tmp/tmp7EWf0P
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 $
{PYTHON:-python} -m subunit.run discover -t ./ .
--load-list /tmp/tmpwRRCEI
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 $
{PYTHON:-python} -m subunit.run discover -t ./ .
--load-list /tmp/tmpPO60Tc
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 $
{PYTHON:-python} -m subunit.run discover -t ./ .
--load-list /tmp/tmpq5UuZk
======================================================================
FAIL:
oslo_config.tests.test_cfg.SadPathTestCase.test_conf_file_permission_denied
tags: worker-0
----------------------------------------------------------------------
Empty attachments:
  stderr
  stdout

Traceback (most recent call last):
  File "oslo_config/tests/test_cfg.py", line 3120, in
test_conf_file_permission_denied
    self.conf, ['--config-file', path])
  File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 422,
in assertRaises
    self.assertThat(our_callable, matcher)
  File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 435,
in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError:
<oslo_config.tests.test_cfg.TestConfigOpts object at 0x24e3750> returned
None
======================================================================
FAIL:
oslo_config.tests.test_generator.IgnoreDoublesTestCase.test_list_ignores_doubles
tags: worker-3
----------------------------------------------------------------------
Empty attachments:
  stderr
  stdout

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1305, in
patched
    return func(*args, **keywargs)
  File "oslo_config/tests/test_generator.py", line 857, in
test_list_ignores_doubles
    for _, listing in generator._list_opts(None):
  File "oslo_config/generator.py", line 336, in _list_opts
    _update_defaults(namespaces)
  File "oslo_config/generator.py", line 320, in _update_defaults
    for update in _get_opt_default_updaters(namespaces):
  File "oslo_config/generator.py", line 314, in _get_opt_default_updaters
    invoke_on_load=False)
  File "/usr/lib/python2.7/site-packages/stevedore/named.py", line 55, in
__init__
    verify_requirements)
  File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 171,
in _load_plugins
    self._on_load_failure_callback(self, ep, err)
  File "/usr/lib/python2.7/site-packages/stevedore/extension.py", line 163,
in _load_plugins
    verify_requirements,
  File "/usr/lib/python2.7/site-packages/stevedore/named.py", line 119, in
_load_one_plugin
    if ep.name not in self._names:
TypeError: argument of type 'NoneType' is not iterable
Ran 769 tests in 0.548s
FAILED (id=0, failures=2)
error: testr failed (1)
error: Bad exit status from /var/tmp/rpm-tmp.44whJa (%check)



Thanks & Regards,

Hu Haoran (Vern)
-------------------------------------------------------------------------
IBM China Systems & Technology Lab
huhaoran at cn.ibm.com
86-21-60928179
"Let us use our own hardworking and determination to decide our destiny!"
- Jose Mourinho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20160630/238b6419/attachment-0007.html>