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

KeyError exception during ROA import #962

Open
schelcj opened this issue Aug 30, 2024 · 0 comments
Open

KeyError exception during ROA import #962

schelcj opened this issue Aug 30, 2024 · 0 comments

Comments

@schelcj
Copy link
Contributor

schelcj commented Aug 30, 2024

Describe the bug

ROA Importer is failing to complete with a KeyError exception being thrown during validate_all_routes() in rpki.validators. The uuid in question in each exception does not exist in the database.

Exceptions found in the logs:

2024-08-30 12:16:06,600 irrd[3350118]: [irrd.mirroring.mirror_runners_import#ERROR] An exception occurred while attempting a ROA import: UUID('46e0477b-98eb-4dc9-afbb-eafd3dd5aaa5')
Traceback (most recent call last):                                                                                                                                        
  File "/home/irrd/srv/releases/4.4.2/venv/lib/python3.10/site-packages/irrd/mirroring/mirror_runners_import.py", line 293, in run
    objs_now_valid, objs_now_invalid, objs_now_not_found = validator.validate_all_routes()
  File "/home/irrd/srv/releases/4.4.2/venv/lib/python3.10/site-packages/irrd/rpki/validators.py", line 123, in validate_all_routes
    rpsl_obj.update(rows_per_pk[rpsl_obj["pk"]])                                                                                                                          
KeyError: UUID('46e0477b-98eb-4dc9-afbb-eafd3dd5aaa5') 

To Reproduce

Haven't been able to manually reproduce this but have seen it happen on multiple importer runs.

Expected behaviour

For the ROA import to complete successfully.

IRRd version you are running

4.4.2

Additional context

None

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

No branches or pull requests

1 participant