Ask Your Question
0

Mirantis 9: openstack client 2.6.0 issue

asked 2016-08-17 15:04:44 -0500

bmaltais gravatar image

updated 2016-08-18 07:32:32 -0500

I am running openstack client 2.6.0 on a windows/linux computer and i am running into a serious issue. As soon as I try to issue any openstack command (for example like the following I get):

C:\Users\maltaib1>openstack --insecure project create test
Ignoring domain related configs user_domain_name because identity API version is 2.0
Expecting to find domain in user - 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-a620e27e-289d-4e0b-a67c-32618fe73d4c)

With the client v2.2.0 installed on the controller node and the same rc file all is working fine. Any idea what is going on?

UPDATE

Just to point out that I am using domain authentication in my setup using the LDAP 3.0.0 Plugin... hence the warning about the user_domain_name... this warning does not exist in the client 2.0.0 version that is installed on the controllers.

The strange thing is that the RC file is actually specifying the use of Identity API v3 but somehow the client is reporting v2... I wonder if this might be an issue with the fact that Mirantis 9 is reporting that the Identity service installed is v2 instead of v3. Could this be a bug with Mirantis 9 Mitaka installation of Openstack?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-08-18 12:02:17 -0500

bmaltais gravatar image

OK. After a lot of trial and error I figured out the issue. When using the LDAP Plugin and domain the RC file served to the user is not properly made. You have to actually add a few things to it in order to make the v2.6.0 client work:

export OS_PROJECT_DOMAIN_NAME=$OS_USER_DOMAIN_NAME
export OS_IDENTITY_API_VERSION="3"

With that you should be all set.

edit flag offensive delete link more

Comments

UPDATE:

All is not perfect with the client. I can't get

openstack network list

command to work. It keep reporting network connection issue... but strangly

openstack image list

work just fine. Any idea?

Using the v2.2.0 client on the other controller work just fine for both those.

bmaltais gravatar imagebmaltais ( 2016-08-18 14:19:57 -0500 )edit
0

answered 2018-12-13 08:45:09 -0500

[root@controller test]# openstack --os-auth-url http://controller:35357/v3 \

--os-project-domain-name default \ --os-user-domain-name default \ --os-project-name admin \ --os-username admin token issue Ignoring domain related config project_domain_name because identity API version is 2.0 Ignoring domain related config user_domain_name because identity API version is 2.0 Ignoring domain related config project_domain_name because identity API version is 2.0 Ignoring domain related config user_domain_name because identity API version is 2.0 Ignoring domain related config project_domain_name because identity API version is 2.0 Ignoring domain related config user_domain_name because identity API version is 2.0 Ignoring domain related config project_domain_name because identity API version is 2.0 Ignoring domain related config user_domain_name because identity API version is 2.0 Password:

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-c3aec447-944e-465e-985a-499bb4252fdc)

I searched my profile and made a certain comparison, and I thought the problem might be on top of V3 because it was wrong to skip V2 certification. So I tried to add a line of V3 validation content, the result is that everything is fine. LOL >>>>>>>> [root@controller test]# openstack --os-auth-url http://controller:35357/v3 --os-project-domain-name default --os-user-domain-name default --os-identity-api-version 3 --os-project-name admin --os-username admin token issue
Password: +------------+-------------------------------------------------------------------------------------------------+ | Field | Value | +------------+-------------------------------------------------------------------------------------------------+ | expires | 2018-12-13T15:23:55+0000 | | id | gAAAAABcEmt7iiPFLSBPUbhdZkuonRS0hW5mrkJKZLxeYYAkhrJwc7UtROpPLbJQclilcUwkSLIbXfekZeqh5UiNIhDvEiA | | | YXuI19z8I98AIs5b7CCjpG3zex58vTABiMo7MvqEZ09vY0ttQMZrhMrjbiQF7kGwDPhIu41AIOze8Ez6cEaMw8kU | | project_id | c6886bb0175c42c186148ef97766eecd | | user_id | ba2ea654254845e38be0b2af5ff5d26b | +------------+-------------------------------------------------------------------------------------------------+

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: 2016-08-17 15:04:44 -0500

Seen: 1,529 times

Last updated: Aug 18 '16