In Controller Node
# apt-get install python-trove python-troveclient python-glanceclient trove-common trove-api trove-taskmanager trove-conductor trove-guestagent
# source admin-openrc.sh
# keystone user-create --name trove --pass openstack
# keystone user-role-add --user trove --tenant service --role admin
# keystone service-create --name trove --type database --description "OpenStack Database Service"
# keystone endpoint-create --service-id $(keystone service-list | awk '/ trove / {print $2}') --publicurl http://controller:8779/v1.0/%\(tenant_id\)s --internalurl http://controller:8779/v1.0/%\(tenant_id\)s --adminurl http://controller:8779/v1.0/%\(tenant_id\)s --region regionOne
# nano /etc/trove/trove.conf
[DEFAULT]
log_dir = /var/log/trove
trove_auth_url = http://controller:5000/v2.0
nova_compute_url = http://controller:8774/v2
cinder_url = http://controller:8776/v1
swift_url = http://controller:8080/v1/AUTH_
sql_connection = mysql://trove:openstack@controller/trove
notifier_queue_hostname = controller
...
rpc_backend = rabbit
rabbit_host = controller
rabbit_password = openstack
...
default_datastore = mysql
....
add_addresses = True
network_label_regex = ^ext-net$
....
api_paste_config = /etc/trove/api-paste.ini
# nano /etc/trove/trove-taskmanager.conf
[DEFAULT]
log_dir = /var/log/trove
trove_auth_url = http://controller:5000/v2.0
nova_compute_url = http://controller:8774/v2
cinder_url = http://controller:8776/v1
swift_url = http://controller:8080/v1/AUTH_
sql_connection = mysql://trove:openstack@controller/trove
notifier_queue_hostname = controller
...
rpc_backend = rabbit
rabbit_host = controller
rabbit_password = openstack
....
nova_proxy_admin_user = admin
nova_proxy_admin_pass = openstack
nova_proxy_admin_tenant_name = service
taskmanager_manager = trove.taskmanager.manager.Manager
# nano /etc/trove/trove-conductor.conf
[DEFAULT]
log_dir = /var/log/trove
trove_auth_url = http://controller:5000/v2.0
nova_compute_url = http://controller:8774/v2
cinder_url = http://controller:8776/v1
swift_url = http://controller:8080/v1/AUTH_
sql_connection = mysql://trove:openstack@controller/trove
notifier_queue_hostname = controller
...
rpc_backend = rabbit
rabbit_host = controller
rabbit_password = openstack
# nano /etc/trove/api-paste.ini
[filter:authtoken]
auth_uri = http://controller:5000/v2.0
identity_uri = http://controller:35357
admin_user = trove
admin_password = openstack
admin_tenant_name = service
signing_dir = /var/cache/trove
# mysql -u root -p
> CREATE DATABASE trove;
> GRANT ALL PRIVILEGES ON trove.* TO 'trove'@'localhost' IDENTIFIED BY 'openstack';
> GRANT ALL PRIVILEGES ON trove.* TO 'trove'@'%' IDENTIFIED BY 'openstack';
> exit
# trove-manage db_sync
# trove-manage datastore_update mysql ''
# nano /etc/trove/trove-guestagent.conf
rabbit_host = controller
rabbit_password = openstack
nova_proxy_admin_user = admin
nova_proxy_admin_pass = openstack
nova_proxy_admin_tenant_name = service
trove_auth_url = http://controller:35357/v2.0
# service trove-api restart
# service trove-taskmanager restart
# service trove-conductor restart
Hi ,
ReplyDeletegreat tutorial .
For step 16: we got message " No module Name Rabbit" on all trove logs files , any idea?
try removing rpc backen from config file
ReplyDelete