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

2019-08-14 Thread Simon Thomson (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Simon Thomson commented on  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.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.316045.1562828787000.57395.1565828820101%40Atlassian.JIRA.


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

2019-07-11 Thread Simon Thomson (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Simon Thomson created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-1935  
 
 
  Facter ipaddress6 on Windows returns link-local address with interface identifier   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Affects Versions: 
 FACT 3.11.8  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 Windows  
 
 
Created: 
 2019/07/11 12:06 AM  
 
 
Priority: 
  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:::xxx::bbe%13
   CentOS  7.5.1804 Facter 3.11.8 

[root@hostname ~]# facter ipaddress6 fe80::xxx:::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