Activity log for bug #1606921

Date Who What changed Old value New value Message
2016-07-27 13:18:10 Guillaume Moulard bug added bug
2016-07-27 13:21:49 Guillaume Moulard description hi, On http://docs.openstack.org/user-guide/sdk_authenticate.html is necessary to detail the authentication method for keystone, nova, neutron, ... clients. probably the most interesting way is to create a generic python class with some methods for dedicated authentication by clients: credentials.py import os def get_credentials(): d = {} d['username'] = os.environ['OS_USERNAME'] d['password'] = os.environ['OS_PASSWORD'] d['auth_url'] = os.environ['OS_AUTH_URL'] d['tenant_name'] = os.environ['OS_TENANT_NAME'] return d def get_nova_credentials(): d = {} d['username'] = os.environ['OS_USERNAME'] d['api_key'] = os.environ['OS_PASSWORD'] d['auth_url'] = os.environ['OS_AUTH_URL'] d['project_id'] = os.environ['OS_TENANT_NAME'] return d def get_nova_credentials_v2(): d = {} d['version'] = '2' d['username'] = os.environ['OS_USERNAME'] d['api_key'] = os.environ['OS_PASSWORD'] d['auth_url'] = os.environ['OS_AUTH_URL'] d['project_id'] = os.environ['OS_TENANT_NAME'] d['region_name'] = os.environ['OS_REGION_NAME'] ... After on all the documentation we can reuse this libray GM ----------------------------------- Release: 1.0.0 on 2016-07-26 23:45 SHA: 9b6f87ab310a17baa166d1b59db56584b9241bbf Source: http://git.openstack.org/cgit/openstack/openstack-manuals/tree/doc/user-guide/source/sdk_authenticate.rst URL: http://docs.openstack.org/user-guide/sdk_authenticate.html hi, On http://docs.openstack.org/user-guide/sdk_authenticate.html is necessary to detail the authentication method for keystone, nova, neutron, ... clients. probably the most interesting way is to create a generic python class with some methods for dedicated authentication by clients: credentials.py import os def get_credentials():     d = {}     d['username'] = os.environ['OS_USERNAME']     d['password'] = os.environ['OS_PASSWORD']     d['auth_url'] = os.environ['OS_AUTH_URL']     d['tenant_name'] = os.environ['OS_TENANT_NAME']     return d def get_nova_credentials():     d = {}     d['username'] = os.environ['OS_USERNAME']     d['api_key'] = os.environ['OS_PASSWORD']     d['auth_url'] = os.environ['OS_AUTH_URL']     d['project_id'] = os.environ['OS_TENANT_NAME']     return d def get_nova_credentials_v2():     d = {}     d['version'] = '2'     d['username'] = os.environ['OS_USERNAME']     d['api_key'] = os.environ['OS_PASSWORD']     d['auth_url'] = os.environ['OS_AUTH_URL']     d['project_id'] = os.environ['OS_TENANT_NAME']     d['region_name'] = os.environ['OS_REGION_NAME'] ... After on all the documentation we can reuse this libray Is I can help for this update :) GM ----------------------------------- Release: 1.0.0 on 2016-07-26 23:45 SHA: 9b6f87ab310a17baa166d1b59db56584b9241bbf Source: http://git.openstack.org/cgit/openstack/openstack-manuals/tree/doc/user-guide/source/sdk_authenticate.rst URL: http://docs.openstack.org/user-guide/sdk_authenticate.html
2016-07-27 13:41:12 Atsushi SAKAI openstack-manuals: status New Confirmed
2017-01-24 15:58:35 Alexandra Settle openstack-manuals: importance Undecided Wishlist
2017-09-12 22:30:29 Ben Silverman openstack-manuals: status Confirmed Won't Fix
2017-09-12 22:30:40 Ben Silverman bug task added shade