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

sys: Retry certificate fetching #57

Merged
merged 2 commits into from
Dec 4, 2018
Merged

sys: Retry certificate fetching #57

merged 2 commits into from
Dec 4, 2018

Conversation

hectorhuertas
Copy link
Member

This change only affects etcds.

Systemd doesn't support Restart on oneshot units yet. This works fine in exp-2. Output of etcd retrying while cfssl is down (journaltcl -u cert-fetch):

Dec 04 16:38:40 ip-10-66-25-4 sh[910]: 2018/12/04 16:38:40 [INFO] generate received request
Dec 04 16:38:40 ip-10-66-25-4 sh[910]: 2018/12/04 16:38:40 [INFO] received CSR
Dec 04 16:38:40 ip-10-66-25-4 sh[910]: 2018/12/04 16:38:40 [INFO] generating key: ecdsa-384
Dec 04 16:38:40 ip-10-66-25-4 sh[910]: 2018/12/04 16:38:40 [INFO] encoded CSR
Dec 04 16:38:40 ip-10-66-25-4 sh[910]: {"code":7400,"message":"Post http://10.66.25.5:8888/api/v1/cfssl/authsign: dial tcp 10.66.25.5:8888: getsockopt: connection refused"}
Dec 04 16:38:40 ip-10-66-25-4 sh[910]: Failed to parse input: unexpected end of JSON input
Dec 04 16:38:40 ip-10-66-25-4 sh[910]: cfssl not ready, sleeping 5 seconds
Dec 04 16:38:45 ip-10-66-25-4 sh[910]: 2018/12/04 16:38:45 [INFO] generate received request
Dec 04 16:38:45 ip-10-66-25-4 sh[910]: 2018/12/04 16:38:45 [INFO] received CSR
Dec 04 16:38:45 ip-10-66-25-4 sh[910]: 2018/12/04 16:38:45 [INFO] generating key: ecdsa-384
Dec 04 16:38:45 ip-10-66-25-4 sh[910]: 2018/12/04 16:38:45 [INFO] encoded CSR
Dec 04 16:38:45 ip-10-66-25-4 systemd[1]: Started Fetch new certificates from cfssl server.```

@hectorhuertas hectorhuertas merged commit 142a519 into master Dec 4, 2018
@hectorhuertas hectorhuertas deleted the cert-fetch-retry branch December 4, 2018 17:25
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

Successfully merging this pull request may close these issues.

None yet

2 participants