Can't create Containers, missing self._api._post method

Bug #1429286 reported by Adam Harwell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-barbicanclient
Fix Released
Medium
Adam Harwell

Bug Description

When trying to create any Container with the client:

Traceback (most recent call last):
  File "/usr/local/bin/barbican", line 10, in <module>
    sys.exit(main())
  File "/opt/stack/python-barbicanclient/barbicanclient/barbican.py", line 189, in main
    return barbican_app.run(argv)
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 215, in run
    result = self.run_subcommand(remainder)
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 280, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 91, in run
    column_names, data = self.take_action(parsed_args)
  File "/opt/stack/python-barbicanclient/barbicanclient/barbican_cli/containers.py", line 128, in take_action
    entity.store()
  File "/opt/stack/python-barbicanclient/barbicanclient/containers.py", line 34, in wrapper
    return func(self, *args)
  File "/opt/stack/python-barbicanclient/barbicanclient/containers.py", line 195, in store
    response = self._api._post(self._entity, container_dict)
AttributeError: 'Client' object has no attribute '_post'

It looks like the base classes were updated to move the httpclient commands into their own namespace, but the Container creation code was never updated to match this.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-barbicanclient (master)

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

commit 49273f7a89c5d97668bcce1df1b0dc8c17bfae1d
Author: Adam Harwell <email address hidden>
Date: Fri Mar 6 16:06:56 2015 -0600

    Pass correct api object to Container constructor

    Change-Id: Ifaf8d6217f12502813ca547edaa0c4ff489d71e1
    Closes-bug: #1429286

Changed in python-barbicanclient:
status: New → Fix Committed
Changed in python-barbicanclient:
milestone: none → 3.0.3
assignee: nobody → Adam Harwell (adam-harwell)
importance: Undecided → Medium
Changed in python-barbicanclient:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-barbicanclient 3.0.3

This issue was fixed in the openstack/python-barbicanclient 3.0.3 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.