unexpected keyword argument 'sub_status' when getting an order

Bug #1441848 reported by Kaitlin Farr on 2015-04-08
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-barbicanclient
Fix Released
High
John Vrbanac

Bug Description

Bug encountered when using DevStack to run a Keystone-authenticated instance of Barbican.

Steps to Recreate:

    from keystoneclient.auth import identity

    from keystoneclient import session

    from barbicanclient import client

    auth = identity.v3.Password(auth_url='http://localhost:5000/v3', username='admin', user_domain_name='Default', password=<whatever your password is>m, project_name='demo', project_domain_name='Default')

    sess = session.Session(auth=auth)

    barbican = client.Client(session=sess)

    order = barbican.orders.create_asymmetric(algorithm='rsa', payload_content_type='application/octet-stream', bit_length=1024,)

    ref = order.submit()

    barbican.orders.get(ref)

That last step produces the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/stack/python-barbicanclient/barbicanclient/orders.py", line 323, in get
    return self._create_typed_order(response)
  File "/opt/stack/python-barbicanclient/barbicanclient/orders.py", line 334, in _create_typed_order
    return AsymmetricOrder(self._api, **response)
TypeError: __init__() got an unexpected keyword argument 'sub_status'

no longer affects: barbican
Changed in python-barbicanclient:
status: New → Confirmed
Changed in python-barbicanclient:
importance: Undecided → High
John Vrbanac (john.vrbanac) wrote :
Changed in python-barbicanclient:
assignee: nobody → John Vrbanac (john.vrbanac)
status: Confirmed → In Progress

Reviewed: https://review.openstack.org/171465
Committed: https://git.openstack.org/cgit/openstack/python-barbicanclient/commit/?id=f0fe464dd3b01db6effa302da710f1024408dbd7
Submitter: Jenkins
Branch: master

commit f0fe464dd3b01db6effa302da710f1024408dbd7
Author: John Vrbanac <email address hidden>
Date: Wed Apr 8 00:00:19 2015 -0500

    Fixing the broken functional tests

    Adding creator_id for Secret and Order types
    Adding sub_status and sub_status_message for Order types
    This is a result of these attributes being added to the API.
    This change isn't aimed to support these fields, but rather just
    accepts the data so that it won't bork the tests. Actual support
    for using these fields should be addressed in a follow-up patch.

    Fixes bug 1441848
    Change-Id: I2340b7dd1dae3806418fa99bdaad73860dda5fbc

Changed in python-barbicanclient:
status: In Progress → Fix Committed
Changed in python-barbicanclient:
milestone: none → 3.1.0

Reviewed: https://review.openstack.org/175132
Committed: https://git.openstack.org/cgit/openstack/python-barbicanclient/commit/?id=0285e859b621c4445fc431286370ad60bebc6b5e
Submitter: Jenkins
Branch: stable/kilo

commit 0285e859b621c4445fc431286370ad60bebc6b5e
Author: John Vrbanac <email address hidden>
Date: Wed Apr 8 00:00:19 2015 -0500

    Fixing the broken functional tests

    Adding creator_id for Secret and Order types
    Adding sub_status and sub_status_message for Order types
    This is a result of these attributes being added to the API.
    This change isn't aimed to support these fields, but rather just
    accepts the data so that it won't bork the tests. Actual support
    for using these fields should be addressed in a follow-up patch.

    Fixes bug 1441848
    (cherry picked from commit f0fe464dd3b01db6effa302da710f1024408dbd7)
    Change-Id: I2340b7dd1dae3806418fa99bdaad73860dda5fbc

tags: added: in-stable-kilo
Changed in python-barbicanclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers