Bug 1121256 - Configuration file in share forces ignore of auth_uri
Summary: Configuration file in share forces ignore of auth_uri
Alias: None
Product: RDO
Classification: Community
Component: openstack-cinder
Version: unspecified
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: Eric Harney
QA Contact: nlevinki
Depends On:
Blocks: 1121259
TreeView+ depends on / blocked
Reported: 2014-07-18 19:13 UTC by Adam Young
Modified: 2017-08-14 18:23 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1121259 (view as bug list)
Last Closed: 2017-06-18 06:08:40 UTC

Attachments (Terms of Use)

Description Adam Young 2014-07-18 19:13:11 UTC
Description of problem:

The systemd start script starts cinder api with:

ExecStart=/usr/bin/cinder-api --config-file /usr/share/cinder/cinder-dist.conf --config-file /etc/cinder/cinder.conf --logfile /var/log/cinder/api.log

And the /usr/share/cinder/cinder-dist.conf has 

admin_tenant_name = %SERVICE_TENANT_NAME%
admin_user = %SERVICE_USER%
admin_password = %SERVICE_PASSWORD%
auth_host =
auth_port = 35357
auth_protocol = http

This forced auth_tokem middleware to build its auth_uri out of components.

The recommended way to customize the auth_uri is to set it in the config file with a full url, example:

auth_uri = https://fqdn:port/v3

However, the end user cannot set this value in /etc/cinder/cinder.conf due to auth_token favoring the "compose by parts"

This shows up in the log file with:

WARNING keystoneclient.middleware.auth_token [-] Configuring admin URI using auth fragments. This is deprecated, use 'identity_uri' instead.

We should remove the whole /usr/share configuration file, and only have the portion in /etc.

Comment 1 Lars Kellogg-Stedman 2015-03-27 02:04:39 UTC
Adam: you mentioned "auth_uri" in your report, but the error message references "identity_uri", which I think is something else.  Does this still need fixing? It looks like our current packages are still setting the auth_* fragments in /usr/share/cinder/cinder-dist.conf.

Comment 2 Adam Young 2015-07-23 17:38:07 UTC
Lars, yes, the identity_uri is the preferred way of setting the value in the config file, instead of composing it out of its parts.


And, since this is more than just the auth_uri (just used to get a token) it is more correct to say identity_uri.

Comment 3 Christopher Brown 2017-06-17 19:18:47 UTC
So I think this is sorted now?

Note You need to log in before you can comment on or make changes to this bug.