Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

Docker image logging issues #87

Open
emepetres opened this issue Nov 17, 2017 · 1 comment
Open

Docker image logging issues #87

emepetres opened this issue Nov 17, 2017 · 1 comment

Comments

@emepetres
Copy link

emepetres commented Nov 17, 2017

Using the latest docker image, I encounter two problems:

  • Cannot log in with a new created user. The user appears for example when, as logged as idm user, want to manage the user by the email. However when trying to log in, the idm says UserNotFound: Could not find user: jcarnero (jcarnero is the user created before).

  • After changing idm user password and log again, horizon breaks and don't recover any more, saying Unauthorized: The request you have made requires authentication. (HTTP 401).

The pertinent logs for each issue can be found here.

@zabuTNT
Copy link

zabuTNT commented Mar 20, 2018

From my experience I can report these:

  1. the user have to be confirmed by email. So you have to edit your setting to enable email.

edit this file (accessing from docker volume)

/horizon/openstack_dashboard/local/local_settings.py

and change emails settings with your smtp server, or gmail in my case:

EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'mypassword'
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_TLS = True 

EMAIL_USE_TLS could not exist in the file so if you need it, add this setting.

Now ask to resend the confirmation email with "Didn't receive confirmation instructions?" below the login form. You receive the email and validate the new user.

  1. if you change idm user password you broke the horizon authentication with the backend (keyrock). You have to edit the setting file as before, and this time change the IDM user credential.
IDM_USER_CREDENTIALS = {
    'username': 'idm',
    'password': 'Your_New_Password',
    'project': 'idm',
}

Then reload the page in you browser and you can now login with the new password.

I hope these can help someone.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants