Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e587f11f
Commit
e587f11f
authored
Nov 06, 2018
by
Dylan Griffith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more logging for errors with kubernetes on helm install
parent
6e9179ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
app/services/clusters/applications/check_installation_progress_service.rb
...sters/applications/check_installation_progress_service.rb
+4
-2
app/services/clusters/applications/install_service.rb
app/services/clusters/applications/install_service.rb
+4
-2
No files found.
app/services/clusters/applications/check_installation_progress_service.rb
View file @
e587f11f
...
...
@@ -14,7 +14,8 @@ module Clusters
else
check_timeout
end
rescue
Kubeclient
::
HttpError
rescue
Kubeclient
::
HttpError
=>
e
Rails
.
logger
.
error
"Kubernetes error:
#{
e
.
class
.
name
}
#{
e
.
message
}
"
app
.
make_errored!
(
"Kubernetes error"
)
unless
app
.
errored?
end
...
...
@@ -51,7 +52,8 @@ module Clusters
def
remove_installation_pod
helm_api
.
delete_pod!
(
install_command
.
pod_name
)
rescue
rescue
=>
e
Rails
.
logger
.
error
"Kubernetes error:
#{
e
.
class
.
name
}
#{
e
.
message
}
"
# no-op
end
...
...
app/services/clusters/applications/install_service.rb
View file @
e587f11f
...
...
@@ -12,9 +12,11 @@ module Clusters
ClusterWaitForAppInstallationWorker
.
perform_in
(
ClusterWaitForAppInstallationWorker
::
INTERVAL
,
app
.
name
,
app
.
id
)
rescue
Kubeclient
::
HttpError
rescue
Kubeclient
::
HttpError
=>
e
Rails
.
logger
.
error
"Kubernetes error:
#{
e
.
class
.
name
}
#{
e
.
message
}
"
app
.
make_errored!
(
"Kubernetes error."
)
rescue
StandardError
rescue
StandardError
=>
e
Rails
.
logger
.
error
"Can't start installation process:
#{
e
.
class
.
name
}
#{
e
.
message
}
"
app
.
make_errored!
(
"Can't start installation process."
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment