我最近在新安装的CentOS-7
上安装了 OpenStack Newton 。我按照Packstack quickstart guide进行单节点设置。我从这个星期一开始就陷入困境。
我有两个问题。
1。安装将停止并显示错误:
Puppet运行期间出现错误:192.168.x.xx_controller.pp
当我打开setup.log
文件时,我有这个:
在Puppet运行期间出现错误:192.168.x.xx_controller.pp 错误:/ Stage [main] / Nova :: Db :: Sync / Exec [nova-db-sync]:无法调用刷新:/ usr / bin / nova-manage db sync返回1而不是[0]之一0米 你会在log /var/tmp/packstack/20161215-154418-GFnhLr/manifests/192.168.x.xx_controller.pp.log中找到完整的跟踪
2016-12-15 15:56:29 :: INFO :: shell :: 94 :: root :: [192.168.x.xx]执行脚本: rm -rf / var / tmp / packstack / fbb74d7f4c7f4e8c988aba9c28ffd3d9
我知道我错过了什么,但我不知道是什么!
我可以启动nova-api
和nova-conductor
服务。但是当我尝试启动scheduler
服务时(虽然我已经启用了调度程序服务但无法启动它。如果我在外部安装puppet
,虽然我跳过调度程序错误,但我仍然得到错误nagios服务无法启动),它说:
# systemctl start openstack-nova-scheduler.service
Job for openstack-nova-scheduler.service failed because the control process exited with error code. See "systemctl status openstack-nova-scheduler.service" and "journalctl -xe" for details.
因此它建议我尝试使用这两个命令,并且它们的输出是这样的:
# journalctl -xe
-- Unit openstack-nova-scheduler.service has failed.
--
-- The result is failed.
Dec 15 17:35:23 localhost.localdomain systemd[1]: Unit openstack-nova-scheduler.service entered failed state.
Dec 15 17:35:23 localhost.localdomain systemd[1]: openstack-nova-scheduler.service failed.
Dec 15 17:35:23 localhost.localdomain systemd[1]: openstack-nova-scheduler.service holdoff time over, scheduling restart.
Dec 15 17:35:23 localhost.localdomain systemd[1]: Starting OpenStack Nova Scheduler Server...
-- Subject: Unit openstack-nova-scheduler.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit openstack-nova-scheduler.service has begun starting up.
Dec 15 17:35:24 localhost.localdomain kernel: ata1: SATA link down (SStatus 1 SControl 310)
Dec 15 17:35:24 localhost.localdomain kernel: ata1: EH complete
Dec 15 17:35:24 localhost.localdomain kernel: ata1: exception Emask 0x10 SAct 0x0 SErr 0x4000000 action 0xe frozen
Dec 15 17:35:24 localhost.localdomain kernel: ata1: irq_stat 0x00000040, connection status changed
Dec 15 17:35:24 localhost.localdomain kernel: ata1: SError: { DevExch }
Dec 15 17:35:24 localhost.localdomain kernel: ata1: limiting SATA link speed to 1.5 Gbps
Dec 15 17:35:24 localhost.localdomain kernel: ata1: hard resetting link
Dec 15 17:35:26 localhost.localdomain nova-scheduler[10172]: Option "rpc_backend" from group "DEFAULT" is deprecated
# systemctl status openstack-nova-scheduler.service
● openstack-nova-scheduler.service - OpenStack Nova Scheduler Server
Loaded: loaded (/usr/lib/systemd/system/openstack-nova-scheduler.service; enabled; vendor preset: disabled)
Active: activating (start) since Thu 2016-12-15 17:36:04 +0530; 1s ago
Main PID: 10308 (nova-scheduler)
CGroup: /system.slice/openstack-nova-scheduler.service
└─10308 /usr/bin/python2 /usr/bin/nova-scheduler
Dec 15 17:36:04 localhost.localdomain systemd[1]: Starting OpenStack Nova Scheduler Server...
BTW我可以登录dashboard
。我可以创建图像,此时出现第二个问题。
2。启动实例时出现此错误:
我已检查过管理员面板中的System Info
标签,这样就会出现此错误:
这是来自Hypervisor页面:
即使我以某种方式跳过这些错误,在启动实例时,图片浏览器标签下方会显示一条消息,指出没有可用区。当我点击Launch Instance
按钮时,实例会遇到错误状态,弹出窗口显示 - Error: No valid host was found. There are not enough hosts available
有谁能指出我哪里出错了?我在安装OpenStack-Mitaka
时面对这样的错误。新版本是否有任何错误。
另外,请告诉我如何恢复(或安装)Mitaka版本,因为RDO只允许安装最新(牛顿)版本。
问候:)
注意:我正在以root身份运行所有命令。