Advertisement
Guest User

Untitled

a guest
Apr 16th, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.66 KB | None | 0 0
  1. web keystone # cat admin.py
  2. # Copyright 2013 OpenStack Foundation
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License"); you may
  5. # not use this file except in compliance with the License. You may obtain
  6. # a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. # License for the specific language governing permissions and limitations
  14. # under the License.
  15.  
  16. from keystone.server import wsgi as wsgi_server
  17.  
  18. import sys
  19.  
  20. print sys.argv
  21.  
  22. application = wsgi_server.initialize_application("admin")
  23. web keystone # bpython
  24. bpython version 0.14.2 on top of Python 2.7.11 /usr/bin/python2.7
  25. >>> from admin import application
  26. ['/usr/lib/python-exec/python2.7/bpython']
  27. Option "verbose" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future.
  28. 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
  29. 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).
  30. 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
  31. ' is deprecated as of Liberty in favor of its entrypoint from 'keystone.token.provider' and may be removed in N.
  32. 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
  33. uth' is deprecated as of Liberty in favor of its entrypoint from 'keystone.auth.oauth1' and may be removed in N.
  34. 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
  35. en' is deprecated as of Liberty in favor of its entrypoint from 'keystone.auth.token' and may be removed in N.
  36. 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.
  37. Password' is deprecated as of Liberty in favor of its entrypoint from 'keystone.auth.password' and may be removed in N.
  38. 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
  39. oved from the [pipeline:api_v3], [pipeline:admin_api], and [pipeline:public_api] sections of your paste ini file.
  40. 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
  41. oved from the [pipeline:api_v3], [pipeline:admin_api], and [pipeline:public_api] sections of your paste ini file.
  42. >>> type(application)
  43. <class 'paste.urlmap.URLMap'>
  44. >>> application.items()
  45. [((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
  46. ct at 0x7fcb2db45410>)]
  47. >>> application.get_response()
  48. Traceback (most recent call last):
  49. File "<input>", line 1, in <module>
  50. AttributeError: 'URLMap' object has no attribute 'get_response'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement