Silence unpickle errors in accounting daemon for Archives without meta.pck - #602
Conversation
… about Archives without `meta.pck` file rather than reporting unpickle error and warning.
|
Looking at the code it appears it only does accounting for legacy Archives in |
Modern archives are accounted for: migrid-sync/mig/lib/accounting.py Line 540 in 1bafdfe |
Martin-Rehr
left a comment
There was a problem hiding this comment.
The underlying faulty legacy archive metadata should be fixed rather than ignored
That may be the case but I still would say it's not an accounting error, so the absence of meta should at most be logged as a single warning and not repeatedly nag us about it. For recent archives you may also just stumble upon lacking meta because it's currently being created. We have a TODO about checking archives in janitor to catch and fix the case of ones stuck in UPDATING, and checking validity of all archives would fit well there. Then it could either try to fix any broken ones or occasionally notify admins with proper back-off like we do for failing requests in #600. |
Alright, I went looking for somewhere traversing |
It's (also) an accounting error since the size of the freeze archive is not accounted fore, but fine with me to leave it to the janitor to keep the freeze archives sane. |
The design is that the quota information in NOTE: For legacy FS's that we don't wan't to integrate in the |
Martin-Rehr
left a comment
There was a problem hiding this comment.
Approved with the condition that the janitor will take care of fixing / screaming about broken archives.
Could you please point me to where |
That task is now registered in #633. |
Good catch, it doesn't seem like the freeze (archives) made it into the migrid-sync/mig/lib/lustrequota.py Line 606 in 2491559 |
Alright, not just me going crazy then :-) Not urgent for us I suppose but perhaps an idea to register an issue to track it. |
Done with issue ##635 |
Use
allow_missingflag tounpicklecall so that accounting only warns about Archives withoutmeta.pckfile rather than reporting unpickle error and warning. Then the resulting empty meta dict will result in the warning and skip as suggested in #601.