Project

General

Profile

Bug #2325

No A record created in domain when provisioning an ec2 vm

Added by Jason Montleon over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
DNS
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

When I provision a new vm in ec2 and I choose a domain on my Foreman server no CNAME or A record is created. I see the following output, which doesn't indicate anything is happening with DNS locally. It would be great to get a CNAME pointing at the EC2 server name. Not sure why I need (or would be able) to select a domain if it's not going to set up a record.

If this ends up not being a bug I'd like to request as a feature that a CNAME be created.

new In Progress
completed - Settings up compute instance test2.ec2.devlab.redhat.com
completed - Acquiring IP address for test2.ec2.devlab.redhat.com
completed - Querying instance details for test2.ec2.devlab.redhat.com
completed - Preparing Post installation script for test2.ec2.devlab.redhat.com
running - Waiting for test2.ec2.devlab.redhat.com to come online
pending - Enable Certificate generation for test2.ec2.devlab.redhat.com
pending - Configuring instance test2.ec2.devlab.redhat.com via SSH

Associated revisions

Revision 3b6d1527 (diff)
Added by Ohad Levy over 6 years ago

fixes #2325 No A record created in domain when provisioning image based vm

Revision 022c4060 (diff)
Added by Ohad Levy about 6 years ago

fixes #2325 No A record created in domain when provisioning image based vm
(cherry picked from commit 3b6d152746d63444ce0ae2044cec4cbb8f224882)

History

#1 Updated by Jason Montleon over 6 years ago

broken by:
https://github.com/theforeman/foreman/commit/8838eb42a2a292f50126966d3fa768edad3a237a

app/models/orchestration/dns.rb
- !domain.nil? and !domain.proxy.nil? and managed?
+ name.present? and ip.present? and !domain.nil? and !domain.proxy.nil? and managed?

Reverting that change causes DNS records to get created for ec2 hosts again.

#2 Updated by Dominic Cleal over 6 years ago

  • Category set to DNS
  • Target version set to 1.2.0

#3 Updated by Ohad Levy over 6 years ago

  • Assignee set to Ohad Levy

#4 Updated by Ohad Levy over 6 years ago

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

Also available in: Atom PDF