From Fedora Project Wiki

Revision as of 22:05, 20 March 2013 by Mdubendris (talk | contribs) (`glance index` command does not work on Fedora 18)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Following this guide from a fresh install of Fedora 18, I discovered that the command glance index was throwing an error.

I was able to fix it by following the steps recommended in this URL: https://bugs.launchpad.net/openstack-manuals/+bug/1064449


Problem: [root@localhost ~]# glance image-list Traceback (most recent call last):

 File "/usr/bin/glance", line 5, in <module>
   from pkg_resources import load_entry_point
 File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2819, in <module>
   parse_requirements(__requires__), Environment()
 File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 588, in resolve
   raise DistributionNotFound(req)

pkg_resources.DistributionNotFound: python-keystoneclient>=0.1.2,<0.2


My solution:

In file /usr/lib/python2.7/site-packages/python_glanceclient-0.5.1-py2.7.egg-info/requires.txt

CHANGE: python-keystoneclient>=0.1.2,<0.2 TO: python-keystoneclient>=0.1.2,<0.3