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): retry failed target connections #1593

Merged

Conversation

andrewazores
Copy link
Member

@andrewazores andrewazores commented Jul 25, 2023

Welcome to Cryostat! 👋

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 #1577

@mergify mergify bot added the safe-to-test label Jul 25, 2023
@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1593-04630aae03efb5a2e4fade8d238bc44ff83574b8-linux-arm64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1593-04630aae03efb5a2e4fade8d238bc44ff83574b8-linux-amd64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1593-d84d94d6252935b2ecd8f1d5dd2dfa5efbd09e53-linux-amd64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1593-d84d94d6252935b2ecd8f1d5dd2dfa5efbd09e53-linux-arm64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1593-cbc4e90e2c745330a97cd9d278c001bfd3952ffa-linux-arm64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1593-cbc4e90e2c745330a97cd9d278c001bfd3952ffa-linux-amd64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1593-e95b7f54e425dabe48e291bae221ed154a5dec90-linux-amd64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1593-e95b7f54e425dabe48e291bae221ed154a5dec90-linux-arm64 sh smoketest.sh

@andrewazores andrewazores marked this pull request as ready for review July 26, 2023 12:37
@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1593-e95b7f54e425dabe48e291bae221ed154a5dec90-linux-arm64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1593-e95b7f54e425dabe48e291bae221ed154a5dec90-linux-amd64 sh smoketest.sh

smoketest.sh Outdated Show resolved Hide resolved
Copy link
Member

@tthvo tthvo 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 to me!!

I tested with a sample vertx deployment: https://gist.github.com/tthvo/d8a2b727953b1c47b6b7095de658496b. The target appears in discovery tree (i.e topology) but shows warning. Then sometime later, I can see the target is updated with a valid JVM ID.

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1593-2fd8d2ec5a660d0a01c839d5742cd38a8512eed1-linux-amd64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1593-2fd8d2ec5a660d0a01c839d5742cd38a8512eed1-linux-arm64 sh smoketest.sh

1 similar comment
@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1593-2fd8d2ec5a660d0a01c839d5742cd38a8512eed1-linux-arm64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1593-2fd8d2ec5a660d0a01c839d5742cd38a8512eed1-linux-amd64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1593-2fd8d2ec5a660d0a01c839d5742cd38a8512eed1-linux-arm64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1593-2fd8d2ec5a660d0a01c839d5742cd38a8512eed1-linux-amd64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1593-282bfa9399c5968b92b36c1ec2271c8cacdbb220-linux-arm64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1593-282bfa9399c5968b92b36c1ec2271c8cacdbb220-linux-amd64 sh smoketest.sh

@andrewazores andrewazores merged commit bf86535 into cryostatio:main Jul 27, 2023
19 checks passed
@andrewazores andrewazores deleted the retry-discovered-target-jmx branch July 27, 2023 19:18
mergify bot pushed a commit that referenced this pull request Jul 27, 2023
(cherry picked from commit bf86535)

# Conflicts:
#	compose/compose-cryostat.yaml
#	compose/compose-vertx-jmx.yaml
#	smoketest-docker.sh
#	smoketest.sh
andrewazores added a commit that referenced this pull request Jul 27, 2023
* fix(discovery): retry failed target connections (#1593)

(cherry picked from commit bf86535)

# Conflicts:
#	compose/compose-cryostat.yaml
#	compose/compose-vertx-jmx.yaml
#	smoketest-docker.sh
#	smoketest.sh

* cherrypick fixup

* remove cherry-pick added unneeded files

* fix podman discovery labels for older version

---------

Co-authored-by: Andrew Azores <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Status: Done
Development

Successfully merging this pull request may close these issues.

[Bug] JVM target discovery failure when pod restarts
2 participants