karbor/doc/source/install/common_configure.rst
Rui Yuan Dou 3a9ef00011 Correct karbor source install doc
1.Add miss user create and config generate steps
2.Correct auth url links
3.Correct sample config file path

Change-Id: I126c2a3155b4f0610a4058ee2f29991d8b424965
2017-09-25 10:42:55 +08:00

1.9 KiB

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

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

      [database]
      ...
      connection = mysql+pymysql://karbor:KARBOR_DBPASS@controller/karbor

      Replace KARBOR_DBPASS with the password you chose for the Data Protection database.

    • In the [DEFAULT] section, configure RabbitMQ message queue access:

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

      Replace RABBIT_PASS with the password you chose for the openstack account in RabbitMQ.

    • In the [keystone_authtoken], [trustee], [clients_keystone], and [karbor_client] sections, configure Identity service access:

      [keystone_authtoken]
      ...
      auth_uri = http://controller/identity
      auth_url = http://controller/identity_admin
      memcached_servers = controller:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = karbor
      password = KARBOR_PASS
      
      [trustee]
      ...
      auth_type = password
      auth_url = http://controller/identity_admin
      username = karbor
      password = KARBOR_PASS
      user_domain_name = default
      
      [clients_keystone]
      ...
      auth_uri = http://controller/identity_admin
      
      [karbor_client]
      ...
      version = 1
      service_type = data-protect
      service_name = karbor

      Replace KARBOR_PASS with the password you chose for the karbor user in the Identity service.

  2. Populate the Data Protection database:

    # su -s /bin/sh -c "karbor-manage db sync" karbor

    Note

    Ignore any deprecation messages in this output.