-
Bug
-
Resolution: Done
-
Medium
-
El Alto Release
When running the OVP tests on El Alto for a VNF, the robot pod is killed due to storage memory pressure.
On detailed inspection it is found that the one of the OVP robot scripts runs into an infinite loop.
As a result it consumes the entire disk space. Due to low disk space, robot pod is killed my Kubernetes.
The below function is called from robot when we run the OVP test. https://github.com/onap/testsuite-python-testing-utils/blob/master/robotframework-onap/listeners/OVPListener.py The below function in the above mentioned file, we are creating the tmp_heat.zip in the same dir that we are scanning.--------------- def sha256(template_directory): heat_sha = None if os.path.exists(template_directory): zip_file = "{}/tmp_heat.zip".format(template_directory) with ZipFile(zip_file, "w") as zip_obj: for folder_name, subfolders, filenames in os.walk(template_directory): for filename in filenames: file_path = os.path.join(folder_name, filename) zip_obj.write(file_path) with open(zip_file, "rb") as f: bytes = f.read() heat_sha = hashlib.sha256(bytes).hexdigest() os.remove(zip_file) return heat_sha -----------------
More details are also present in the mailing list archives.
https://www.mail-archive.com/onap-discuss@lists.onap.org/msg18630.html