openstack-manuals/doc/install-guide/source/environment-messaging.rst
chen-xing 1eab5ccc17 [install] Fix the incorrect outputs
backport:mitaka

Change-Id: If7ffb886d2b134918a72b7f8903be0929a324d9a
Closes-Bug: #1578987
2016-05-09 12:38:10 +00:00

2.3 KiB

Message queue

OpenStack uses a message queue to coordinate operations and status information among services. The message queue service typically runs on the controller node. OpenStack supports several message queue services including RabbitMQ, Qpid, and ZeroMQ. However, most distributions that package OpenStack support a particular message queue service. This guide implements the RabbitMQ message queue service because most distributions support it. If you prefer to implement a different message queue service, consult the documentation associated with it.

Install and configure components

  1. Install the package:

    ubuntu or debian

    # apt-get install rabbitmq-server

    rdo

    # yum install rabbitmq-server

    obs

    # zypper install rabbitmq-server

rdo or obs

  1. Start the message queue service and configure it to start when the system boots:

    # systemctl enable rabbitmq-server.service
    # systemctl start rabbitmq-server.service
  2. Add the openstack user:

    # rabbitmqctl add_user openstack RABBIT_PASS
    Creating user "openstack" ...
    ...done.

    Replace RABBIT_PASS with a suitable password.

  3. Permit configuration, write, and read access for the openstack user:

    # rabbitmqctl set_permissions openstack ".*" ".*" ".*"
    Setting permissions for user "openstack" in vhost "/" ...
    ...done.

ubuntu or debian

  1. Add the openstack user:

    # rabbitmqctl add_user openstack RABBIT_PASS
    Creating user "openstack" ...
    ...done.

    Replace RABBIT_PASS with a suitable password.

  2. Permit configuration, write, and read access for the openstack user:

    # rabbitmqctl set_permissions openstack ".*" ".*" ".*"
    Setting permissions for user "openstack" in vhost "/" ...
    ...done.