前面按照官网上的操作进行了一部分,之前的一部分来源于官网中文版
后面发现中文版和英文版有此内容不一致,中文版的“环境”里没有etcd的安装操作,还是切回到英文版参考
之前把Environment部分的操作安装完了,也不知道是否有什么问题,还没有验证过,接下来继续进行“Install OpenStack services”的部分
在安装文档里发现了这个
OpenStack Training Labs
然后找到的这是一段
Minimal deployment for Pike
第一个是安装
- Identity service – keystone installation for Pike
Keystone Installation Tutorial
参照文档准备mysql数据库keystone及用户keystone
安装三个组件openstack-keystone httpd mod_wsgi,并进行配置
Create a domain, projects, users, and roles
openstack project create --domain default --description "Service Project" service
执行这个命令的时候报错
Failed to discover available identity versions when contacting http://controller:35357/v3. Attempting to parse version from URL.
Unable to establish connection to http://controller:35357/v3/auth/tokens: HTTPConnectionPool(host='controller', port=35357): Max retries exceeded with url: /v3/auth/tokens (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f4a21081c90>: Failed to establish a new connection: [Errno 111] \xe6\x8b\x92\xe7\xbb\x9d\xe8\xbf\x9e\xe6\x8e\xa5',))
才发现是ln -s 创建软链接时没有正常执行
ln -s /usr/share/keystone/wsgi-keystone.conf /etc/httpd/conf.d/
重新创建链接文件后重启服务
此时执行上面的服务就可以正常显示了
按照文档上的步骤验证完毕,明天继续
网友评论