Bug #1793

Better handle case when a domain has no DNS proxy set

Added by Andreas Ntaflos 11 months ago. Updated 10 months ago.

Status:Closed Start:07/30/2012
Priority:Normal Due date:
Assigned to:Ohad Levy % Done:

100%

Category:Host creation
Target version:1.0.1
Backlog:No Difficulity:
Votes: 0

Description

When a domain in Foreman (More -> Domains -> dmz.example.com) does not have a DNS smart-proxy set, creating a host in that domain fails with an unhelpful error message like this: "Create DNS record for web01.dmz.example.com task failed with the following error: undefined method `create' for nil:NilClass".

Full log message here: http://pastie.org/4358270

A case like this should either result in a better error message (e.g. "No DNS smart proxy set for domain") or, probably even better, a warning that no proxy is set and thus no DNS RR (A) will be created for the new host. The user could then have the option to continue or fix the missing DNS proxy.

Associated revisions

Revision ca4c08a165e8ad30dd00d615f3ec17d083fa316d
Added by Ohad Levy 10 months ago

fixes #1793 - Better handle case when a domain has no DNS proxy set

Revision 9b85aee53388b6a3eb26aed62110d2578f0f2234
Added by Ohad Levy 10 months ago

fixes #1793 - Better handle case when a domain has no DNS proxy set

History

Updated by Ohad Levy 10 months ago

  • Category set to Host creation
  • Assigned to changed from Greg Sutcliffe to Ohad Levy
  • Target version set to 1.1

Updated by Ohad Levy 10 months ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Updated by Ohad Levy 10 months ago

  • Target version changed from 1.1 to 1.0.1

Also available in: Atom PDF