openstack【Kilo】入门 【keystone篇】六:创建服务实例和 API endpoint
问题导读
1.这里配置的OS_TOKEN的作用是什么?
2.如何创建服务实例和API endpoint?

1.准备
1.配置token
给ADMIN_TOKEN赋值,这个指是上篇生成的,比如是294a4c8a8a475f9b9836
2.配置 endpoint URL:
2.创建服务实例和API endpoint
1.创建Identity 实例服务:
2.创建实例服务
1.这里配置的OS_TOKEN的作用是什么?
2.如何创建服务实例和API endpoint?
1.准备
1.配置token
[Bash shell] 纯文本查看 复制代码
1
|
export
OS_TOKEN=ADMIN_TOKEN
|
给ADMIN_TOKEN赋值,这个指是上篇生成的,比如是294a4c8a8a475f9b9836
[Bash shell] 纯文本查看 复制代码
1
|
export
OS_TOKEN=294a4c8a8a475f9b9836
|
2.配置 endpoint URL:
[Bash shell] 纯文本查看 复制代码
1
|
export
OS_URL=http: //controller :35357 /v2 .0
|
2.创建服务实例和API endpoint
1.创建Identity 实例服务:
[Bash shell] 纯文本查看 复制代码
1
2
|
openstack
service create \
--name
keystone --description "OpenStack
Identity"
identity
|
2.创建实例服务
[Bash shell] 纯文本查看 复制代码
1
2
3
4
5
6
|
openstack
endpoint create \
--publicurl
http: //controller :5000 /v2 .0
\
--internalurl
http: //controller :5000 /v2 .0
\
--adminurl
http: //controller :35357 /v2 .0
\
--region
RegionOne \
identity
|