本文作者:LDC 2017-10-10
ERROR : Errorappeared during Puppet run: 192.168.4.5_amqp.pp
Error: Could notstart Service[rabbitmq-server]: Execution of '/usr/bin/systemctl startrabbitmq-server' returned 1: Job for rabbitmq-server.service failed because thecontrol process exited with error code. See "systemctl statusrabbitmq-server.service" and "journalctl -xe" for details.
You will find fulltrace in log/var/tmp/packstack/20171010-050219-WenzF1/manifests/192.168.4.5_amqp.pp.log
Please check log file/var/tmp/packstack/20171010-050219-WenzF1/openstack-setup.log for moreinformation
Additionalinformation:
* File /root/keystonerc_admin has been createdon OpenStack client host 192.168.4.5. To use the command line tools you need tosource the file.
* To access the OpenStack Dashboard browse tohttp://192.168.4.5/dashboard .
Please, find your logincredentials stored in the keystonerc_admin in your home directory.
[root@vh02network-scripts]# journalctl -xe
-- Subject: Unitsession-353.scope has finished start-up
-- Defined-By:systemd
-- Support:http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unitsession-353.scope has finished starting up.
--
-- The start-upresult is done.
10月 10 05:20:01 vh02.ldc.cn systemd[1]: StartingSession 353 of user root.
-- Subject: Unitsession-353.scope has begun start-up
-- Defined-By: systemd
-- Support:http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unitsession-353.scope has begun starting up.
10月 10 05:20:01 vh02.ldc.cn CROND[27313]: (root)CMD (/usr/lib64/sa/sa1 1 1)
10月 10 05:30:01 vh02.ldc.cn systemd[1]: StartedSession 354 of user root.
-- Subject: Unitsession-354.scope has finished start-up
-- Defined-By:systemd
-- Support:http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unitsession-354.scope has finished starting up.
--
-- The start-upresult is done.
10月 10 05:30:01 vh02.ldc.cn systemd[1]: StartingSession 354 of user root.
-- Subject: Unitsession-354.scope has begun start-up
-- Defined-By:systemd
-- Support:http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unitsession-354.scope has begun starting up.
10月 10 05:30:01 vh02.ldc.cn CROND[27401]: (root)CMD (/usr/lib64/sa/sa1 1 1)
lines 3119-3147/3147(END)
本人在做安装openstack packstack 安装先设置好的应答文件answer.txt,[root@vh02 ~]# packstack --answer-file answer.txt 出现以上错误,查看报错日志,和journalctl -xe journalctl -f systemctl status rabbitmq-server.service 根据提示,大概出现在两个位置,一个是hosts ,hostname 另外一个是数据库mariadb上,错误提示无法启动rabbitmq-server这个服务。查阅大量的百度资料还是无法解决这个问题。
经过反复推敲,现在已经找到问题所在原因:
1.因为本机的192.168.4.1 192.168.4.2 这个IP 已经被别的虚拟机占用,因此我就用vh01.ldc.cn:192.168.4.4
vh02.ldc.cn :192.168.4.5
这样来设置,错误就出现在这里,因为下面的vim/var/named/ldc.cn.zone中使用的是
$generate 1-9 vh0$ IN A 192.168.4.$
$generate 10-254 vh$ IN A 192.168.4.$
“$”这个变量 IP 是跟vh主机对应的,也就是说vh01 对应 192.168.4.1 我给忽略了,因此在安装过程中就会导致报错。
2.把虚拟IP 改为4.1 4.2 分别与vh01.ldc.cn vh02.ldc.cn 对应,然后删除answer.txt
生成自动应答文件,并编辑
[root@vh02 ~]#packstack --gen-answer-file answer.txt