Revision history [back]

click to hide/show revision 1
initial version

python openstacksdk, how to authorite?

hey, i trying to connect via the openstacksdk python lib, following this guide: http://developer.openstack.org/sdks/python/openstacksdk/users/connection.html

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/install-guide-rdo/

what am i doing wrong?

click to hide/show revision 2
No.2 Revision

python openstacksdk, how to authorite?authorize?

hey, i trying to connect via the openstacksdk python lib, following this guide: http://developer.openstack.org/sdks/python/openstacksdk/users/connection.html

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/install-guide-rdo/

what am i doing wrong?