[SNMP4SDN-14] ERROR message in distribution sanity check Created: 02/Feb/16 Updated: 19/Oct/17 Resolved: 15/Feb/16 |
|
| Status: | Resolved |
| Project: | snmp4sdn |
| Component/s: | General |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Luis Gomez | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 5194 |
| Description |
|
Following ERROR is seeing when bringing snmp4sdn feature: 2016-02-02 04:21:52,476 | ERROR | Event Dispatcher | CmethUtil | 466 - org.opendaylight.snmp4sdn - 0.3.0.SNAPSHOT | CmethUtil.readDB() err: {} |
| Comments |
| Comment by Christine Hsieh [ 03/Feb/16 ] |
|
This bug is fine. snmp4sdn plugin tries to read a file during start, for user's convenience. The read file failure won't harm snmp4sdn plugin nor whole system. Actually it is the switch list file, which is necessary for topology discovery for snmp4sdn plugin. snmp4sdn plugin provides command for user to manually assign the file path and trigger topology discovery. |
| Comment by Vratko Polak [ 03/Feb/16 ] |
|
> The read file failure won't harm snmp4sdn plugin nor whole system. Then it should not be logged as ERROR. |
| Comment by Luis Gomez [ 03/Feb/16 ] |
|
Right, I reopened this to see if snmp4sdn can change the log severity to WARN or INFO as future sanity checks will block everything in case of karaf ERROR. |
| Comment by A H [ 04/Feb/16 ] |
|
Luis, do you think the bug should be marked as "major" since Yi-Ling Hsieh mentions this bug is fine. |
| Comment by Luis Gomez [ 04/Feb/16 ] |
|
Sure, I just did. |
| Comment by Christine Hsieh [ 05/Feb/16 ] |
|
Thanks Luis, I modified the error as INFO level, merged as https://git.opendaylight.org/gerrit/#/c/34052/ |
| Comment by Jamo Luhrsen [ 10/Feb/16 ] |
|
In my opinion, having full traces in the logs is very alarming and we should https://git.opendaylight.org/gerrit/#/c/34364 I'm not a java person, but it allows for the generic exception to still 016-02-09 21:56:06,489 | INFO | l for user karaf | CmethUtil | 242 - org.opendaylight.snmp4sdn - 0.3.0.SNAPSHOT | enter CmethUtil.readDB() |
| Comment by Jamo Luhrsen [ 10/Feb/16 ] |
|
I moved this back to an open state, just to continue the conversation, if There is another exception coming from snmp4sdn: 2016-02-09 22:04:41,723 | WARN | l for user karaf | SNMPListener | 242 - org.opendaylight.snmp4sdn - 0.3.0.SNAPSHOT | Problem starting SNMP Trap Interfac this is also alarming, but I'm not sure the right thing to do. The reason for our jenkins jobs are using a non-root user, I guess, so we see this is CSIT Not sure the right thing, or if anything, to do on this one. |
| Comment by Christine Hsieh [ 12/Feb/16 ] |
|
For the warn alarm above, pointed by Jamo Luhrsen 2016-02-09 22:04:41,723 | WARN | l for user karaf | SNMPListener | 242 - org.opendaylight.snmp4sdn - 0.3.0.SNAPSHOT | Problem starting SNMP Trap Interfac It's due to snmp4sdn plugin needs to listen to the SNMP port for SNMP traps (in order to detect link-down/up events if receiving SNMP trap sent from an Ethernet switch). So user needs to launch Karaf with sufficient OS privilege, such as an administrator. |
| Comment by Jamo Luhrsen [ 13/Feb/16 ] |
|
So, I have two patches for you: https://git.opendaylight.org/gerrit/#/c/34364/ Since I think you would agree that these Exceptions are coming from 2016-02-12 20:10:20,732 | INFO | l for user karaf | CmethUtil | 242 - org.opendaylight.snmp4sdn - 0.3.0.SNAPSHOT | CmethUtil.readDB() fail: /etc/snmp4sdn_swdb.csv (No such file or director I can modify the patches somehow if you feel neccessary. Thanks. |
| Comment by Christine Hsieh [ 13/Feb/16 ] |
|
Thanks for the patches, introduced into snmp4sdn repo. |
| Comment by Christine Hsieh [ 13/Feb/16 ] |
|
Fixed, close this bug. |
| Comment by A H [ 15/Feb/16 ] |
|
Severity: Not a blocker. We can release Beryllium without it. |