wrong error description when setting a scope

Bug #1493280 reported by Canh Truong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Invalid
Undecided
Unassigned

Bug Description

When typing the command openstack without setting a scope (openstack --os-username admin --os-password nomoresecrete --os-auth-url http://localhost:5000 user list), the error description is:
ERROR: openstack Missing parameter(s):
Set a scope, such as a project or domain, set a project scope with --os-project-name, OS_PROJECT_NAME or auth.project_name, set a domain scope with --os-domain-name, OS_DOMAIN_NAME or auth.domain_name
But then we do the command openstack with domain scope (openstack --os-username admin --os-password nomoresecrete --os-auth-url http://localhost:5000 --os-domain-name default user list), the command executed not successfully, get another error:
ERROR: openstack 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-4919fb9c-75dc-44be-8639-d24707404192). the command also needs more argument (--os-user-domain-id) when we set a scope is domain scope.

I think we should add "--os-user-domain-id" argument in first error description when setting domain scope

Revision history for this message
Terry Howe (thowe-g) wrote :

Near as I know, --os-username --os-password --os-auth-url options are all broken if that is related.

Revision history for this message
Canh Truong (canh-v-truong) wrote :

ìf we use project scope instead of domain scope, the command works normaly. e.g: openstack --os-username admin --os-password nomoresecrete --os-auth-url http://localhost:5000 --os-project-name admin user list

summary: - wrong error desctiption when setting a scope
+ wrong error description when setting a scope
Revision history for this message
Steve Martinelli (stevemar) wrote :

this is working as designed,

a scope - meaning a project or domain is required.

the --os-user-domain-id/name value is only required if you're authenticating as a user in the non-default domain. this is not the same as scope (authorization).

Changed in python-openstackclient:
status: New → Invalid
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.