[INTTEST-45] use REST for diagstatus instead of checking karaf.log when determining if controller is UP Created: 25/Apr/18 Updated: 25/Jul/18 |
|
| Status: | Open |
| Project: | integration-test |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Medium |
| Reporter: | Jamo Luhrsen | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
instead of this we can hit
http://${ODL_IP}:8181/diagstatus
and look for status code 418 |
| Comments |
| Comment by Michael Vorburger [ 26/Apr/18 ] |
|
> and look for status code 418 so if you look at the "doc" (cough) in |
| Comment by Jamo Luhrsen [ 27/Apr/18 ] |
|
yeah, and/or if I could read java code better too... LOL |
| Comment by Jamo Luhrsen [ 27/Apr/18 ] |
|
here's a patch to do this in robot but, we will still want a patch to do this with curl/wget in our releng/builder deploy scripts. |
| Comment by Luis Gomez [ 25/Jul/18 ] |
|
This is jut 2 files in releng/builder: jjb/integration/distribution/distribution-check-bootup.sh we just need to replace this section by the new REST call: echo "Waiting up to 6 minutes for controller to come up, checking every 5 seconds..." COUNT="0" while true; do COUNT=$(( ${COUNT} + 5 )) sleep 5 echo "already waited ${COUNT} seconds..." if grep --quiet 'org.opendaylight.infrautils.ready-impl.*System ready' "${WORKSPACE}/${BUNDLEFOLDER}/data/log/karaf.log"; then echo "Controller is UP" break elif (( "${COUNT}" > "360" )); then echo "Timeout Controller DOWN" dump_log_and_exit fi done |