Commit e587f11f authored by Dylan Griffith's avatar Dylan Griffith

Add more logging for errors with kubernetes on helm install

parent 6e9179ab
...@@ -14,7 +14,8 @@ module Clusters ...@@ -14,7 +14,8 @@ module Clusters
else else
check_timeout check_timeout
end 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? app.make_errored!("Kubernetes error") unless app.errored?
end end
...@@ -51,7 +52,8 @@ module Clusters ...@@ -51,7 +52,8 @@ module Clusters
def remove_installation_pod def remove_installation_pod
helm_api.delete_pod!(install_command.pod_name) helm_api.delete_pod!(install_command.pod_name)
rescue rescue => e
Rails.logger.error "Kubernetes error: #{e.class.name} #{e.message}"
# no-op # no-op
end end
......
...@@ -12,9 +12,11 @@ module Clusters ...@@ -12,9 +12,11 @@ module Clusters
ClusterWaitForAppInstallationWorker.perform_in( ClusterWaitForAppInstallationWorker.perform_in(
ClusterWaitForAppInstallationWorker::INTERVAL, app.name, app.id) 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.") 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.") app.make_errored!("Can't start installation process.")
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment