<div dir="ltr">The image I use to create the Trove instance is a vanalla Ubuntu image (<span style="color:rgb(64,128,144);font-style:italic;font-size:1.1em;line-height:1.2em"><a href="http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img" target="_blank">http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img</a></span>) converted into uncompressed ubuntu_mysql.qcow2 image.<br>
<div><br></div><div>In the /root/trove/etc/trove/cloudinit directory, there is a mysql.cloudinit script like this:</div><div><br></div><div>------------------------------------------------</div><div><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt">
<span style="font-size:9pt;font-family:Consolas;color:black">#!/bin/bash</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black"> </span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black">passwd
root <<_EOF_</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black">root</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black">root</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><br></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black">apt-get
update</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black">apt-get
install git</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black"> </span></p>
wget <a href="https://pypi.python.org/packages/source/s/setuptools/setuptools-0.9.8.tar.gz">https://pypi.python.org/packages/source/s/setuptools/setuptools-0.9.8.tar.gz</a><br>tar xfvz setuptools-0.9.8.tar.gz<br>cd setuptools-0.9.8<br>
python setup.py install --user<br>cd ..<br> <br>wget <a href="https://pypi.python.org/packages/source/p/pip/pip-1.4.1.tar.gz">https://pypi.python.org/packages/source/p/pip/pip-1.4.1.tar.gz</a><br>tar xfvz pip-1.4.1.tar.gz<br>
cd pip-1.4.1<br>python setup.py install --user<br>cd ..
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black"> </span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black"> </span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black">mkdir -p
/srv/git/guestagent/trove</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black">chown -R
root:root /srv</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black">chown -R
777 /srv</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black">cd
/srv/git/guestagent/trove</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black"> </span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black">git
init; git pull <a href="https://github.com/openstack/trove.git">https://github.com/openstack/trove.git</a></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black">pip
install -r requirements.txt</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black">python
setup.py install</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black">trove-guestagent
--config-file=</span><span style="color:rgb(0,0,0);font-family:Consolas;font-size:12px">/srv/git/guestagent/trove</span><span style="font-size:9pt;font-family:Consolas;color:black">/etc/trove/trove-guestagent.conf &</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black">--------------------------------------------------------------------------------------------</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black"><br></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:10.1pt"><span style="font-size:9pt;font-family:Consolas;color:black">Giuseppe</span></p>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-08 17:12 GMT+01:00 tangyi <span dir="ltr"><<a href="mailto:tangyi@kingsoft.com" target="_blank">tangyi@kingsoft.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>The log you provide ,please check:<br>
the trove-guestagent process in vm start success? <br>
or <br>
do you install trove-guestagent in image?<br>
<br>
于 2014年03月08日 00:42, Giuseppe Galeota 写道:<br>
</div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">Dear all,
<div><br>
</div>
<div>the nova-compute.log file doesn't give any error.</div>
<div><br>
</div>
<div>Running:</div>
<div><span><b># trove create
riprova_trove 2 --size 1</b></span></div>
<div><span>an instance with a <i>trove_id
= </i></span><span><i>45c924b6-34b0-46b1-a53e-0040c56d33a4</i></span><span> is created (</span><font color="#000000" face="Bitstream Vera Sans Mono, monospace"><a href="http://paste.openstack.org/show/72896/" target="_blank">http://paste.openstack.org/show/72896/</a></font><font color="#000000" face="Bitstream Vera Sans Mono, monospace">)</font></div>
<div><span><br>
</span></div>
<div><span>while on nova compute the
instance is labeled with a <i>nova_id = </i></span><span><i>7d6ce796-6da6-444a-877f-1751ce7880fa
</i>and</span></div>
<div><span><br>
</span></div>
<div>
<pre style="font-size:13px;margin-bottom:0px;font-family:'Bitstream Vera Sans Mono',monospace;margin-top:0px;padding:5px 0px"><b># nova show 7d6ce796-6da6-444a-877f-1751ce7880fa</b></pre>
</div>
<div><font color="#000000" face="Bitstream Vera Sans Mono,
monospace">tells that the instances on nova compute is
Active, (h</font><span>ttp://<a href="http://paste.openstack.org/show/72890/" target="_blank">paste.openstack.org/show/72890/</a>).</span></div>
<div><span><br>
</span></div>
<div><span>So, while on nova compute the instance
"riprova_trove" is <b>ACTIVE</b>, on Trove the instance is
still in the <b>BUILD</b> status: </span><font color="#000000" face="Bitstream Vera Sans Mono, monospace"><a href="http://paste.openstack.org/show/72898/" target="_blank">http://paste.openstack.org/show/72898/</a></font></div>
<div><font color="#000000" face="Bitstream Vera Sans Mono,
monospace"><br>
</font></div>
<div><font color="#000000" face="Bitstream Vera Sans Mono,
monospace"><a href="http://paste.openstack.org/show/72901/" target="_blank">Here</a> you
can see the trove-taskmanager.log in which there is an "</font><span><b>PollTimeOut: Polling
request timed out.</b></span><span><b>"</b> error.</span></div>
<div><span><br>
</span></div>
<div><span>Thank you all,</span></div>
<div><span>Giuseppe</span></div>
<div><font color="#000000" face="Bitstream Vera Sans Mono,
monospace"><br>
</font></div>
<div><font color="#000000" face="Bitstream Vera Sans Mono,
monospace"><br>
</font></div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2014-03-06 3:26 GMT+01:00 tangyi <span dir="ltr"><<a href="mailto:tangyi@kingsoft.com" target="_blank">tangyi@kingsoft.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>
<pre style="margin-top:0px;margin-bottom:0px;padding:5px 0px"><div><font color="#000000" face="Bitstream Vera Sans Mono, monospace">Server not active, status: ERROR
</font></div><font color="#000000" face="Bitstream Vera Sans Mono, monospace">The trove always detect nova vm status until timeout.</font>
<font color="#000000" face="Bitstream Vera Sans Mono, monospace">if </font><font color="#000000" face="Bitstream Vera Sans Mono, monospace"><font color="#000000" face="Bitstream Vera Sans Mono, monospace"> nova service spawn vm failed,then you saw the log.</font></font>
please check nova-compute.log
</pre>
<br>
<br>
于 2014年03月06日 01:37, Giuseppe Galeota 写道:<br>
</div>
<div>
<div>
<blockquote type="cite">
<div dir="ltr">Dear all,
<div>I have a trove service running on a VM
different from the controller node.</div>
<div><br>
</div>
<div>I have configured a user=Trove both in
tenant=trove and tenant=service with role=admin.</div>
<div><br>
</div>
<div>If I log into horizon as a trove user and
create a database isntances, the status goes in
Error. </div>
<div><br>
</div>
<div><br>
</div>
<div>
<pre style="font-size:13px;margin-bottom:0px;font-family:'Bitstream Vera Sans Mono',monospace;margin-top:0px;padding:5px 0px">Here there is what I can see in the trove-taskmanager.log file:</pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:5px 0px"><font color="#000000" face="Bitstream Vera Sans Mono, monospace">2014-03-05 18:25:13.420 21626 DEBUG requests.packages.urllib3.connectionpool [-] "GET /v2/eca00319484f4e70a8e419f8831938ac/servers/f5353acc-59f1-4a12-9586-7b74a9e71752 HTTP/1.1" 200 1718 _$
2014-03-05 18:25:14.795 21626 DEBUG requests.packages.urllib3.connectionpool [-] "GET /v2/eca00319484f4e70a8e419f8831938ac/servers/f5353acc-59f1-4a12-9586-7b74a9e71752 HTTP/1.1" 200 1819 _$
2014-03-05 18:25:14.797 21626 ERROR trove.common.utils [req-64f116ac-7d22-443f-991a-8d58e7200064 4a258d14a5984379bd23495d98bd3050 eca00319484f4e70a8e419f8831938ac - - -] in looping call
2014-03-05 18:25:14.797 21626 TRACE trove.common.utils Traceback (most recent call last):
2014-03-05 18:25:14.797 21626 TRACE trove.common.utils File "/root/trove/trove/common/utils.py", line 215, in _inner
2014-03-05 18:25:14.797 21626 TRACE trove.common.utils self.f(*self.args, **<a href="http://self.kw" target="_blank">self.kw</a>)
2014-03-05 18:25:14.797 21626 TRACE trove.common.utils File "/root/trove/trove/common/utils.py", line 252, in poll_and_check
2014-03-05 18:25:14.797 21626 TRACE trove.common.utils obj = retriever()
2014-03-05 18:25:14.797 21626 TRACE trove.common.utils File "/root/trove/trove/taskmanager/models.py", line 326, in _service_is_active
2014-03-05 18:25:14.797 21626 TRACE trove.common.utils raise TroveError(_("Server not active, status: %s") % nova_status)
2014-03-05 18:25:14.797 21626 TRACE trove.common.utils TroveError: Server not active, status: ERROR
2014-03-05 18:25:14.797 21626 TRACE trove.common.utils
2014-03-05 18:25:14.800 21626 ERROR trove.taskmanager.models [req-64f116ac-7d22-443f-991a-8d58e7200064 4a258d14a5984379bd23495d98bd3050 eca00319484f4e70a8e419f8831938ac - - -] Error during$
2014-03-05 18:25:14.800 21626 TRACE trove.taskmanager.models Traceback (most recent call last):
2014-03-05 18:25:14.800 21626 TRACE trove.taskmanager.models File "/root/trove/trove/taskmanager/models.py", line 262, in create_instance
2014-03-05 18:25:14.800 21626 TRACE trove.taskmanager.models time_out=USAGE_TIMEOUT)
2014-03-05 18:25:14.800 21626 TRACE trove.taskmanager.models File "/root/trove/trove/common/utils.py", line 258, in poll_until
2014-03-05 18:25:14.800 21626 TRACE trove.taskmanager.models return lc.wait()
2014-03-05 18:25:14.800 21626 TRACE trove.taskmanager.models File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2014-03-05 18:25:14.800 21626 TRACE trove.taskmanager.models return hubs.get_hub().switch()
2014-03-05 18:25:14.800 21626 TRACE trove.taskmanager.models File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch
2014-03-05 18:25:14.800 21626 TRACE trove.taskmanager.models return self.greenlet.switch()
2014-03-05 18:25:14.800 21626 TRACE trove.taskmanager.models File "/root/trove/trove/common/utils.py", line 215, in _inner
2014-03-05 18:25:14.800 21626 TRACE trove.taskmanager.models self.f(*self.args, **<a href="http://self.kw" target="_blank">self.kw</a>)
2014-03-05 18:25:14.800 21626 TRACE trove.taskmanager.models File "/root/trove/trove/common/utils.py", line 252, in poll_and_check
2014-03-05 18:25:14.800 21626 TRACE trove.taskmanager.models obj = retriever()
2014-03-05 18:25:14.800 21626 TRACE trove.taskmanager.models File "/root/trove/trove/taskmanager/models.py", line 326, in _service_is_active
2014-03-05 18:25:14.800 21626 TRACE trove.taskmanager.models raise TroveError(_("Server not active, status: %s") % nova_status)
2014-03-05 18:25:14.800 21626 TRACE trove.taskmanager.models TroveError: Server not active, status: ERROR
2014-03-05 18:25:14.800 21626 TRACE trove.taskmanager.models
2014-03-05 18:25:14.802 21626 DEBUG trove.taskmanager.models [req-64f116ac-7d22-443f-991a-8d58e7200064 4a258d14a5984379bd23495d98bd3050 eca00319484f4e70a8e419f8831938ac - - -] end create_i$
2014-03-05 18:25:17.826 21626 DEBUG trove.openstack.common.periodic_task [req-64f116ac-7d22-443f-991a-8d58e7200064 4a258d14a5984379bd23495d98bd3050 eca00319484f4e70a8e419f8831938ac - - -] $
2014-03-05 18:25:27.836 21626 DEBUG trove.openstack.common.periodic_task [req-64f116ac-7d22-443f-991a-8d58e7200064 4a258d14a5984379bd23495d98bd3050 eca00319484f4e70a8e419f8831938ac - - -] $
2014-03-05 18:25:37.846 21626 DEBUG trove.openstack.common.periodic_task [req-64f116ac-7d22-443f-991a-8d58e7200064 4a258d14a5984379bd23495d98bd3050 eca00319484f4e70a8e419f8831938ac -</font>
</pre>
<pre style="font-size:13px;margin-bottom:0px;font-family:'Bitstream Vera Sans Mono',monospace;margin-top:0px;padding:5px 0px">Why do I receive this error?</pre>
<pre style="font-size:13px;margin-bottom:0px;font-family:'Bitstream Vera Sans Mono',monospace;margin-top:0px;padding:5px 0px">Thank you,</pre>
<pre style="font-size:13px;margin-bottom:0px;font-family:'Bitstream Vera Sans Mono',monospace;margin-top:0px;padding:5px 0px">Giuseppe</pre>
</div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br></div>