Using supplying docs produces 400 Expecting to find domain in project.

Bug #1875889 reported by Pete Zaitcev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-keystoneclient
New
Undecided
Unassigned

Bug Description

If one uses the example from doc/source/using-api-v3.rst, it triggers a 400, reported to client like this:

keystoneauth1.exceptions.http.BadRequest: 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. (HTTP 400)

The example is like this:

    >>> auth = v3.Password(auth_url='https://my.keystone.com:5000/v3',
    ... user_id='myuserid',
    ... password='mypassword',
    ... project_id='myprojectid')

But a working code must include project domain, like this:

        auth = v3.Password(auth_url=par.authurl,
                           project_domain_id='default', project_name=project,
                           username=username, password=par.password,
                           user_domain_id='default',
                           include_catalog=True)

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.