summaryrefslogtreecommitdiffstats
path: root/kubernetes/config
diff options
context:
space:
mode:
authorBorislavG <Borislav.Glozman@amdocs.com>2017-11-22 14:02:09 +0200
committerAlexis de Talhouƫt <alexis.de_talhouet@bell.ca>2017-11-27 15:21:37 +0000
commit317f2d5cdbb8ed12a5b2c672dd4dab2d470d766c (patch)
treefe842268bf2d21aecf46aa27e072d4fc27a49d6a /kubernetes/config
parent1cee1a3eb985815da8d55ca7bcfa2bf3ac092d34 (diff)
Fix MSO encrypted password on long namespaces
Change-Id: Ib9f69ff7b1d1417a69bfd3e8b2259342b6132bdd Issue-ID: OOM-456 Signed-off-by: BorislavG <Borislav.Glozman@amdocs.com>
Diffstat (limited to 'kubernetes/config')
-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 e212971a87..0f540021d9 100755
--- a/kubernetes/config/docker/init/config-init.sh
+++ b/kubernetes/config/docker/init/config-init.sh
@@ -113,7 +113,7 @@ find /config-init/$NAMESPACE/ -type f -exec sed -i -e "s/OPENSTACK_OAM_NETWORK_C
# 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 25 -p`
+OPENSTACK_API_ENCRYPTED_KEY=`echo -n "$OPENSTACK_API_KEY" | openssl aes-128-ecb -e -K $MSO_ENCRYPTION_KEY -nosalt | xxd -c 256 -p`
find /config-init/$NAMESPACE/ -type f -exec sed -i -e "s/OPENSTACK_ENCRYPTED_PASSWORD_HERE/$OPENSTACK_API_ENCRYPTED_KEY/g" {} \;
find /config-init/$NAMESPACE/ -type f -exec sed -i -e "s/OPENSTACK_TENANT_NAME_HERE/$OPENSTACK_TENANT_NAME/g" {} \;