Ask Your Question
0

What are the ways to get trove agent installed in a trove-glance image?

asked 2014-06-12 03:12:00 -0500

updated 2014-06-21 08:22:32 -0500

I got this "http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img" but there seems like some issue(after provisioning the DB is not getting created in it). What's the best way to get the trove guest agent to the image so that it can provision DB instances from trove.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-08-13 14:21:14 -0500

beni gravatar image

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/in... 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.

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/l... )

#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
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-06-12 03:12:00 -0500

Seen: 1,953 times

Last updated: Aug 13 '14