Ask Your Question
0

Fail to run python program from the controller node

asked 2018-12-07 08:06:22 -0600

najeh gravatar image

updated 2018-12-07 08:07:03 -0600

After connect to openstack using python program, then i add some lines of code that listed the available images and run again the program, i recieved this error:

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) (Request-ID: req-d4cc7bb1-3cbd-455c-b268-925e3f98d6a4)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-12-07 08:27:40 -0600

najeh gravatar image

the connection should contain all the project information

conn = connection.Connection(auth_url=auth_url, project_name=project_name, username=auth_username, password=auth_password, project_domain_name=project_domain_name, identity_api_version=identity_api_version, user_domain_name=user_domain_name, image_api_version=image_api_version)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2018-12-07 08:06:22 -0600

Seen: 19 times

Last updated: Dec 07