keystone 手动建立租户,用户,角色,服务,端口
建立租户:
root@cloud:~# keystone tenant-create --name=admin WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | description | | | enabled | True | | id | 139ea7b2f2444bcd85c327c1671708e1 | | name | admin | +-------------+----------------------------------+ root@cloud:~# keystone tenant-create --name=demo WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | description | | | enabled | True | | id | 8d428dd34477470d95ad6ad4df0d2dd4 | | name | demo | +-------------+----------------------------------+ root@cloud:~# keystone tenant-create --name=service WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | description | | | enabled | True | | id | 9fa61d1bd95d49d4be39658dc5b2a527 | | name | service | +-------------+----------------------------------+
查看建立的租户:
root@cloud:~# keystone tenant-list WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +----------------------------------+---------+---------+ | id | name | enabled | +----------------------------------+---------+---------+ | 139ea7b2f2444bcd85c327c1671708e1 | admin | True | | 8d428dd34477470d95ad6ad4df0d2dd4 | demo | True | | 9fa61d1bd95d49d4be39658dc5b2a527 | service | True | +----------------------------------+---------+---------+ root@cloud:~#
删除租户:
建立一个租户:root@cloud:~# keystone tenant-create --name=test WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).+-------------+----------------------------------+| Property | Value |+-------------+----------------------------------+| description | || enabled | True || id | 2c5fd775f7d049a0a3116ec257c1c106 || name | test |+-------------+----------------------------------+ 查看租户:root@cloud:~# keystone tenant-list WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +----------------------------------+---------+---------+ | id | name | enabled | +----------------------------------+---------+---------+ | 139ea7b2f2444bcd85c327c1671708e1 | admin | True | | 8d428dd34477470d95ad6ad4df0d2dd4 | demo | True | | 9fa61d1bd95d49d4be39658dc5b2a527 | service | True | | 2c5fd775f7d049a0a3116ec257c1c106 | test | True | +----------------------------------+---------+---------+ 删除租户: root@cloud:~# keystone tenant-delete 2c5fd775f7d049a0a3116ec257c1c106 WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). root@cloud:~#查看是否删除:root@cloud:~# keystone tenant-listWARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).+----------------------------------+---------+---------+| id | name | enabled |+----------------------------------+---------+---------+| 139ea7b2f2444bcd85c327c1671708e1 | admin | True || 8d428dd34477470d95ad6ad4df0d2dd4 | demo | True || 9fa61d1bd95d49d4be39658dc5b2a527 | service | True |+----------------------------------+---------+---------+root@cloud:~#
建立用户:
建立admin用户:root@cloud:~# keystone user-create --name=admin --pass=openstack --email=admin@domain.com #建立user用户不需要指定tenant,email不是固定的,根据环境选择 WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +----------+----------------------------------+ | Property | Value | +----------+----------------------------------+ | email | admin@domain.com | | enabled | True | | id | 94123525f8994a42a1d010bf728b4627 | | name | admin | | tenantId | | +----------+----------------------------------+ root@cloud:~# 建立demo用户: 官方文档中这里tenant-id 后面加了=号这里不用等号也行,建议不加,应为后面建立令牌的时候是不加的。root@cloud:~# keystone user-create --name=demo --pass=openstack --email=demo@domain.com --tenant-id 8d428dd34477470d95ad6ad4df0d2dd4WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).+----------+----------------------------------+| Property | Value |+----------+----------------------------------+| email | demo@domain.com || enabled | True || id | e1e98f7715094798a56f61dd1f85595e || name | demo || tenantId | 8d428dd34477470d95ad6ad4df0d2dd4 |+----------+----------------------------------+root@cloud:~#
建立角色:
root@cloud:~# keystone role-create --name=admin WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +----------+----------------------------------+ | Property | Value | +----------+----------------------------------+ | id | 844d47b695c04c74bc8799b41450dc90 | | name | admin | +----------+----------------------------------+ root@cloud:~# keystone role-create --name=Member WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +----------+----------------------------------+ | Property | Value | +----------+----------------------------------+ | id | 99643e947abf45f280f39ab06a9ff858 | | name | Member | +----------+----------------------------------+ root@cloud:~#
为用户在租户中添加角色:
先查看相应的IDroot@cloud:~# keystone user-list WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +----------------------------------+-------+---------+------------------+ | id | name | enabled | email | +----------------------------------+-------+---------+------------------+ | 94123525f8994a42a1d010bf728b4627 | admin | True | admin@domain.com | | e1e98f7715094798a56f61dd1f85595e | demo | True | demo@domain.com | +----------------------------------+-------+---------+------------------+ root@cloud:~# keystone tenant-list WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +----------------------------------+---------+---------+ | id | name | enabled | +----------------------------------+---------+---------+ | 139ea7b2f2444bcd85c327c1671708e1 | admin | True | | 8d428dd34477470d95ad6ad4df0d2dd4 | demo | True | | 9fa61d1bd95d49d4be39658dc5b2a527 | service | True | +----------------------------------+---------+---------+ root@cloud:~# keystone role-list WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +----------------------------------+----------+ | id | name | +----------------------------------+----------+ | 99643e947abf45f280f39ab06a9ff858 | Member | | 9fe2ff9ee4384b1894a90878d3e92bab | _member_ | | 844d47b695c04c74bc8799b41450dc90 | admin | +----------------------------------+----------+ 为用户在租户中添加角色:root@cloud:~#root@cloud:~# keystone user-role-add --user-id 94123525f8994a42a1d010bf728b4627 --tenant-id 139ea7b2f2444bcd85c327c1671708e1 --role-id 844d47b695c04c74bc8799b41450dc90WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).root@cloud:~# 注意role指定的是Member角色root@cloud:~# keystone user-role-add --tenant-id 8d428dd34477470d95ad6ad4df0d2dd4 --user-id e1e98f7715094798a56f61dd1f85595e --role-id 99643e947abf45f280f39ab06a9ff858WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).root@cloud:~#
服务以及端口的建立:
root@cloud:~# keystone service-create --name nova --type compute --description 'OpenStack Compute Service'WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | description | OpenStack Compute Service | | id | 50195c63e78749c4bfb0c4da8a121033 | | name | nova | | type | compute | +-------------+----------------------------------+ root@cloud:~# keystone service-create --name cinder --type volume --description 'OpenStack Volume Service' WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | description | OpenStack Volume Service | | id | 09dd98bd962b4e61b4377ba70a5d9c69 | | name | cinder | | type | volume | +-------------+----------------------------------+ root@cloud:~# keystone service-create --name glance --type image --description 'OpenStack Image Service' WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | description | OpenStack Image Service | | id | e0ef8e829b914147b6c49d281e4817db | | name | glance | | type | image | +-------------+----------------------------------+ root@cloud:~# keystone service-create --name keystone --type identity --description 'OpenStack Identity' WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | description | OpenStack Identity | | id | 9ccb0db9159648d89f276527c339cc40 | | name | keystone | | type | identity | +-------------+----------------------------------+ root@cloud:~# keystone service-create --name ec2 --type ec2 --description 'OpenStack EC2 service' WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | description | OpenStack EC2 service | | id | d2738dff2cd54615b7b2002081e21ff9 | | name | ec2 | | type | ec2 | +-------------+----------------------------------+ root@cloud:~# keystone service-create --name quantum --type network --description 'OpenStack Networking service' WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +-------------+----------------------------------+ | Property | Value | +-------------+----------------------------------+ | description | OpenStack Networking service | | id | 8b3f86f20bf146068b898aac0dd3334f | | name | quantum | | type | network | +-------------+----------------------------------+ root@cloud:~#
建立endpoint:
root@cloud:~# keystone endpoint-create --region RegionOne --service-id 50195c63e78749c4bfb0c4da8a121033 --publicurl 'http://10.10.10.10:8774/v2/$(tenant_id)s' --adminurl 'http://10.10.10.10:8774/v2/$(tenant_id)s' WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +-------------+------------------------------------------+ | Property | Value | +-------------+------------------------------------------+ | adminurl | http://10.10.10.10:8774/v2/$(tenant_id)s | | id | 520470e44d7a4bf088a93beb000a6f6b | | internalurl | | | publicurl | http://10.10.10.10:8774/v2/$(tenant_id)s | | region | RegionOne | | service_id | 50195c63e78749c4bfb0c4da8a121033 | +-------------+------------------------------------------+ root@cloud:~# root@cloud:~# keystone endpoint-create --region RegionOne --service-id 9ccb0db9159648d89f276527c339cc40 --publicurl 'http://10.10.10.10:5000/v2.0' --adminurl 'http://10.10.10.10:35357/v2.0' --internalurl 'http://10.10.10.10:5000/v2.0'WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).+-------------+----------------------------------+| Property | Value |+-------------+----------------------------------+| adminurl | http://10.10.10.10:35357/v2.0 || id | 59f4ccf564ce47fe8b141692288cb497 || internalurl | http://10.10.10.10:5000/v2.0 || publicurl | http://10.10.10.10:5000/v2.0 || region | RegionOne || service_id | 9ccb0db9159648d89f276527c339cc40 |+-------------+----------------------------------+root@cloud:~#
其他的端口建议在安装一个服务之后再建立,这样呢个将错误降低到最低。
转载于:https://www.cnblogs.com/osxlinux/p/3388031.html
keystone 手动建立租户,用户,角色,服务,端口相关推荐
- 电信单方面关闭ADSL用户入口80端口,导致用户有关80端口对外服务无法实现,严重违反提供公网IP的合同
电信单方面关闭ADSL用户入口80端口,导致用户有关80端口对外服务无法实现,严重违反提供公网IP的合同 ADSL拨号用户80,22端口被电信屏蔽情况 1.我申请有两个ADSL电信宽带账户,一个是小区 ...
- 用于实现 Web 服务的 SOA 编程模型,第 10 部分: SOA 用户角色
为什么80%的码农都做不了架构师?>>> 引言 每个组织都有差别.它具有自身的文化.结构.技术实力和资产.但很多组织都在被类似的问题所困扰: 如何改进客户服务和适应其不断变化的 ...
- 图解手动全面检查管理本机端口
一 协议端口 如果把IP地址比作一间房子 ,端口就是出入这间房子的门.真正的房子只有几个门,但是一个IP地址的端口可以有65536(即:2^16)个之多!端口是通过端口号来标记的,端口号只有整数,范围 ...
- 介绍Windows Server服务器角色、角色服务和功能
1.1 服务器角色.角色服务和功能 什么是服务器角色.角色服务和功能? 本部分定义适用于 Windows Server 2008 的术语:角色.角色服务和功能. 角色 Roles是出现Windows ...
- .NET Core微服务之基于IdentityServer建立授权与验证服务(续)
上一篇<.NET Core微服务之基于IdentityServer建立授权与验证服务>我们基于IdentityServer4建立了一个AuthorizationServer,并且继承了Qu ...
- 业务还是功能?2B产品的用户角色问题
如何构建一个能够"容纳"不同角色的用户体系并行处理业务,实现跨流程的协作? 我们之前谈到了基于用户洞察设计产品的业务架构 ,其目的是:实现业务的解耦,以便构建一个"轻型& ...
- 基于SCVMM对虚拟化服务器与虚拟机管理权限分配用户角色
基于SCVMM对虚拟化服务器与虚拟机管理权限 分配用户角色 随着云计算时代的来临,越来越多的企业已经将IT环境迁移到虚拟化环境中,那么企业如何来统一管理如此多的虚拟化主机与虚拟机,通过管理平台是否能实 ...
- 基于用户角色的数据库智能监控系统应用场景分析
摘要:本文尝试从概念和逻辑上推导了基于用户角色的数据库智能监控系统的可能应用场景. 本文分享自华为云社区<GaussDB(DWS)数据库智能监控系统应用场景分析>,原文作者:鲁大师. 与互 ...
- VIP客户服务系统设计(四)——按用户角色构思系统功能(上)
原本本期计划开始进入编写实战阶段的阐述,但考虑到读者可能对系统需求及框架不甚了解,所以,有必要将总体的架构与实现的功能先做一个简单的介绍.下面就按用户角色来讲述系统所实现的功能. 一.客户经理(支行) ...
最新文章
- nodejs 根据坐标 标记图片上的姓名列
- 「OKR 理论篇」5 分钟快速掌握 OKR 管理法
- grpc使用记录(一) gRPC编译(mscv/gcc)
- 快排,归并和Shell排序
- java线程概念_《Java基础知识》Java线程的概念
- OpenCASCADE:使用 扩展数据交换XDE之编辑形状
- php 固定人数拼手气_独立统计在线人数和访问数代码分享(php)
- 垃圾回收③---垃圾回收器
- 理解React的组件
- python3 format函数_【Python3 第三日】%和format格式化输出 函数
- Redis学习总结(3)——Redis整合Spring结合使用缓存实例
- linux windows文件 编码_一站式解读彻底搞懂Python编码
- struts2的struts.xml的详细配置1-1
- H3C运维审计系统 故障处理手册(笔记)
- python的seek用法
- 炮兵阵地图文详解NOI2001/POJ1185(状态压缩)
- android 辅助功能(无障碍) AccessibilityService 实战入门详解
- CSDN 双11优惠券 使用攻略,畅享折上折!
- java计算机毕业设计劳务外包管理系统源码+系统+数据库+lw文档+mybatis+运行部署
- 双重差分模型能做固定效应吗_stata中双重差分操流程及代码
热门文章
- 接口测试用例设计思路_基于python语言的接口自动化demo小实战
- arm linux远程桌面win7卡顿,主编解答win7系统使用远程桌面出现卡顿的恢复方法
- opera for android,Opera Mobile浏览器
- 美国留学计算机网络技术,美国留学计算机专业详解
- Sun公司网站上的Swing实例,想学Swing的不看后悔
- 鸿蒙应用案例:Ability应用与管理
- Java Web学习笔记05:状态管理
- HTML学习笔记:实现条纹边框
- 【HDU5156】Harry and Christmas tree,两种离线的做法
- 【codevs1068】乌龟棋noip10年TG----第二个A掉的钻石题