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