My openstack was working fine with the default domain. Today I created another domain domainTwo using
openstack create doamin domainTwo created a new project domainTwoProject
openstack project create --domain domainTwo --description "Admin Project" domainTwoProject and a new user domainTwoAdmin
openstack user create --domain domainTwo --password-prompt domainTwoAdmin Created the admin role:
openstack role create admin Added the admin role to the domainTwoProject project and user:
openstack role add --project domainTwoProject --user domainTwoAdmin admin Now when I am trying to login with horizon dashboard in domain domainTwo with username domainTwoAdmin and Password XXXXXXXXXX it works perfectly. When I am trying it with source admins-openrc.sh
The content of admin-openrc.sh is:
export OS_PROJECT_DOMAIN_ID=default export OS_USER_DOMAIN_ID=default export OS_PROJECT_NAME=admin export OS_TENANT_NAME=admin export OS_USERNAME=admin export OS_PASSWORD=XXXXX export OS_AUTH_URL=http://XXX.XXX.XXX.XXXX:35357/v3 export OS_IDENTITY_API_VERSION=3 after that I run openstack token issue and I got desired output. However when I am trying this command with source admin-domaintwo.sh I am not getting desired output.
The content of admin-domaintwo.sh is:
export OS_PROJECT_DOMAIN_ID=XXXXXXXXXXXXXXXXXXXXXXXXX export OS_USER_DOMAIN_ID=XXXXXXXXXXXXXXXXXXXXXXXX export OS_PROJECT_NAME=domainTwoProject export OS_TENANT_NAME=domainTwoProject export OS_USERNAME=domainTwoAdmin export OS_PASSWORD=XXXXX export OS_AUTH_URL=http://XXX.XXX.XXX.XXXX:35357/v3 export OS_IDENTITY_API_VERSION=3 i got error
The request you have made requires authentication. (HTTP 401) (Request-ID: req-IDXXXXXXXXXXXXXXXXXXX)