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
Fix #821: Error while ingesting snapshots #822
Conversation
Looks good, but to be conservative, do you think we can skip snapshots on the specific exception you had |
@ramonpetgrave64 I've updated this MR. |
@marco-lancini Yes. Are you finding that at least some of the |
In the meantime I've faced another error while running from
This PR should address it as well |
For my use case it seemed to return a decent amount of snapshots any way (I haven't dug into them to be fair) |
@marco-lancini Maybe the safer way would be to fetch each of the other_snapshot_ids individually. Not optimal, but it's simple. What do you think? |
Hi @ramonpetgrave64, Any other implementations are welcome! But I'm afraid I won't have time personally to provide/test one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a nitpicky wording suggestion but otherwise looks good to me!
Co-authored-by: Alex Chantavy <achantavy@lyft.com>
@marco-lancini It's supposed to load snapshots that you own, and then also load snapshots are attached to any volumes you own. I don't understand why you get this error, saying the parameter is empty.
But we can fix that one if it comes up again. |
* Fixes snapshot fetching InvalidParameterValue bug It looks like the InvalidParameterValue bug (#825) is still present after #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>
* Fix 821 * Address comments * Update cartography/intel/aws/ec2/snapshots.py Co-authored-by: Alex Chantavy <achantavy@lyft.com> * address linter Co-authored-by: Ramon Petgrave <32398091+ramonpetgrave64@users.noreply.github.com> Co-authored-by: Alex Chantavy <achantavy@lyft.com>
* 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>
* Fixes snapshot fetching InvalidParameterValue bug It looks like the InvalidParameterValue bug (lyft/cartography#825) is still present after lyft/cartography#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>
Fix for #821