watcher/doc/source/install/common_configure.rst
Alexander Chadin c7ec186576 Adapt watcher documentation for new standards
This patch set makes the following changes:

 * Add index file to each subdirectory of doc/source
 * Update doc/source/index.rst with new links
 * Move content of install-guide to the doc/source/install
 * Minor changes

Depends-On: Ifc5512c0e2373cf3387e0e0498268eab092e52bb
Change-Id: Iecb4f60efb015a56b9b37331859848b287112842
2017-07-04 15:49:24 +03:00

2.2 KiB

  1. Edit the /etc/watcher/watcher.conf file and complete the following actions:

    • In the [database] section, configure database access:

      [database]
      ...
      connection = mysql+pymysql://watcher:WATCHER_DBPASS@controller/watcher?charset=utf8
    • In the [DEFAULT] section, configure the transport url for RabbitMQ message broker.

      [DEFAULT]
      ...
      control_exchange = watcher
      transport_url = rabbit://openstack:RABBIT_PASS@controller

      Replace the RABBIT_PASS with the password you chose for OpenStack user in RabbitMQ.

    • In the [keystone_authtoken] section, configure Identity service access.

      [keystone_authtoken]
      ...
      auth_uri = http://controller:5000
      auth_url = http://controller:35357
      memcached_servers = controller:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = watcher
      password = WATCHER_PASS

      Replace WATCHER_PASS with the password you chose for the watcher user in the Identity service.

    • Watcher interacts with other OpenStack projects via project clients, in order to instantiate these clients, Watcher requests new session from Identity service. In the [watcher_client_auth] section, configure the identity service access to interact with other OpenStack project clients.

      [watcher_client_auth]
      ...
      auth_type = password
      auth_url = http://controller:35357
      username = watcher
      password = WATCHER_PASS
      project_domain_name = default
      user_domain_name = default
      project_name = service

      Replace WATCHER_PASS with the password you chose for the watcher user in the Identity service.

    • In the [oslo_messaging_notifications] section, configure the messaging driver.

      [oslo_messaging_notifications]
      ...
      driver = messagingv2
  2. Populate watcher database:

    su -s /bin/sh -c "watcher-db-manage" watcher