Brief Description
-----------------
We’re hitting a build failure in python-keystoneclient in test code:
https://opendev.org/openstack/python-keystoneclient/src/branch/stable/stein/keystoneclient/tests/unit/v3/test_auth.py#L31
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:
https://opendev.org/starlingx/upstream/src/branch/master/openstack/python-keystoneclient/centos/python-keystoneclient.spec#L217
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.
Severity
--------
Critical
Branch/Pull Time/Commit
-----------------------
master, as of Jan 1, 2020
Last Pass
---------
Dec 31, 2019 build successful
Reviewed: https:/ /review. opendev. org/700852 /git.openstack. org/cgit/ starlingx/ upstream/ commit/ ?id=8c7def7074b e1a51fc9e01dcda fd8c99cb9115dd
Committed: https:/
Submitter: Zuul
Branch: master
commit 8c7def7074be1a5 1fc9e01dcdafd8c 99cb9115dd
Author: Don Penney <email address hidden>
Date: Wed Jan 1 18:38:19 2020 -0500
Skip UT in python- keystoneclient build
The python- keystoneclient unit test code uses a token expiry of Jan 1,
2020, which causes a failure as of that date. Skip running the tests
as part of the build to avoid this issue.
Change-Id: I85e780c6f40beb 19d1527282f30b3 8879ccfc512
Closes-Bug: 1858049
Signed-off-by: Don Penney <email address hidden>