Comment 0 for bug 1503969

Revision history for this message
Valeriy Ponomaryov (vponomaryov) wrote : Unit test manila.tests.share.test_api.ShareAPITestCase.test_extend_quota_error is broken

Manila unit test "manila.tests.share.test_api.ShareAPITestCase.test_extend_quota_error" is broken. See CI error logs [1]:

2015-10-08 02:45:02.888 | Traceback (most recent call last):
2015-10-08 02:45:02.888 | File "manila/tests/share/test_api.py", line 1526, in test_extend_quota_error
2015-10-08 02:45:02.888 | self.api.extend, self.context, share, new_size)
2015-10-08 02:45:02.888 | File "/home/jenkins/workspace/gate-manila-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 422, in assertRaises
2015-10-08 02:45:02.888 | self.assertThat(our_callable, matcher)
2015-10-08 02:45:02.888 | File "/home/jenkins/workspace/gate-manila-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 433, in assertThat
2015-10-08 02:45:02.888 | mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
2015-10-08 02:45:02.889 | File "/home/jenkins/workspace/gate-manila-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 483, in _matchHelper
2015-10-08 02:45:02.889 | mismatch = matcher.match(matchee)
2015-10-08 02:45:02.889 | File "/home/jenkins/workspace/gate-manila-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
2015-10-08 02:45:02.889 | mismatch = self.exception_matcher.match(exc_info)
2015-10-08 02:45:02.889 | File "/home/jenkins/workspace/gate-manila-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
2015-10-08 02:45:02.889 | mismatch = matcher.match(matchee)
2015-10-08 02:45:02.889 | File "/home/jenkins/workspace/gate-manila-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 414, in match
2015-10-08 02:45:12.448 | reraise(*matchee)
2015-10-08 02:45:12.448 | File "/home/jenkins/workspace/gate-manila-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
2015-10-08 02:45:12.449 | result = matchee()
2015-10-08 02:45:12.449 | File "/home/jenkins/workspace/gate-manila-python27/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 969, in __call__
2015-10-08 02:45:12.449 | return self._callable_object(*self._args, **self._kwargs)
2015-10-08 02:45:12.449 | File "manila/share/api.py", line 975, in extend
2015-10-08 02:45:12.449 | 'd_quota': quotas['gigabytes']})
2015-10-08 02:45:12.449 | File "/usr/lib/python2.7/logging/__init__.py", line 1449, in error
2015-10-08 02:45:12.449 | self.logger.error(msg, *args, **kwargs)
2015-10-08 02:45:12.449 | File "/usr/lib/python2.7/logging/__init__.py", line 1178, in error
2015-10-08 02:45:12.449 | self._log(ERROR, msg, args, **kwargs)
2015-10-08 02:45:12.449 | File "/usr/lib/python2.7/logging/__init__.py", line 1271, in _log
2015-10-08 02:45:12.449 | self.handle(record)
2015-10-08 02:45:12.450 | File "/usr/lib/python2.7/logging/__init__.py", line 1281, in handle
2015-10-08 02:45:12.450 | self.callHandlers(record)
2015-10-08 02:45:12.450 | File "/usr/lib/python2.7/logging/__init__.py", line 1321, in callHandlers
2015-10-08 02:45:12.450 | hdlr.handle(record)
2015-10-08 02:45:12.450 | File "/usr/lib/python2.7/logging/__init__.py", line 749, in handle
2015-10-08 02:45:12.450 | self.emit(record)
2015-10-08 02:45:12.450 | File "/usr/lib/python2.7/logging/__init__.py", line 879, in emit
2015-10-08 02:45:12.450 | self.handleError(record)
2015-10-08 02:45:12.450 | File "/home/jenkins/workspace/gate-manila-python27/.tox/py27/local/lib/python2.7/site-packages/fixtures/_fixtures/logger.py", line 69, in handleError
2015-10-08 02:45:12.450 | six.reraise(*sys.exc_info())
2015-10-08 02:45:12.450 | File "/usr/lib/python2.7/logging/__init__.py", line 851, in emit
2015-10-08 02:45:12.451 | msg = self.format(record)
2015-10-08 02:45:12.451 | File "/usr/lib/python2.7/logging/__init__.py", line 724, in format
2015-10-08 02:45:12.451 | return fmt.format(record)
2015-10-08 02:45:12.451 | File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
2015-10-08 02:45:12.451 | record.message = record.getMessage()
2015-10-08 02:45:12.451 | File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
2015-10-08 02:45:12.451 | msg = msg % self.args
2015-10-08 02:45:12.451 | TypeError: %d format: a number is required, not str

[1] http://logs.openstack.org/47/222447/6/check/gate-manila-python27/0037638/console.html#_2015-10-08_02_45_02_887