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

Backport PR #12784 (#12805) to 7.12: Fix: logstash-keystore failing with an error #12804

Merged
merged 2 commits into from Apr 8, 2021

Conversation

kares
Copy link
Contributor

@kares kares commented Apr 8, 2021

Backport PR #12784 (and #12805) to 7.12 branch. Original message:

bin/logstash-keystore list is failing with:

Using JAVA_HOME defined java: /opt/java/jdk
WARNING, using JAVA_HOME while Logstash distribution comes with a bundled JDK
ERROR: Failed to load settings file from "path.settings". Aborting... path.setting=/home/kares/workspace/work/elastic/logstash-7.12.0/config, exception=NameError, message=>uninitialized constant LogStash::Util::Password

What does this PR do?

Fixes a regression introduced in LS 7.11, see #12783

Why is it important/What is the impact to the user?

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files (and/or docker env variables)
  • I have added tests that prove my fix is effective or that my feature works

How to test this PR locally

run bin/logstash-keystore list

Related issues

Closes #12783

* Fix: missing password dependency require

which causes `bin/logstash-keystore` to fail with an error:
```
ERROR: Failed to load settings file from "path.settings". Aborting...
path.setting=/logstash-7.12.0/config, exception=NameError,
message=>uninitialized constant LogStash::Util::Password

```

* Fix: review all LS parts depending on Password

* Test: bin/logstash-keystore create/list

(cherry picked from commit e8e393b)
@kares kares changed the title Backport PR #12784 to 7.12: Fix: logstash-keystore failing with an error Backport PR #12784 (#12805) to 7.12: Fix: logstash-keystore failing with an error Apr 8, 2021
@kaisecheng kaisecheng self-requested a review April 8, 2021 16:17
Copy link
Contributor

@kaisecheng kaisecheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kares kares merged commit 4676aa8 into elastic:7.12 Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants