Authentication error in openstack with new domain
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)
openstack
add a comment |
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)
openstack
what error message you get , may be you need a fresh shell with previous env variables cleared
– Ijaz Ahmad Khan
Jun 29 '16 at 20:35
i tried,in fresh shell.
– Tiger
Jun 30 '16 at 2:17
The request you have made requires authentication. (HTTP 401) (Request-ID: req-xXXXXXXXXXXXXXX
– Tiger
Jun 30 '16 at 5:05
add a comment |
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)
openstack
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)
openstack
openstack
edited Jun 30 '16 at 5:05
Tiger
asked Jun 29 '16 at 18:33
TigerTiger
3211622
3211622
what error message you get , may be you need a fresh shell with previous env variables cleared
– Ijaz Ahmad Khan
Jun 29 '16 at 20:35
i tried,in fresh shell.
– Tiger
Jun 30 '16 at 2:17
The request you have made requires authentication. (HTTP 401) (Request-ID: req-xXXXXXXXXXXXXXX
– Tiger
Jun 30 '16 at 5:05
add a comment |
what error message you get , may be you need a fresh shell with previous env variables cleared
– Ijaz Ahmad Khan
Jun 29 '16 at 20:35
i tried,in fresh shell.
– Tiger
Jun 30 '16 at 2:17
The request you have made requires authentication. (HTTP 401) (Request-ID: req-xXXXXXXXXXXXXXX
– Tiger
Jun 30 '16 at 5:05
what error message you get , may be you need a fresh shell with previous env variables cleared
– Ijaz Ahmad Khan
Jun 29 '16 at 20:35
what error message you get , may be you need a fresh shell with previous env variables cleared
– Ijaz Ahmad Khan
Jun 29 '16 at 20:35
i tried,in fresh shell.
– Tiger
Jun 30 '16 at 2:17
i tried,in fresh shell.
– Tiger
Jun 30 '16 at 2:17
The request you have made requires authentication. (HTTP 401) (Request-ID: req-xXXXXXXXXXXXXXX
– Tiger
Jun 30 '16 at 5:05
The request you have made requires authentication. (HTTP 401) (Request-ID: req-xXXXXXXXXXXXXXX
– Tiger
Jun 30 '16 at 5:05
add a comment |
2 Answers
2
active
oldest
votes
I don't know if you find the solution or not but I want to provide an approach that will help to solve this types of problem. I also face this problem and found solution.
From your comment,It seems that you are having problem of authentication. Authentication is handled by keystone component of openstack.
So to find what is exactly problematic we need to check each related components log messages.
First check the access log of httpd, I am giving command for continuous view of logs,you can open this in another tab.
tail -f /var/log/httpd/access_log
now check the error message of httpd
tail -f /var/log/httpd/error_log
check keystone log
tail -f /var/log/keystone/keystone.log
Try to figure out what goes wrong. Also check the configuration file of horizon local settings.
/etc/openstack-dashboard/local_settings
specially OPENSTACK_KEYSTONE_URL
this field, and OPENSTACK_API_VERSIONS
,OPENSTACK_KEYSTONE_DEFAULT_DOMAIN
,OPENSTACK_KEYSTONE_DEFAULT_ROLE
.
Double check you IDENTITY VERSION and Keystone endpoint url version,check if versions are identical in both dashboard configuration and service endpoints.
This is research process which will help you find out what is wrong about authentication.
If you start over the installation procedure,in each step verify the operation for each components like first install keystone and check if it okay and go on. This will help to identify and troubleshoot further problem.
add a comment |
I think:
openstack role add --domain domainTwo --user domainTwoAdmin admin
openstack role add --project domainTwoProject --user domainTwoAdmin admin
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f292947%2fauthentication-error-in-openstack-with-new-domain%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I don't know if you find the solution or not but I want to provide an approach that will help to solve this types of problem. I also face this problem and found solution.
From your comment,It seems that you are having problem of authentication. Authentication is handled by keystone component of openstack.
So to find what is exactly problematic we need to check each related components log messages.
First check the access log of httpd, I am giving command for continuous view of logs,you can open this in another tab.
tail -f /var/log/httpd/access_log
now check the error message of httpd
tail -f /var/log/httpd/error_log
check keystone log
tail -f /var/log/keystone/keystone.log
Try to figure out what goes wrong. Also check the configuration file of horizon local settings.
/etc/openstack-dashboard/local_settings
specially OPENSTACK_KEYSTONE_URL
this field, and OPENSTACK_API_VERSIONS
,OPENSTACK_KEYSTONE_DEFAULT_DOMAIN
,OPENSTACK_KEYSTONE_DEFAULT_ROLE
.
Double check you IDENTITY VERSION and Keystone endpoint url version,check if versions are identical in both dashboard configuration and service endpoints.
This is research process which will help you find out what is wrong about authentication.
If you start over the installation procedure,in each step verify the operation for each components like first install keystone and check if it okay and go on. This will help to identify and troubleshoot further problem.
add a comment |
I don't know if you find the solution or not but I want to provide an approach that will help to solve this types of problem. I also face this problem and found solution.
From your comment,It seems that you are having problem of authentication. Authentication is handled by keystone component of openstack.
So to find what is exactly problematic we need to check each related components log messages.
First check the access log of httpd, I am giving command for continuous view of logs,you can open this in another tab.
tail -f /var/log/httpd/access_log
now check the error message of httpd
tail -f /var/log/httpd/error_log
check keystone log
tail -f /var/log/keystone/keystone.log
Try to figure out what goes wrong. Also check the configuration file of horizon local settings.
/etc/openstack-dashboard/local_settings
specially OPENSTACK_KEYSTONE_URL
this field, and OPENSTACK_API_VERSIONS
,OPENSTACK_KEYSTONE_DEFAULT_DOMAIN
,OPENSTACK_KEYSTONE_DEFAULT_ROLE
.
Double check you IDENTITY VERSION and Keystone endpoint url version,check if versions are identical in both dashboard configuration and service endpoints.
This is research process which will help you find out what is wrong about authentication.
If you start over the installation procedure,in each step verify the operation for each components like first install keystone and check if it okay and go on. This will help to identify and troubleshoot further problem.
add a comment |
I don't know if you find the solution or not but I want to provide an approach that will help to solve this types of problem. I also face this problem and found solution.
From your comment,It seems that you are having problem of authentication. Authentication is handled by keystone component of openstack.
So to find what is exactly problematic we need to check each related components log messages.
First check the access log of httpd, I am giving command for continuous view of logs,you can open this in another tab.
tail -f /var/log/httpd/access_log
now check the error message of httpd
tail -f /var/log/httpd/error_log
check keystone log
tail -f /var/log/keystone/keystone.log
Try to figure out what goes wrong. Also check the configuration file of horizon local settings.
/etc/openstack-dashboard/local_settings
specially OPENSTACK_KEYSTONE_URL
this field, and OPENSTACK_API_VERSIONS
,OPENSTACK_KEYSTONE_DEFAULT_DOMAIN
,OPENSTACK_KEYSTONE_DEFAULT_ROLE
.
Double check you IDENTITY VERSION and Keystone endpoint url version,check if versions are identical in both dashboard configuration and service endpoints.
This is research process which will help you find out what is wrong about authentication.
If you start over the installation procedure,in each step verify the operation for each components like first install keystone and check if it okay and go on. This will help to identify and troubleshoot further problem.
I don't know if you find the solution or not but I want to provide an approach that will help to solve this types of problem. I also face this problem and found solution.
From your comment,It seems that you are having problem of authentication. Authentication is handled by keystone component of openstack.
So to find what is exactly problematic we need to check each related components log messages.
First check the access log of httpd, I am giving command for continuous view of logs,you can open this in another tab.
tail -f /var/log/httpd/access_log
now check the error message of httpd
tail -f /var/log/httpd/error_log
check keystone log
tail -f /var/log/keystone/keystone.log
Try to figure out what goes wrong. Also check the configuration file of horizon local settings.
/etc/openstack-dashboard/local_settings
specially OPENSTACK_KEYSTONE_URL
this field, and OPENSTACK_API_VERSIONS
,OPENSTACK_KEYSTONE_DEFAULT_DOMAIN
,OPENSTACK_KEYSTONE_DEFAULT_ROLE
.
Double check you IDENTITY VERSION and Keystone endpoint url version,check if versions are identical in both dashboard configuration and service endpoints.
This is research process which will help you find out what is wrong about authentication.
If you start over the installation procedure,in each step verify the operation for each components like first install keystone and check if it okay and go on. This will help to identify and troubleshoot further problem.
answered Feb 1 '17 at 8:44
Rajib HossenRajib Hossen
12
12
add a comment |
add a comment |
I think:
openstack role add --domain domainTwo --user domainTwoAdmin admin
openstack role add --project domainTwoProject --user domainTwoAdmin admin
add a comment |
I think:
openstack role add --domain domainTwo --user domainTwoAdmin admin
openstack role add --project domainTwoProject --user domainTwoAdmin admin
add a comment |
I think:
openstack role add --domain domainTwo --user domainTwoAdmin admin
openstack role add --project domainTwoProject --user domainTwoAdmin admin
I think:
openstack role add --domain domainTwo --user domainTwoAdmin admin
openstack role add --project domainTwoProject --user domainTwoAdmin admin
edited Aug 8 '17 at 16:10
Jeff Schaller
42.9k1159137
42.9k1159137
answered Aug 8 '17 at 15:38
김지호김지호
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f292947%2fauthentication-error-in-openstack-with-new-domain%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
what error message you get , may be you need a fresh shell with previous env variables cleared
– Ijaz Ahmad Khan
Jun 29 '16 at 20:35
i tried,in fresh shell.
– Tiger
Jun 30 '16 at 2:17
The request you have made requires authentication. (HTTP 401) (Request-ID: req-xXXXXXXXXXXXXXX
– Tiger
Jun 30 '16 at 5:05