I’ve created a review in starlingx/upstream to skip running the unit tests during the build:
https://review.opendev.org/700852
From: Penney, Don [mailto:Don.Penney@windriver.com]
Sent: Wednesday, January 01, 2020 4:42 PM
To: 'starlingx-discuss@lists.starlingx.io' (starlingx-discuss@lists.starlingx.io)
Subject: [Starlingx-discuss] Build failure in python-keystoneclient
Hi folks,
We’re hitting a build failure in python-keystoneclient in test code:
The test token expiry is set to "2020-01-01T00:00:10.000123Z", and the test then fails.
As a workaround, we could just comment out the %check in the spec, which runs the unit tests:
That would probably allow the builds to succeed.
Here are the errors seen in python-keystoneclient:
{15} keystoneclient.tests.unit.v2_0.test_auth.AuthenticateAgainstKeystoneTests.test_authenticate_success_token_unscoped [0.009347s] ... FAILED
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/builddir/build/BUILD/python-keystoneclient-3.19.0/keystoneclient/tests/unit/v2_0/test_auth.py", line 226, in test_authenticate_success_token_unscoped
self.assertRequestBodyIs(json=self.TEST_REQUEST_BODY)
File "/builddir/build/BUILD/python-keystoneclient-3.19.0/keystoneclient/tests/unit/utils.py", line 72, in assertRequestBodyIs
self.assertEqual(json, val)
File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 350, in assertEqual
self.assertThat(observed, matcher, message)
File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = {'auth': {'token': {'id': '7497a5a479a041178c8988e973ea24f5'}}}
actual = {u'auth': {u'tenantId': u'83f086cee02d4234a909590e68ca00da',
u'token': {u'id': u'7497a5a479a041178c8988e973ea24f5'}}}
Captured pythonlogging:
~~~~~~~~~~~~~~~~~~~~~~~
Making authentication request to http://127.0.0.1:5000/v2.0/tokens
Failed to find endpoint for management url The service catalog is empty.
Making authentication request to http://127.0.0.1:5000/v2.0/tokens
Failed to find endpoint for management url The service catalog is empty.
{3} keystoneclient.tests.unit.v3.test_auth.AuthenticateAgainstKeystoneTests.test_authenticate_success_token_unscoped [0.011026s] ... FAILED
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/builddir/build/BUILD/python-keystoneclient-3.19.0/keystoneclient/tests/unit/v3/test_auth.py", line 329, in test_authenticate_success_token_unscoped
self.assertRequestBodyIs(json=self.TEST_REQUEST_BODY)
File "/builddir/build/BUILD/python-keystoneclient-3.19.0/keystoneclient/tests/unit/utils.py", line 72, in assertRequestBodyIs
self.assertEqual(json, val)
File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 350, in assertEqual
self.assertThat(observed, matcher, message)
File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = {'auth': {'identity': {'methods': ['token'],
'token': {'id': '960c83d28fa14046a3a1c8967ae19da2'}}}}
actual = {u'auth': {u'identity': {u'methods': [u'token'],
u'token': {u'id': u'960c83d28fa14046a3a1c8967ae19da2'}},
u'scope': {u'project': {u'id': u'f110ab7629924d18b0466aacbd6a148f'}}}}
Captured pythonlogging:
~~~~~~~~~~~~~~~~~~~~~~~
Making authentication request to http://127.0.0.1:5000/v3/auth/tokens
{"token": {"project": {"domain": {"id": "02c36756715a499cbed4a4807fbd5dca", "name": "93439078538f4d06aea85038a0124fbd"}, "id": "f110ab7629924d18b0466aacbd6a148f", "name": "4a827c43830e4247b8bc968d3082ff6a"}, "issued_at": "2013-05-29T16:55:21.468960Z",
"methods": ["token", "password"], "expires_at": "2020-01-01T00:00:10.000123Z", "user": {"domain": {"id": "02c36756715a499cbed4a4807fbd5dca", "name": "93439078538f4d06aea85038a0124fbd"}, "id": "5c57c4d19e4942918293e8617abe2912", "name": "5c57c4d19e4942918293e8617abe2912"}}}
Failed to find endpoint for management url The service catalog is empty.
Making authentication request to http://127.0.0.1:5000/v3/auth/tokens
{"token": {"project": {"domain": {"id": "02c36756715a499cbed4a4807fbd5dca", "name": "93439078538f4d06aea85038a0124fbd"}, "id": "f110ab7629924d18b0466aacbd6a148f", "name": "4a827c43830e4247b8bc968d3082ff6a"}, "issued_at": "2013-05-29T16:55:21.468960Z",
"methods": ["token", "password"], "expires_at": "2020-01-01T00:00:10.000123Z", "user": {"domain": {"id": "02c36756715a499cbed4a4807fbd5dca", "name": "93439078538f4d06aea85038a0124fbd"}, "id": "5c57c4d19e4942918293e8617abe2912", "name": "5c57c4d19e4942918293e8617abe2912"}}}
Failed to find endpoint for management url The service catalog is empty.
Don Penney, Developer,
Wind River