Fix bug for write-kube-os-config.sh

In file write-kube-os-config.sh, the bug is in line below
AUTH_URL=$(echo "$AUTH_URL" | tr -s "v3" "v2")
this command is used to change v3 to v2,but it will change any "3" to
"2". For example:
AUTH_URL=10.43.166.108:5000/v3
it will be changed to 10.42.166.108:5000/v2, where 43 is also changed
to 42.

Change-Id: Ia329b983ba59856783f2873722c9ade418d49cea
Closes-Bug: #1599703
changes/91/341991/1
ztetfger 6 years ago
parent 8111e0c635
commit a76097e535
  1. 2
      magnum/drivers/k8s_coreos_v1/templates/fragments/write-kube-os-config.sh
  2. 2
      magnum/drivers/k8s_fedora_atomic_v1/templates/fragments/write-kube-os-config.sh

@ -5,7 +5,7 @@
KUBE_OS_CLOUD_CONFIG=/etc/sysconfig/kube_openstack_config
# kubernetes backend only support keystone v2 at this point
AUTH_URL=$(echo "$AUTH_URL" | tr -s "v3" "v2")
AUTH_URL=$(echo "$AUTH_URL" | sed 's/v3/v2/')
# Generate a the configuration for Kubernetes services
# to talk to OpenStack Neutron

@ -5,7 +5,7 @@
KUBE_OS_CLOUD_CONFIG=/etc/sysconfig/kube_openstack_config
# kubernetes backend only support keystone v2 at this point
AUTH_URL=$(echo "$AUTH_URL" | tr -s "v3" "v2")
AUTH_URL=$(echo "$AUTH_URL" | sed 's/v3/v2/')
# Generate a the configuration for Kubernetes services
# to talk to OpenStack Neutron

Loading…
Cancel
Save