From 11982f730eac0b01f883c5d718428ae26c28ce69 Mon Sep 17 00:00:00 2001 From: Mandeep Khinda Date: Fri, 13 Oct 2017 17:54:20 +0000 Subject: [PATCH] fixing SDC logback mounting defect sdc-be now starts and robot passes healthcheck ---------------------------------------- Basic ASDC Health Check | PASS | ---------------------------------------- Note that I did not verify whether the logging function is working - priority for this issue is to get SDC running. Issue-ID: OOM-359 Change-Id: Ic810109878aa003c54350a6e70a4aeeea9b2f0ea Signed-off-by: Mandeep Khinda --- kubernetes/sdc/templates/sdc-be.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kubernetes/sdc/templates/sdc-be.yaml b/kubernetes/sdc/templates/sdc-be.yaml index 29f029f9ed..0ba4db50ce 100644 --- a/kubernetes/sdc/templates/sdc-be.yaml +++ b/kubernetes/sdc/templates/sdc-be.yaml @@ -86,8 +86,12 @@ spec: name: sdc-logs - mountPath: /var/log/onap name: sdc-logs-2 - - mountPath: /var/lib/jetty/config/catalog-be/logback.xml + - mountPath: /tmp/logback.xml name: sdc-logback + lifecycle: + postStart: + exec: + command: ["/bin/sh", "-c", "export LOG=wait_logback.log; touch $LOG; export SRC=/tmp/logback.xml; export DST=/var/lib/jetty/config/catalog-be/; while [ ! -e $DST ]; do echo 'Waiting for $DST...' >> $LOG; sleep 5; done; sleep 2; /bin/cp -f $SRC $DST; echo 'Done' >> $LOG"] ports: - containerPort: 8443 - containerPort: 8080 -- 2.16.6