Change-Id: If70e723c32ff7040f8eec71f0bd8bdf078aa5383
Signed-off-by: Tommy Carpenter <tc677g@att.com>
Currently, this checks:
1. whether the a1 webserver is up (if it isn't, this won't even be called, so even entering this function confirms it is)
2. checks whether the rmr thread is running and has completed a loop recently
Currently, this checks:
1. whether the a1 webserver is up (if it isn't, this won't even be called, so even entering this function confirms it is)
2. checks whether the rmr thread is running and has completed a loop recently
- TODO: make "seconds" to pass in a configurable parameter?
- TODO: I've requested that SDL provide a "I'm connected to the backend" healthcheck that can be integrated here
+ 3. checks that our SDL connection is healthy
- if a1rmr.healthcheck_rmr_thread():
- return "", 200
- return "rmr thread is unhealthy", 500
+ if not a1rmr.healthcheck_rmr_thread():
+ return "rmr thread is unhealthy", 500
+ if not data.SDL.healthcheck():
+ return "sdl connection is unhealthy", 500
+ return "", 200
""" delete a key"""
self.sdl.remove(A1NS, {key})
""" delete a key"""
self.sdl.remove(A1NS, {key})
+ def healthcheck(self):
+ """checks if the sdl connection is healthy"""
+ return self.sdl.is_active()
+
# The Jenkins job uses this string for the tag in the image name
# for example nexus3.o-ran-sc.org:10004/my-image-name:my-tag
---
# The Jenkins job uses this string for the tag in the image name
# for example nexus3.o-ran-sc.org:10004/my-image-name:my-tag
---
+[2.1.2] - 1/22/2020
+-------------------
+
+::
+
+ * Upgrades from sdl 2.0.2 to 2.0.3
+ * Integrates an sdl healthcheck into a1's healthcheck
+
+
[2.1.1] - 1/14/2020
-------------------
[2.1.1] - 1/14/2020
-------------------
apiVersion: v1
description: A1 Helm chart for Kubernetes
name: a1mediator
apiVersion: v1
description: A1 Helm chart for Kubernetes
name: a1mediator
packages=find_packages(exclude=["tests.*", "tests"]),
author="Tommy Carpenter",
description="RIC A1 Mediator for policy/intent changes",
packages=find_packages(exclude=["tests.*", "tests"]),
author="Tommy Carpenter",
description="RIC A1 Mediator for policy/intent changes",
"msgpack",
"rmr>=2.2.0",
"mdclogpy",
"msgpack",
"rmr>=2.2.0",
"mdclogpy",
- "ricsdl>=2.0.2,<3.0.0",
+ "ricsdl>=2.0.3,<3.0.0",
],
package_data={"a1": ["openapi.yaml"]},
)
],
package_data={"a1": ["openapi.yaml"]},
)