[Openstack] Unable to run Glance in a Devstack Installation

John Bresnahan jbresnah at redhat.com
Tue Aug 20 17:15:19 UTC 2013


On 08/20/2013 05:56 AM, Victor Ruiz wrote:
> No, the conf file wasn't the problem. 
> 
> I finally found it in /opt/stack/glance/glance/store/base.py, in the line:
> 
>          msg = _("Failed to configure store correctly: %s "
>                     "Disabling add method." % e)

This looks like a bug.  I think that '% e ' should be after the )

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





More information about the Openstack mailing list