summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRashmi Pujar <rashmi.pujar@bell.ca>2018-02-26 16:29:58 -0500
committerRashmi Pujar <rashmi.pujar@bell.ca>2018-02-27 14:44:07 +0000
commit568f78c0dd6cf66f3f4a5e9b1b55cc4322acedf8 (patch)
treeb61efcee6dbf7bd4f81a2e8b510aca5cd777c2ef
parent07652a44b6f09d3a300b78c92fa9f31eeb469dd7 (diff)
Update OPENSTACK_API_ENCRYPTED_KEY generation
Use OPENSTACK_PASSWORD in config-init.sh to generate the encrypted openstack API key. OPENSTACK_API_KEY no longer exists. Change-Id: If6e40da05810b345f73df99f171c8a9bd72dabcb Signed-off-by: Rashmi Pujar <rashmi.pujar@bell.ca> Issue-ID: OOM-770
-rwxr-xr-xkubernetes/config/docker/init/config-init.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/kubernetes/config/docker/init/config-init.sh b/kubernetes/config/docker/init/config-init.sh
index cdf2d53522..a65a11e89e 100755
--- a/kubernetes/config/docker/init/config-init.sh
+++ b/kubernetes/config/docker/init/config-init.sh
@@ -145,7 +145,7 @@ OPENSTACK_OAM_NETWORK_CIDR_PREFIX=`cut -d. -f1-3 <<<"$OPENSTACK_OAM_NETWORK_CIDR
# MSO post install steps to encrypt openstack password
MSO_ENCRYPTION_KEY=$(cat /config-init/$NAMESPACE/mso/mso/encryption.key)
-OPENSTACK_API_ENCRYPTED_KEY=`echo -n "$OPENSTACK_API_KEY" | openssl aes-128-ecb -e -K $MSO_ENCRYPTION_KEY -nosalt | xxd -c 256 -p`
+OPENSTACK_API_ENCRYPTED_KEY=`echo -n "$OPENSTACK_PASSWORD" | openssl aes-128-ecb -e -K $MSO_ENCRYPTION_KEY -nosalt | xxd -c 256 -p`
echo "Substituting configuration parameters"