Skip to content

Fix opensearch grafana plugin at last working version #292

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

Merged
merged 19 commits into from
Aug 4, 2023

Conversation

sjpb
Copy link
Collaborator

@sjpb sjpb commented Aug 1, 2023

Without this PR the grafana plugin installed on a new deployment passes the GUI "test" button but can't actually talk to opensearch. Grafana returns a 500 error and the relevant tile in explore mode shows a JS trace containing TypeError: pa[t] is undefined.

Matt A worked out the last working version manually.

This also incorporates #293 to set the query type correctly. As noted there, this is because of changes to how querytype is handled by the plugin.

Note that:

  • Idempotency was broken before this PR as this difference doesn't do what's intended - elements in .files are not plugin names but dicts including e.g. file stats.
  • At this plugin version given here, the datasource still complains (in the edit DS GUI) about needing a version, but this does not prevent it working.

@sjpb sjpb requested a review from m-bull August 1, 2023 11:14
Set the query type to "lucene" to fix the `Slurm jobs` dashboard.

The original query causes a `SIGSEGV: segmentation violation` in versions above 2.6.2 of the
OpenSearch plugin due to this change:
grafana/opensearch-datasource@24fcd47#diff-804a5756e358074cb0ba27b1932cca77d39b90694fc1d4d122f46348c8653259

This then makes Grafana return a 500 error with the `TypeError: pa[t] is undefined` message.

CC: #292
mkarpiarz pushed a commit to mkarpiarz/ansible-slurm-appliance that referenced this pull request Aug 1, 2023
Set the query type to "lucene" to fix the `Slurm jobs` dashboard.

The original query causes a `SIGSEGV: segmentation violation` in versions above 2.6.2 of the
OpenSearch plugin due to this change:
grafana/opensearch-datasource@24fcd47#diff-804a5756e358074cb0ba27b1932cca77d39b90694fc1d4d122f46348c8653259
This then makes Grafana return a 500 error with the `TypeError: pa[t] is undefined` message.

CC: stackhpc#292
mkarpiarz pushed a commit to mkarpiarz/ansible-slurm-appliance that referenced this pull request Aug 1, 2023
Set the query type to "lucene" to fix the `Slurm jobs` dashboard.

The original query causes a `SIGSEGV: segmentation violation` in versions above 2.6.2 of the
OpenSearch plugin due to this change:
grafana/opensearch-datasource@24fcd47#diff-804a5756e358074cb0ba27b1932cca77d39b90694fc1d4d122f46348c8653259

This then makes Grafana return a 500 error with the `TypeError: pa[t] is undefined` message.

CC: stackhpc#292
@mkarpiarz
Copy link

@sjpb: Could you please check if #293 fixes this problem?

Pinning this plugin to a specific version would still be useful to have but, in my opinion, should be handled by the collection.

@sjpb sjpb closed this Aug 2, 2023
@sjpb sjpb reopened this Aug 2, 2023
@sjpb
Copy link
Collaborator Author

sjpb commented Aug 2, 2023

Cancelled CI as requires #294 to merge first before CI will complete

Use Python3.9 for jupyter notebook server
@sjpb sjpb marked this pull request as ready for review August 4, 2023 14:34
@sjpb sjpb requested a review from a team as a code owner August 4, 2023 14:34
@sjpb
Copy link
Collaborator Author

sjpb commented Aug 4, 2023

@ af1c633, confirmed slurm jobs dashboard works.

image

@sjpb sjpb requested a review from m-bull August 4, 2023 16:02
@sjpb sjpb merged commit e6645fd into main Aug 4, 2023
@sjpb sjpb deleted the fix/opensearch-plugin-ver branch August 4, 2023 16:28
This was referenced Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants