[Openstack] [openstack][TROVE]Error in building an instance
Giuseppe Galeota
giuseppegaleota at gmail.com
Mon Mar 10 15:40:26 UTC 2014
The image I use to create the Trove instance is a vanalla Ubuntu image (
http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img)
converted into uncompressed ubuntu_mysql.qcow2 image.
In the /root/trove/etc/trove/cloudinit directory, there is a
mysql.cloudinit script like this:
------------------------------------------------
#!/bin/bash
passwd root <<_EOF_
root
root
apt-get update
apt-get install git
wget
https://pypi.python.org/packages/source/s/setuptools/setuptools-0.9.8.tar.gz
tar xfvz setuptools-0.9.8.tar.gz
cd setuptools-0.9.8
python setup.py install --user
cd ..
wget https://pypi.python.org/packages/source/p/pip/pip-1.4.1.tar.gz
tar xfvz pip-1.4.1.tar.gz
cd pip-1.4.1
python setup.py install --user
cd ..
mkdir -p /srv/git/guestagent/trove
chown -R root:root /srv
chown -R 777 /srv
cd /srv/git/guestagent/trove
git init; git pull https://github.com/openstack/trove.git
pip install -r requirements.txt
python setup.py install
trove-guestagent
--config-file=/srv/git/guestagent/trove/etc/trove/trove-guestagent.conf
&
--------------------------------------------------------------------------------------------
Giuseppe
2014-03-08 17:12 GMT+01:00 tangyi <tangyi at kingsoft.com>:
> The log you provide ,please check:
> the trove-guestagent process in vm start success?
> or
> do you install trove-guestagent in image?
>
> 于 2014年03月08日 00:42, Giuseppe Galeota 写道:
>
> Dear all,
>
> the nova-compute.log file doesn't give any error.
>
> Running:
> *# trove create riprova_trove 2 --size 1*
> an instance with a *trove_id = **45c924b6-34b0-46b1-a53e-0040c56d33a4* is
> created (http://paste.openstack.org/show/72896/)
>
> while on nova compute the instance is labeled with a *nova_id = **7d6ce796-6da6-444a-877f-1751ce7880fa
> *and
>
> *# nova show 7d6ce796-6da6-444a-877f-1751ce7880fa*
>
> tells that the instances on nova compute is Active, (http://
> paste.openstack.org/show/72890/).
>
> So, while on nova compute the instance "riprova_trove" is *ACTIVE*, on
> Trove the instance is still in the *BUILD* status:
> http://paste.openstack.org/show/72898/
>
> Here <http://paste.openstack.org/show/72901/> you can see the
> trove-taskmanager.log in which there is an "*PollTimeOut: Polling request
> timed out.**"* error.
>
> Thank you all,
> Giuseppe
>
>
>
>
> 2014-03-06 3:26 GMT+01:00 tangyi <tangyi at kingsoft.com>:
>
>> Server not active, status: ERROR
>>
>> The trove always detect nova vm status until timeout.if nova service spawn vm failed,then you saw the log.
>> please check nova-compute.log
>>
>>
>>
>> 于 2014年03月06日 01:37, Giuseppe Galeota 写道:
>>
>> Dear all,
>> I have a trove service running on a VM different from the controller node.
>>
>> I have configured a user=Trove both in tenant=trove and tenant=service
>> with role=admin.
>>
>> If I log into horizon as a trove user and create a database isntances,
>> the status goes in Error.
>>
>>
>> Here there is what I can see in the trove-taskmanager.log file:
>>
>> 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, **self.kw)
>> 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, **self.kw)
>> 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 -
>>
>> Why do I receive this error?
>>
>> Thank you,
>>
>> Giuseppe
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140310/0f881a26/attachment.html>
More information about the Openstack
mailing list