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

Validating status does not change after Onboarding is created. #540

Open
YutaOkoshi opened this issue Dec 18, 2023 · 2 comments
Open

Validating status does not change after Onboarding is created. #540

YutaOkoshi opened this issue Dec 18, 2023 · 2 comments
Assignees
Labels
bug Something isn't working tenant-onboarding Tenant onboarding and provisioning service

Comments

@YutaOkoshi
Copy link

I looked at the "/aws/lambda/sb-isen-onboarding-validation" log and found that the processValidateOnboardingQueue is occurring.

スクリーンショット 2023-12-18 15 32 34

Probably this is the reason why it does not change from Onboarding status.

/aws/lambda/sb-isen-onboarding-validation

begin 0, end -2, length 29: java.lang.StringIndexOutOfBoundsException
java.lang.StringIndexOutOfBoundsException: begin 0, end -2, length 29
	at java.base/java.lang.String.checkBoundsBeginEnd(Unknown Source)
	at java.base/java.lang.String.substring(Unknown Source)
	at com.amazon.aws.partners.saasfactory.saasboost.OnboardingService.processValidateOnboardingQueue(OnboardingService.java:1260)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)

begin 0, end -2, length 29: java.lang.StringIndexOutOfBoundsException java.lang.StringIndexOutOfBoundsException: begin 0, end -2, length 29 at java.base/java.lang.String.checkBoundsBeginEnd(Unknown Source) at java.base/java.lang.String.substring(Unknown Source) at com.amazon.aws.partners.saasfactory.saasboost.OnboardingService.processValidateOnboardingQueue(OnboardingService.java:1260) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source)

Reproduction Steps

  1. install-using-cloud9.md
  2. deploy-the-sample-application
  3. build-and-deploy-the-sample-application
  4. onboard-a-tenant

What did you expect to happen?

Completion of Onboarding creation.

What actually happened?

Validating status does not change after Onboarding is created.

Environment

  • AWS Region :ap-northeast-1
  • AWS SaaS Boost Version :Version v2.2.3-6@452d7ca
  • Workload OS (Linux or Windows) :

Other


This is 🐛 Bug Report

@YutaOkoshi YutaOkoshi added bug Something isn't working triage Needs categorization and prioritization labels Dec 18, 2023
@brtrvn brtrvn added tenant-onboarding Tenant onboarding and provisioning service and removed triage Needs categorization and prioritization labels Dec 19, 2023
@brtrvn brtrvn self-assigned this Dec 19, 2023
@brtrvn
Copy link
Contributor

brtrvn commented Dec 19, 2023

@YutaOkoshi that error is coming from the section of validation checking the Route53 Hosted Zone for duplicate tenant subdomains. There must be an A Record in the HostedZone for that tenant with an unexpected structure. You can find the hosted zone by looking at the appConfig and then run aws route53 list-resource-record-sets --hosted-zone-id YOUR_HOSTED_ZONE_ID to see what the output looks like.

@YutaOkoshi
Copy link
Author

YutaOkoshi commented Jan 5, 2024

@brtrvn
thanks for comment.
I re-created the Application and it worked.
Probably because the Domain Name and Hosted Zone of the Application were unintentionally specified.

If Validation finds something error, the end user may wait forever without an error message and may not know where to fix it.
Therefore, it would be beneficial to end users if error messages are output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tenant-onboarding Tenant onboarding and provisioning service
Projects
None yet
Development

No branches or pull requests

2 participants