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/
fixed here: https:/ /review. openstack. org/197518