Public bug reported: bug 1460150 introduced separate openrc downloads for v2 and v3 but when backporting this to Liberty, we found that the v2 openrc download still contained a /v3 URL which would then cause client failures
The v3 codepath does context['auth_url'] = utils.fix_auth_url_version(context['auth_url']) and IMHO for the v2 codepath we would need the inverse replacement. e.g. def download_rc_file_v2(request): template = 'project/access_and_security/api_access/openrc_v2.sh.template' context = _get_openrc_credentials(request) + context['auth_url'] = context['auth_url'].replace('/v3', '/v2.0') return _download_rc_file_for_template(request, context, template) ** Affects: horizon Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Dashboard (Horizon). https://bugs.launchpad.net/bugs/1547061 Title: openrc v2.sh contains /v3 url Status in OpenStack Dashboard (Horizon): New Bug description: bug 1460150 introduced separate openrc downloads for v2 and v3 but when backporting this to Liberty, we found that the v2 openrc download still contained a /v3 URL which would then cause client failures The v3 codepath does context['auth_url'] = utils.fix_auth_url_version(context['auth_url']) and IMHO for the v2 codepath we would need the inverse replacement. e.g. def download_rc_file_v2(request): template = 'project/access_and_security/api_access/openrc_v2.sh.template' context = _get_openrc_credentials(request) + context['auth_url'] = context['auth_url'].replace('/v3', '/v2.0') return _download_rc_file_for_template(request, context, template) To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/1547061/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp