Project

General

Profile

Actions

Bug #4599

closed

Managed interfaces do not create proper DNS records

Added by Trey Dockendorf about 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Network
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

A host's managed interfaces, including BMC, create invalid PTR DNS records and do not create A records. This is due to the DNS record for the interface using it's short name (no domain name appended).


Related issues 3 (1 open2 closed)

Related to Foreman - Bug #2750: DNS record for BMC interface don't append domain nameDuplicateTrey Dockendorf07/05/2013Actions
Related to Foreman - Tracker #5409: DNS Proxy ImprovementsNew

Actions
Related to Foreman - Bug #6374: NIC with domain but no hostname tries to create ".domain.com" DNS recordClosedDavid Swift06/25/2014Actions
Actions #1

Updated by Trey Dockendorf about 10 years ago

This also effects DHCP records created for managed interfaces.

Example from rails console:

irb(main):005:0> host = Host.find_by_name('vm01.DOMAIN')
  Host::Managed Load (0.3ms)  SELECT `hosts`.* FROM `hosts` WHERE `hosts`.`type` IN ('Host::Managed') AND `hosts`.`name` = 'vm01.DOMAIN' LIMIT 1
=> #<Host::Managed id: 60, name: "vm01.DOMAIN", ip: "192.168.202.101", last_compile: "2014-02-14 18:43:52", last_freshcheck: nil, last_report: "2014-02-14 18:43:41", updated_at: "2014-02-14 18:44:04", source_file_id: nil, created_at: "2014-01-16 19:53:48", mac: "00:30:48:bc:98:1e", root_pass: nil, serial: nil, puppet_status: 1241522176, domain_id: 1, architecture_id: 1, operatingsystem_id: 8, environment_id: 2, subnet_id: 1, ptable_id: 13, medium_id: 7, build: false, comment: "", disk: "", installed_at: "2014-02-14 01:24:53", model_id: 4, hostgroup_id: 26, owner_id: nil, owner_type: nil, enabled: true, puppet_ca_proxy_id: 1, managed: true, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: 1, certname: "vm01.DOMAIN", image_id: nil, organization_id: nil, location_id: nil, type: "Host::Managed", compute_profile_id: nil>
irb(main):006:0> host.dns_a_record
  Domain Load (0.2ms)  SELECT `domains`.* FROM `domains` WHERE `domains`.`id` = 1 ORDER BY domains.name LIMIT 1
  SmartProxy Load (0.1ms)  SELECT `smart_proxies`.* FROM `smart_proxies` WHERE `smart_proxies`.`id` = 1 ORDER BY smart_proxies.name LIMIT 1
=> vm01.DOMAIN/192.168.202.101
irb(main):007:0> host.dns_ptr_record
  Subnet Load (0.2ms)  SELECT `subnets`.* FROM `subnets` WHERE `subnets`.`id` = 1 ORDER BY vlanid LIMIT 1
  SmartProxy Load (0.1ms)  SELECT `smart_proxies`.* FROM `smart_proxies` WHERE `smart_proxies`.`id` = 1 ORDER BY smart_proxies.name LIMIT 1
=> 192.168.202.101/vm01.DOMAIN
irb(main):008:0> interface = host.interfaces.first
  Nic::Base Load (0.3ms)  SELECT `nics`.* FROM `nics` WHERE `nics`.`host_id` = 60 LIMIT 1
=> #<Nic::BMC id: 34, mac: "00:30:48:bc:98:20", ip: "192.168.206.101", type: "Nic::BMC", name: "vm01-bmc", host_id: 60, subnet_id: 2, domain_id: 1, attrs: {:username=>"ADMIN", :password=>"ADMIN", :provider=>"IPMI"}, created_at: "2014-01-16 19:54:41", updated_at: "2014-01-16 19:54:41">
irb(main):009:0> interface.dns_a_record
  Domain Load (0.2ms)  SELECT `domains`.* FROM `domains` WHERE `domains`.`id` = 1 ORDER BY domains.name LIMIT 1
  SmartProxy Load (0.1ms)  SELECT `smart_proxies`.* FROM `smart_proxies` WHERE `smart_proxies`.`id` = 1 ORDER BY smart_proxies.name LIMIT 1
  Host::Managed Load (0.1ms)  SELECT `hosts`.* FROM `hosts` WHERE `hosts`.`type` IN ('Host::Managed') AND `hosts`.`id` = 60 LIMIT 1
=> vm01-bmc/192.168.206.101
irb(main):010:0> interface.dns_ptr_record
  Subnet Load (0.2ms)  SELECT `subnets`.* FROM `subnets` WHERE `subnets`.`id` = 2 ORDER BY vlanid LIMIT 1
  SmartProxy Load (0.2ms)  SELECT `smart_proxies`.* FROM `smart_proxies` WHERE `smart_proxies`.`id` = 1 ORDER BY smart_proxies.name LIMIT 1
=> 192.168.206.101/vm01-bmc
irb(main):011:0> host.dhcp_record
  SmartProxy Load (0.3ms)  SELECT `smart_proxies`.* FROM `smart_proxies` WHERE `smart_proxies`.`id` = 1 ORDER BY smart_proxies.name LIMIT 1
  Operatingsystem Load (0.1ms)  SELECT `operatingsystems`.* FROM `operatingsystems` WHERE `operatingsystems`.`id` = 8 ORDER BY operatingsystems.name LIMIT 1
  SmartProxy Load (0.2ms)  SELECT `smart_proxies`.* FROM `smart_proxies` WHERE `smart_proxies`.`id` = 1 ORDER BY smart_proxies.name LIMIT 1
=> vm01.DOMAIN-00:30:48:bc:98:1e/192.168.202.101
irb(main):012:0> interface.dhcp_record
  SmartProxy Load (0.2ms)  SELECT `smart_proxies`.* FROM `smart_proxies` WHERE `smart_proxies`.`id` = 1 ORDER BY smart_proxies.name LIMIT 1
=> vm01-bmc-00:30:48:bc:98:20/192.168.206.101
Actions #2

Updated by Trey Dockendorf about 10 years ago

  • Related to Bug #2750: DNS record for BMC interface don't append domain name added
Actions #3

Updated by Trey Dockendorf almost 10 years ago

  • Assignee set to Trey Dockendorf
Actions #4

Updated by Stephen Benjamin almost 10 years ago

Actions #5

Updated by Dominic Cleal almost 10 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 1.8.4
Actions #6

Updated by Anonymous almost 10 years ago

  • Target version changed from 1.8.4 to 1.8.3
Actions #7

Updated by Anonymous almost 10 years ago

  • Target version changed from 1.8.3 to 1.8.4
Actions #8

Updated by Anonymous almost 10 years ago

  • Target version changed from 1.8.4 to 1.8.3
Actions #9

Updated by Dominic Cleal almost 10 years ago

  • translation missing: en.field_release set to 4
Actions #10

Updated by Trey Dockendorf almost 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #11

Updated by Dominic Cleal almost 10 years ago

  • Related to Bug #6374: NIC with domain but no hostname tries to create ".domain.com" DNS record added
Actions

Also available in: Atom PDF