hilbert / hilbert-docker-images

Application with a dynamic choice of docker containers to run
Apache License 2.0
22 stars 8 forks source link

MKLivestatus reports station down but app up #24

Open elondaits opened 8 years ago

elondaits commented 8 years ago

Yesterday MKLivestatus correctly informed the app was down when the station was still booting (and down) and didn't report the app was up until it was.

Today I find that stations with state=1 (down) have app_state=0 (up)... which makes no sense.

{"lastState":[{"id":"supernova.mfo.de","state":0,"state_type":1,"app_state":2,"app_state_type":1,"app_id":""},{"id":"vb-hb-test-1","state":1,"state_type":1,"app_state":0,"app_state_type":1,"app_id":"hb_test_a"},{"id":"vb-hb-test-2","state":1,"state_type":1,"app_state":0,"app_state_type":1,"app_id":"hb_test_b"},{"id":"vb-hb-test-3","state":1,"state_type":1,"app_state":0,"app_state_type":1,"app_id":"hb_test_c"},{"id":"vb-hb-test-4","state":0,"state_type":1,"app_state":0,"app_state_type":1,"app_id":"hb_test_a"},{"id":"vb-hb-test-5","state":0,"state_type":1,"app_state":0,"app_state_type":1,"app_id":"hb_test_c"},{"id":"vb-hb-test-6","state":0,"state_type":1,"app_state":0,"app_state_type":1,"app_id":"hb_test_a"},{"id":"vb-hb-test-7","state":0,"state_type":1,"app_state":0,"app_state_type":1,"app_id":"hb_test_a"},{"id":"vb-hb-test-8","state":0,"state_type":1,"app_state":0,"app_state_type":1,"app_id":"hb_test_a"},{"id":"vb-hb-test-9","state":0,"state_type":1,"app_state":0,"app_state_type":1,"app_id":"hb_test_b"}]}
elondaits commented 8 years ago

PS: I made a change to my code to handle , but now I can't test it because of how MKLivestatus is behaving. We need to fix this, but not without time to test it before the demo because my code might break since it never handled the transition.

malex984 commented 6 years ago

i think it was fixed since Dashboard seems to work at HITS and ESO without such issues but one may check it to be sure...

elondaits commented 6 years ago

The Dashboard never exhibited the issue, it's something I found when trying to handle the state transitions more robustly. If MK informs me this impossible state I lose track of the actual state of the system and basically lie to the user.