aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp
AgeCommit message (Collapse)Author
2019-07-31[snmp] Fixed agent|manager top supervisor stopMicael Karlberg
2019-07-31Merge branch 'bmk/snmp/manager/20190729/test_tweaking' into maintMicael Karlberg
2019-07-29Merge branch 'bmk/snmp/manager/20190723/test_tweaking' into maintMicael Karlberg
2019-07-29[snmp|manager|test] Make even deprecated test cases use tc_tryMicael Karlberg
Make even deprecated test cases use the tc_try function (so that all test cases look the same). Also make the skip reason for those test cases be slightly more readable.
2019-07-29[snmp|manager|test] Make use of the tc_try function(s)Micael Karlberg
Make use of the tc_try function(s) in all "active" test cases.
2019-07-29[snmp|test] Add utility functions for running test casesMicael Karlberg
Add a utility function, tc_try/2,3, for running test cases in a uniform way.
2019-07-23[snmp|manager|test] Fixed notify test caseMicael Karlberg
The (second) notify test case had a faulty "condition" test (which skipped the case in all cases except when it was supposed to be skipped :) Also, the test start and stop of the manager during the test case has been adjusted. We try to keep track of how long time each start and stop takes. And also, if they takes to long, we skip the case.
2019-07-23[snmp|manager] Stop the managerMicael Karlberg
Make stopping the manager (the entire manager sup tree) more easy. The function(s) for starting and stopping the manager that exist in the snmpm module is (mostly) intended for testing, making the stop function more "potent" is no real problem (now any process not just the parent) can stop the manager process tree.
2019-07-23[snmp|manager|test] Notify started (test case) adjustmentsMicael Karlberg
We have seen one case when it takes unreasonably long time to start the manager, which causes the test case (notify_started01) to fail. We try to monitor the start, and if it takes to long a time, we instead skip.
2019-07-22[snmp/agent|test] Fixing test runner exitMicael Karlberg
2019-07-08Merge branch 'bmk/snmp/20190624/compile_time_info/OTP-15330' into maintMicael Karlberg
2019-07-08[snmp] Compile time no longer availableMicael Karlberg
The function 'snmp:print_version_info/0' which prints various (version) info, attempted to extract the "compile time" of each module in the snmp app. This info used to be availabe in the module_info of each module, but has been removed (a "long" time ago). This resulted in a pointless "Not Found" beeing printed. This has now been removed from the into printed. OTP-15330
2019-07-08Merge branch 'bmk/snmp/20190627/dialyzer/OTP-15932' into maintMicael Karlberg
2019-07-08[snmp] Updated copyright end dateMicael Karlberg
OTP-15932
2019-07-08Merge branch 'bmk/snmp/20190607/discover_slooow_vm_issues' into maintMicael Karlberg
2019-07-02[snmp|agent|test] Add another "skip point"Micael Karlberg
We have hosts (mostly *very* slooow VMs) that can timeout anything. Since we are basically testing communication, we therefor must check for system events at every failure. Grrr!
2019-06-27[snmp|agent|test] Add another "skip point"Micael Karlberg
Try to detect if the test case function skip's, end re-exit so that "eventually" the test case runner detects it in turn re-exit...#@!!£##!...
2019-06-27[snmp|agent|test] Add another "skip point"Micael Karlberg
A test run where the node died after a series of "busy dist port" events and then the node died which caused the process that ran the test case to crash with reason = noconnection. And since this was a "permanent" node, the remaining test cases then crashed. Again, this has nothing to do with snmp or its test suites.
2019-06-27[snmp|agent|test] Try to figure out how "fast" a machine isMicael Karlberg
A very simple way to calculate how long the request timeout shall be. Previously it was simply a constant (3.5 seconds). We assume that the number of schedulers matters...
2019-06-27[snmp|agent|test] (maybe) Needs to throw the skipMicael Karlberg
We maybe needs to throw the skip when we detect system events.
2019-06-27[snmp|agent] Add disable flags to quiet dialyzerMicael Karlberg
Warning for some functions "for no reason" (obviously there is a reason, but I have to dig deeeep to find it). Also warnings for stuff there is no way to type today (for instance, improper lists). OTP-15932
2019-06-27[snmp|doc] Dialyzer related changesMicael Karlberg
Also found and corrected some (apparently minor) bugs. OTP-15932
2019-06-27[snmp|agent] Dialyzer related changesMicael Karlberg
Changes to satisfy dialyzer. Including changing the definition of some of the behaviours (use the '-callback' attribute instead of an explicit behaviour_info/1 function). Also found and corrected some (apparently minor) bugs. OTP-15932
2019-06-27[snmp|manager] Dialyzer related changesMicael Karlberg
Changes to satisfy dialyzer. Including changing the definition of the snmpm_network_interface behaviour (use the '-callback' attribute instead of an explicit behaviour_info/1 function). OTP-15932
2019-06-27[snmp] Dialyzer fixesMicael Karlberg
Make target (for running dialyzer on snmp), os usage and a minor snmp_log ("future proofing"). OTP-15932
2019-06-24Merge branch 'bmk/snmp/20190524/ipv6_issues/OTP-15764' into maintMicael Karlberg
2019-06-17[snmp|manager|test] Problems starting (slave) nodesMicael Karlberg
When we fail to start a (slave) node with reason timeout, its possible that it actually succeeded, which will cause the following test case(s) init to fail (with 'already started', since it which also try to start this node). But since we don't know if we get this because for this reason or because the previous test case failed to clean up after itself, we cannot assume that the state of the node is ok (and therefor use it). So, we attempt to stop it, and try start it again (*one* time). This has been observed on one (slooow) VM host.
2019-06-14[snmp|test] Issues with netsnmp test on Solaris 5.11Micael Karlberg
On solaris 5.11 (actually OpenIndiana Hipster) the arguments for (some of) the netsnmp programs differ from what is used in our test suite. Added actual checks for *one of* the failures, which is indicated with the printout "illegal option". In those cases the test case is instead skipped.
2019-06-12[snmp|agent|test] Attempt to skip when system events happenMicael Karlberg
When a manager request timeout occurs (the manager sends a request to the agent but does not receive a reply in time), we now check if there has been any system monitor events, and if so we instead skip's the test case.
2019-06-07[snmp|test] Use system monitor to discover slow VM issuesMicael Karlberg
We have experienced intermittent failures of random test cases on slow VMs. In order to get more info about the system, we use system monitor to collect info. We have one global monitor system, and one local monitor on each node. Each local monitor report to the global, which in turn prints a message.
2019-05-29[snmp] Add verbosity printouts to the set handlingMicael Karlberg
Add verbosity printouts after a set operation. Both for a successful and a failed set. On one of our test hosts (a VM running an old gento), it looked like an ets or dets insert hangs. But since we only have a printout directly before, we can't tell for sure what happens. OTP-15764
2019-05-29[snmp|test] Improved IPv6 test checksMicael Karlberg
Improve the checks for if/when we shall run the IPv6 test cases. OTP-15764
2019-05-28[snmp|test] Maybe skipable (IPv6) groupsMicael Karlberg
Add an "os test" to the IPv6 group init. On "old" version of darwin (9.8.0) its simply to messy to figure out our IPv6 address, so its better to simply skip the IPv6 tests on those machines. OTP-15764
2019-05-28[snmp|test] Replaced monitor with linkMicael Karlberg
Replaced the monitor (to the tc runner process) with a link. The point is that if the test case "stalls", the ts (ct) framework shall kill it (with the test case process). OTP-15764
2019-05-28[snmp|test] Improve the test case startMicael Karlberg
The function used by "all" the agent test cases to actually run the operations have been improved. There was previously very little monitoring of the result. Have added some (minor) checks, both before trying to running the test case, and "during". Such as, is the node we attempt to use actually alive. Then, when we spawn the test case runner process on the (remote) node, make it report back before trying to run the actuall test case (so we know that the spawn worked. Also added a monitor of the process, so that we will detect fatal errors. OTP-15764
2019-05-28[snmp|test] Add more printouts to understand IPv6 issuesMicael Karlberg
OTP-15764
2019-05-22[snmp] Replaced usage of random with randMicael Karlberg
Use of the deprecated module random has been replaced by the module rand. OTP-15331
2019-05-22[snmp] Remove use of the deprecated get_stacktrace functionMicael Karlberg
Removed the use of the deprecated erlang:stacktrace() function. Instead make use of the 'catch Class:Error:Stacktrace' feature. OTP-15332
2019-05-10Prepare releaseErlang/OTP
2019-04-24Revert "Prepare release"Rickard Green
This reverts commit 425889ba69b69a9b6fb14bfbef121d51b78e853a.
2019-04-23Prepare releaseErlang/OTP
2019-04-17Merge branch 'bmk/20190415/fix_timestamp_type'Micael Karlberg
2019-04-17Merge branch 'maint'Micael Karlberg
* maint: Updated OTP version Prepare release
2019-04-17Merge branch 'maint-20' into maintMicael Karlberg
* maint-20: Updated OTP version Prepare release # Conflicts: # OTP_VERSION # erts/doc/src/notes.xml # erts/vsn.mk # lib/common_test/doc/src/notes.xml # lib/common_test/vsn.mk # lib/erl_interface/doc/src/notes.xml # lib/erl_interface/vsn.mk # lib/snmp/doc/src/notes.xml # lib/snmp/vsn.mk # lib/ssh/doc/src/notes.xml # lib/ssh/vsn.mk # lib/tools/doc/src/notes.xml # lib/tools/vsn.mk # make/otp_version_tickets # otp_versions.table
2019-04-16Prepare releaseErlang/OTP
2019-04-15[snmp|agent] Fix typesMicael Karlberg
There no timestamp type in os (but there is in erlang).
2019-04-15Merge branch 'bmk/snmp/agent/20190411/test_suite_improvements'Micael Karlberg
2019-04-15Merge branch 'bmk/snmp/manager/20190410/test_suite_tweaking'Micael Karlberg
2019-04-12[snmp|manager|test] Try to estimate appropriate timeouts for start/stopMicael Karlberg
For the notify_started02 test case we (now) try estimate how long we should wait for completion (based on the time of the first iteration). On slow machines, it takes longer to start and stop the manager, so adjust the total timeout accordingly.
2019-04-11[snmp] Post rebase fixupMicael Karlberg