From ddac631c097167df890cf6814df301b61a0815c7 Mon Sep 17 00:00:00 2001 From: vrvarma Date: Fri, 27 Mar 2020 12:28:58 -0400 Subject: optf-osdf pod failing to start in k8s env Change-Id: I4c9f4f5df5462419e39b063666ff5f5187ad71ef Signed-off-by: vrvarma Issue-ID: OPTFRA-729 --- assembly.xml | 1 + docker/osdf/Dockerfile | 5 +++++ osdfapp.sh | 18 +++++++----------- pom.xml | 2 +- ssl_certs/aaf_root_ca.cer | 2 +- version.properties | 2 +- 6 files changed, 16 insertions(+), 14 deletions(-) diff --git a/assembly.xml b/assembly.xml index c6e724a..b966691 100644 --- a/assembly.xml +++ b/assembly.xml @@ -28,6 +28,7 @@ *.txt *.ini *.md + ssl_certs/** **/__pycache__/** diff --git a/docker/osdf/Dockerfile b/docker/osdf/Dockerfile index 1533d5f..66a5aa7 100644 --- a/docker/osdf/Dockerfile +++ b/docker/osdf/Dockerfile @@ -65,6 +65,11 @@ RUN groupadd onap \ COPY onap-osdf-tm/optf-osdf-${MVN_ARTIFACT_VERSION}.zip /tmp/optf-osdf.zip COPY onap-osdf-tm/apps /opt/osdf/apps RUN unzip -q -o -B /tmp/optf-osdf.zip -d /opt/ && rm -f /tmp/optf-osdf.zip +RUN mkdir -p /usr/local/share/ca-certificates \ + && cp /opt/osdf/ssl_certs/aaf_root_ca.cer /usr/local/share/ca-certificates/aafcacert.crt \ + && chmod 444 /usr/local/share/ca-certificates/aafcacert.crt \ + && update-ca-certificates + RUN mkdir -p /var/log/onap/optf/osdf/ \ && chown -R onap:onap /var/log/onap \ && chown -R onap:onap /opt/osdf diff --git a/osdfapp.sh b/osdfapp.sh index 3dc4679..7e3284f 100755 --- a/osdfapp.sh +++ b/osdfapp.sh @@ -58,18 +58,14 @@ set -e LOGS=logs mkdir -p $LOGS -if [ -e /opt/app/ssl_cert/aaf_root_ca.cer ]; then - #assuming that this would be an ubuntu vm. - cp /opt/app/ssl_cert/aaf_root_ca.cer /usr/local/share/ca-certificates/aafcacert.crt - chmod 444 /usr/local/share/ca-certificates/aafcacert.crt - update-ca-certificates -fi +#if [ -e /opt/app/ssl_cert/aaf_root_ca.cer ]; then +# #assuming that this would be an ubuntu vm. +# cp /opt/app/ssl_cert/aaf_root_ca.cer /usr/local/share/ca-certificates/aafcacert.crt +# chmod 444 /usr/local/share/ca-certificates/aafcacert.crt +# update-ca-certificates +#fi -if [ -e /etc/ssl/certs/aafcacert.pem ]; then - export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt -else - export REQUESTS_CA_BUNDLE=/opt/app/ssl_cert/aaf_root_ca.cer -fi +export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt if [ ! -z "$EXEC_FILE" ] then diff --git a/pom.xml b/pom.xml index 9d78e2d..cb9baad 100644 --- a/pom.xml +++ b/pom.xml @@ -29,7 +29,7 @@ http://maven.apache.org/POM/4.0.0 "> org.onap.optf.osdf optf-osdf optf-osdf - 2.0.1-SNAPSHOT + 2.0.2-SNAPSHOT Optimization Service Design Framework diff --git a/ssl_certs/aaf_root_ca.cer b/ssl_certs/aaf_root_ca.cer index e9a50d7..897c8ae 100644 --- a/ssl_certs/aaf_root_ca.cer +++ b/ssl_certs/aaf_root_ca.cer @@ -28,4 +28,4 @@ Z0LlaKABqfjK49o/tsAp+c5LoNlYllKhnetO3QAdraHwdmC36BhoghzR1jpX751A cZn2VH3Q4XKyp01cJNCJIrua+A+bx6zh3RyW6zIIkbRCbET+UD+4mr8WIcSE3mtR ZVlnhUDO4z9//WKMVzwS9Rh8/kuszrGFI1KQozXCHLrce3YP6RYZfOed79LXaRwX dYY= ------END CERTIFICATE----- +-----END CERTIFICATE----- \ No newline at end of file diff --git a/version.properties b/version.properties index 8c7f2a6..487c94e 100644 --- a/version.properties +++ b/version.properties @@ -19,7 +19,7 @@ major=2 minor=0 -patch=1 +patch=2 base_version=${major}.${minor}.${patch} -- cgit 1.2.3-korg