kavin

OpenStack Keystone同时开启V3和V2版本

kavin 虚拟化 2018-05-10 3812浏览 0

 

我们知道OpenStack 最新版本NewtonkeystoneV3版本,由于之前存在V2版本的应用,如何同时兼容呢?主要需要操作以下四步:

 

1.获取domain ID

[root@openstack-control-node1 ~]# openstack domain list

+----------------------------------+---------+---------+----------------+

| ID                               | Name    | Enabled | Description    |

+----------------------------------+---------+---------+----------------+

| d0e436a913f94ec28f3a1892e0a7a240 | default | True    | Default Domain |

+----------------------------------+---------+---------+----------------+

 

2.编写Keystone配置文件,设置default_domain_id

[root@openstack-control-node1 ~]# vim /etc/keystone/keystone.conf

[identity]

 

#

# From keystone

#

 

# This references the domain to use for all Identity API v2 requests (which are

# not aware of domains). A domain with this ID will be created for you by

# keystone-manage db_sync in migration 008. The domain referenced by this ID

# cannot be deleted on the v3 API, to prevent accidentally breaking the v2 API.

# There is nothing special about this domain, other than the fact that it must

# exist to order to maintain support for your v2 clients. (string value)

default_domain_id = d0e436a913f94ec28f3a1892e0a7a240

 

3.同步数据库

su -s /bin/sh -c "keystone-manage db_sync" keystone

 

4.重启Keystone服务


继续浏览有关 keystone 的文章
发表评论