<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 6, 2014 at 11:03 PM, Mark Kirkwood <span dir="ltr"><<a href="mailto:mark.kirkwood@catalyst.net.nz" target="_blank">mark.kirkwood@catalyst.net.nz</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've been looking at setting up Trove manually, and of course the first document I stumbled on was:<br>
<br>
<a href="http://docs.openstack.org/developer/trove/dev/manual_install.html" target="_blank">http://docs.openstack.org/<u></u>developer/trove/dev/manual_<u></u>install.html</a><br>
<br>
Now, while this proved to be very handy, there are some points where it is wrong, and others where it is errm...lean. So in the spirit of trying to improve things here I go.<br>
<br>
The wrong concerns the action given to trove-manage in the "Prepare Database" section:<br>
<br>
$ trove-manage --config-file=<<u></u>PathToTroveConf> image_update mysql<br>
    `nova --os-username trove --os-password trove --os-tenant-name trove<br>
    --os-auth-url http://<KeystoneIp>:5000/v2.0 image-list | awk '/trove-image/ {print $2}'`<br>
<br>
This should probably be:<br>
<br>
$ trove-manage --config-file=<<u></u>PathToTroveConf> datastore_version_update mysql mysql-5.5 mysql<br>
    `nova --os-username trove --os-password trove --os-tenant-name trove<br>
    --os-auth-url http://<KeystoneIp>:5000/v2.0 image-list | awk '/trove-image/ {print $2}'` 1<br>
<br>
...which is a bit of a mouthful - might be better to break it into 2 steps.<br>
<br>
<br>
The lean area concerns the stuff in "Prepare Image". It seems to me that more needs to be done than simply converting to qcow2. After spending a while reading stuff in trove-integration/scripts repo I suspect that something like following is needed:<br>


<br>
1/ setup relevant os user (e.g trove or stack) for what follows<br>
2/ install mysql 5.5 in the image (or arrange it to be installed on 1st boot)<br>
3/ setup keys so guest can rsync the trove client software (or install it in the image to avoid the need)<br>
4/ configure the trove guest agent service to start (otherwise db instance stays stuck in 'BUILD' state forever)<br>
<br>
I note that the trove-integration repo uses diskimage-builder and triplo to do all these mods to the initial base image.<br>
<br>
Now I understand that some of this area is gonna be in flux (e.g use of first-boot.d in the tripleo elements), but some mention of what customizations to the base image are needed would be most excellent.<br></blockquote>

<div><br></div><div>Hi Mark, </div><div>Great observations, at the Trove midcycle meetup we identified this as an area to be documented. I heard at least 2 people want to work on it so I hope they're drafting furiously and soon! I think it should eventually go into the Virtual Machine Image Guide, but may just need to be part of their install guide right away. Thanks for asking, it helps shape the docs. </div>

<div>Anne</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
regards<br>
<br>
Mark<br>
<br>
______________________________<u></u>_________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.<u></u>org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</blockquote></div><br></div></div>