Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cryptocoryne
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
Cryptocoryne
Commits
60bf19b7
Commit
60bf19b7
authored
5 months ago
by
Hannes Feldt
Browse files
Options
Downloads
Patches
Plain Diff
improve error reporting
parent
d385aafb
No related branches found
No related tags found
1 merge request
!4
L2SS-2098: Fix various issues happening during renewal
Pipeline
#104032
passed with warnings
5 months ago
Stage: prepare
Stage: lint
Stage: test
Stage: package
Stage: images
Stage: integration
Stage: publish
Stage: deploy
Pipeline: Cryptocoryne
#104033
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lofar_cryptocoryne/cli.py
+14
-3
14 additions, 3 deletions
lofar_cryptocoryne/cli.py
with
14 additions
and
3 deletions
lofar_cryptocoryne/cli.py
+
14
−
3
View file @
60bf19b7
...
...
@@ -2,6 +2,8 @@
# SPDX-License-Identifier: Apache-2.0
"""
Cryptocoryne certbot cli entrypoint
"""
import
time
import
acme.errors
import
hvac
...
...
@@ -37,15 +39,24 @@ def main():
print
(
"
Waiting for DNS to propagate...
"
)
if
client
.
check_dns_propagation
(
timeout
=
1200
):
print
(
"
Succeed. Request certificate
"
)
for
_
in
range
(
3
):
try
:
client
.
request_certificate
()
except
acme
.
errors
.
ValidationError
as
ve
:
print
(
f
"
ValidationError:
{
ve
.
failed_authzrs
}
"
)
else
:
break
print
(
"
Request failed. Retry in
"
,
end
=
"
"
)
for
t
in
range
(
5
):
time
.
sleep
(
1
)
print
(
t
,
end
=
"
"
)
print
(
"
...
"
)
certificate
.
fullchain
=
client
.
certificate
vault_store
.
put_certificate
(
certificate
)
print
(
"
Done
"
)
else
:
print
(
"
Failed to issue certificate for
"
+
str
(
client
.
domains
))
except
acme
.
errors
.
ValidationError
as
ve
:
print
(
f
"
ValidatinError:
{
ve
.
failed_authzrs
}
"
)
except
Exception
as
e
:
# pylint: disable=broad-exception-caught
print
(
f
"
{
type
(
e
)
}
:
{
e
}
"
)
finally
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment