consul icon indicating copy to clipboard operation
consul copied to clipboard

fix #20409 - Check definitions not reflected in output from agent/health/service/id/:service-id

Open vijayraghav-io opened this issue 1 year ago • 9 comments

Fixes #20409

Testing & Reproduction steps

Refer #20409

PR Checklist

  • [x] updated test coverage
  • [ ] external facing docs updated
  • [ ] appropriate backport labels added
  • [x] not a security concern

vijayraghav-io avatar Jan 31 '24 07:01 vijayraghav-io

As an update, even after populating the HealthCheckDefinition, the expected values are not shown in api output. Apart from the changes done so far in func agentHealthService, there needs some more update to fix the issue, so checking the service registration code. Will update once the fix is complete.

vijayraghav-io avatar Jan 31 '24 13:01 vijayraghav-io

The fix is almost done! For some reason the "Definition" field was left out while creating "check" before adding to the local "state" in https://github.com/hashicorp/consul/blob/c82b78b088c6e99a511018ed4f6ac2f1fb364420/agent/agent.go#L2626 Added three fields and verified, its working as expected now!. Need to add all other fields (like HTTP, TCP,...). Will check the logic thoroughly again and update.

vijayraghav-io avatar Jan 31 '24 15:01 vijayraghav-io

The fix is done , added a test case. This PR can be reviewed

vijayraghav-io avatar Feb 01 '24 10:02 vijayraghav-io

Hi @jkirschner-hashicorp / @huikang / @david-yu , Kindly review this PR.

vijayraghav-io avatar Feb 01 '24 15:02 vijayraghav-io

Hi @david-yu, Requesting you to review this PR.

vijayraghav-io avatar Feb 06 '24 15:02 vijayraghav-io

This pull request has been automatically flagged for inactivity because it has not been acted upon in the last 60 days. It will be closed if no new activity occurs in the next 30 days. Please feel free to re-open to resurrect the change if you feel this has happened by mistake. Thank you for your contributions.

github-actions[bot] avatar Apr 07 '24 01:04 github-actions[bot]

Requesting to review this PR

vijayraghav-io avatar Apr 07 '24 13:04 vijayraghav-io

This pull request has been automatically flagged for inactivity because it has not been acted upon in the last 60 days. It will be closed if no new activity occurs in the next 30 days. Please feel free to re-open to resurrect the change if you feel this has happened by mistake. Thank you for your contributions.

github-actions[bot] avatar Jun 07 '24 01:06 github-actions[bot]

Reminding for PR review

vijayraghav-io avatar Jun 14 '24 16:06 vijayraghav-io