Skip to content

[BUG] opensearch-plugin cli still prompts confirmation with silence argumentΒ #20337

@chishui

Description

@chishui

Describe the bug

I wanted to install a plugin from local zip file with python script. The command is ./opensearch-3.4.0/bin/opensearch-plugin install -s file:///home/ubuntu/opensearch-neural-search-3.4.0.0.zip. Although I specify -s to make the install silent, it still prompts this

03:04:28.713 [main] WARN  org.opensearch.plugins.PluginsService - Missing plugin [workload-management], dependency of [opensearch-security]
03:04:28.715 [main] WARN  org.opensearch.plugins.PluginsService - Some features of this plugin may not function without the dependencies being installed.

Continue with installation? [y/N]

Related component

Plugins

To Reproduce

  1. install opensearch-3.4.0 through tarball
  2. remove opensearch-neural-search plugin
  3. install plugin from local zip file: ./opensearch-3.4.0/bin/opensearch-plugin install -s file:///home/ubuntu/opensearch-neural-search-3.4.0.0.zip
  4. See error

Expected behavior

with -s argument, cli can install plugin with auto confirmation.

Additional Details

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions