[SO] Add more debug when password is not well set 93/116193/1
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Tue, 8 Dec 2020 09:59:12 +0000 (10:59 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Tue, 8 Dec 2020 09:59:12 +0000 (10:59 +0100)
Sometimes, password generated by AAF is not well escaped by sh. As we
don't know which characters are giving bad results, we'll temporarily
show SO faulty generated passwords and check generated file exists.

Issue-ID: OOM-2617
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I0b45432447a672a90cbcf96a03efd18b9ea1d6cf

kubernetes/so/components/soHelpers/templates/_certificates.tpl

index cc22dc9..c5232e8 100644 (file)
@@ -21,6 +21,8 @@
     if [ "${EXIT_VALUE}" != "0" ]
     then
       echo "issue with password: $cadi_truststore_password"
+      ls -lh {{ $subchartDot.Values.certInitializer.credsPath }}/mycreds.prop
+      cat {{ $subchartDot.Values.certInitializer.credsPath }}/mycreds.prop
       exit $EXIT_VALUE
     else
       keytool -importkeystore -srckeystore "{{ $subchartDot.Values.certInitializer.credsPath }}/truststoreONAPall.jks" \