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

fix(discovery): check container discovery domain socket readability before start #251

Merged

Conversation

andrewazores
Copy link
Member

@andrewazores andrewazores commented Jan 22, 2024

Welcome to Cryostat3! 👋

Before contributing, make sure you have:

  • Read the contributing guidelines
  • Linked a relevant issue which this PR resolves
  • Linked any other relevant issues, PR's, or documentation, if any
  • Resolved all conflicts, if any
  • Rebased your branch PR on top of the latest upstream main branch
  • Attached at least one of the following labels to the PR: [chore, ci, docs, feat, fix, test]
  • Signed all commits using a GPG signature

To recreate commits with GPG signature git fetch upstream && git rebase --force --gpg-sign upstream/main


Fixes: #250

How to manually test:

  1. ./mvnw clean verify ; podman image prune -f
  2. ./smoketest.bash -O and look for messages like ERROR: io.cryostat.discovery.DockerDiscovery_Subclass enabled but socket /var/run/docker.sock is not accessible! shortly after startup. The repeated log messages like in [Bug] Built-in container discovery mechanisms repeatedly print messages when enabled but domain socket is not available #250 should no longer appear. May be easier via podman logs compose_cryostat_1 rather than the interleaved smoketest logs from all services.
Jan 22, 2024 3:37:08 PM io.cryostat.discovery.ContainerDiscovery onStart
ERROR: io.cryostat.discovery.DockerDiscovery_Subclass enabled but socket /var/run/docker.sock is not accessible!
Jan 22, 2024 3:37:08 PM io.cryostat.discovery.ContainerDiscovery onStart
INFO: io.cryostat.discovery.PodmanDiscovery_Subclass started

@andrewazores
Copy link
Member Author

/build_test

Copy link

Workflow started at 1/22/2024, 11:07:38 AM. View Actions Run.

Copy link

CI build and push: All tests pass ✅
https://github.com/cryostatio/cryostat3/actions/runs/7613994534

1 similar comment
Copy link

CI build and push: All tests pass ✅
https://github.com/cryostatio/cryostat3/actions/runs/7613994534

aali309
aali309 previously approved these changes Jan 22, 2024
Copy link
Contributor

@aali309 aali309 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@andrewazores
Copy link
Member Author

Had a minor conflict in cryostat.yml, fixed on the rebase.

@andrewazores
Copy link
Member Author

/build_test

Copy link

Workflow started at 1/22/2024, 3:04:16 PM. View Actions Run.

Copy link

CI build and push: All tests pass ✅
https://github.com/cryostatio/cryostat3/actions/runs/7616703241

1 similar comment
Copy link

CI build and push: All tests pass ✅
https://github.com/cryostatio/cryostat3/actions/runs/7616703241

@andrewazores andrewazores merged commit 29e7abe into cryostatio:main Jan 22, 2024
8 checks passed
@andrewazores andrewazores deleted the container-discovery-warning branch January 22, 2024 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants