RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1206544 - Missing requires of python-jsonpatch
Summary: Missing requires of python-jsonpatch
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RDO
Classification: Community
Component: python-glanceclient
Version: Icehouse
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Kilo
Assignee: hguemar
QA Contact: nlevinki
URL:
Whiteboard:
Depends On: 1206551
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-27 11:59 UTC by Miroslav Suchý
Modified: 2016-04-26 15:55 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Miroslav Suchý 2015-03-27 11:59:08 UTC
Description of problem:
I am using python-glanceclient in my own code for ansible filters, but when I try to execute it, I will get:

  File "/srv/web/infra/ansible/filter_plugins/openstack.py", line 45, in image_name_to_id
    glance = GlanceClient('2', endpoint=endpoint, token=token)
  File "/usr/lib/python2.6/site-packages/glanceclient/client.py", line 20, in Client
    module = utils.import_versioned_module(version, 'client')
  File "/usr/lib/python2.6/site-packages/glanceclient/common/utils.py", line 197, in import_versioned_module
    return importutils.import_module(module)
  File "/usr/lib/python2.6/site-packages/glanceclient/openstack/common/importutils.py", line 58, in import_module
    __import__(import_str)
  File "/usr/lib/python2.6/site-packages/glanceclient/v2/client.py", line 22, in <module>
    from glanceclient.v2 import schemas
  File "/usr/lib/python2.6/site-packages/glanceclient/v2/schemas.py", line 17, in <module>
    import jsonpatch
ImportError: No module named jsonpatch

So correct thing would be to put in python-glanceclient.spec:
 Requires: python-jsonpatch

Version-Release number of selected component (if applicable):
  python-glanceclient-0.12.0-1.el6.noarch

How reproducible:
deterministic

Steps to Reproduce:
1. on bare machine install python-glanceclient
2. from python:
  from glanceclient  import Client as GlanceClient
  GlanceClient('2', endpoint=endpoint, token=token)

Actual results:
Traceback. See above.

Expected results:
No errors.

Additional info:

Comment 1 hguemar 2015-04-03 09:22:05 UTC
Should be fixed by pushing python-warlock 1.0.1 to RDO Icehouse/EL6 since it requires python-jsonpatch.
Cf. https://bugzilla.redhat.com/show_bug.cgi?id=1206551


Note You need to log in before you can comment on or make changes to this bug.