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

Have 'aws rds wait db-cluster-available' (or similar) return when Aurora serverless v2 endpoints are actually available #9046

Closed
sondresb opened this issue Oct 30, 2024 · 5 comments
Assignees
Labels
closed-for-staleness p3 This is a minor priority issue rds response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. waiter

Comments

@sondresb
Copy link

sondresb commented Oct 30, 2024

Not sure if this is a bug report, a feature request or even if I should RTFM more closely.

I am doing this at the end of a database restore of a Aurora serverless v2 cluster for QA and support reasons every night:

aws rds wait db-cluster-available \
    --profile $AWS_PROFILE \
    --db-cluster-identifier $CLUSTER_COPY_IDENTIFIER \
    --region $AWS_REGION

Where $CLUSTER_COPY_IDENTIFIER is the newly created cluster from a snapshot (with command aws rds restore-db-cluster-to-point-in-time).

My expectation (and I think the reality for serverless v1) would be for this to return when the cluster is actually up and running, accepting connections. This seems not to be the case, as I now have both the reader and writer instances in "Creating" for 40 mins after the creation, and the command returned after around 15 mins. Even if it was faster (the gap smaller), I would like to be able (preferably without try/fail, polling style) to be sure it is available for stuff like anonymization steps on the copy. I get "channel 7: open failed: connect failed: Name or service not known" on the bastion host tunnel. The tunnel works fine once the instance creation operations are complete.

Is there some other command? Sending ARN of the reader instance instead of the cluster? Or how would I go about doing this?

@adev-code adev-code self-assigned this Oct 30, 2024
@adev-code adev-code added rds waiter investigating This issue is being investigated and/or work is in progress to resolve the issue. p3 This is a minor priority issue labels Oct 30, 2024
@adev-code
Copy link

Hello @sondresb, thanks for reaching out. I tried the command and was not able to see the issue. For a further look, please provide the full debug logs by adding --debug and redacting any sensitive information. Thanks.

@adev-code adev-code added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Oct 30, 2024
@tim-finnigan tim-finnigan transferred this issue from aws/aws-sdk Oct 30, 2024
@sondresb
Copy link
Author

sondresb commented Oct 31, 2024

Yeah, I think doing the wait for instance after cluster avail as shown in the linked #9048 will do the trick for me. A flag to just issue a single command and wait for instances also being up, and the cluster ready to accept connections, would have been even better.

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Oct 31, 2024
@imSanko
Copy link

imSanko commented Nov 1, 2024

I gave the solution for this issue https://github.com/aws/aws-cli/pull/9048 and it got merged let me know for the changes would've been required?

@adev-code
Copy link

@imSanko it looks like your PR (#9048) didn't actually include any changes. I'm not sure what happened there but could you highlight the changes you wanted to include or submit another PR? If there is an issue with the existing waiter model then the service team (in this case RDS) would need to implement the fix.

@adev-code adev-code added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Nov 5, 2024
Copy link

Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-for-staleness p3 This is a minor priority issue rds response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. waiter
Projects
None yet
Development

No branches or pull requests

3 participants