keystone_authtoken options not present in sample config file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Low
|
Tan Lin | ||
keystonemiddleware |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Our docs list a set of options in the [keystone_
http://
However, tools/config/
For reference, here is the IRC log discussing this:
02:11:21 < devananda> jamielennox: interesting. so, our docs at
02:11:40 < devananda> say to put things like admin_user and auth_url in [keystone_
02:11:57 < devananda> however I dont see those options in our sample file, which is autogenerated
02:12:02 < devananda> which leads me to ask: why not?
02:13:34 < jamielennox> devananda: well those admin_user and auth_url config options are defined by auth_token middleware
02:14:07 < jamielennox> at a guess there was a thing a while ago about how you had to put like a list_opts() or something in so that oslo.config knew all the
02:14:20 < jamielennox> i can't remember the details on that
02:14:52 < devananda> so yea, that's completely lame IMO, and we have not switched ironic to doing that
02:15:14 < devananda> because that list is about 50 modules long or something insane and unmaintainable
02:17:20 < devananda> also, we're including that module when auto-generating
02:18:34 < jamielennox> so we have modified the structure of the auth_token module and there have been option changes but nothing that would not have them be
02:19:14 < jamielennox> i don't think...
02:21:47 < devananda> well, they're working when setting them
02:21:54 < devananda> but I can't find where they're defined in keystone right now
02:22:38 < jamielennox> https:/
02:23:02 < devananda> hm. options.extend
02:23:13 < devananda> i'm unfamiliar with this
02:23:38 < jamielennox> it's an auth plugin thing
02:24:45 < jamielennox> devananda: ah ok, they're not being registered at import, but they're in
02:25:20 < jamielennox> which is the olso.config options thing
02:25:57 < devananda> this seems needlessly convoluted
Changed in ironic: | |
status: | New → Triaged |
importance: | Undecided → Low |
summary: |
- keystone_authtoken options not found by tools/config/generate_sample.sh + keystone_authtoken options not present in sample config file |
Changed in ironic: | |
assignee: | nobody → Tan Lin (tan-lin-good) |
Changed in ironic: | |
milestone: | none → kilo-3 |
status: | Fix Committed → Fix Released |
Changed in ironic: | |
milestone: | kilo-3 → 2015.1.0 |
By not registering the legacy plugin at run time services that auto generate there config file without manually specifying the modules to import won't have the default admin_username etc options in their sample configs.
Can be gotten around on the service side by adding the keystonemiddleware module to the list of modules oslo.config should import.