-
Couldn't load subscription status.
- Fork 337
Easing debugging for security not initialized error #5370
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
Conversation
54b4ad4 to
050b862
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5370 +/- ##
==========================================
+ Coverage 72.19% 72.20% +0.01%
==========================================
Files 382 382
Lines 23697 23716 +19
Branches 3644 3649 +5
==========================================
+ Hits 17107 17124 +17
+ Misses 4794 4793 -1
- Partials 1796 1799 +3
🚀 New features to boost your workflow:
|
src/test/java/org/opensearch/security/privileges/RestLayerPrivilegesEvaluatorTest.java
Outdated
Show resolved
Hide resolved
de54115 to
e6bf0e2
Compare
48cb5aa to
5c40137
Compare
src/main/java/org/opensearch/security/configuration/ClusterInfoHolder.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Nagaraj G <narajg@amazon.com>
|
@nagarajg17 can we also add a CHANGELOG entry for this? I think its a significant enough change to have an entry in the CHANGELOG. |
+1 |
|
@nagarajg17 Would you mind checking the test failures? |
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
|
I see PR is merged. I didn't get a chance to check test failures yesterday, will check it and create another PR for CHANGELOG |
Description
If security index is not created during node bootup and if any API call is made we receive generic error
OpenSearch Security is not initialized. Security index may not be created for various number of reasons but commonly seen due to master not initialized. To ease the debugging and fixing the issue, adding more details to error statement and possible cause will help. This PR starts with one of the possible cause, it can be extended in future appropriatelyFuture adding few debug lines to ease debugging during issues
Maintenance
Issues Resolved
Easing debugging and fixing error
Testing
To minic the scenario added this setting in opensearch.yml
node.roles: [data, ingest]to have no master node. Then made API calls to reproduce the errorEarlier
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.