On 20 April 2016 at 14:02, Dolph Mathews <dolph.math...@gmail.com> wrote:
> On Tue, Apr 19, 2016 at 10:40 PM, Kenny Ji-work <jenkins-...@qq.com> > wrote: > >> Hi all, >> >> I have installed openstack mitaka, when I execute any keystone's commands >> with the result displayed below: >> But I execute `openstack role list`, the result is succeed. >> >> *[root@devstack scripts]# keystone --debug role-list* >> > You mix up two concepts here. `openstack role list` uses the python-openstackclient and is the correct call. `keystone --debug role list` uses the keystoneclient CLI which is deprecated and recently removed from upstream. This will not support v3 - depending on where this v3 configuration is set. Keep using the openstack CLI you will find it more compatible with deployments. /usr/lib/python2.7/site-packages/keystoneclient/shell.py:64: >> DeprecationWarning: The keystone CLI is deprecated in favor of >> python-openstackclient. For a Python library, continue using >> python-keystoneclient. >> 'python-keystoneclient.', DeprecationWarning) >> WARNING: unsupported identity-api-version 3, falling back to 2.0 >> /usr/lib/python2.7/site-packages/keystoneclient/v2_0/client.py:145: >> DeprecationWarning: Constructing an instance of the >> keystoneclient.v2_0.client.Client class without a session is deprecated as >> of the 1.7.0 release and may be removed in the 2.0.0 release. >> 'the 2.0.0 release.', DeprecationWarning) >> /usr/lib/python2.7/site-packages/keystoneclient/v2_0/client.py:147: >> DeprecationWarning: Using the 'tenant_name' argument is deprecated in >> version '1.7.0' and will be removed in version '2.0.0', please use the >> 'project_name' argument instead >> super(Client, self).__init__(**kwargs) >> /usr/lib/python2.7/site-packages/debtcollector/renames.py:45: >> DeprecationWarning: Using the 'tenant_id' argument is deprecated in version >> '1.7.0' and will be removed in version '2.0.0', please use the 'project_id' >> argument instead >> return f(*args, **kwargs) >> /usr/lib/python2.7/site-packages/keystoneclient/httpclient.py:371: >> DeprecationWarning: Constructing an HTTPClient instance without using a >> session is deprecated as of the 1.7.0 release and may be removed in the >> 2.0.0 release. >> 'the 2.0.0 release.', DeprecationWarning) >> /usr/lib/python2.7/site-packages/keystoneclient/session.py:140: >> DeprecationWarning: keystoneclient.session.Session is deprecated as of the >> 2.1.0 release in favor of keystoneauth1.session.Session. It will be removed >> in future releases. >> DeprecationWarning) >> /usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py:56: >> DeprecationWarning: keystoneclient auth plugins are deprecated as of the >> 2.1.0 release in favor of keystoneauth1 plugins. They will be removed in >> future releases. >> 'in future releases.', DeprecationWarning) >> DEBUG:keystoneclient.auth.identity.v2:Making authentication request to >> http://10.240.227.233:35357/v3/tokens >> > > This line shows a v2 client making a request to a v3 endpoint. Do you have > a versioned (v3) endpoint configured or hardcoded somewhere? > > >> INFO:requests.packages.urllib3.connectionpool:Starting new HTTP >> connection (1): 10.240.227.233 >> DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/tokens HTTP/1.1" >> 404 93 >> DEBUG:keystoneclient.session:Request returned failure status: 404 >> Authorization Failed: The resource could not be found. (HTTP 404) >> (Request-ID: req-c71a1014-1c8d-47c0-bed5-cba6ad91881f) >> >> Thank you for answering! >> >> Sincerely! >> Kenny Ji >> >> __________________________________________________________________________ >> 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 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 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