Can't seem to be able to get Openstackclient/examples to work

Bug #1470272 reported by David Moreau Simard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Medium
Terry Howe

Bug Description

To re-create the issue, here is what I did:
- Run tox (to generate the venvs)
- Activate a virtual environment (personally tested py27 and py34, neither work)
- Export openstack credentials env variables
- Do any Openstackclient command (like openstack server list) to confirm that everything works
- Running examples/osc-lib.py fails with error: AttributeError: 'Namespace' object has no attribute 'cacert'
- Running examples/object_api.py fails with error: AttributeError: 'Namespace' object has no attribute 'cacert'

If I fix the cacert error by replacing opts.cacert by opts.os_cacert (as it should be?) in both cases:
- object_api.py works
- osc-lib.py fails with a novaclient authentication problem: http://paste.openstack.org/show/i24u1rIbrkvaSBgkU9AA/

Terry Howe (thowe-g)
Changed in python-openstackclient:
assignee: nobody → Terry Howe (thowe-g)
status: New → Confirmed
Changed in python-openstackclient:
status: Confirmed → In Progress
Changed in python-openstackclient:
status: In Progress → Fix Committed
Revision history for this message
Steve Martinelli (stevemar) wrote :
Changed in python-openstackclient:
importance: Undecided → Medium
Changed in python-openstackclient:
milestone: none → 1.6.0
status: Fix Committed → Fix Released
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.