OpenStack Installation Documentation (13)--Database services

Source: Internet
Author: User
Tags documentation

Database Services-Installation and configuration:

Control node Operations:

Prerequisite:

1, the following operation.

# mysql-u root-p***> CREATE DATABASE trove;> GRANT all privileges on trove.* to ' trove ' @ ' localhost ' identified by ' Trove_dbpass ';> GRANT all privileges on trove.* to ' TROVE ' @ '% ' identified by ' Trove_dbpass ';> exit;#. admin-openrc# OpenStack User Create--domain default--password-prompt trove# openstack role Add--project service--user Trove admin# OpenStack Service create--name trove--description "Database" database# OpenStack endpoint Create--region R Egionone Database public http://controller:8779/v1.0/%\ (tenant_id\) s# OpenStack endpoint Create--region Regionone Database internal http://controller:8779/v1.0/%\ (tenant_id\) s# OpenStack endpoint Create--region regionone database Admin http://controller:8779/v1.0/%\ (tenant_id\) s

To install and configure the components:

1, installation package.

# yum Install-y openstack-trove openstack-trove-guestagent python-troveclient # cd/etc/trove/# MV Api-paste.ini Api-past e.bak# Curl-o/etc/trove/api-paste.ini Http://git.openstack.org/cgit/openstack/trove/plain/etc/trove/api-paste.ini

2. Edit/etc/trove/trove.conf files and/etc/trove/trove-taskmanager.conf files and/etc/trove/trove-conductor.conf files.

[Default]log_dir=/var/log/Trovetrove_auth_url= http://controller:5000/v2.0Nova_compute_url = http://Controller:8774/v2Cinder_url = http://controller:8776/v1Swift_url = http://Controller:8080/v1/auth_Notifier_queue_hostname =Controllerrpc_backend=rabbit[database]connection= MySQL://Trove:[email Protected]/trove[Oslo_messaging_rabbit]rabbit_host=Controllerrabbit_userid=Openstackrabbit_password= Rabbit_pass

3, edit the/etc/trove/trove.conf file. The Network_label_regex and Api_paste_config in [DEFAULT] are replaced.

=192.168. 226.151  =/etc/trove/api-= http://controller:5000auth_url = http://  controller:35357auth_type == = = == Trove_pass

4, edit the/etc/trove/trove-taskmanager.conf file. Find the contents of the comment and replace the content.

For-in  your keystone config.# It proxy'the token received from the user to send to Nova == = = Trove.taskmanager.manager.Manager

5, edit the/etc/trove/trove-guestagent.conf file. [DEFAULT] is added for my own line, and this section is not added to the official documentation.

[Default]rpc_backend=Rabbit # Official Documents no this sentence log_dir =/var/log/trove # Official Document No this sentence # Configuration options fortalking to Nova via the novaclient.# these options is forAn Admin userinchyour Keystone config.# It proxy's The token received from the user to send to Nova# via this admin users creds,# basically acting like the client via that proxy Token.nova_proxy_admin_user=Adminnova_proxy_admin_pass=Admin_passnova_proxy_admin_tenant_name=Servicetrove_auth_url= http://controller:35357/v2.0[Oslo_messaging_rabbit]rabbit_host=Controllerrabbit_userid=OpenStack # Official Documents No this sentence Rabbit_password=Rabbit_pass[database] # official documents without this connection= Mysql+pymysql://Trove:[email Protected]/trove

6, complete the installation.

# su-s/bin/sh-c "Trove-manage db_sync" trove# mysql-utrove-ptrove_dbpass-hcontroller-t trove-e "Show Tables" # Syst Emctl Enable Openstack-trove-api Openstack-trove-taskmanager openstack-trove-conductor# systemctl start  Openstack-trove-api Openstack-trove-taskmanager Openstack-trove-conductor

To verify the operation:

Control node Operations:

1, Operation 1.

# admin-openrc# Trove list+----+------+-----------+-------------------+--------+-----------+------+| ID | name | Datastore | datastore_version | Status | flavor_id | Size |+----+------+-----------+-------------------+--------+-----------+------+ +----+ +------+-----------+-------- -----------+--------+-----------+------+

2.

# wget http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2# Glance image-create--name " Mysqltest "--disk-format qcow2--container-format bare--file centos-7-x86_64-genericcloud.qcow2# trove list

OpenStack Installation Documentation (13)--Database services

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.