Skip to content

Don't volume mount the whole agentcore directory - INPLLATFORM-448

Jared Kosanovic requested to merge INPLATFORM-448 into master

Persisting the agentcore directory between restarts caused an issue that prevented the secure agent from coming up. The symlinks in the 58.24 directory were broken, because the files the links were pointing to were gone.

Example:

agent@ei:~/infaagent/apps/agentcore$ ls -l 58.24
total 332
lrwxrwxrwx 1 agent agent   93 Dec 22 17:16 agent-apps-common.jar -> /home/agent/infaagent/downloads/package-agentcoreupgrade.5824/package/./agent-apps-common.jar

then we saw this error in infaagent.log

agent@ei:~/infaagent/apps/agentcore$ tail infaagent.log
JAVA_HOME=/home/agent/infaagent/apps/agentcore/../../jdk/jre
58.24
/home/agent/infaagent/apps/agentcore
Error: Could not find or load main class com.informatica.saas.infaagent.agentcore.impls.MainApp
Restart Agent
JAVA_HOME=/home/agent/infaagent/apps/agentcore/../../jdk/jre
58.24
/home/agent/infaagent/apps/agentcore
Error: Could not find or load main class com.informatica.saas.infaagent.agentcore.impls.MainApp
Restarted AgentCore for so many times, give up trying.

The fix in this MR is to not mount the agentcore directory as a volume, but I did mount a couple directories containing flat file templates and other files required by integrations that run on the secure agent. In the future, this should be changed so that these files are mastered in git instead of needing to be persisted in the EFS volume. (ticket needed?)

@jont @ERIC.SCHOVILLE @TTU4 - could you review?

Merge request reports