Issue #16511 has been updated by Jeff McCune.

Category set to hpux
Status changed from Unreviewed to Accepted
Target version set to 1.6.x
Keywords set to hpux
Affected Facter version deleted (1.6.12-rc2)

This is definitely a bug.

Alex,

I assume the expected behavior is that it is possible to figure out the ARP 
value on HP-UX, but i'm not sure how to do this.  Could you please help me by 
copying an exact command and it's output that I could use from within Facter to 
reliably determine the ARP address on HP-UX?

No matter what, we should not be printing that arp: -an: unknown host error.

So there are really two issues here.  First, don't display these errors to when 
running on hp-ux, second, figure out how to produce a robust and accurate value 
for the ARP address on hp-ux.

For the purposes of this ticket, I'd like to focus on the first issue.  If the 
second issue is actually an issue and the MAC address is not being produced 
correctly then please file that as another issue related to this issue and add 
me as a watcher.

Thanks,
-Jeff
----------------------------------------
Bug #16511: EC2 code breaks facter on Solaris 8 and earlier
https://projects.puppetlabs.com/issues/16511#change-73614

Author: Alex Harvey
Status: Accepted
Priority: Normal
Assignee: Alex Harvey
Category: hpux
Target version: 1.6.x
Keywords: hpux
Branch: 
Affected Facter version: 


The following code in lib/facter/util/ec2.rb breaks various facts on versions 
of Unix that do not support the arp -n option.

    # Test if the host has an arp entry in its cache that matches the EC2 arp,
    # which is normally +fe:ff:ff:ff:ff:ff+.
    def has_ec2_arp?
      mac_address = "fe:ff:ff:ff:ff:ff"
      if Facter.value(:kernel) == 'windows'
        arp_command = "arp -a"
        mac_address.gsub!(":","-")
      else
        arp_command = "arp -an"
      end

This results in failures like the following -

    $ facter swapsize
    arp: -an: unknown host
    2.00 GB



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to