jmc icon indicating copy to clipboard operation
jmc copied to clipboard

8237: Add support for Jolokia over Kubernetes proxy

Open skarsaune opened this issue 1 year ago • 3 comments

JMC-8273 : Use the jolokia protocol over a kubernetes http proxy.

Testing connectivity:

  • [x] Docker desktop kubernetes
  • [x] Azure AKS
  • [ ] Amazon EKS
  • [ ] Google GKE

Other things observed:

  • [ ] * Option to install agent should be disabled (debug difference with jolokia)
  • [ ] * Warning: NLS missing message: JmcKubernetesPreferenceForm_LogErrorsTooltip in: org.openjdk.jmc.kubernetes.preferences.messages
  • [ ] * SLF4J(W): No SLF4J providers were found. SLF4J(W): Defaulting to no-operation (NOP) logger implementation SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
  • [x] Unlocking secrets now appear on startup. Should not be needed unless there are credentials used. (fixed)

Progress

  • [x] Commit message must refer to an issue
  • [ ] Change must be properly reviewed (1 review required, with at least 1 Committer)

Issue

  • JMC-8237: Add support for Jolokia over Kubernetes proxy (Enhancement - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jmc.git pull/576/head:pull/576
$ git checkout pull/576

Update a local copy of the PR:
$ git checkout pull/576
$ git pull https://git.openjdk.org/jmc.git pull/576/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 576

View PR using the GUI difftool:
$ git pr show -t 576

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jmc/pull/576.diff

skarsaune avatar Aug 04 '24 12:08 skarsaune

:wave: Welcome back skarsaune! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

bridgekeeper[bot] avatar Aug 04 '24 12:08 bridgekeeper[bot]

❗ This change is not yet ready to be integrated. See the Progress checklist in the description for automated requirements.

openjdk[bot] avatar Aug 04 '24 12:08 openjdk[bot]

@skarsaune This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

bridgekeeper[bot] avatar Sep 29 '24 12:09 bridgekeeper[bot]

The cause for the log initialization output is calling Utils.getSystemPropertyOrEnvVar . That is only used very briefly for that very particular use. Can look for alternatives.

skarsaune avatar Oct 27 '24 08:10 skarsaune

The cause for the log initialization output is calling Utils.getSystemPropertyOrEnvVar . That is only used very briefly for that very particular use. Can look for alternatives.

However, other fabric8.io methods need slf4j quite immediately after that. As the log statement states, it will default to a NOOP logger that we believe is sufficient at this point (problems scanning contexts will manifest themselves as exceptions that should be sufficient to troubleshoot).

skarsaune avatar Oct 28 '24 17:10 skarsaune

Found the "issue" with the JMC agent.

public boolean isLocalJvm() { return connectionHandle.getServerDescriptor().getJvmInfo() != null; } Will experiment with not providing getJvmInfo for jolokia and kubernetes

skarsaune avatar Oct 29 '24 21:10 skarsaune

@skarsaune This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

bridgekeeper[bot] avatar Dec 24 '24 21:12 bridgekeeper[bot]

Finding on the Jolokia side. When probing connection k8s API authorization is missing. This can be fixed by using fabric8 http client instead of using OK Http directly.

skarsaune avatar Jan 02 '25 17:01 skarsaune

@skarsaune this pull request can not be integrated into master due to one or more merge conflicts. To resolve these merge conflicts and update this pull request you can run the following commands in the local repository for your personal fork:

git checkout JMC-8237-kubernetes-proxy
git fetch https://git.openjdk.org/jmc.git master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push

openjdk[bot] avatar Jan 03 '25 09:01 openjdk[bot]

Have been able to fix kubernetes client in Jolokia, however basic auth for jolokia with special header fails.

skarsaune avatar Jan 03 '25 09:01 skarsaune

Webrevs

mlbridge[bot] avatar Feb 16 '25 22:02 mlbridge[bot]

@skarsaune This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

bridgekeeper[bot] avatar Feb 16 '25 23:02 bridgekeeper[bot]

@aptmac : At long last the pieces are falling into place here. I will consider upgrading to jolokia 2.2.3 once it is out, but it is already possible to look at it and test.

skarsaune avatar Feb 18 '25 19:02 skarsaune

@skarsaune This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

bridgekeeper[bot] avatar Mar 18 '25 20:03 bridgekeeper[bot]

@skarsaune This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

bridgekeeper[bot] avatar Apr 15 '25 21:04 bridgekeeper[bot]

/open

skarsaune avatar Jul 16 '25 15:07 skarsaune

@skarsaune This pull request is now open

openjdk[bot] avatar Jul 16 '25 15:07 openjdk[bot]

@skarsaune This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

bridgekeeper[bot] avatar Aug 15 '25 21:08 bridgekeeper[bot]

/keepalive

skarsaune avatar Aug 28 '25 04:08 skarsaune

@skarsaune The pull request is being re-evaluated and the inactivity timeout has been reset.

openjdk[bot] avatar Aug 28 '25 04:08 openjdk[bot]

@skarsaune This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

bridgekeeper[bot] avatar Sep 25 '25 10:09 bridgekeeper[bot]

@skarsaune This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

bridgekeeper[bot] avatar Nov 09 '25 19:11 bridgekeeper[bot]