[CONTROLLER-40] SanityTest needs rework Created: 16/Oct/13 Updated: 25/Jul/23 Resolved: 05/May/15 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | adsal |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Prasanth Pallamreddy | Assignee: | Prasanth Pallamreddy |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 116 |
| Priority: | High |
| Description |
|
The current sanity test is very fragile and needs to be revisited. The purpose of this test is to validate all the bundles ensuring that they are all in a healthy state. 1) Use a proper mechanism to start the controller process. Consider using a controller-maven-plugin to plug into the lifecycle phases of maven. Wrapping run.sh and sleeping and doing System.exit() seems very convoluted. 2) The sanityTest has not been implemented as a test. Its a bundle which is copied to the plugins directory which spins for some time and exits the JVM. The test is better implemented as a JMX client being out of process to validate the bundles. |
| Comments |
| Comment by Prasanth Pallamreddy [ 17/Oct/13 ] |
|
To be able to retrieve the bundle states via JMX, 1) Start controller as 'run.sh -jmx'. This enables JMX capabilities ObjectName:org.ow2.chameleon:type=bundle,id=113 name:org.opendaylight.controller.sal-common-util state:32 ... |
| Comment by Prasanth Pallamreddy [ 17/Oct/13 ] |
|
Attachment JMXBundlePrinter.java has been added with description: Pure JMX Client which dumps bundles and states |
| Comment by Prasanth Pallamreddy [ 12/Dec/13 ] |
| Comment by Carol Sanders [ 05/May/15 ] |
|
This bug is part of the project to Move all ADSAL associated component bugs to ADSAL. |