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

RDS 'DB snapshots per user' is using old limit value, should be 100 instead of 50 #314

Closed
bergkampsliew opened this issue Nov 24, 2017 · 3 comments
Labels
Milestone

Comments

@bergkampsliew
Copy link
Contributor

bergkampsliew commented Nov 24, 2017

Bug Report

Incorrect limit check for RDS 'DB snapshots per user'. Should be 100 instead of 50 under the default value - https://github.com/jantman/awslimitchecker/blob/master/awslimitchecker/services/rds.py#L171

Version

awslimitchecker 2.0.0

Supporting Software Versions

Python 2.7.9, not using virtualenv

Actual Output

Flag that the limit has been reached.

Expected Output

Flag that the limit has been reached.

Testing Assistance

No

@jantman jantman added the bug label Nov 26, 2017
@jantman
Copy link
Owner

jantman commented Nov 26, 2017

@bergkampsliew Thanks for reporting this. Yes, the 'DB snapshots per user' (now listed on the RDS limits page as "Manual snapshots") is now 100. This appears to have changed on January 30, 2017 according to the archive.org snapshot of the service limits page.

I'm not yet sure when the next release will be out, but this will be fixed in it.

I'm a bit confused by your actual vs expected output though. If awslimitchecker thinks the limit is 50 when it's really 100, shouldn't it be giving a false positive instead of a false negative?

@bergkampsliew
Copy link
Contributor Author

@jantman , thanks for the reply.
I made a mistake when comparing result and looking at wrong region - I'll correct my description above, sorry about it.

There is actually an alert (as below) appeared during the execution.
RDS/DB snapshots per user (limit 100) CRITICAL: 100
My guess this comes from the Trusted Advisor or direct API?
If that is correct, then this is not a bug but rather improvement item (to the default value at https://github.com/jantman/awslimitchecker/blob/master/awslimitchecker/services/rds.py#L171 , I believe)

@jantman
Copy link
Owner

jantman commented Nov 26, 2017

Ahhh yeah, I forgot about that. RDS (unlike almost all other services, because this is decided by each individual service team) exposes all of its service limits via its API. So even though the default in awslimitchecker is wrong, the default should never be used for RDS.

So yeah this isn't a bug that anyone should ever hit unless the RDS API stops providing limit info (which I think would be very unlikely), but I'm going to leave it labeled Bug just so I make sure to fix it in the next release.

Thanks again for such a detailed report!

@jantman jantman added this to the 2.1.0 milestone Dec 2, 2017
@jantman jantman closed this as completed in 23a4f92 Dec 3, 2017
nadlerjessie pushed a commit to nadlerjessie/awslimitchecker that referenced this issue Feb 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants