From d3bf6a49778034c29b20824bc73ac8a9d133e230 Mon Sep 17 00:00:00 2001 From: Manuel Rodriguez Date: Wed, 5 Sep 2018 10:43:49 -0400 Subject: [PATCH] Make X-Subject-Token search case unsensitive USER_TOKEN variable is empty because the grep expression is not ignoring case and certs are not created. Change-Id: I175cb2d4c64d5f7024b13ce11c1184029f63c317 Task: 26189 Story: 2003671 --- .../common/templates/kubernetes/fragments/make-cert-client.sh | 2 +- .../drivers/common/templates/kubernetes/fragments/make-cert.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/magnum/drivers/common/templates/kubernetes/fragments/make-cert-client.sh b/magnum/drivers/common/templates/kubernetes/fragments/make-cert-client.sh index e89ef442a2..b32ebeaa2d 100644 --- a/magnum/drivers/common/templates/kubernetes/fragments/make-cert-client.sh +++ b/magnum/drivers/common/templates/kubernetes/fragments/make-cert-client.sh @@ -68,7 +68,7 @@ EOF content_type='Content-Type: application/json' url="$AUTH_URL/auth/tokens" USER_TOKEN=`curl $VERIFY_CA -s -i -X POST -H "$content_type" -d "$auth_json" $url \ - | grep X-Subject-Token | awk '{print $2}' | tr -d '[[:space:]]'` + | grep -i X-Subject-Token | awk '{print $2}' | tr -d '[[:space:]]'` # Get CA certificate for this cluster curl $VERIFY_CA -X GET \ diff --git a/magnum/drivers/common/templates/kubernetes/fragments/make-cert.sh b/magnum/drivers/common/templates/kubernetes/fragments/make-cert.sh index 8ba16dad68..800b23c7ec 100644 --- a/magnum/drivers/common/templates/kubernetes/fragments/make-cert.sh +++ b/magnum/drivers/common/templates/kubernetes/fragments/make-cert.sh @@ -106,7 +106,7 @@ EOF content_type='Content-Type: application/json' url="$AUTH_URL/auth/tokens" USER_TOKEN=`curl $VERIFY_CA -s -i -X POST -H "$content_type" -d "$auth_json" $url \ - | grep X-Subject-Token | awk '{print $2}' | tr -d '[[:space:]]'` + | grep -i X-Subject-Token | awk '{print $2}' | tr -d '[[:space:]]'` # Get CA certificate for this cluster curl $VERIFY_CA -X GET \