Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Use cloudinit to set up the instances correctly. Unfortunately, the following is not yet tested because I still have problems at an earlier stage of Trove's installation process. But this is what I know so far.

See point 9 in http://docs.openstack.org/icehouse/install-guide/install/yum/content/trove-install.html for everything that has to be done within the instances. You might replace yum by apt within the URL to see guidelines for a different operating system.

  • create directory /etc/trove/cloudinit
  • in /etc/trove/trove-taskmanager.conf set cloudinit_location = /etc/trove/cloudinit (see Table 4.16. in https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/5/html/Configuration_Reference_Guide/ch_configuring-trove.html)
  • for each datastore, create a file like /etc/trove/cloudinit/mysql.cloudinit that defines the steps to be done (see http://docs.openstack.org/developer/trove/dev/manual_install.html#prepare-trove-configuration-files )

Maybe it's better to use Ubuntu 14.04, because it has the package trove-guestagent in its repositories in contrast to Ubuntu 12.04.

An example for a cloudinit file (see http://cloudinit.readthedocs.org/en/latest/topics/examples.html)

#cloud-config
packages:
- trove-guestagent
- mysql-server-5.5

# config file for trove guestagent
write_files:
- path: /etc/trove/trove-guestagent.conf
  content: |
    rabbit_host = HOST_IP
    rabbit_password = guest
    nova_proxy_admin_user = admin
    nova_proxy_admin_pass = ADMIN_PASS
    nova_proxy_admin_tenant_name = trove
    trove_auth_url = http://HOST_IP:35357/v2.0
    control_exchange = trove

ssh_authorized_keys:
- SSH_KEY

# restart trove-guestagent as the config has been changed
runcmd:
- stop trove-guestagent
- start trove-guestagent