Project

General

Profile

Actions

User story #2222

closed

PT distributePolicy: Check status of webapp and endpoint, and restart jetty if several continuous tests fail

Added by Jonathan CLARKE about 12 years ago. Updated about 9 years ago.

Status:
Released
Priority:
3
Assignee:
Matthieu CERDA
Category:
Techniques
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

Initially we can just run a curl check on a simple URL, and ensure we get a HTTP 200 OK response code.

Later, we can extend this to use the built-in REST API and call something like /api/status which should return a text string "OK".


Related issues 2 (0 open2 closed)

Related to Rudder - User story #2233: PT distributePolicy: Check status of webapp and endpoint, and restart jetty if several continuous tests fail using the REST APIReleasedMatthieu CERDA2012-02-02Actions
Blocked by Rudder - User story #856: Make promises in order to assure that Rudder services are still runningReleasedMatthieu CERDA2011-02-16Actions
Actions #1

Updated by Matthieu CERDA about 12 years ago

  • Status changed from 2 to Pending technical review
  • % Done changed from 0 to 100

Applied in changeset commit:8ec83355feab16b7850fb5636e58016d28e1dbc9.

Actions #2

Updated by Matthieu CERDA about 12 years ago

  • Status changed from Pending technical review to Discussion

This commit implements the check only for the webapp. Indeed, the inventory endpoint only responds to POST methods and a GET returns a 405 error (Method not supported). I do not think that trying to post something at every run is a good idea, so it is for me a better idea to wait for the enhanced version that will use the REST API to check the status. Also, there were some discussions about merging the webapp and the endpoint !

Actions #3

Updated by Jonathan CLARKE about 12 years ago

Agreed.

Just one question: I don't see any "result_repaired" reports for when we restart jetty. Do they come from the bundle that is called, or have they been forgotten?

Actions #4

Updated by Matthieu CERDA about 12 years ago

They come from the called bundle indeed. Nothing forgotten :)

Actions #5

Updated by François ARMAND about 12 years ago

  • Target version changed from 2.4.0~alpha4 to 2.4.0~alpha5
Actions #6

Updated by Matthieu CERDA about 12 years ago

  • Status changed from Discussion to Pending technical review

Every step completed in the commit commit:b6a0156e0523187a3fd8e60b6f975bffd5991860

Actions #7

Updated by Jonathan CLARKE about 12 years ago

  • Status changed from Pending technical review to 10

Looks good to me!

Actions #8

Updated by Jonathan CLARKE about 12 years ago

  • Status changed from 10 to Released
Actions #9

Updated by Benoît PECCATTE about 9 years ago

  • Project changed from 24 to Rudder
  • Category changed from Policy Templates to Techniques
Actions

Also available in: Atom PDF