Symptom
Customer eployment is failing with error
2023-03-02 11:34:52 DeploymentRunner: ERROR NormalDeploymentController:146 - Deployment could not successfully initialize due to validation failures.
2023-03-02 11:34:52 DeploymentRunner: ERROR DeploymentRunner:230 - DeploymentException occurred while executing deployment request : 3efbcce8-b8ee-11ed-aa9c-ab4ab18820d8
After checking the DB, we found a DeplyomentStatus entry that had the forceRefreshDeploymentData set to true. This caused all subsequent deployments to fail unless a Full deployment is executed.
Conditions
Deployment failure.
DeploymentJob that has forceRefreshDeploymentData=true
Workaround
Need to remove the DeploymentJob that has forceRefreshDeploymentData=true
Steps to perform in order to remove the task:
1) root@CYX-ELK-VPN01:/home/admin# pmtool disablebyid tomcat
2) root@CYX-ELK-VPN01:/home/admin# CLASSPATH=/ngfw/var/cisco/ngfwWebUi/tomcat/webapps/ROOT/WEB-INF/lib/* /ngfw/var/jre/bin/java org.neo4j.shell.StartClient -path /ngfw/var/lib/db/ngfw.db/
NOTE: Local Neo4j graph database service at '/ngfw/var/lib/db/ngfw.db'
3) neo4j-sh (?)$ match (n:DeploymentStatus) where n.forceRefreshDeploymentData=true return n ;
4) the resulting ouput will be a long line with lots of dashes and spaces, but somewhere there should be this line:
| Node[2186]{uuid:"955d3721-a844-11ed-aa9c-6f24d49eab31",cliErrorMessage:"
5) neo4j-sh (?)$ match (n:DeploymentStatus) where n.forceRefreshDeploymentData=true delete n ;
6) neo4j-sh (?)$ exit
7) root@CYX-ELK-VPN01:/home/admin# pmtool enablebyid tomcat
8) From UI, trigger a normal deployment
Further Problem Description