<div dir="ltr"><span style="font-family:Helvetica;font-size:13.333333969116211px">No, the conf file wasn't the problem. </span><div style="font-family:Helvetica;font-size:13.333333969116211px"><br></div><div style="font-family:Helvetica;font-size:13.333333969116211px">

I finally found it in /opt/stack/glance/glance/store/base.py, in the line:<div><br></div><div><div><font color="#00f900">     </font><font color="#797979">    msg = _("Failed to configure store correctly: %s "</font></div>

<div><font color="#797979">                    "Disabling add method." % e)</font></div></div><div><br></div><div>I don't know what exactly character was the problem but I fixed it by changing the msg value to a dummy string like "Error" and everything start to work.</div>

</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/19 Cristian Falcas <span dir="ltr"><<a href="mailto:cristi.falcas@gmail.com" target="_blank">cristi.falcas@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

do you have ant strange characters in /etc/glance/glance-api.conf?<br>
<br>
perl -pe 's/[[:ascii:]]//g' /etc/glance/glance-api.conf<br>
<div><div class="h5"><br>
<br>
On Wed, Aug 14, 2013 at 6:54 PM, Victor Ruiz <<a href="mailto:VictorMRuizS@gmail.com">VictorMRuizS@gmail.com</a>> wrote:<br>
> Hello everyone,<br>
><br>
> I'm trying to install Openstack by using Devstack, in a Ubuntu Server<br>
> 12.04.2 VM but when I launch the installation script I always get this<br>
> error:<br>
><br>
> + screen -S stack -p g-api -X stuff 'cd /opt/stack/glance;<br>
> /usr/local/bin/glance-api --config-file=/etc/glance/glance-api.conf || touch<br>
> "/opt/stack/status/stack/g-api.fai'ure"<br>
> + echo 'Waiting for g-api (<a href="http://10.0.2.15:9292" target="_blank">10.0.2.15:9292</a>) to start...'<br>
> Waiting for g-api (<a href="http://10.0.2.15:9292" target="_blank">10.0.2.15:9292</a>) to start...<br>
> + timeout 60 sh -c 'while ! http_proxy= wget -q -O- <a href="http://10.0.2.15:9292" target="_blank">http://10.0.2.15:9292</a>;<br>
> do sleep 1; done'<br>
> + die 191 'g-api did not start'<br>
> + local exitcode=0<br>
> + set +o xtrace<br>
> [Call Trace]<br>
> stack.sh:1186:start_glance<br>
> /opt/stack/devstack/lib/glance:191:die<br>
> [ERROR] /opt/stack/devstack/lib/glance:191 g-api did not start<br>
><br>
> And then, when I try to execute  /usr/local/bin/glance-api<br>
> --config-file=/etc/glance/glance-api.conf to see what happens I get this:<br>
><br>
> 2013-08-14 17:45:12.779 10822 DEBUG glance.store [-] Attempting to import<br>
> store glance.store.filesystem.Store _get_store_class<br>
> /opt/stack/glance/glance/store/__init__.py:144<br>
> 2013-08-14 17:45:12.781 10822 DEBUG glance.store [-] Registering store<br>
> <class 'glance.store.filesystem.Store'> with schemes ('file', 'filesystem')<br>
> create_stores /opt/stack/glance/glance/store/__init__.py:174<br>
> 2013-08-14 17:45:12.782 10822 DEBUG glance.store.base [-] Late loading<br>
> location class glance.store.filesystem.StoreLocation<br>
> get_store_location_class /opt/stack/glance/glance/store/base.py:68<br>
> 2013-08-14 17:45:12.782 10822 DEBUG glance.store.location [-] Registering<br>
> scheme file with {'store_class': <class 'glance.store.filesystem.Store'>,<br>
> 'location_class': <class 'glance.store.filesystem.StoreLocation'>}<br>
> register_scheme_map /opt/stack/glance/glance/store/location.py:86<br>
> 2013-08-14 17:45:12.783 10822 DEBUG glance.store.location [-] Registering<br>
> scheme filesystem with {'store_class': <class<br>
> 'glance.store.filesystem.Store'>, 'location_class': <class<br>
> 'glance.store.filesystem.StoreLocation'>} register_scheme_map<br>
> /opt/stack/glance/glance/store/location.py:86<br>
> 2013-08-14 17:45:12.784 10822 DEBUG glance.store [-] Attempting to import<br>
> store glance.store.http.Store _get_store_class<br>
> /opt/stack/glance/glance/store/__init__.py:144<br>
> 2013-08-14 17:45:12.785 10822 DEBUG glance.store [-] Registering store<br>
> <class 'glance.store.http.Store'> with schemes ('http', 'https')<br>
> create_stores /opt/stack/glance/glance/store/__init__.py:174<br>
> 2013-08-14 17:45:12.785 10822 DEBUG glance.store.base [-] Late loading<br>
> location class glance.store.http.StoreLocation get_store_location_class<br>
> /opt/stack/glance/glance/store/base.py:68<br>
> 2013-08-14 17:45:12.786 10822 DEBUG glance.store.location [-] Registering<br>
> scheme http with {'store_class': <class 'glance.store.http.Store'>,<br>
> 'location_class': <class 'glance.store.http.StoreLocation'>}<br>
> register_scheme_map /opt/stack/glance/glance/store/location.py:86<br>
> 2013-08-14 17:45:12.787 10822 DEBUG glance.store.location [-] Registering<br>
> scheme https with {'store_class': <class 'glance.store.http.Store'>,<br>
> 'location_class': <class 'glance.store.http.StoreLocation'>}<br>
> register_scheme_map /opt/stack/glance/glance/store/location.py:86<br>
> 2013-08-14 17:45:12.787 10822 DEBUG glance.store [-] Attempting to import<br>
> store glance.store.rbd.Store _get_store_class<br>
> /opt/stack/glance/glance/store/__init__.py:144<br>
> 2013-08-14 17:45:12.788 10822 DEBUG glance.store [-] Registering store<br>
> <class 'glance.store.rbd.Store'> with schemes ('rbd',) create_stores<br>
> /opt/stack/glance/glance/store/__init__.py:174<br>
> 2013-08-14 17:45:12.789 10822 DEBUG glance.store.base [-] Late loading<br>
> location class glance.store.rbd.StoreLocation get_store_location_class<br>
> /opt/stack/glance/glance/store/base.py:68<br>
> 2013-08-14 17:45:12.790 10822 DEBUG glance.store.location [-] Registering<br>
> scheme rbd with {'store_class': <class 'glance.store.rbd.Store'>,<br>
> 'location_class': <class 'glance.store.rbd.StoreLocation'>}<br>
> register_scheme_map /opt/stack/glance/glance/store/location.py:86<br>
> 2013-08-14 17:45:12.790 10822 DEBUG glance.store [-] Attempting to import<br>
> store glance.store.s3.Store _get_store_class<br>
> /opt/stack/glance/glance/store/__init__.py:144<br>
> 2013-08-14 17:45:12.792 10822 DEBUG glance.store [-] Registering store<br>
> <class 'glance.store.s3.Store'> with schemes ('s3', 's3+http', 's3+https')<br>
> create_stores /opt/stack/glance/glance/store/__init__.py:174<br>
> 2013-08-14 17:45:12.792 10822 DEBUG glance.store.base [-] Late loading<br>
> location class glance.store.s3.StoreLocation get_store_location_class<br>
> /opt/stack/glance/glance/store/base.py:68<br>
> 2013-08-14 17:45:12.793 10822 DEBUG glance.store.location [-] Registering<br>
> scheme s3 with {'store_class': <class 'glance.store.s3.Store'>,<br>
> 'location_class': <class 'glance.store.s3.StoreLocation'>}<br>
> register_scheme_map /opt/stack/glance/glance/store/location.py:86<br>
> 2013-08-14 17:45:12.793 10822 DEBUG glance.store.location [-] Registering<br>
> scheme s3+http with {'store_class': <class 'glance.store.s3.Store'>,<br>
> 'location_class': <class 'glance.store.s3.StoreLocation'>}<br>
> register_scheme_map /opt/stack/glance/glance/store/location.py:86<br>
> 2013-08-14 17:45:12.794 10822 DEBUG glance.store.location [-] Registering<br>
> scheme s3+https with {'store_class': <class 'glance.store.s3.Store'>,<br>
> 'location_class': <class 'glance.store.s3.StoreLocation'>}<br>
> register_scheme_map /opt/stack/glance/glance/store/location.py:86<br>
> 2013-08-14 17:45:12.795 10822 DEBUG glance.store [-] Attempting to import<br>
> store glance.store.swift.Store _get_store_class<br>
> /opt/stack/glance/glance/store/__init__.py:144<br>
> 2013-08-14 17:45:12.807 10822 DEBUG glance.store [-] Registering store<br>
> <function Store at 0x195c140> with schemes ('swift+https', 'swift',<br>
> 'swift+http') create_stores /opt/stack/glance/glance/store/__init__.py:174<br>
> 2013-08-14 17:45:12.807 10822 DEBUG glance.store.base [-] Late loading<br>
> location class glance.store.swift.StoreLocation get_store_location_class<br>
> /opt/stack/glance/glance/store/base.py:68<br>
> 2013-08-14 17:45:12.808 10822 DEBUG glance.store.location [-] Registering<br>
> scheme swift+https with {'store_class': <function Store at 0x195c140>,<br>
> 'location_class': <class 'glance.store.swift.StoreLocation'>}<br>
> register_scheme_map /opt/stack/glance/glance/store/location.py:86<br>
> 2013-08-14 17:45:12.808 10822 DEBUG glance.store.location [-] Registering<br>
> scheme swift+http with {'store_class': <function Store at 0x195c140>,<br>
> 'location_class': <class 'glance.store.swift.StoreLocation'>}<br>
> register_scheme_map /opt/stack/glance/glance/store/location.py:86<br>
> 2013-08-14 17:45:12.809 10822 DEBUG glance.store.location [-] Registering<br>
> scheme swift with {'store_class': <function Store at 0x195c140>,<br>
> 'location_class': <class 'glance.store.swift.StoreLocation'>}<br>
> register_scheme_map /opt/stack/glance/glance/store/location.py:86<br>
> 2013-08-14 17:45:12.810 10822 DEBUG glance.store [-] Attempting to import<br>
> store glance.store.sheepdog.Store _get_store_class<br>
> /opt/stack/glance/glance/store/__init__.py:144<br>
> 2013-08-14 17:45:12.812 10822 DEBUG glance.openstack.common.processutils [-]<br>
> Running cmd (subprocess): collie execute<br>
> /opt/stack/glance/glance/openstack/common/processutils.py:142<br>
> 2013-08-14 17:45:12.821 10822 DEBUG glance.store [-] Registering store<br>
> <class 'glance.store.sheepdog.Store'> with schemes ('sheepdog',)<br>
> create_stores /opt/stack/glance/glance/store/__init__.py:174<br>
> 2013-08-14 17:45:12.822 10822 DEBUG glance.store.base [-] Late loading<br>
> location class glance.store.sheepdog.StoreLocation get_store_location_class<br>
> /opt/stack/glance/glance/store/base.py:68<br>
> 2013-08-14 17:45:12.822 10822 DEBUG glance.store.location [-] Registering<br>
> scheme sheepdog with {'store_class': <class 'glance.store.sheepdog.Store'>,<br>
> 'location_class': <class 'glance.store.sheepdog.StoreLocation'>}<br>
> register_scheme_map /opt/stack/glance/glance/store/location.py:86<br>
> 2013-08-14 17:45:12.823 10822 DEBUG glance.store [-] Attempting to import<br>
> store glance.store.cinder.Store _get_store_class<br>
> /opt/stack/glance/glance/store/__init__.py:144<br>
> 2013-08-14 17:45:12.875 10822 CRITICAL glance [-] 'ascii' codec can't encode<br>
> character u'\xf3' in position 65: ordinal not in range(128)<br>
><br>
> Any ideas? Thanks you!<br>
><br>
</div></div>> _______________________________________________<br>
> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
> Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
> Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
><br>
</blockquote></div><br></div>