Jira (FACT-1316) [Facter 2.4.5] On Virtuozzo containers "ipaddress" becomes 127.0.0.1

2016-01-24 Thread Adi Pircalabu (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adi Pircalabu commented on  FACT-1316 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: [Facter 2.4.5] On Virtuozzo containers "ipaddress" becomes 127.0.0.1  
 
 
 
 
 
 
 
 
 
 
Hi Branan, here it is: 
cat /proc/net/route Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT venet0 FEA9  0001 0 0 1002  0 0 0 venet0   0001 0 0 0  0 0 0 
ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:43200786 errors:0 dropped:0 overruns:0 frame:0 TX packets:43200786 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:88130746752 (82.0 GiB) TX bytes:88130746752 (82.0 GiB) 
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255 UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1 RX packets:113299124 errors:0 dropped:0 overruns:0 frame:0 TX packets:115013929 errors:0 dropped:115 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:32175403859 (29.9 GiB) TX bytes:72751117294 (67.7 GiB) 
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:192.168.1.171 P-t-P:192.168.1.171 Bcast:192.168.1.171 Mask:255.255.255.255 UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1 
venet0:1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:192.168.1.172 P-t-P:192.168.1.172 Bcast:192.168.1.172 Mask:255.255.255.255 UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1 
venet0:2 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:192.168.1.173 P-t-P:192.168.1.173 Bcast:192.168.1.173 Mask:255.255.255.255 UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because 

Jira (FACT-1316) [Facter 2.4.5] On Virtuozzo containers "ipaddress" becomes 127.0.0.1

2016-01-21 Thread Adi Pircalabu (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adi Pircalabu commented on  FACT-1316 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: [Facter 2.4.5] On Virtuozzo containers "ipaddress" becomes 127.0.0.1  
 
 
 
 
 
 
 
 
 
 
Looks like the test for ^127 has been removed from 2.4.5 and this is obviously affecting openvz: 
ifconfig | grep "inet addr|Link" lo Link encap:Local Loopback  inet addr:127.0.0.1 Mask:255.0.0.0 venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255 venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  inet addr:192.168.1.171 P-t-P:1192.168.1.171 Bcast:192.168.1.171 Mask:255.255.255.255 venet0:1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  inet addr:192.168.1.172 P-t-P:1192.168.1.172 Bcast:192.168.1.172 Mask:255.255.255.255 [...] 
— /tmp/ipaddress.rb.2.4.4 2015-05-20 02:41:16.0 +1000 +++ /tmp/ipaddress.rb.2.4.5 2016-01-21 09:31:53.0 +1100 @@ -3,7 +3,9 @@ 
 

Purpose: Return the main IP address for a host. #
 

Resolution: 
 

On the Unixes does an ifconfig, and returns the first non 127.0.0.0/8 +# On Linux and AIX, it examines the routing table and uses the IP address +# of the default interface. +# On other Unixes does an ifconfig, and returns the first non 127.0.0.0/8
 
 
 

subnetted IP it finds.
 

On Windows, it attempts to use the socket library and resolve the machine's
 

hostname via DNS. @@ -27,19 +29,8 @@ Facter.add(:ipaddress) do confine :kernel => :linux setcode do
 
 
 

ip = nil
 

output = Facter::Util::IP.exec_ifconfig(["2>/dev/null"])
 

if output
 

regexp = /inet (?:addr?([0-9]

\.[0-9]
\.[0-9]

\.[0-9]
)/
 

  

Jira (FACT-1316) [Facter 2.4.5] On Virtuozzo containers "ipaddress" becomes 127.0.0.1

2016-01-21 Thread Adi Pircalabu (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adi Pircalabu created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Facter /  FACT-1316 
 
 
 
  [Facter 2.4.5] On Virtuozzo containers "ipaddress" becomes 127.0.0.1  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 FACT 2.4.5 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Components:
 

 Community 
 
 
 

Created:
 

 2016/01/21 2:13 PM 
 
 
 

Priority:
 
  Major 
 
 
 

Reporter:
 
 Adi Pircalabu 
 
 
 
 
 
 
 
 
 
 
facter virtual openvz 
Facter 2.4.4: facter | grep "^ip" ipaddress => 192.168.1.171 ipaddress_lo => 127.0.0.1 ipaddress_venet0 => 127.0.0.1 ipaddress_venet0_0 => 192.168.1.171 ipaddress_venet0_1 => 192.168.1.172 
Facter 2.4.5: facter | grep "^ip" ipaddress => 127.0.0.1 ipaddress_lo => 127.0.0.1 ipaddress_venet0 => 127.0.0.1 ipaddress_venet0_0 => 192.168.1.171 ipaddress_venet0_1 => 192.168.1.172 
Didn't replicate it for Xen domU or physical nodes. 
 
 
 
 
 
 
 
 
 
 
 
 
 

Jira (PUP-3955) [puppet-dashboard] installation fails on CentOS 7.0.1406

2015-02-03 Thread Adi Pircalabu (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adi Pircalabu created an issue 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 Puppet /  PUP-3955 
 
 
 
  [puppet-dashboard] installation fails on CentOS 7.0.1406  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 PUP 3.7.4 
 
 
 

Assignee:
 
 Henrik Lindberg 
 
 
 

Components:
 

 Server 
 
 
 

Created:
 

 2015/02/03 10:35 PM 
 
 
 

Environment:
 
 
Linux centos7dev.ddns.local 3.10.0-123.20.1.el7.x86_64 #1 SMP Thu Jan 29 18:05:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux 
 
 
 

Priority:
 
  Blocker 
 
 
 

Reporter:
 
 Adi Pircalabu 
 
 
 
 
 
 
 
 
 
 
Following https://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html I'm trying to install the dashboard on CentOS 7, cause there's no equivalent RPM package. I got stuck here: 
rake RAILS_ENV=production db:migrate --trace WARN: Unresolved specs during Gem::Specification.reset: rack-test (~ 0.6.2) WARN: Clearing out unresolved specs. Please report a bug if this causes problems. Warning: Rails rake tasks currently unavailable because we can't find the 'rails' gem rake aborted! Don't know how to build task 'db:migrate' /usr/local/share/gems/gems/rake-10.4.2/lib/rake/task_manager.rb:62:in `[]'