-
Notifications
You must be signed in to change notification settings - Fork 317
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
Fixes snapshot fetching InvalidParameterValue bug #832
Conversation
@ramonpetgrave64 Is it ok to merge this? |
make a new paginator instead of reusing
@marco-lancini I still want to figure out why we are getting this error when the parameter should not be empty at this codepath. I think the issue could be that we are reusing the same paginator object. The boto docs say that paginators are reusable, but @Rickerd0613 can you try my commit? |
@ramonpetgrave64 Same error unfortunately. It's a pretty fresh AWS account which likely does not have any snapshots in it. Let me know if you want me to try running anything else or if you want some print debug lines thrown in anywhere.
|
Thank you, please try the new commit where I add logs. And remember to redact your snapshot ids! I want to make sure that |
@ramonpetgrave64 here is the log outputs. Let me know if I missed something or you need anything else.
|
I see now. There are places where the snapshotId of volumes are not being set. And thats why we sometimes get invalid inputs to describe_snapshots. Are you sometimes running different parts of the ec2 sync? I found one place here
@Rickerd0613 Can you change that line to
If this works for you, I think we can remove the log statements I added and the extra paginator, as well. |
@ramonpetgrave64 Looks like there might be an error with the new SET line:
Should |
FWIW changing |
I think at this point we might be dealing with a race condition. I added one more place to set the snapshotid. Along with the other change I suggested you add, I think that covers it. So I'm okay with
@Rickerd0613 Please try this new commit, as well. |
Seems to be working for me! Thanks for all your help!! |
@Rickerd0613 Awesome. And thanks for your patience! |
* Fixes snapshot fetching InvalidParameterValue bug It looks like the InvalidParameterValue bug (lyft#825) is still present after lyft#822. This adds an exception for error * set snapshot id in load_snapshot_volume_relations * filter for non empty snapshot ids * setting snapshot id Co-authored-by: Ramon Petgrave <32398091+ramonpetgrave64@users.noreply.github.com>
It looks like the InvalidParameterValue bug (#825) is still present after #822. This adds an exception for the error.