Ask Your Question
0

The request you have made requires authentication. (HTTP 401)

asked 2019-07-16 01:35:05 -0500

Jabrayil gravatar image

I am using openstack packstack installation,I change the OS_PASSWORD inside of /keystonerc_admin .Now I can not login to dashboard and when I want to compile commands on cli ,I get error The request you have made requires authentication. (HTTP 401)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-07-16 01:50:31 -0500

When you deploy your cloud with Packstack, by default the passwords for the various users are randomly generated by the deployment process. Passwords are stored in the database.

keystonerc_admin is a file used to log on to the cloud from the command line. Modifying the password in this file does not change the admin user's password, but it has the effect that you submit an incorrect password when using the CLI.

keystonerc_admin has no effect on the dashboard. I suppose you try to log on with the incorrect password, which the dashboard rejects.

If you don't remember the correct password, you can try to find it in the database (I don't know if it is stored in clear text). Navigate to the Keystone database and look for a table that stores user information. Perhaps the password is also logged in one of Packstack's log files. Sorry for being a bit vague; I have no cloud handy to double-check.

If you can't find it in the database, redeploy your cloud. To be safe, I also recommend reinstalling the operating system. Packstack has options for setting passwords, for example --default-password blabla.

edit flag offensive delete link more

Comments

Thanks for your reply.I check /etc/keystone/keystone.conf ,if I am not mistake .database information is located here. I found "admin_token=blabla" .Then try to login this password to dashboard again failed :/

Jabrayil gravatar imageJabrayil ( 2019-07-16 02:03:17 -0500 )edit

No, you probably have a MYSQL or MariaDB database. admin_token is only used (or was used in earlier versions of Keystone) to set up the cloud, and never during operation.

I think you should just redeploy.

Bernd Bausch gravatar imageBernd Bausch ( 2019-07-16 04:10:36 -0500 )edit

Actually ,I think it will be good to solve problem.I will see many problems in future ,every time I can not deploy again ). I find mysql directory but there a lot of file and directory inside of it.It is difficult to find where password located.

Jabrayil gravatar imageJabrayil ( 2019-07-16 05:32:59 -0500 )edit

To see what' s in the database, run the command mysql -u root -p. The problem: You will have to enter the DB password at this point.

Once you are in the DB, use keystone followed by show tables. Find the right table and list it with select * from TABLEYOUFOUND.

Bernd Bausch gravatar imageBernd Bausch ( 2019-07-16 07:28:00 -0500 )edit

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

Stats

Asked: 2019-07-16 01:35:05 -0500

Seen: 83 times

Last updated: Jul 16