Prune fails when OOPSes are zero in size
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-oops-tools |
Triaged
|
High
|
Unassigned |
Bug Description
Hi,
We've ran into a bug where the prune job would abort when it encounters a zero sized OOPS:
| oops_tools@
| File: <open file '/srv/oops.
|
| Traceback (most recent call last):
| File "bin/prune", line 26, in <module>
| oops_datedir_
| File "/srv/oops.
| repo.prune_
| File "/srv/oops.
| report = serializer.
| File "/srv/oops.
| raise IOError("Empty OOPS Report")
| IOError: Empty OOPS Report
| -rw-r--r-- 1 oops_tools oops_tools 0 Dec 1 22:33
| /srv/oops.
|
I think what should happen is that it should skip or remove these OOPSes and continue pruning the rest.
Regards,
Haw
tags: | added: canonical-webops-oops |
Changed in python-oops-tools: | |
importance: | Undecided → High |
status: | New → Triaged |