Re: [Openstack] Unable to run Glance in a Devstack Installation

2013-08-20 Thread John Bresnahan
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  >
> 
> 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  > 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 )
> to start...'
> > Waiting for g-api (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
> >  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':  'glance.store.filesystem.Store'>,
> > 'location_class': }
> > 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':  > 'glance.store.filesystem.Store'>, 'location_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
> >  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': ,
> > 'location_class': }
> > 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': ,
> > 'location_class': }
> > 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
> >  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': ,
> > 'location_class': }
> > register_sc

Re: [Openstack] Odd glance trouble after Grizzly update

2013-08-12 Thread John Bresnahan
On 08/12/2013 09:09 AM, Jonathan Proulx wrote:
> 
> This is particularly odd since glance was working fine yesterday and to
> my knowlege the only thing I did was turn on more compute nodes...
> 
> 
> Now when I try and launch an instance it goes almost immediately to
> error state with the fault:
> 
> {u'message': u'ImageNotFound', u'code': 404, u'details': u'Image
> 627b4902-f324-4615-a3bb-76f9fd22207a could not be found.', u'created':
> u'2013-08-12T18:53:46Z'}
> 
> I haven't yet found where the 404 is coming from, in debug mode the
> glance-registry.log shows:
> 
> 2013-08-12 15:03:33.541 INFO glance.registry.api.v1.images
> [73bb53ea-be14-496b-9405-098ff8f432aa 0be8fa0d641a4e778b9262bd2e5f40b5
> 6f9adccbd03e4d2186756896957a14bf] Successfully retrieved image
> 627b4902-f324-4615-a3bb-76f9fd22207a
> 
> which looks like success to me, also the python-glanceclient will
> happily download the image.
> 
> Help?

Is there any thing in the nova compute log?


___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack