Christopher McCrory
2011-May-16 20:07 UTC
[Puppet Users] buglet in ec2 facts in facter 1.5.9rc6
Hello... I ran into a buglet in facter 1.5.9rc6 (from tmz repo). In normal AWS instances it works great. In VPC instances if doesn''t work. This seems to be because VPC instances don''t use the fe:ff:ff:... MAC addresses. /sbin/ifconfig eth0 Link encap:Ethernet HWaddr 02:67:4E:E1:26:30 inet addr:172.17.129.24 ... /sbin/arp Address HWtype HWaddress Flags Mask Iface 169.254.169.253 ether 02:67:4E:C0:00:01 C eth0 172.17.128.1 ether 02:67:4E:C0:00:01 C eth0 /sbin/ifconfig eth0 Link encap:Ethernet HWaddr 02:67:4E:DA:58:16 inet addr:172.17.128.126 /sbin/arp Address HWtype HWaddress Flags Mask Iface 169.254.169.253 ether 02:67:4E:C0:00:01 C eth0 172.17.128.1 ether 02:67:4E:C0:00:01 C eth0 Of the two VPC EC2 instances I''ve seen, the MAC address always start with 02:67:4E. I have only seen two instances, both in the same VPC, so I don''t know if this holds for every VPC instance, YMMV. in ec2.rb , the following seemed to work: def has_euca_mac? !!(Facter.value(:macaddress) =~ %r{^02:67:4[eE]:}) end -- Christopher McCrory To the optimist, the glass is half full. To the pessimist, the glass is half empty. To the engineer, the glass is twice as big as it needs to be. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nigel Kersten
2011-May-17 19:19 UTC
Re: [Puppet Users] buglet in ec2 facts in facter 1.5.9rc6
On Mon, May 16, 2011 at 8:07 PM, Christopher McCrory <chrismcc@gmail.com> wrote:> Hello... > > I ran into a buglet in facter 1.5.9rc6 (from tmz repo). In normal AWS > instances it works great. In VPC instances if doesn''t work. This seems > to be because VPC instances don''t use the fe:ff:ff:... MAC addresses.Thanks Chris. I''ve put this in as: http://projects.puppetlabs.com/issues/7559 and this will cause us to cut another RC for Facter 1.5.9> > > /sbin/ifconfig > eth0 Link encap:Ethernet HWaddr 02:67:4E:E1:26:30 > inet addr:172.17.129.24 ... > > > /sbin/arp > Address HWtype HWaddress Flags Mask Iface > 169.254.169.253 ether 02:67:4E:C0:00:01 C eth0 > 172.17.128.1 ether 02:67:4E:C0:00:01 C eth0 > > > /sbin/ifconfig > eth0 Link encap:Ethernet HWaddr 02:67:4E:DA:58:16 > inet addr:172.17.128.126 > > /sbin/arp > Address HWtype HWaddress Flags Mask Iface > 169.254.169.253 ether 02:67:4E:C0:00:01 C eth0 > 172.17.128.1 ether 02:67:4E:C0:00:01 C eth0 > > > > Of the two VPC EC2 instances I''ve seen, the MAC address always start > with 02:67:4E. I have only seen two instances, both in the same VPC, so > I don''t know if this holds for every VPC instance, YMMV. > > > in ec2.rb , the following seemed to work: > > def has_euca_mac? > !!(Facter.value(:macaddress) =~ %r{^02:67:4[eE]:}) > end > > > > > > > -- > Christopher McCrory > To the optimist, the glass is half full. > To the pessimist, the glass is half empty. > To the engineer, the glass is twice as big as it needs to be. > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > >-- Nigel Kersten Product, Puppet Labs @nigelkersten -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Christopher McCrory
2011-May-18 21:57 UTC
Re: [Puppet Users] buglet in ec2 facts in facter 1.5.9rc6
Hello... On Tue, 2011-05-17 at 19:19 +0000, Nigel Kersten wrote:> On Mon, May 16, 2011 at 8:07 PM, Christopher McCrory <chrismcc@gmail.com> wrote: > > Hello... > > > > I ran into a buglet in facter 1.5.9rc6 (from tmz repo). In normal AWS > > instances it works great. In VPC instances if doesn''t work. This seems > > to be because VPC instances don''t use the fe:ff:ff:... MAC addresses. > > Thanks Chris. I''ve put this in as: > > http://projects.puppetlabs.com/issues/7559 >w00t!> and this will cause us to cut another RC for Facter 1.5.9 >FWIW, personally, I''d rather have a facter release that works in regular (most?) EC2 instances than waiting for a fix for this buglet. VPC EC2 instances are probably not in use by very many people and the VPC EC2 servers I found this bug on are not production. <snip> p.s. I really like the Portland,OR train system. $2.35 from downtown to the airport beats a $20-$50 cab in LA anyday. -- Christopher McCrory To the optimist, the glass is half full. To the pessimist, the glass is half empty. To the engineer, the glass is twice as big as it needs to be. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.