Bug #8639

IPv6 address don't report correctly from puppet reports

Added by David LeVene almost 8 years ago. Updated over 6 years ago.

Target version:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:


We currently use foreman in a reporting only setup and send facts from the puppet masters.
Some hosts which are IPv6 only in our network don't display the ip address correctly - see screen shot.

Ipv6 Address.jpg View Ipv6 Address.jpg 3.92 KB IPv6 Address David LeVene, 12/09/2014 09:39 PM

Related issues

Related to Foreman - Feature #2315: IPv6 SupportAssigned2013-03-13
Related to Foreman - Feature #14664: Add IPv6 Subnet to Host, Hostgroup and Nic ModelsClosed2016-04-15


#1 Updated by David LeVene almost 8 years ago

#2 Updated by Dominic Cleal almost 8 years ago

  • Category changed from Web Interface to Importers

#3 Updated by David LeVene almost 8 years ago

Did a little bit of investigation into why this is happening, and the hosts table in the foreman database doesn't contain the correct information, so when its creating the host from a report/facts its truncating the IP address at the : (educated guess)

hosts.ip = 2400
fact_values.value WHERE fact_name_id =2 (ipaddress in this databases case) gives the correct IP address.

I can see some IP processing happening in assets/javascripts/host_edit.js, which is IPv4 releated so that would probably destroy the IP - but not sure if these functions are used/called.

Anyway, the facts coming in are correct, but the data mirrored in the hosts table is not which i believe is being done by something in the services/fact_importer.rb file?

#4 Updated by Dominic Cleal almost 8 years ago

Does facter ipaddress show the IPv6 address then on v6-only hosts?

Foreman is just incapable of v6 support right now (partly because the tables are only meant to store v4 addresses, validation of addresses and lack of smart proxy support).

It probably needs adding to the NIC model first (once #7456 is merged) as an additional attribute - so you have v4 and/or v6 addresses stored per interface, then we can update the fact importer as you suggest to import the v6 address.

#5 Updated by David LeVene almost 8 years ago

Facter does only report the IPv6 address.

IPv6 Only host
  1. facter | grep ip
    ipaddress => 24xx:7Dxx:xxxxxx
    ipaddress6 => 24xx:7dxx:xxxxx
    ipaddress6_eth0 => 24xx:7dxx:xxxxx
    ipaddress_lo =>
as opposed to a server which has both ipv4 & 6
  1. facter | grep ip
    ipaddress => xxx.xx.xx.xx
    ipaddress6 => 24xx:7dxx:xxxx
    ipaddress6_eth0 => 24xx:7dxx:xxxxx
    ipaddress_eth0 => xxx.xx.xx.xx
    ipaddress_lo =>

#6 Updated by Timo Goebel over 6 years ago

  • Related to Feature #14664: Add IPv6 Subnet to Host, Hostgroup and Nic Models added

Also available in: Atom PDF