有一些小需求,需要搭建配置openstack服务。
物理机:Centos7 X64
一、openstack安装
详细过程见参考链接1
二、问题总结
1、新建images之后所有任务都显示正在排队,但是一直没有结束
问题猜想:rabbitmq挂了?
问题验证:
rabbitmqctl status
结果:
Error: unable to connect to node rabbit@cloud: nodedown DIAGNOSTICS =========== attempted to contact: [rabbit@cloud] rabbit@cloud: * connected to epmd (port 4369) on cloud * epmd reports: node 'rabbit' not running at all no other nodes on cloud * suggestion: start the node current node details: - node name: 'rabbitmq-cli-43@cloud' - home dir: /var/lib/rabbitmq - cookie hash: 5wXsOSwBK1y3NHOxZrkEJA==
解决方法:应该是由于hosts内没有解析cloud、cloud.claves.me域名导致的
编辑/etc/hosts,新建DNS解析后,解决!
[root@cloud log]# systemctl restart rabbitmq-server.service [root@cloud log]# systemctl status rabbitmq-server.service ● rabbitmq-server.service - RabbitMQ broker Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; disabled; vendor preset: disabled) Drop-In: /etc/systemd/system/rabbitmq-server.service.d └─limits.conf Active: active (running) since Sun 2016-12-11 15:10:33 CST; 14s ago Process: 8859 ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl stop (code=exited, status=0/SUCCESS) Main PID: 9444 (beam.smp) Status: "Initialized" CGroup: /system.slice/rabbitmq-server.service ├─ 9444 /usr/lib64/erlang/erts-7.3.1.2/bin/beam.smp -W w -A 384 -P 1048576 -t 5000000 -stbt db -K true -- -root /usr/lib64/erlang -progname erl -- -home /var/lib/rabbitmq -- -pa /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/ebin -noshell -noinput -s rabbit boot -sname rabbit@cloud -boot start_sasl -con... ├─10028 inet_gethost 4 └─10029 inet_gethost 4
占位
参考链接
http://www.tecmint.com/openstack-installation-guide-rhel-centos/