Authentication error in openstack with new domain












1















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)









share|improve this question

























  • 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
















1















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)









share|improve this question

























  • 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














1












1








1








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)









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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



















  • 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










2 Answers
2






active

oldest

votes


















0














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.






share|improve this answer































    0














    I think:



    openstack role add --domain domainTwo --user domainTwoAdmin admin

    openstack role add --project domainTwoProject --user domainTwoAdmin admin





    share|improve this answer

























      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
      });


      }
      });














      draft saved

      draft discarded


















      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









      0














      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.






      share|improve this answer




























        0














        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.






        share|improve this answer


























          0












          0








          0







          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.






          share|improve this answer













          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 1 '17 at 8:44









          Rajib HossenRajib Hossen

          12




          12

























              0














              I think:



              openstack role add --domain domainTwo --user domainTwoAdmin admin

              openstack role add --project domainTwoProject --user domainTwoAdmin admin





              share|improve this answer






























                0














                I think:



                openstack role add --domain domainTwo --user domainTwoAdmin admin

                openstack role add --project domainTwoProject --user domainTwoAdmin admin





                share|improve this answer




























                  0












                  0








                  0







                  I think:



                  openstack role add --domain domainTwo --user domainTwoAdmin admin

                  openstack role add --project domainTwoProject --user domainTwoAdmin admin





                  share|improve this answer















                  I think:



                  openstack role add --domain domainTwo --user domainTwoAdmin admin

                  openstack role add --project domainTwoProject --user domainTwoAdmin admin






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Aug 8 '17 at 16:10









                  Jeff Schaller

                  42.9k1159137




                  42.9k1159137










                  answered Aug 8 '17 at 15:38









                  김지호김지호

                  1




                  1






























                      draft saved

                      draft discarded




















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

                      is 'sed' thread safe

                      How to make a Squid Proxy server?