PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000813PacketFencepublic2009-10-14 08:392011-01-26 15:43
Reporterobilodeau 
Assigned Toobilodeau 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000813: When a switch doesn't compile, packetfence issues an error but then goes on like its normal
DescriptionSwitch modules are instantiated only when first used. If a switch module is broken, here's what you get in the logs:

Oct 14 08:18:38 pfcmd(0) ERROR: Can not load perl module for switch 192.168.1.61, type: pf::SNMP::Cisco::Catalyst_2960. 
Either the type is unknown or the perl module has compilation errors. Read the following message for 
details: Missing right curly or square bracket at /usr/local/pf/lib/pf/SNMP/Cisco.pm line 1496, at end 
of line
syntax error at /usr/local/pf/lib/pf/SNMP/Cisco.pm line 1496, at EOF
Compilation failed in require at (eval 78) line 3.
        ...propagated at /usr/lib/perl5/5.8.8/base.pm line 85.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/SNMP/Cisco/Catalyst_2950.pm line 24.
Compilation failed in require at (eval 77) line 3.
        ...propagated at /usr/lib/perl5/5.8.8/base.pm line 85.
BEGIN failed--compilation aborted at /usr/local/pf/lib/pf/SNMP/Cisco/Catalyst_2960.pm line 28.
Compilation failed in require at /usr/local/pf/lib/pf/SwitchFactory.pm line 74. (pf::SwitchFactory::instantiate)



I'm not convinced that this is what should happen. Maybe we should do a sanity check of all modules specified in switches.conf at startup and stop starting right there.

What do you guys think?
TagsNo tags attached.
fixed in git revision
fixed in mtn revision
Attached Files

- Relationships
duplicate of 0000755closedobilodeau unhelpful packetfence error message when a switch module doesn't compile 

-  Notes
(0001334)
rbalzard (administrator)
2009-10-15 14:20

fixed in revision 5815165026bd8d612710cba3cb088b9d3c931e80

- Issue History
Date Modified Username Field Change
2009-10-14 08:39 obilodeau New Issue
2009-10-14 08:39 obilodeau Status new => assigned
2009-10-14 08:39 obilodeau Assigned To => obilodeau
2009-10-15 14:20 rbalzard Note Added: 0001334
2009-10-15 14:20 rbalzard Status assigned => resolved
2009-10-15 14:20 rbalzard Resolution open => fixed
2009-10-16 10:12 obilodeau Relationship added duplicate of 0000755
2011-01-26 15:43 obilodeau Status resolved => closed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker