bug with newer Net::ARP version numbers

Bug #1766773 reported by David Beveridge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mysql-mmm
Status tracked in Trunk
Trunk
Fix Released
Medium
David Beveridge

Bug Description

This bug was first reported on redhat bugzilla (and patched) some time ago.
https://bugzilla.redhat.com/show_bug.cgi?id=1169914

in lib/Agent/Helpers/Network.pm this if statement makes a numerical comparison on the version number of the Net::ARP perl module. For any version that is less than 1.0 (ie 0.x) needs to call a different function to get the mac address.

                if ($Net::ARP::VERSION < 1.0) {
                        Net::ARP::get_mac($if, $mac);
                }
                else {
                        $mac = Net::ARP::get_mac($if);
                }

The check "$Net::ARP::VERSION < 1.0" outputs a warning for a version such as "1.0.8", and since warnings are fatal, the code dies before running the send_arp() steps.

The patch changes the check to
                if ($Net::ARP::VERSION =~ /^0/) {
That is, check if the version starts with a zero.

This affects all versions including 2.2.1

Revision history for this message
David Beveridge (dage) wrote :
David Beveridge (dage)
Changed in mysql-mmm:
importance: Undecided → Medium
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.