Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- web keystone # cat admin.py
- # Copyright 2013 OpenStack Foundation
- #
- # Licensed under the Apache License, Version 2.0 (the "License"); you may
- # not use this file except in compliance with the License. You may obtain
- # a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- # License for the specific language governing permissions and limitations
- # under the License.
- from keystone.server import wsgi as wsgi_server
- import sys
- print sys.argv
- application = wsgi_server.initialize_application("admin")
- web keystone # bpython
- bpython version 0.14.2 on top of Python 2.7.11 /usr/bin/python2.7
- >>> from admin import application
- ['/usr/lib/python-exec/python2.7/bpython']
- Option "verbose" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future.
- 2016-04-16 23:23:19.594 5884 WARNING keystone.assignment.core [req-6127adfd-1704-4ab0-b825-ab12718e328d - - - - -] Deprecated: Use of the identity driver config to automatically configure t
- he same assignment driver has been deprecated, in the "O" release, the assignment driver will need to be expicitly configured if different than the default (SQL).
- 2016-04-16 23:23:19.705 5884 WARNING keystone.common.manager [req-6127adfd-1704-4ab0-b825-ab12718e328d - - - - -] Deprecated: Direct import of driver 'keystone.token.providers.uuid.Provider
- ' is deprecated as of Liberty in favor of its entrypoint from 'keystone.token.provider' and may be removed in N.
- 2016-04-16 23:23:19.711 5884 WARNING keystone.auth.controllers [req-6127adfd-1704-4ab0-b825-ab12718e328d - - - - -] Deprecated: Direct import of auth plugin 'keystone.auth.plugins.oauth1.OA
- uth' is deprecated as of Liberty in favor of its entrypoint from 'keystone.auth.oauth1' and may be removed in N.
- 2016-04-16 23:23:19.715 5884 WARNING keystone.auth.controllers [req-6127adfd-1704-4ab0-b825-ab12718e328d - - - - -] Deprecated: Direct import of auth plugin 'keystone.auth.plugins.token.Tok
- en' is deprecated as of Liberty in favor of its entrypoint from 'keystone.auth.token' and may be removed in N.
- 2016-04-16 23:23:19.720 5884 WARNING keystone.auth.controllers [req-6127adfd-1704-4ab0-b825-ab12718e328d - - - - -] Deprecated: Direct import of auth plugin 'keystone.auth.plugins.password.
- Password' is deprecated as of Liberty in favor of its entrypoint from 'keystone.auth.password' and may be removed in N.
- 2016-04-16 23:23:20.479 5884 WARNING keystone.middleware.core [req-6127adfd-1704-4ab0-b825-ab12718e328d - - - - -] The admin_token_auth middleware presents a security risk and should be rem
- oved from the [pipeline:api_v3], [pipeline:admin_api], and [pipeline:public_api] sections of your paste ini file.
- 2016-04-16 23:23:20.940 5884 WARNING keystone.middleware.core [req-6127adfd-1704-4ab0-b825-ab12718e328d - - - - -] The admin_token_auth middleware presents a security risk and should be rem
- oved from the [pipeline:api_v3], [pipeline:admin_api], and [pipeline:public_api] sections of your paste ini file.
- >>> type(application)
- <class 'paste.urlmap.URLMap'>
- >>> application.items()
- [((None, '/v2.0'), <oslo_middleware.cors.CORS object at 0x7fcb2de89650>), ((None, '/v3'), <oslo_middleware.cors.CORS object at 0x7fcb2dbe1fd0>), ((None, ''), <oslo_middleware.cors.CORS obje
- ct at 0x7fcb2db45410>)]
- >>> application.get_response()
- Traceback (most recent call last):
- File "<input>", line 1, in <module>
- AttributeError: 'URLMap' object has no attribute 'get_response'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement