Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The urls for ephemeral environments have changed. #2075

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

jctanner
Copy link
Collaborator

@jctanner jctanner commented Feb 20, 2024

The ephemeral URL structure has changed, which then causes the is_ephemeral function in tests/integration/iqe_utils.py to return False and then cause the the rest of the code to assume it could do a token grant which then obviously blew up because ephemeral keycloak can only do password grants.

17:12:18 Running pytest ...
17:12:18 + echo 'Running pytest ...'
17:12:18 + /tmp/gvenv/bin/pytest --capture=no -m 'deployment_cloud or all' -v galaxy_ng/tests/integration
17:12:18 /tmp/gvenv/lib64/python3.10/site-packages/urllib3/connectionpool.py:1103: InsecureRequestWarning: Unverified HTTPS request is being made to host 'ee-0olmrio4-auth.apps.crc-eph.r9lp.p1.openshiftapps.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
17:12:18   warnings.warn(
17:12:18 INTERNALERROR> Traceback (most recent call last):
17:12:18 INTERNALERROR>   File "/tmp/gvenv/lib64/python3.10/site-packages/_pytest/main.py", line 271, in wrap_session
17:12:18 INTERNALERROR>     config.hook.pytest_sessionstart(session=session)
17:12:18 INTERNALERROR>   File "/tmp/gvenv/lib64/python3.10/site-packages/pluggy/_hooks.py", line 501, in __call__
17:12:18 INTERNALERROR>     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
17:12:18 INTERNALERROR>   File "/tmp/gvenv/lib64/python3.10/site-packages/pluggy/_manager.py", line 119, in _hookexec
17:12:18 INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
17:12:18 INTERNALERROR>   File "/tmp/gvenv/lib64/python3.10/site-packages/pluggy/_callers.py", line 138, in _multicall
17:12:18 INTERNALERROR>     raise exception.with_traceback(exception.__traceback__)
17:12:18 INTERNALERROR>   File "/tmp/gvenv/lib64/python3.10/site-packages/pluggy/_callers.py", line 121, in _multicall
17:12:18 INTERNALERROR>     teardown.throw(exception)  # type: ignore[union-attr]
17:12:18 INTERNALERROR>   File "/tmp/gvenv/lib64/python3.10/site-packages/_pytest/logging.py", line 775, in pytest_sessionstart
17:12:18 INTERNALERROR>     return (yield)
17:12:18 INTERNALERROR>   File "/tmp/gvenv/lib64/python3.10/site-packages/pluggy/_callers.py", line 102, in _multicall
17:12:18 INTERNALERROR>     res = hook_impl.function(*args)
17:12:18 INTERNALERROR>   File "/app/galaxy_ng/tests/integration/conftest.py", line 301, in pytest_sessionstart
17:12:18 INTERNALERROR>     hub_version = get_hub_version(ansible_config)
17:12:18 INTERNALERROR>   File "/app/galaxy_ng/tests/integration/utils/iqe_utils.py", line 649, in get_hub_version
17:12:18 INTERNALERROR>     gc = GalaxyKitClient(ansible_config).gen_authorized_client(role)
17:12:18 INTERNALERROR>   File "/app/galaxy_ng/tests/integration/utils/iqe_utils.py", line 176, in gen_authorized_client
17:12:18 INTERNALERROR>     g_client = GalaxyClient(
17:12:18 INTERNALERROR>   File "/tmp/gvenv/lib64/python3.10/site-packages/galaxykit/client.py", line 129, in __init__
17:12:18 INTERNALERROR>     self._refresh_jwt_token()
17:12:18 INTERNALERROR>   File "/tmp/gvenv/lib64/python3.10/site-packages/galaxykit/client.py", line 186, in _refresh_jwt_token
17:12:18 INTERNALERROR>     json = self._http(
17:12:18 INTERNALERROR>   File "/tmp/gvenv/lib64/python3.10/site-packages/galaxykit/client.py", line 240, in _http
17:12:18 INTERNALERROR>     raise GalaxyClientError(resp, resp.status_code)
17:12:18 INTERNALERROR> galaxykit.utils.GalaxyClientError: 400

@jctanner
Copy link
Collaborator Author

Ephemeral tests have passed, just taking a long time to update the github status ...

20:04:26 === 71 passed, 6 skipped, 363 deselected, 383 warnings in 1514.26s (0:25:14) ===
20:04:26 + RC=0
20:04:26 + exit 0
20:04:27 + RC=0
20:04:27 + exit 0
20:04:27 /var/lib/jenkins/workspace/ansible-galaxy_ng-pr-check/.bonfire/bin/oc_wrapper
20:04:27 ------------------------
20:04:27 ----- TEARING DOWN -----
20:04:27 ------------------------
20:04:27 Tear down operation triggered by signal: EXIT
20:04:27 Running teardown for ns: ephemeral-5b8jbh
20:04:27 No errors or failures detected on JUnit reports, skipping K8s artifacts collection
20:04:27 Releasing namespace reservation
20:04:28 2024-02-20 20:04:28 [    INFO] [          MainThread] processing namespace reservation
20:04:28 2024-02-20 20:04:28 [    INFO] [          MainThread] running (pid 29964): oc apply -f - 
20:04:28 2024-02-20 20:04:28 [    INFO] [           pid-29964]  |stdout| namespacereservation.cloud.redhat.com/bonfire-reservation-23cb3759 configured
20:04:28 2024-02-20 20:04:28 [    INFO] [          MainThread] releasing reservation 'bonfire-reservation-23cb3759' namespace 'ephemeral-5b8jbh'
20:04:28 [ansible-galaxy_ng-pr-check] $ /bin/sh -xe /tmp/jenkins10588475275733691775.sh
20:04:28 + '[' -z '' ']'
20:04:28 + exit
20:04:28 Recording test results
20:04:28 [Checks API] No suitable checks publisher found.
20:04:28 Archiving artifacts
20:04:28 Setting status of 3f2941b1d751d396c95030950071d1b7391e4d54 to SUCCESS with url https://ci.int.devshift.net/job/ansible-galaxy_ng-pr-check/3681/ and message: 'Build finished. '
20:04:28 Using context: ci.int.devshift.net PR build
20:04:29 [Slack Notifications] found #3680 as previous completed, non-aborted build
20:04:29 Finished: SUCCESS

@jctanner jctanner merged commit 2af6f22 into ansible:master Feb 20, 2024
18 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants