Reset the password to a known value for management web UI login
search cancel

Reset the password to a known value for management web UI login

book

Article ID: 321737

calendar_today

Updated On:

Products

VMware Integrated OpenStack

Issue/Introduction

  • The password for the VIO management web UI login is not working

Environment

7.x

Resolution

Reset the password to a known value
  1. Create a new salted, bcrypt-hashed password entry and base64 encode in VIO Manager terminal.
Note: Put your new password in single quotes.
htpasswd -nBb admin 'Your-New-Password' | base64

# htpasswd -nBb admin 'VMware1!' | base64
YWRtaW46JDJ5JDA1JGRWeUc5YkQuV0tJNXZ0SURaOUlVTWVZaXFRNm8xbDkvZG1DSW5KbTBUc0haZjJsMDFZS05TCgo=
  1. Backup old vio-webui-etc secret:.
# kubectl get secret vio-webui-etc -o yaml > vio-webui-etc.yaml
  1. Edit the vio-webui-etc secret in the default namespace and set the output from above as the value of the data.htpasswd key
Note: Your terminal may have wrapped the base64 string in the output from the htpasswd command in step 1, make sure you put it all on one line when editing the secret.
# kubectl edit secret vio-webui-etc

# kubectl get secret vio-webui-etc -oyaml
apiVersion: v1
data:
  htpasswd: YWRtaW46JDJ5JDA1JElEYzJGcnNKUEQ5bXlTMUVycEVMZi5PNXFjcWpyVXN5NmlzWktQYkd1T0w0U1Z3TnRLbG9DCgo=
...
  1. Restart the vio-webui-auth-proxy-0 pod and wait for it to restart:
# kubectl delete po vio-webui-auth-proxy-0
# kubectl get po | grep vio-webui-auth-proxy
vio-webui-auth-proxy-0                                           1/1     Running   0          56s

Additional Information