- Red Hat OpenStack 利用 RabbitMQ 訊息系統來進行各雲端元件的通訊!
- RabbitMQ 通訊方式有兩種:
- 使用 SASL 方式:不管主機位置,只需要帳密即可!
- 使用 SSL 方式:避免在通訊過程中,被監聽、竊取資料!
練習1:確認 RabbitMQ 設定值內容
- # grep AMQP /root/answers.txt
- # cat /etc/rabbitmq/rabbitmq.config
- # grep rabbit /etc/keystone/keystone.conf
RabbitMQ除錯方式
test
練習2:RabbitMQ除錯
- # source /root/keystonerc_admin
- # nova service-list
- # grep -i ERROR /var/log/nova/nova-scheduler.log
- # systemctl status rabbitmq-server
- # grep -i rabbit_port /etc/nova/nova.conf
- # ss -nlp | egrep beam.smp
- #grep -i RABBITMQ_NODE_PORT /etc/rabbitmq/rabbitmq-env.conf
- # vim /etc/rabbitmq/rabbitmq-env.conf
- 修改 RABBITMQ_NODE_PORT=3333 => 5672
- # systemctl restart rabbitmq-server
- # tail /var/log/nova/nova-scheduler.log
- # nova service-list
- # systemctl restart openstack-nova-compute