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] OS crashes if region is not provided during instance principle configuration #57

Open
IshaGirdhar opened this issue Nov 21, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@IshaGirdhar
Copy link

IshaGirdhar commented Nov 21, 2023

What is the bug?

With OS 2.7.0, once the plugin is installed when the config is provided for the instance principle, if the region is omitted, OS crashes with this error.

[ERROR][o.o.b.OpenSearchUncaughtExceptionHandler] [opensearch-es-master-0] fatal error in thread [opensearch[opensearch-es-master-0][snapshot][T#1]], exiting
java.lang.ExceptionInInitializerError: null
	at com.oracle.bmc.Region.getRegionAndRegisterIfNecessary(Region.java:630) ~[?:?]
fatal error in thread [opensearch[opensearch-es-master-0][snapshot][T#1]], exiting
	at com.oracle.bmc.Region.fromRegionCodeOrId(Region.java:439) ~[?:?]

How can one reproduce the bug?

  1. Install standalone OS 2.7.0
  2. Install this plugin
  3. Configure the repository with instance principle
    PUT /_snapshot/oci_repository
    {
    "type": "oci",
    "settings": {
    "client": "default",
    "endpoint": ,
    "bucket": "empty1",
    "namespace": "empty2",
    "bucket_compartment_id": "empty3",
    "useInstancePrincipal": true,
    "forceBucketCreation" : true
    }
    }

What is the expected behavior?

Expect an error if region is not provided, but OS should not crash

What is your host/environment?

OpenSearch: 2.7.0
OS : Oracle-Linux-7.9-2022

Do you have any screenshots?

If applicable, add screenshots to help explain your problem.

Do you have any additional context?

Add any other context about the problem.

@IshaGirdhar IshaGirdhar added bug Something isn't working untriaged labels Nov 21, 2023
@dblock
Copy link
Member

dblock commented Jun 6, 2024

[Triage -- attendees 1, 2, 3, 4, 5, 6, 7]

Looks like a valid problem.

@dblock dblock removed the untriaged label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants