Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Sometimes the lambda tries to tag snapshots that have not yet been created. #13

Open
legkovalex opened this issue Dec 15, 2017 · 3 comments

Comments

@legkovalex
Copy link

Retaining snapshot snap-071f711539ba0276a of volume vol-a139336bed from instance i-9117b492be for 7 days
Will delete 9 snapshots on 2017-12-14
An error occurred (InvalidSnapshot.NotFound) when calling the CreateTags operation: The snapshot 'snap-071f711539ba0276a' does not exist.: ClientError
Traceback (most recent call last):

Sometimes snapshots do not have time to be created before they start tagging. It seems that a small timeout between the creation of snapshots and their tagging will not be superfluous.

@cmachler
Copy link
Owner

cmachler commented Jan 5, 2018

Just curious how many snapshots are trying to be created in your environment?

@cmachler cmachler added the bug label Jan 5, 2018
@legkovalex
Copy link
Author

Approximately ten snapshots in three regions. The error is not constant and occurs once for a dozen times, approximately. The most unpleasant thing is that we must clear snapshots manually since they are not tagged for deletion (within the region).
I think that the possibility of setting the timeout would be appropriate. Probably, as a variable (such as regions) with a default value of 0 seconds (if empty). With the possibility of increasing if necessary.

@cmachler
Copy link
Owner

cmachler commented Jan 8, 2018

I think that sounds reasonable with regards to the timeout variable @legkovalex.

Would you have time to work on this feature and put in a PR? I do not have the time currently to work on this in a expedited manor.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants