openstack-keystone入门

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_34123420/article/details/81259439

作用:身份验证,令牌发放和校验、服务列表、用户权限定义

不适合新手看,想到哪儿写到哪儿,写一些关于自己在看书学习的过程中对一些知识的理解。

Service决定每个Role能干什么事情,而每个User可以给他分配多个Role,进而具备了多服务的操作权限

一个用户可以属于多个租户(Project),“目前来看,用户与租户之间是通过角色相联系的?”,在horizon上创建用户会有添加到那个租户的选项。

用户登录时,使用账号密码,之后keystone会给他一个临时的令牌,用户和各服务之间会关联一个正式的token,在用户进行某些操作之后

openstack-keystone服务无法启动

03-23

[root@controller ~]# keystone-all --config-file=/etc/keystone/keystone.confrnNo handlers could be found for logger "oslo_config.cfg"rn2016-03-23 10:28:29.060 3554 CRITICAL keystone [-] ConfigFileNotFound: An unexpected error prevented the server from fulfilling your request.rn2016-03-23 10:28:29.060 3554 ERROR keystone Traceback (most recent call last):rn2016-03-23 10:28:29.060 3554 ERROR keystone File "/usr/bin/keystone-all", line 10, in rn2016-03-23 10:28:29.060 3554 ERROR keystone sys.exit(main())rn2016-03-23 10:28:29.060 3554 ERROR keystone File "/usr/lib/python2.7/site-packages/keystone/cmd/all.py", line 38, in mainrn2016-03-23 10:28:29.060 3554 ERROR keystone eventlet_server.run(possible_topdir)rn2016-03-23 10:28:29.060 3554 ERROR keystone File "/usr/lib/python2.7/site-packages/keystone/server/eventlet.py", line 135, in runrn2016-03-23 10:28:29.060 3554 ERROR keystone paste_config = config.find_paste_config()rn2016-03-23 10:28:29.060 3554 ERROR keystone File "/usr/lib/python2.7/site-packages/keystone/config.py", line 91, in find_paste_configrn2016-03-23 10:28:29.060 3554 ERROR keystone raise exception.ConfigFileNotFound(config_file=paste_config_value)rn2016-03-23 10:28:29.060 3554 ERROR keystone ConfigFileNotFound: An unexpected error prevented the server from fulfilling your request.rn这是我查询配置文件出现的问题。rnrnrnrn2016-03-23 10:24:25.434 3461 ERROR keystone Traceback (most recent call last):rn2016-03-23 10:24:25.434 3461 ERROR keystone File "/usr/bin/keystone-all", line 10, in rn2016-03-23 10:24:25.434 3461 ERROR keystone sys.exit(main())rn2016-03-23 10:24:25.434 3461 ERROR keystone File "/usr/lib/python2.7/site-packages/keystone/cmd/all.py", line 38, in mainrn2016-03-23 10:24:25.434 3461 ERROR keystone eventlet_server.run(possible_topdir)rn2016-03-23 10:24:25.434 3461 ERROR keystone File "/usr/lib/python2.7/site-packages/keystone/server/eventlet.py", line 156, in runrn2016-03-23 10:24:25.434 3461 ERROR keystone serve(*servers)rn2016-03-23 10:24:25.434 3461 ERROR keystone File "/usr/lib/python2.7/site-packages/keystone/server/eventlet.py", line 88, in servern2016-03-23 10:24:25.434 3461 ERROR keystone server.launch_with(launcher)rn2016-03-23 10:24:25.434 3461 ERROR keystone File "/usr/lib/python2.7/site-packages/keystone/server/eventlet.py", line 54, in launch_withrn2016-03-23 10:24:25.434 3461 ERROR keystone self.server.listen()rn2016-03-23 10:24:25.434 3461 ERROR keystone File "/usr/lib/python2.7/site-packages/keystone/common/environment/eventlet_server.py", line 110, in listenrn2016-03-23 10:24:25.434 3461 ERROR keystone backlog=backlog)rn2016-03-23 10:24:25.434 3461 ERROR keystone File "/usr/lib/python2.7/site-packages/eventlet/convenience.py", line 43, in listenrn2016-03-23 10:24:25.434 3461 ERROR keystone sock.bind(addr)rn2016-03-23 10:24:25.434 3461 ERROR keystone File "/usr/lib64/python2.7/socket.py", line 224, in methrn2016-03-23 10:24:25.434 3461 ERROR keystone return getattr(self._sock,name)(*args)rn2016-03-23 10:24:25.434 3461 ERROR keystone error: [Errno 98] Address already in usernrnrnrnrn这是我在/var/log/keystone/keystone.log查到的。rn

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试

关闭