Project

General

Profile

Actions

Bug #12301

open

Cancel build returns 500 if host is unreachable

Added by Daniel Lobato Garcia over 8 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Orchestration
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

If you leave a host in build mode, but after a while either DNS in the Foreman is broken, or the host is not available any more for whatever reason, cancelling the build becomes impossible.
It raises a 500 error with 'getaddrinfo: Name or service not known' or any similar exception, depending on the problem.
I think this should be handled gracefully and displayed to the user in a way the user can know what to do with this host now (check DNS, check the compute resource is reachable, etc...).


Related issues 1 (1 open0 closed)

Related to Foreman - Bug #10951: Validation errors during host build button should be skipableNew06/30/2015Actions
Actions #1

Updated by Dominic Cleal over 8 years ago

  • Category set to Orchestration

This would be applicable to any host edit that triggers orchestration and external communication, it's not unique to build cancellation.

I think you'd need to be specific about what classes of errors to implement catch code for, so examples would be handy - e.g. a name lookup error from CR code would need different code to say, a name lookup error of a smart proxy.

Actions #2

Updated by Dominic Cleal over 8 years ago

  • Related to Bug #10951: Validation errors during host build button should be skipable added
Actions

Also available in: Atom PDF