<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 7, 2014 at 2:33 PM, Syed Hussain <span dir="ltr"><<a href="mailto:syed_hussain@persistent.co.in" target="_blank">syed_hussain@persistent.co.in</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m installing and configuring trove(DBaaS) for <span style="color:rgb(31,73,125)">
exisitng</span> openstack setup. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)">I have</span> openstack setup and able to boot nova instances with following components:<u></u><u></u></p>
<p><u></u><span>1.<span style="font:7pt "Times New Roman"">
</span></span><u></u>keystone<u></u><u></u></p>
<p><u></u><span>2.<span style="font:7pt "Times New Roman"">
</span></span><u></u>glance<u></u><u></u></p>
<p><u></u><span>3.<span style="font:7pt "Times New Roman"">
</span></span><u></u>neutron<u></u><u></u></p>
<p><u></u><span>4.<span style="font:7pt "Times New Roman"">
</span></span><u></u>nova<u></u><u></u></p>
<p><u></u><span>5.<span style="font:7pt "Times New Roman"">
</span></span><u></u>cinder<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Followed<span style="color:rgb(31,73,125)"> below</span> documentation for
<b>manual installation of trove</b>:<u></u><u></u></p>
<p class="MsoNormal"><a href="http://docs.openstack.org/developer/trove/dev/manual_install.html" target="_blank">http://docs.openstack.org/developer/trove/dev/manual_install.html</a>
<span style="color:rgb(31,73,125)"> and few correction given in this mail thread <a href="https://www.mail-archive.com/openstack%40lists.openstack.org/msg05262.html" target="_blank">
https://www.mail-archive.com/openstack%40lists.openstack.org/msg05262.html</a> .</span><u></u><u></u></p>
<p class="MsoNormal"><u></u></p></div></div></blockquote><div><br></div><div>Those docs are useless, since they are not reflecting significant step - creating custom Trove images. You need to create image with Trove installed in it, create upstart scriptto lauch Trove-guestagent with appropriate configuration files that comes to the compute instance through file injection.<br>
</div><div>Vanilla images are good, but they don't have Trove in it at all.<br><br></div><div>Here are some useful steps:<br></div><div>1. Create custom image with trove code in it (upstart scripts, etc).<br></div><div>
2. Register datastore and associate given image with appropriate datastore/version.<br><br></div><div>FYI, Trove is not fully integrated with devstack, so, personally i'd suggest to use <a href="https://github.com/openstack/trove-integration">https://github.com/openstack/trove-integration</a> simple (3 clicks) Trove + DevStack deployment.<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"> <u></u></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)">Booted up a trove instance</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Consolas;color:rgb(85,142,213)">trove create myTrove 7 --size=2 --databases=db3 --datastore_version mysql-5.5 --datastore mysql --nic net-id=752554ef-800c-46d8-b991-361db6c58226<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)">T</span>rove instance got created but is
<span style="color:red">STUCK IN BUILD</span> state.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><img src="cid:image001.jpg@01CF9A00.7E339160" alt="cid:image003.jpg@01CF99FC.4F639B90" border="0" height="84" width="863"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p><u></u><span style="font-family:Symbol;color:black"><span>·<span style="font:7pt "Times New Roman"">
</span></span></span><u></u><span style="color:rgb(31,73,125)">nova instance associated with db instance got created successfully.</span></p></div></div></blockquote><div>Correct. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US"><div><p><span style="color:black"><u></u><u></u></span></p>
<p><u></u><span style="font-size:12pt;font-family:Symbol;color:black"><span>·<span style="font:7pt "Times New Roman"">
</span></span></span><u></u><span style="color:black">Cinder volumes, security groups etc are also getting created successfully.</span></p></div></div></blockquote><div>Correct. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US"><div><p><span style="font-size:12pt;color:black"><u></u><u></u></span></p>
<p><u></u><span style="font-family:Symbol;color:red"><span>·<span style="font:7pt "Times New Roman"">
</span></span></span><u></u><span style="color:red">I checked nova, cinder logs everything looks fine but in trove-taskmanager.log below error got logged:<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:0.5in"><span style="font-size:10pt;font-family:Consolas;color:red">PollTimeOut: Polling request timed out<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:0.5in"><span style="color:red"></span></p></div></div></blockquote><div><br></div><div>Correct since Trove-guest agent service wasn't able to report about its state.<br></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal" style="margin-left:0.5in"><span style="color:red">I am also unable to access mysql in the booted up trove instance . via :
</span><span style="font-family:Consolas;color:rgb(49,133,156)">mysql –h <instance-IP></span><span style="font-size:12pt;color:rgb(49,133,156)"><u></u><u></u></span></p>
<p><u></u><span style="font-family:Symbol;color:black"><span>·<span style="font:7pt "Times New Roman"">
</span></span></span><u></u><span style="color:black">Also I’m unable to delete this instance.<u></u><u></u></span></p>
<p style="margin-left:1in">
<span style="font-size:10pt;font-family:"Courier New";color:red"><span>o<span style="font:7pt "Times New Roman"">
</span></span></span><span style="font-size:10pt;font-family:Consolas;color:black">ERROR: Instance 23c8f4d5-4905-47d2-9992-13118dfa003f is not ready. (HTTP 422)
</span><span style="font-size:12pt;color:black">(may be this is expected</span><span style="font-size:12pt;color:rgb(31,73,125)">)</span><span style="font-size:10pt;font-family:Consolas;color:red"></span> <br></p></div></div>
</blockquote><div>Correct. You cannot modify/use instances that are remaining in BUILD state.<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><u></u></p>
<p class="MsoNormal">I’m a novice in Openstack but new to trove.<u></u><u></u></p>
<div style="border-width:medium medium 1pt;border-style:none none solid;border-color:-moz-use-text-color -moz-use-text-color windowtext;padding:0in 0in 1pt">
<p class="MsoNormal">Thanks in advance and any help is greatly appreciaited.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal"><span style="font-family:"Times New Roman","serif";color:rgb(31,73,125)">Thanks & Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:12pt;font-family:"Times New Roman","serif";color:rgb(31,73,125)">Syed Afzal Hussain |
</span></b><b><span style="font-family:"Times New Roman","serif";color:rgb(31,73,125)">Software Engineer | OpenStack<u></u><u></u></span></b></p>
</div>
<p>DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
</p>
</div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div><div class="gmail_extra">I'd glad to help you with other question related to Trove deployment.<br><br><br></div><div class="gmail_extra">Best regards,<br>Denis Makogon<br></div></div>