Change keystone authorization

In fuel-9 change authorization method to keystone on controller node.

Change-Id: I93935648164e2ad203256360373f8029eed9d464
This commit is contained in:
Sergey Abramov 2016-04-05 15:36:07 +03:00
parent 430df34d6c
commit 04c37007e9
1 changed files with 7 additions and 5 deletions

View File

@ -11,15 +11,17 @@
# under the License.
import glanceclient.client
import keystoneclient.v2_0.client as ksclient
import keystoneclient.client as ksclient
import neutronclient.neutron.client
def _get_keystone(username, password, tenant_name, auth_url):
return ksclient.Client(username=username,
password=password,
tenant_name=tenant_name,
auth_url=auth_url)
klient = ksclient.Client(auth_url=auth_url)
klient.authenticate(
username=username,
password=password,
tenant_name=tenant_name)
return klient
def _get_glance(version=2, endpoint=None, token=None):