Remove the last slash of extra_params['auth_url']

When create a cluster in Openstack, a master-node has failed during
cloud-init scripts. It failed in 'make-cert.sh' because it couldn't get
a right token. The extra_params['auth_url'] has a slash at the end so
the requested url was wrong.

Returend url of url_for() has a slash at the end.
Just add rstrip('/') to fix this error.

Change-Id: I1f2f0e07a913268b2ba821a8b85b8a3973cb59dc
Task: 23277
Story: 2003144
This commit is contained in:
Jangwon Lee 2018-07-30 13:15:59 +09:00
parent 62029fa562
commit 4bb16422cf
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ class BaseTemplateDefinition(TemplateDefinition):
}
if CONF.trust.trustee_keystone_region_name:
kwargs['region_name'] = CONF.trust.trustee_keystone_region_name
extra_params['auth_url'] = osc.url_for(**kwargs)
extra_params['auth_url'] = osc.url_for(**kwargs).rstrip('/')
return super(BaseTemplateDefinition,
self).get_params(context, cluster_template, cluster,