Re: [openstack-dev] [congress][oslo.config][keystone] NoSuchOptError: no such option project_domain_name in group [keystone_authtoken]

2017-01-18 Thread Brant Knudson
On Thu, Jan 12, 2017 at 4:31 PM, Eric K  wrote:

> On a freshly stacked devstack (Jan 12), attempting to access
> `cfg.CONF.keystone_authtoken.project_domain_name` gave the
> error: NoSuchOptError: no such option project_domain_name in group
> [keystone_authtoken]
>
> I’m a little confused because it’s part of the [keystone_authtoken] config
> section generated by devstack. Could anyone point me to where these options
> are declared (I’ve searched several repos) and maybe why this option
> doesn’t exist? Thanks a lot!
>
>
These options are for the auth token middleware. Services shouldn't be
using them directly.

- Brant
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [congress][oslo.config][keystone] NoSuchOptError: no such option project_domain_name in group [keystone_authtoken]

2017-01-16 Thread Doug Hellmann
Excerpts from Eric K's message of 2017-01-12 14:31:58 -0800:
> On a freshly stacked devstack (Jan 12), attempting to access
> `cfg.CONF.keystone_authtoken.project_domain_name` gave the error:
> NoSuchOptError: no such option project_domain_name in group
> [keystone_authtoken]
> 
> I¹m a little confused because it¹s part of the [keystone_authtoken] config
> section generated by devstack. Could anyone point me to where these options
> are declared (I¹ve searched several repos) and maybe why this option doesn¹t
> exist? Thanks a lot!
> 
> Of all the options supplied by devstack under [keystone_authtoken], the
> following were accessible:
> memcached_servers
> signing_dir
> cafile
> auth_uri
> auth_url
> auth_type
> 
> But the following were unaccessible:
> project_domain_name
> project_name
> user_domain_name
> password
> username

Options are usually declared in the code that uses them, with a
call to register_opts() either at runtime or when a module is
imported.  You should ensure that your use of the option comes after
its declaration (having the option present in the configuration
file isn't the same as declaring it in the code).

One other important point: Options are not typically part of the
API of a library (at least not for Oslo libs, and we encourage that
same approach for other libs). If the options you need are defined
in a library, look for a public API to call to retrieve the values
or to instantiate objects using the config but without having your
application code rely on option definitions that may change as options
are moved or deprecated.

Doug

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [congress][oslo.config][keystone] NoSuchOptError: no such option project_domain_name in group [keystone_authtoken]

2017-01-15 Thread ChangBo Guo
Did you search keyword in http://codesearch.openstack.org/.  Hope that will
help you.

2017-01-13 6:31 GMT+08:00 Eric K :

> On a freshly stacked devstack (Jan 12), attempting to access
> `cfg.CONF.keystone_authtoken.project_domain_name` gave the
> error: NoSuchOptError: no such option project_domain_name in group
> [keystone_authtoken]
>
> I’m a little confused because it’s part of the [keystone_authtoken] config
> section generated by devstack. Could anyone point me to where these options
> are declared (I’ve searched several repos) and maybe why this option
> doesn’t exist? Thanks a lot!
>
> Of all the options supplied by devstack under [keystone_authtoken], the
> following were accessible:
> memcached_servers
> signing_dir
> cafile
> auth_uri
> auth_url
> auth_type
>
> But the following were unaccessible:
> project_domain_name
> project_name
> user_domain_name
> password
> username
>
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 
ChangBo Guo(gcb)
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [congress][oslo.config][keystone] NoSuchOptError: no such option project_domain_name in group [keystone_authtoken]

2017-01-12 Thread Eric K
On a freshly stacked devstack (Jan 12), attempting to access
`cfg.CONF.keystone_authtoken.project_domain_name` gave the error:
NoSuchOptError: no such option project_domain_name in group
[keystone_authtoken]

I¹m a little confused because it¹s part of the [keystone_authtoken] config
section generated by devstack. Could anyone point me to where these options
are declared (I¹ve searched several repos) and maybe why this option doesn¹t
exist? Thanks a lot!

Of all the options supplied by devstack under [keystone_authtoken], the
following were accessible:
memcached_servers
signing_dir
cafile
auth_uri
auth_url
auth_type

But the following were unaccessible:
project_domain_name
project_name
user_domain_name
password
username



__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev