← Back to team overview

openstack team mailing list archive

Re: devstack and api-paste.ini

 

On Wed, Mar 7, 2012 at 4:35 PM, Ken Thomas <krt@xxxxxxxxxxxxx> wrote:
> There have been some recent changes to the devstack script w.r.t.
> nova/api-paste.ini that puzzle me.  There's the template api-paste.ini with
> various tokens that need to be substituted, and some of them are commented
> out.

Ken, I have a medium-term goal to switch from maintaining templated
config files for services in DevStack and re-write the sample config
files supplied with the source where possible. This is the first
instance of that; note that DevStack no longer carries
files/nova-api-paste.ini.

> Is it just me, or would it would be much less confusing if the config
> template was closer to the final result without the need for magic sed
> incantations to remove commented out settings? Is that template config used
> elsewhere where it might need those comments to remain in place? (If so, I
> haven't been able to find 'em.)

The sample file in Nova's source (etc/nova/api-paste.ini) has some
templating in it, but it is also still configured by default for using
a service token to authenticate to Keystone instead of the service
username/password that DevStack now uses.  Since that file may be used
in other places I don't make many assumptions about what is there, so
the sed script in stack.sh is a bit defensive and able to handle a
couple of variations that the sample api-paste.ini may present.

Clear as mud? ;)

dt

-- 

Dean Troyer
dtroyer@xxxxxxxxx


References