Jira (FACT-1935) Facter ipaddress6 on Windows returns link-local address with interface identifier

0 views
Skip to first unread message

Simon Thomson (JIRA)

unread,
Jul 11, 2019, 3:07:02 AM7/11/19
to puppe...@googlegroups.com
Simon Thomson created an issue
 
Facter / Bug FACT-1935
Facter ipaddress6 on Windows returns link-local address with interface identifier
Issue Type: Bug Bug
Affects Versions: FACT 3.11.8
Assignee: Unassigned
Components: Windows
Created: 2019/07/11 12:06 AM
Priority: Normal Normal
Reporter: Simon Thomson

When run on Windows servers "facter ipaddress6" returns the ipv6 address including the interface identifier.

This causes issues with Ruby applications importing Puppet Facts as Ruby IPAddr cannot deal with IPv6 addresses that include the interface identifier.

When run on Linux servers "facter ipaddress6" does not return the ipv6 address including the interface identifier.

 

Examples:

Windows Server 2012R2

Facter 3.11.6

PS C:\Users\user> facter ipaddress6
fe80::xxxx:xxx:xxxx:bbe%13

 

CentOS  7.5.1804

Facter 3.11.8

[root@hostname ~]# facter ipaddress6
fe80::xxx:xxxx:xxxx:d4bc

 

/var/log/foreman/production.log

2019-07-09T14:59:12 [W|app|47240] Action failed IPAddr::InvalidAddressError: invalid address /opt/rh/rh-ruby25/root/usr/share/ruby/ipaddr.rb:649:in `in6_addr' /opt/rh/rh-ruby25/root/usr/share/ruby/ipaddr.rb:586:in `initialize' /usr/share/foreman/app/models/subnet.rb:295:in `new' /usr/share/foreman/app/models/subnet.rb:295:in `subnet_for' /usr/share/foreman/app/models/host/base.rb:466:in `set_interface' /usr/share/foreman/app/models/host/base.rb:208:in `block in set_interfaces' /usr/share/foreman/app/models/host/base.rb:205:in `each' /usr/share/foreman/app/models/host/base.rb:205:in `set_interfaces' /usr/share/foreman/app/models/host/base.rb:183:in `populate_fields_from_facts' /usr/share/foreman/app/models/host/managed.rb:410:in `populate_fields_from_facts' /usr/share/foreman/app/models/concerns/puppet_host_extensions.rb:3:in `populate_fields_from_facts' /usr/share/foreman/app/models/host/base.rb:161:in `block in parse_facts' /usr/share/foreman/app/services/foreman/telemetry_helper.rb:27:in `telemetry_duration_histogram' /usr/share/foreman/app/models/host/base.rb:160:in `parse_facts' /usr/share/foreman/app/models/host/base.rb:149:in `import_facts'

Further discussion of this can be found at the following:

https://bugs.ruby-lang.org/issues/8464

https://community.theforeman.org/t/rails-logs-filling-production-log/14519

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Mihai Buzgau (JIRA)

unread,
Jul 16, 2019, 10:09:05 AM7/16/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Jul 16, 2019, 10:10:03 AM7/16/19
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Jul 16, 2019, 7:56:02 PM7/16/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Jul 24, 2019, 5:22:03 AM7/24/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Jul 24, 2019, 5:22:05 AM7/24/19
to puppe...@googlegroups.com

Dorin Pleava (JIRA)

unread,
Jul 29, 2019, 6:14:02 AM7/29/19
to puppe...@googlegroups.com

Dorin Pleava (JIRA)

unread,
Jul 31, 2019, 4:15:02 AM7/31/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Aug 7, 2019, 4:38:08 AM8/7/19
to puppe...@googlegroups.com

Alexandru Popa (JIRA)

unread,
Aug 14, 2019, 7:44:03 AM8/14/19
to puppe...@googlegroups.com

Simon Thomson (JIRA)

unread,
Aug 14, 2019, 8:27:02 PM8/14/19
to puppe...@googlegroups.com
Simon Thomson commented on Bug FACT-1935
 
Re: Facter ipaddress6 on Windows returns link-local address with interface identifier

Thanks to all involved for your work on this. We'll test it once it's released next month.

Jean Bond (JIRA)

unread,
Aug 20, 2019, 3:29:03 PM8/20/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Oct 11, 2019, 4:18:05 AM10/11/19
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Fix Version/s: FACT 3.11.10
Fix Version/s: FACT 3.13.4
Reply all
Reply to author
Forward
0 new messages