projects
/
osm
/
POL.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix(scaling): min instance count now from right sol006 field and condition fixed...
[osm/POL.git]
/
osm_policy_module
/
cmd
/
policy_module_healthcheck.py
diff --git
a/osm_policy_module/cmd/policy_module_healthcheck.py
b/osm_policy_module/cmd/policy_module_healthcheck.py
index
f184afd
..
de85ad0
100644
(file)
--- a/
osm_policy_module/cmd/policy_module_healthcheck.py
+++ b/
osm_policy_module/cmd/policy_module_healthcheck.py
@@
-23,6
+23,7
@@
import argparse
import logging
import subprocess
import sys
import logging
import subprocess
import sys
+import os
log = logging.getLogger(__name__)
log = logging.getLogger(__name__)
@@
-52,7
+53,12
@@
def _processes_running():
if not _contains_process(processes_running, p):
log.error("Process %s not running!" % p)
return False
if not _contains_process(processes_running, p):
log.error("Process %s not running!" % p)
return False
- return True
+
+ # Check if process is running properly (listening to kafka bus)
+ if os.path.exists('/tmp/osm_pol_agent_health_flag'):
+ return True
+ else:
+ return False
if __name__ == '__main__':
if __name__ == '__main__':