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

[BUG] Opensearch dashboards doesn't work with management disabled #4642

Closed
lde-avaleo opened this issue Jul 31, 2023 · 3 comments
Closed

[BUG] Opensearch dashboards doesn't work with management disabled #4642

lde-avaleo opened this issue Jul 31, 2023 · 3 comments
Labels
bug Something isn't working v2.10.0

Comments

@lde-avaleo
Copy link

Describe the bug
Opensearch dashboards doesn't work with management disabled.
There's an error after opening opensearch-dashboards in a browser:

Version: 2.9.0
Build: 6391
Error: No trigger [triggerId = SAVED_OBJECT_DELETE_TRIGGER] exists, for attaching action [actionId = SAVED_OBJECT_DELETE_ACTION].
    at UiActionsService.attachAction (http://localhost:5601/6391/bundles/plugin/uiActions/uiActions.plugin.js:1:66816)
    at UiActionsService.addTriggerAction (http://localhost:5601/6391/bundles/plugin/uiActions/uiActions.plugin.js:1:67733)
    at bootstrapUiActions (http://localhost:5601/6391/bundles/plugin/visAugmenter/visAugmenter.plugin.js:1:187522)
    at VisAugmenterPlugin.start (http://localhost:5601/6391/bundles/plugin/visAugmenter/visAugmenter.plugin.js:1:189345)
    at PluginWrapper._callee2$ (http://localhost:5601/6391/bundles/core/core.entry.js:15:667501)
    at tryCatch (http://localhost:5601/6391/bundles/plugin/customImportMapDashboards/customImportMapDashboards.plugin.js:13:786910)
    at Generator.invoke [as _invoke] (http://localhost:5601/6391/bundles/plugin/customImportMapDashboards/customImportMapDashboards.plugin.js:13:790926)
    at Generator.next (http://localhost:5601/6391/bundles/plugin/customImportMapDashboards/customImportMapDashboards.plugin.js:13:788105)
    at plugin_asyncGeneratorStep (http://localhost:5601/6391/bundles/core/core.entry.js:15:664102)
    at _next (http://localhost:5601/6391/bundles/core/core.entry.js:15:664419)

To Reproduce
Steps to reproduce the behavior:
Download opensearch-dashboard 2.9.0. Add to opensearch-dashboards.yml property:

management.enabled: false

Start server. Try open it in a browser

Expected behavior
I can use opensearch-dashboards without management

OpenSearch Version
2.9.0

Dashboards Version
Please list the version of OpenSearch Dashboards being used.

Plugins
Not relevant

Host/Environment (please complete the following information):
Not relevant

@lde-avaleo lde-avaleo added bug Something isn't working untriaged labels Jul 31, 2023
@AMoo-Miki
Copy link
Collaborator

AMoo-Miki commented Aug 3, 2023

Thanks for reporting this. I have been able to reproduce the issue and know why it is happening.

The root cause is that:

  1. A lot of visualizations indicate that they require bundles from visAugmenter
  2. visAugmenter requires bundles from savedObjectsManagement
  3. savedObjectsManagement requires the management plugin.

As a result, if management is disabled everything falls apart.

Sadly, the code doesn't validate transitive requiredBundles for excluding a plugin and if it had, all the visualizations that need visAugmenter would be disabled. But because it is not, OSD is allowed to start with them enabled and then it fails on the front-end.

If you require disabling management, the solution is to not upgrade to 2.9.0 until this can be fixed.

@joshuarrrr
Copy link
Member

@ashwin-pc This can be closed via #4891, right?

@kavilla
Copy link
Member

kavilla commented Sep 5, 2023

Yes fixed. Follow up issue made for adding functional tests.

@kavilla kavilla closed this as completed Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v2.10.0
Projects
None yet
Development

No branches or pull requests

4 participants