OpenStack-Rocky 版本的错误
错误 1:
在装包时包下载失败, 在确定系统源没有问题之后, 发现 Ping 不通百度. 最后, 添加了 DNS 解决的, 说明没有添加 DNS(/etc/resolv.conf).
错误 2:
作为 admin 用户, 请求身份验证令牌时发生错误, 应为端口错误, 在配置的时候, 使用的是 5000, 下面命令中测试使用的是 35357, 所以错了.
- [root@Centos7-C ~]# openstack --os-auth-url http://controller:35357/v3 \
- --os-project-domain-name Default --os-user-domain-name Default \
- --os-project-name admin --os-username admin token issue
- Password:
- 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('<urllib3.connection.HTTPConnection object at 0x7f4266a08490>: Failed to establish a new connection: [Errno 111] Connection refused',))
错误 3:
创建和编辑 demo-openrc 文件并添加以下内容:
- export OS_PROJECT_DOMAIN_NAME=Default
- export OS_USER_DOMAIN_NAME=Default
- export OS_PROJECT_NAME=myproject
- export OS_USERNAME=myuser
- export OS_PASSWORD=MYUSER_PASS
- export OS_AUTH_URL= http://controller:5000/v3
- export OS_IDENTITY_API_VERSION=3
- export OS_IMAGE_API_VERSION=2
替换 DEMO_PASS 为您 demo 在 Identity 服务中为用户选择的密码.
解: 在最后一行, 应该是把 DEMO_PASS 替换 MYUSER_PASS.
错误 4:
创建 cell1 单元格:
- su -s /bin/sh -c "nova-manage cell_v2 create_cell --name=cell1 --verbose" nova
- 109e1d4b-536a-40d0-83c6-5f121b82b650
解: 这是一行命令, shell 以为是两行.
错误 5:
配置 compute 服务后, 验证时, 在 controller 上发现少一个服务 (应该是 4 个). 解决方法, 就是单独关闭缺少的服务, 再 start.
- [root@Centos7-C ~]# openstack compute service list
- +----+----------------+-----------------------+----------+---------+-------+----------------------------+
- | ID | Binary | Host | Zone | Status | State | Updated At |
- +----+----------------+-----------------------+----------+---------+-------+----------------------------+
- | 1 | nova-conductor | Centos7-C.localdomain | internal | enabled | up | 2018-10-09T14:04:34.000000 |
- | 2 | nova-scheduler | Centos7-C.localdomain | internal | enabled | up | 2018-10-09T14:04:33.000000 |
- | 5 | nova-compute | Centos7-D.localdomain | nova | enabled | up | 2018-10-09T14:04:36.000000 |
- +----+----------------+-----------------------+----------+---------+-------+----------------------------+
- [root@Centos7-C ~]#
错误 6:
官方文档中少启动一个服务
启动 Compute 服务并将其配置为在系统引导时启动:
- systemctl enable openstack-nova-API.service \
- openstack-nova-scheduler.service openstack-nova-conductor.service \
- openstack-nova-novncproxy.service
- systemctl start openstack-nova-API.service \
- openstack-nova-scheduler.service openstack-nova-conductor.service \
- openstack-nova-novncproxy.service
来源: http://www.bubuko.com/infodetail-2801518.html