core: Update certificates as late as possible
This changes aims minimize the unecessary accessed to master while the instance is going to be skipped to process or won't post informations to master. This in best cases reduces access from 1+n to 1 while n = number of used partitions.
Showing
-
Owner
Isn't it the cause for test failures like https://erp5js.nexedi.net/#/test_result_module/20210728-155A30071/18 ?
2021-07-29 00:14:56 slapos[91569] ERROR Traceback (most recent call last): File "/srv/slapgrid/slappart16/srv/testnode/cvr/soft/821aa19e41adea2f5866bc0579f61ba8/parts/slapos.core-repository/slapos/grid/slapgrid.py", line 1796, in agregateAndSendUsage local_partition._updateCertificate() File "/srv/slapgrid/slappart16/srv/testnode/cvr/soft/821aa19e41adea2f5866bc0579f61ba8/parts/slapos.core-repository/slapos/grid/SlapObject.py", line 510, in _updateCertificate with os.fdopen(os.open(path, os.O_CREAT | os.O_WRONLY | os.O_TRUNC, 0o400), 'wb') as fout: FileNotFoundError: [Errno 2] No such file or directory: '' 2021-07-29 00:14:56 slapos[91569] INFO Finished usage reports. ERROR
-
mentioned in merge request !321 (merged)
Please register or sign in to comment