openstack简介:
组件:
Nova 提供计算资源池
neutron 网络资源管理
horizon 基于openstack API借口使用django开发的web管理
组件:
Nova 提供计算资源池
neutron 网络资源管理
horizon 基于openstack API借口使用django开发的web管理
安装前准备
yum install -y python-pip gcc gcc-c++ make libtool patch automake python-devel libvirt libxslt-devel MySQL-python openssl-devel libudev-devel git wegt libvirt-python libvirt qemu-kvm gedit python-numdisplay python-eventlet device-mapper bridge-utils libffi-devel libffi
yum install rabbitmq-server
问题:
[root@yz3110 ~]# /etc/init.d/rabbitmq-server start
Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_{log, _err}
rabbitmq-server.
描述:
[root@yz3110 ~]# tail -f /var/log/rabbitmq/startup_err
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
[root@yz3110 ~]# tail -f /var/log/rabbitmq/startup_log
{'EXIT',
{rabbit,failure_during_boot,
{could_not_start_tcp_listener,{"::",5672}}}}}}}
Log files (may contain more information):
/var/log/rabbitmq/rabbit@yz3110.log
/var/log/rabbitmq/rabbit@yz3110-sasl.log
{"init terminating in do_boot",{rabbit,failure_during_boot,{could_not_start,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{rabbit,failure_during_boot,{could_not_start_tcp_listener,{"::",5672}}}}}}}}}
[FAILED]
解决:出现如上的错误,可能是因为5672端口已经被占用的原因。
查看5672端口的情况,如果有进程占用此端口,请将它关闭后,重新启动RabbitMQ-Server;
[root@yz3110 ~]# netstat -naptl |grep 5672
tcp 0 0 0.0.0.0:5672 0.0.0.0:* LISTEN 2089/qpidd
[root@yz3110 ~]# lsof -i:5672
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
qpidd 2089 qpidd 10u IPv4 11503 0t0 TCP *:amqp (LISTEN)
[root@yz3110 ~]# chkconfig qpidd off
[root@yz3110 ~]# chkconfig qpidd --list
qpidd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@yz3110 ~]# /etc/init.d/qpidd stop
Stopping Qpid AMQP daemon: [ OK ]
[root@yz3110 ~]# netstat -naptl |grep 5672
[root@yz3110 ~]# /etc/init.d/rabbitmq-server start
Starting rabbitmq-server: SUCCESS
rabbitmq-server.
列出插件
[root@yz3110 ~]# /usr/lib/rabbitmq/bin/rabbitmq-plugins list
[ ] amqp_client 3.1.5
[ ] cowboy 0.5.0-rmq3.1.5-git4b93c2d
[ ] eldap 3.1.5-gite309de4
[ ] mochiweb 2.7.0-rmq3.1.5-git680dba8
[ ] rabbitmq_amqp1_0 3.1.5
[ ] rabbitmq_auth_backend_ldap 3.1.5
[ ] rabbitmq_auth_mechanism_ssl 3.1.5
[ ] rabbitmq_consistent_hash_exchange 3.1.5
[ ] rabbitmq_federation 3.1.5
[ ] rabbitmq_federation_management 3.1.5
[ ] rabbitmq_jsonrpc 3.1.5
[ ] rabbitmq_jsonrpc_channel 3.1.5
[ ] rabbitmq_jsonrpc_channel_examples 3.1.5
[ ] rabbitmq_management 3.1.5
[ ] rabbitmq_management_agent 3.1.5
[ ] rabbitmq_management_visualiser 3.1.5
[ ] rabbitmq_mqtt 3.1.5
[ ] rabbitmq_shovel 3.1.5
[ ] rabbitmq_shovel_management 3.1.5
[ ] rabbitmq_stomp 3.1.5
[ ] rabbitmq_tracing 3.1.5
[ ] rabbitmq_web_dispatch 3.1.5
[ ] rabbitmq_web_stomp 3.1.5
[ ] rabbitmq_web_stomp_examples 3.1.5
[ ] rfc4627_jsonrpc 3.1.5-git5e67120
[ ] sockjs 0.3.4-rmq3.1.5-git3132eb9
[ ] webmachine 1.10.3-rmq3.1.5-gite9359c7
[root@yz3110 ~]# /usr/lib/rabbitmq/bin/rabbitmq-plugins enable rabbitmq_management
The following plugins have been enabled:
mochiweb
webmachine
rabbitmq_web_dispatch
amqp_client
rabbitmq_management_agent
rabbitmq_management
Plugin configuration has changed. Restart RabbitMQ for changes to take effect.
[root@yz3110 ~]# /etc/init.d/rabbitmq-server restart
Restarting rabbitmq-server: SUCCESS
rabbitmq-server.
http://10.39.3.110:15672/#/
guest/guest
keystone:
yum install http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/rdo-release-icehouse-4.noarch.rpm