Project

General

Profile

Bug #8639

IPv6 address don't report correctly from puppet reports

Added by David LeVene over 4 years ago. Updated almost 3 years ago.

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

Description

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
Ipv6%20address

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

History

#1 Updated by David LeVene over 4 years ago

#2 Updated by Dominic Cleal over 4 years ago

  • Category changed from Web Interface to Importers

#3 Updated by David LeVene over 4 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 over 4 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 over 4 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 => 127.0.0.1
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 => 127.0.0.1

#6 Updated by Timo Goebel about 3 years ago

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

Also available in: Atom PDF