-
Notifications
You must be signed in to change notification settings - Fork 84
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
Status change in account table fails for leased accounts that are expired #344
Comments
Hi @dsg9321, I'll try to answer these questions for you:
It sounds like you're trying to request a lease against a specific AWS account id. DCE does not currently support this. Instead, when you request a lease, it finds the first
Interesting, this sounds like it could be a bug, but I think I need to better understand the situation.
I'm not super familiar with Control Tower, so I can't answer this definitively. I would be interested to hear if you're running into any issues with this. See https://dce.readthedocs.io/en/latest/howto.html#account-resets
I can't give you a firm date, but it should be in the next week or two. |
cc @AmudaPalani ? |
Hey @eschwartz The scenario bellow reported previously by @dsg9321 it's also happening in my dce environment. "Status of leased accounts in accounts table is not updated to ready status after the account got expired.The status is updated to 'Expired' in leases table but not in the account table which still remains as 'leased' status." I want to include another scenario when an account exceeded the budget, the account only stay with status overbudget. The account does not transition to destroyed and hence does not back to the pool. |
Hi @eschwartz, Thanks for the response. Below are the use cases for which I did testing on the accounts that are leased.
Results.
Below are the steps followed.
Please take a look at the screenshot of Dynamodb table attached in the comment for detailed information. |
@dsg9321 , @rafabnunes thanks for all the details. I think I'm understanding this now then: This is definitely not expected behavior. The account should be marked as NotReady, and the Ready once reset is complete. I can look into this a bit. In the meantime, it would be good if you can check and see if there are any errors in your logs. If you have the tfvar |
@eschwartz Attaching the screenshot from cloudwatch dashboard.An error found in 'fan_out_update_lease_status' lambda. |
Hi @dsg9321 @eschwartz My case lambda is working, but when an account change status to "OverBudget", does not proceed to destroyed and then back to the pool. In the screenshot it's an example about that. |
@eschwartz thanks for notifying. @robologic looking forward to receiving your update on resolving the issue. |
Hi @robologic. Any progress on this issue? |
* fixed update to account status * updated changelog * Updated functional test with bug fix for #344
Hi @AmudaPalani This update will fix the issue when leased account occurs overbudget ? As workaround, I've installed the version from link bellow. However the budget notification isn't working. Thanks in advance for your reply. Rafael Nunes |
Version information
-DCE- Backend version : 0.29.0
Deployed DCE successfully using terraform. Making use of DCE API's to perform operations to add accounts and to lease. Below are the points that explains the issue.
We wanted to make use of accounts that are created out of Control Tower to be added into the account pools of DCE.Please let us know if this is supported. Also interested in knowing the release date of DCE backend version 0.30.0
Please help me out in fixing this issues.
The text was updated successfully, but these errors were encountered: