OpenStack Image Registry and Delivery Service (Glance)

glance-prefetcher requires authorization to run

Reported by Antony Messerli on 2011-11-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Critical
Rick Harris

Bug Description

glance-cache-prefetcher requires authorization to run, as a local service it needs auth support or need to be ran without auth.

glance-cache-prefetcher
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/eventlet/hubs/hub.py", line 336, in fire_timers
    timer()
  File "/usr/lib/pymodules/python2.6/eventlet/hubs/timer.py", line 56, in __call__
    cb(*args, **kw)
  File "/usr/lib/pymodules/python2.6/eventlet/greenthread.py", line 192, in main
    result = function(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/glance/image_cache/prefetcher.py", line 47, in fetch_image_into_cache
    image_meta = registry.get_image_metadata(ctx, image_id)
  File "/usr/lib/pymodules/python2.6/glance/registry/__init__.py", line 90, in get_image_metadata
    return c.get_image(image_id)
  File "/usr/lib/pymodules/python2.6/glance/registry/client.py", line 99, in get_image
    res = self.do_request("GET", "/images/%s" % image_id)
  File "/usr/lib/pymodules/python2.6/glance/common/client.py", line 51, in wrapped
    return func(self, *args, **kwargs)
  File "/usr/lib/pymodules/python2.6/glance/common/client.py", line 330, in do_request
    headers=headers)
  File "/usr/lib/pymodules/python2.6/glance/common/client.py", line 65, in wrapped
    return func(self, method, url, body, headers)
  File "/usr/lib/pymodules/python2.6/glance/common/client.py", line 413, in _do_request
    raise exception.NotAuthorized(res.read())
NotAuthorized: You are not authorized to complete this action.
Details: 401 Unauthorized

This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.

 Authentication required
Traceback (most recent call last):
  File "/usr/bin/glance-cache-prefetcher", line 64, in <module>
    app.run()
  File "/usr/lib/pymodules/python2.6/glance/image_cache/prefetcher.py", line 75, in run
    successes = sum([1 for r in results if r is True])
  File "/usr/lib/pymodules/python2.6/eventlet/greenpool.py", line 232, in next
    val = self.waiters.get().wait()
  File "/usr/lib/pymodules/python2.6/eventlet/greenthread.py", line 166, in wait
    return self._exit_event.wait()
  File "/usr/lib/pymodules/python2.6/eventlet/event.py", line 120, in wait
    current.throw(*self._exc)
  File "/usr/lib/pymodules/python2.6/eventlet/greenthread.py", line 192, in main
    result = function(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/glance/image_cache/prefetcher.py", line 47, in fetch_image_into_cache
    image_meta = registry.get_image_metadata(ctx, image_id)
  File "/usr/lib/pymodules/python2.6/glance/registry/__init__.py", line 90, in get_image_metadata
    return c.get_image(image_id)
  File "/usr/lib/pymodules/python2.6/glance/registry/client.py", line 99, in get_image
    res = self.do_request("GET", "/images/%s" % image_id)
  File "/usr/lib/pymodules/python2.6/glance/common/client.py", line 51, in wrapped
    return func(self, *args, **kwargs)
  File "/usr/lib/pymodules/python2.6/glance/common/client.py", line 330, in do_request
    headers=headers)
  File "/usr/lib/pymodules/python2.6/glance/common/client.py", line 65, in wrapped
    return func(self, method, url, body, headers)
  File "/usr/lib/pymodules/python2.6/glance/common/client.py", line 413, in _do_request
    raise exception.NotAuthorized(res.read())
glance.common.exception.NotAuthorized: You are not authorized to complete this action.
Details: 401 Unauthorized

This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.

 Authentication required

Changed in glance:
assignee: nobody → Rick Harris (rconradharris)
importance: Undecided → Critical
status: New → In Progress

Reviewed: https://review.openstack.org/1525
Committed: http://github.com/openstack/glance/commit/0a394707bee38182d980b2ea1906c2aaa6f1c389
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 0a394707bee38182d980b2ea1906c2aaa6f1c389
Author: Rick Harris <email address hidden>
Date: Thu Nov 10 23:22:46 2011 +0000

    Adding admin_token to image-cache config.

    Fixes bug 888802

    Change-Id: If1fa7c4a6ba09b86ddba0ceff9a922aa6a9d27af

Changed in glance:
status: In Progress → Fix Committed
Jay Pipes (jaypipes) on 2011-11-11
Changed in glance:
milestone: none → essex-2
Thierry Carrez (ttx) on 2011-12-14
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in glance:
milestone: essex-2 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers