diff options
author | Alexis de Talhouƫt <alexis.de_talhouet@bell.ca> | 2017-11-27 16:13:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-11-27 16:13:02 +0000 |
commit | a8a5db5d918f5c3761fa848e33fd19a31b0ea657 (patch) | |
tree | e9031595510f625743cc1b84a9e66ab01afccec0 /kubernetes | |
parent | c71456f1fc98b5adb170c04e5aca21bf13796bbb (diff) | |
parent | 317f2d5cdbb8ed12a5b2c672dd4dab2d470d766c (diff) |
Merge "Fix MSO encrypted password on long namespaces"
Diffstat (limited to 'kubernetes')
-rwxr-xr-x | kubernetes/config/docker/init/config-init.sh | 2 |
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" {} \; |