python openstacksdk, how to authorite?
hey, i trying to connect via the openstacksdk python lib, following this guide: http://developer.openstack.org/sdks/p...
here is my code:
from openstack import connection
if __name__ == '__main__':
auth_args = {
'auth_url': 'http://controller.infra.example.com:35357/v3',
'project_name': 'admin',
'username': 'admin',
'password': 'PASSWORD',
}
conn = connection.Connection(**auth_args)
conn.authorize()
but i only get this exception:
openstack.exceptions.HttpException: HttpException: Expecting to find domain in project - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error.
the command line client is working fine, with the very same credentials.
this is a installation based on this documentation: http://docs.openstack.org/mitaka/inst...
what am i doing wrong?