commit | 894c752c877291f1520d53e0e69b30fc4928fff6 | [log] [tgz] |
---|---|---|
author | a.sreekumar <ajith.sreekumar@bell.ca> | Fri Aug 07 15:24:10 2020 +0100 |
committer | a.sreekumar <ajith.sreekumar@bell.ca> | Mon Aug 10 13:47:13 2020 +0100 |
tree | b515d174ba38774ecd68a74342b672e345237f7e | |
parent | e32cb0265d6950c10a7512868846feeee95f9434 [diff] |
Changes to make PAP container crash with non zero exitCode Make the application to return exitCode as 1 when the main process terminates due to issues such as: 1) Any basic issue in the startup config file causing error and terminates the main process, for e.g. a wrong name in parameterGroup. 2) Wrong info specified for database connectivity, say wrong username. This doesn't impact a case where database isn't ready yet and PAP container comes up first, such waiting is already handled by initContainer in the oom chart. PAP pod waits for policy-mariadb pod to be ready first, then only the main process is started and comes to this point. 3) An invalid port number is specified and the rest server is not able to start. These are the some of the scenarios which already makes the main process of PAP to terminate, and in these cases, an exception is thrown now which returns the exitCode as 1. Change-Id: Ie48726bcb36d7304eb60807fbaabbee8245e9c70 Issue-ID: POLICY-2754 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Copyright 2017-2018 AT&T Intellectual Property. All rights reserved. This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE Full license text at https://creativecommons.org/licenses/by/4.0/legalcode
This source repository contains the ONAP Policy Administration Point Backend code.
To build it using Maven 3, run: mvn clean install