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

Improve logging on failure #51

Open
arnaudsjs opened this issue Jun 6, 2023 · 0 comments
Open

Improve logging on failure #51

arnaudsjs opened this issue Jun 6, 2023 · 0 comments
Labels
process This ticket is about improving the development process or reducing technical depth

Comments

@arnaudsjs
Copy link
Contributor

When the lsm-quickstart jenkins job fails, it reports a timeout on a certain condition. For example, when the export of the service definition fails it gives the following output:

Waiting until the Inmanta server has finished starting...
Creating project env-test
Creating environment dev in project env-test
Exporting service definition
Waiting until the service definition is available in the catalog...
Traceback (most recent call last):
  File "/home/jenkins/workspace/m_issue_use-nokia-srlinux-module/lsm-srlinux/venv/lib64/python3.9/site-packages/inmanta_tests/utils.py", line 65, in retry_limited
    await util.retry_limited(fun, timeout, interval, *args, **kwargs)
  File "/home/jenkins/workspace/m_issue_use-nokia-srlinux-module/lsm-srlinux/venv/lib64/python3.9/site-packages/inmanta/util.py", line 515, in retry_limited
    raise asyncio.TimeoutError(f"Wait condition was not reached after hard limit of {hard_timeout} seconds")
asyncio.exceptions.TimeoutError: Wait condition was not reached after hard limit of 600 seconds

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/jenkins/workspace/m_issue_use-nokia-srlinux-module/lsm-srlinux/ci/do_test_deployment_and_verify.py", line 82, in <module>
    asyncio.get_event_loop().run_until_complete(main())
  File "/usr/lib64/python3.9/asyncio/base_events.py", line 647, in run_until_complete
    return future.result()
  File "/home/jenkins/workspace/m_issue_use-nokia-srlinux-module/lsm-srlinux/ci/do_test_deployment_and_verify.py", line 50, in main
    await retry_limited(is_service_definition_available, timeout=600, interval=1)
  File "/home/jenkins/workspace/m_issue_use-nokia-srlinux-module/lsm-srlinux/venv/lib64/python3.9/site-packages/inmanta_tests/utils.py", line 67, in retry_limited
    raise AssertionError("Bounded wait failed")
AssertionError: Bounded wait failed

This makes it hard to figure out what the problem is. This ticket should improve the error logging in general.

@arnaudsjs arnaudsjs added the process This ticket is about improving the development process or reducing technical depth label Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
process This ticket is about improving the development process or reducing technical depth
Projects
None yet
Development

No branches or pull requests

1 participant