Hi all,
After long time i am writing this blog. So many things happened in between these days. Again i started to get in touch with OpenStack as a newbie.
It will happen everytime in our setup somebody will change the admin password.
Again we have to install or we have to get into Database, find the user in tables and change the encrypted(hash) password. But its very difficult to do this one. Also it will take more time.
There is shortcut for this (its available in OpenStack tutorial itslef):
1. find the admin_token from the keystone.conf file.
grep admin_token /etc/keystone/keystone.conf
admin_token = xxxxxuxyxyxyxyxyxyxy
then you have to find the URL where your keystone is running. OOPS i dont know where to dont, it simple:
2. just run openstack command in your terminal with debug option:
openstack --debug server list
----
---
----
http://xx.xx.xx.xx/v3/tokens -> you can find the IP where your keystone is running
___
___
3. 35357 which is the port used by keystone for admin
then run the below command it will prompt for new password, where you can enter your new password:
openstack --os-token xxxxxuxyxyxyxyxyxyxy--os-url http://xx.xx.xx.xx:35357/v2.0/ user set --password-prompt admin
Password: yyyyyy
Re-enter new password: yyyyyy
Now, your password is successfully changed.
Keep explore & learning.
Keep Sharing
thanks & regards,
cooldharma06 .. :)
After long time i am writing this blog. So many things happened in between these days. Again i started to get in touch with OpenStack as a newbie.
It will happen everytime in our setup somebody will change the admin password.
Again we have to install or we have to get into Database, find the user in tables and change the encrypted(hash) password. But its very difficult to do this one. Also it will take more time.
There is shortcut for this (its available in OpenStack tutorial itslef):
1. find the admin_token from the keystone.conf file.
grep admin_token /etc/keystone/keystone.conf
admin_token = xxxxxuxyxyxyxyxyxyxy
then you have to find the URL where your keystone is running. OOPS i dont know where to dont, it simple:
2. just run openstack command in your terminal with debug option:
openstack --debug server list
----
---
----
http://xx.xx.xx.xx/v3/tokens -> you can find the IP where your keystone is running
___
___
3. 35357 which is the port used by keystone for admin
then run the below command it will prompt for new password, where you can enter your new password:
openstack --os-token xxxxxuxyxyxyxyxyxyxy--os-url http://xx.xx.xx.xx:35357/v2.0/ user set --password-prompt admin
Password: yyyyyy
Re-enter new password: yyyyyy
Now, your password is successfully changed.
Keep explore & learning.
Keep Sharing
thanks & regards,
cooldharma06 .. :)