Parallel __letsencrypt_cert inconsistent in finding existing cert #27

Closed
opened 2021-11-20 11:24:55 +00:00 by ungleich-gitea · 6 comments

My setup is using __letsencrypt_cert for several domains in my manifest, however the actual working seems to be inconsistent:

Running cdist config -v my.host.name is running fine, it skips the already existing certs.

However, if I try to speed up exectuion by using cdist config -j2 -v my.host.name, half of my certs seem to be missed by the explorers, and __letsencrypt_cert calls certbot even for existing, completely valid certificates, forcing it to reissue certificates). Which in turn causes me to hit the rate-limit.

My setup is using __letsencrypt_cert for several domains in my manifest, however the actual working seems to be inconsistent: Running `cdist config -v my.host.name` is running fine, it skips the already existing certs. However, if I try to speed up exectuion by using `cdist config -j2 -v my.host.name`, half of my certs seem to be missed by the explorers, and `__letsencrypt_cert` calls `certbot` even for existing, completely valid certificates, forcing it to reissue certificates). Which in turn causes me to hit the rate-limit.
Author
Owner

mentioned in commit a696f3cf00

mentioned in commit a696f3cf0026ec96e4cf7235ee8634391ccfecdb
Author
Owner

mentioned in commit 81b426e4e2

mentioned in commit 81b426e4e2976c44898ec5439f1f2394e4ea2dfc
Author
Owner

mentioned in merge request !976

mentioned in merge request !976
Author
Owner

mentioned in commit 9ba9dceb1a709f47c059d2e21d1e4e5b1b81d00f

mentioned in commit 9ba9dceb1a709f47c059d2e21d1e4e5b1b81d00f
Author
Owner

EDIT: missed that the report for #848 already uses this issue as an example of that behaviour being problematic.

Looking at __letsencrypt_cert/explorer/certificate-exists I'm wondering if certbot has issues with locking or something similar and this could have something to do with #848, will try to create a test to reproduce it.

EDIT: missed that the report for #848 already uses this issue as an example of that behaviour being problematic. Looking at [__letsencrypt_cert/explorer/certificate-exists](cdist/conf/type/__letsencrypt_cert/explorer/certificate-exists) I'm wondering if certbot has issues with locking or something similar and this could have something to do with #848, will try to create a test to reproduce it.
Author
Owner

@fancsali __letsencrypt_cert is marked as nonparallel.
Can you give more info?
Can you paste your manifest and debug log output?

@fancsali `__letsencrypt_cert` is marked as `nonparallel`. Can you give more info? Can you paste your manifest and debug log output?
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#27
No description provided.