Wednesday, 2018-10-31

*** cshen has quit IRC00:03
*** btully has joined #openstack-horizon00:24
*** btully has quit IRC00:29
*** gyee has quit IRC00:36
*** cshen has joined #openstack-horizon01:59
openstackgerritpengyuesheng proposed openstack/horizon master: Name is outside the page range  https://review.openstack.org/61438202:02
*** cshen has quit IRC02:04
*** itlinux has joined #openstack-horizon02:45
*** itlinux has quit IRC02:56
*** btully has joined #openstack-horizon04:02
*** btully has quit IRC04:07
*** itlinux has joined #openstack-horizon05:05
*** pcaruana|elisa| has joined #openstack-horizon05:29
*** pcaruana|elisa| has quit IRC05:37
*** btully has joined #openstack-horizon05:51
*** btully has quit IRC05:56
*** itlinux has quit IRC06:04
*** e0ne has joined #openstack-horizon06:16
*** ChanServ sets mode: +o e0ne06:16
*** e0ne has quit IRC06:18
*** btully has joined #openstack-horizon07:40
*** btully has quit IRC07:44
*** pcaruana|elisa| has joined #openstack-horizon07:45
*** rdopiera has joined #openstack-horizon08:02
*** e0ne has joined #openstack-horizon08:12
*** ChanServ sets mode: +o e0ne08:12
*** jtomasek has joined #openstack-horizon08:18
*** jpich has joined #openstack-horizon08:28
*** cshen has joined #openstack-horizon08:43
*** pcaruana|elisa| has quit IRC09:13
*** pcaruana|elisa| has joined #openstack-horizon09:15
*** e0ne has quit IRC09:16
*** e0ne has joined #openstack-horizon09:25
*** ChanServ sets mode: +o e0ne09:25
openstackgerritMerged openstack/horizon master: Remove setup.py check from pep8 job  https://review.openstack.org/61425309:39
*** lennyb has quit IRC09:48
*** lennyb has joined #openstack-horizon09:49
*** ianychoi has quit IRC09:51
*** ianychoi has joined #openstack-horizon09:52
openstackgerritDamon Li proposed openstack/horizon master: Add status update for image after creation operation  https://review.openstack.org/61445910:24
*** mvkr has quit IRC10:25
*** e0ne has quit IRC11:15
*** e0ne has joined #openstack-horizon11:15
*** ChanServ sets mode: +o e0ne11:15
*** jtomasek has quit IRC11:16
*** e0ne has quit IRC11:27
*** cshen has quit IRC11:30
*** jtomasek has joined #openstack-horizon11:38
*** mvkr has joined #openstack-horizon11:40
*** cshen has joined #openstack-horizon11:46
openstackgerritRadomir Dopieralski proposed openstack/horizon master: Properly calculate auth_url for WEBSSO from POST data  https://review.openstack.org/61138712:28
*** cshen has quit IRC12:30
*** cshen has joined #openstack-horizon12:31
*** cshen has quit IRC12:36
*** cshen has joined #openstack-horizon12:39
*** e0ne has joined #openstack-horizon13:06
*** ChanServ sets mode: +o e0ne13:06
*** btully has joined #openstack-horizon13:07
*** v12aml has quit IRC13:10
*** lennyb has quit IRC13:10
*** btully has quit IRC13:12
*** lennyb has joined #openstack-horizon13:12
openstackgerritIvan Kolodyazhny proposed openstack/tempest-horizon master: Remove deprecated and unused 'login_url' config option  https://review.openstack.org/61450113:29
openstackgerritIvan Kolodyazhny proposed openstack/tempest-horizon master: Remove deprecated and unused 'login_url' config option  https://review.openstack.org/61450113:32
openstackgerritRadomir Dopieralski proposed openstack/horizon master: Properly calculate auth_url for WEBSSO from POST data  https://review.openstack.org/61138713:49
openstackgerritMerged openstack/tempest-horizon master: Cleanup requirements.txt  https://review.openstack.org/59123414:08
*** lblanchard has joined #openstack-horizon14:14
*** rdopiera has quit IRC14:15
openstackgerritMerged openstack/tempest-horizon master: fix tox python3 overrides  https://review.openstack.org/60656914:17
*** e0ne has quit IRC14:19
*** e0ne has joined #openstack-horizon14:26
*** ChanServ sets mode: +o e0ne14:26
*** rdopiera has joined #openstack-horizon14:28
*** dayou has quit IRC14:36
*** e0ne has quit IRC14:41
*** e0ne has joined #openstack-horizon14:44
*** ChanServ sets mode: +o e0ne14:44
*** Leo_m has joined #openstack-horizon14:52
*** btully has joined #openstack-horizon14:55
*** ianychoi has quit IRC15:00
*** btully has quit IRC15:00
*** gyee has joined #openstack-horizon15:01
e0nehi. is anybody going to joint  horizon meeting?15:01
*** dayou has joined #openstack-horizon15:25
*** itlinux has joined #openstack-horizon15:47
*** cshen has quit IRC16:12
*** dnguyen has joined #openstack-horizon16:21
*** pcaruana|elisa| has quit IRC16:37
*** gyee has quit IRC16:50
*** jpich has quit IRC16:59
*** e0ne has quit IRC17:08
mgagneI have a weird behavior with Horizon Queens. When restarting Apache, the first ever request always fails to login. Or if user is already logged and refresh, session is lost and login page shows. But for the later, if you try to access any page in Horizon, the session is in fact still active. Also if you are logged, restart Apache, start a new session in a different browser, it fails. But the other user that was already logged won't lose17:20
mgagne its session.17:20
mgagneDoes it ring any bell for anyone?17:20
mgagneI'm using the cache backend with memcache as the session engine.17:20
mgagneI'm currently using mod_wsgi with processes=2 and threads=1. If I increase processes to 20, I'm having a LOT more issues with lost sessions.17:25
*** Leo_m has quit IRC17:29
*** Leo_m has joined #openstack-horizon17:43
*** gyee has joined #openstack-horizon17:44
*** mvkr has quit IRC17:49
*** rdopiera has quit IRC18:04
*** cshen has joined #openstack-horizon18:07
*** cshen has quit IRC18:20
*** cshen has joined #openstack-horizon18:22
*** cshen has quit IRC18:26
*** e0ne has joined #openstack-horizon18:31
*** ChanServ sets mode: +o e0ne18:31
*** e0ne has quit IRC18:32
*** btully has joined #openstack-horizon18:33
*** mvkr has joined #openstack-horizon18:36
*** cshen has joined #openstack-horizon18:36
*** btully has quit IRC18:38
*** e0ne has joined #openstack-horizon19:44
*** ChanServ sets mode: +o e0ne19:44
*** betherly has joined #openstack-horizon19:45
*** e0ne has quit IRC19:45
*** betherly has quit IRC19:49
*** rdopiera has joined #openstack-horizon20:17
*** btully has joined #openstack-horizon20:22
*** rdopiera has quit IRC20:24
*** rdopiera has joined #openstack-horizon20:24
*** btully has quit IRC20:27
*** e0ne has joined #openstack-horizon20:30
*** ChanServ sets mode: +o e0ne20:30
*** e0ne has quit IRC20:50
*** lblanchard has quit IRC21:03
*** betherly has joined #openstack-horizon21:27
*** betherly has quit IRC21:32
adriantmgagne: yes! We get this error and it is annoying. When horizon loads up first for some reason it can't process old sessions right away21:42
mgagneadriant: plz tell me more =)21:43
adriantwe had this error because uwsgi was setup to kill/restart workers and sometimes on such a restart users would get "logged out"21:43
adriantbut if you waited and refreshed the page you'd be fine21:44
mgagneadriant: is there a solution to that?21:44
adriantmgagne: we never got to the bottom of it, but if others are hitting it as well we should try and get the horizon team to look at it21:44
adriantmgagne: yes... don't restart horizon, or don't allow it to serve requests until it is fully alive.21:45
mgagnehow can I make sure it's fully alive?21:45
adriantalternatively, and I haven't looked into this yet, it may be an issue session handling. What session handling are you using?21:45
mgagneI'm not sure what config this refers to but I'm using the cache session engine with memcached as cache backend.21:46
adriantwe just take it out of loadbalancer when restarting for some redefined period that seemed to be safe21:46
adriantcool, same as us21:46
adriantok, what memcached library?21:46
mgagnepython-memcached21:47
adriantagain, same as us... try switching to PyLibMCCache and pylibmc (which needs an underlying c libary)21:47
adriantIf you can switch that is21:47
mgagneI'm open to alternative at this point if it fixes the issue21:48
adriantpython-memcached is actually unmaintained and I'm working with upstream Django to replace it with an alternative pymemcache21:48
adriantJust be aware, this probably isn't a fix, I'm just speculating. python-memcached doesn't load up right away, it talks to memcached only when the first request comes in, while pylibmc NEEDS a memcached server setup on startup.21:49
adriantSo I'm jumping to a running conclusion that the differences in the libraries may cause some oddness. If that proves not to be the case, then it's a problem in Horizon.21:50
mgagneok, I can try to switch to a file based backend and see if it fixes the session issue. I will rebuild with pylibmc later21:51
mgagnefilebased looks to be the same21:53
adriantbah21:53
adriantI'm just spinning up a docker env I've got and telling gunicorn to kill/restart workers for horizon every 5 requests, to see if I can replicate the issue, and then switch memcached library21:54
*** itlinux has quit IRC21:57
adriantmgagne: yeah, same problem21:58
adrianttakes me back to login page and I see:21:58
adriantYou do not have permission to access the resource:21:58
adriantLogin as different user or go back to home page21:58
mgagneyes21:58
mgagnesometimes you are still considered logged openstack_auth.user is_authenticated=True21:59
mgagnebut I guess something raises NotAuthorized somewhere so you get redirected22:00
adriantyeah22:00
adriantit's like it hasn't been able to verify your session fully22:01
mgagnein fact22:01
mgagnesometimes, is_authenticated is True but NotAuthenticated is raised22:01
adrianteither it just redirects you and doesn't give you that message (we see that), or you get that message22:01
mgagneI'm currently trying to trace in horizon/middleware/base.py process_exception22:01
adriantit's as if some parts of horizon aren't quite ready to start processing requests but it is anyway22:02
adriantmgagne: if you find anything, I'll glady help/review, and if you open a bug for it, I can add some notes to it as well22:06
mgagnejust trying to find the source of the problem atm ;)22:06
adriantmgagne: this is the message I see before being kicked out: https://github.com/openstack/horizon/blob/master/horizon/static/framework/framework.module.js#L13222:11
adriantso we're hitting: https://github.com/openstack/horizon/blob/master/horizon/static/framework/framework.module.js#L14722:11
adriantand it seems to either redirect us, or actually sometimes force a logout22:12
adriantthe question is, why is that js being triggered22:12
adriantand why only during start up22:12
mgagneI don't see any much on my side. did you see it in the developer console?22:13
adriantI think it may depend on the page you're on... that looks like angular error handling. I think this is still a symptom22:14
mgagneI'm getting a server side redirection on my side (302)22:14
mgagneIm testing with /horizon/project/api_access/22:15
adriantI get a notification (very briefly) from horizon in the top right corner22:15
adriantlet me try with the same as well22:15
mgagnewhich shouldn't have any angular22:15
mgagneand I'm really getting horizon.exceptions.NotAuthenticated22:15
adriantyep there we go, 'logged out' and no error in the top left on api_access22:16
mgagneI'm not sure how to better debug but that's how I get it: https://gist.github.com/mgagne/5c4f561dfaa605ef6cd69bf111159d9922:16
*** gyee has quit IRC22:19
mgagnehttps://docs.djangoproject.com/en/1.11/topics/http/middleware/#process-exception22:20
mgagne"Again, middleware are run in reverse order during the response phase, which includes process_exception."22:20
adriantyeah, and on the images page (an angular page) I see notifications for "policy check failed" and "Unauthorised: Redirecting to Login"22:20
mgagnehorizon.middleware.HorizonMiddleware is the last loaded middleware in my case, I removed most of them.22:20
mgagneok, will enable debug for policy then22:20
mgagnehmm I'm not sure if I'm doing the right thing to enable full debug logging22:25
mgagneI removed all policies for horizon config, still the same.22:29
adriantit's unlikely to be a policy issue I think22:32
adriantthe root cause will most likely be something to do with the existing session not being handled during a restart/start of the app22:33
adriantI tried digging into it myself, and couldn't find anything useful :(22:33
mgagneI'm annoyed because enabling logging reveals nothing in the log file... except lookup errors in templates22:35
adriantYeah... openstack logging is lacking at times22:40
mgagnewhy can't I get django to enable logging everywhere? I mean, I can't believe no modules at all try to log something22:41
adriantIt's quite likely there isn't any22:48
adriantmost of the logging in horizon doesn't go that deep.22:49
*** itlinux has joined #openstack-horizon22:50
mgagnewhy not =( should propagate to underlying modules...22:51
adriantDjango logging is just python logging in a dict format, so you can in theory turn on the logging for any library you are using provided that library has logging22:52
adriantbut I have a feeling this error is happening in horizon, and it doesn't really have logging output where it is happening :/22:53
mgagneyea...22:53
mgagnewith file based caching, when reloading the page after a restart, there is no network connection performed by Horizon. I'm redirected to login page directly.22:53
*** dnguyen has quit IRC22:53
mgagneso the problem is self-contained on the server/app.22:54
adriantyeah22:54
adriantit can't unwrap the session, or something and then throws it away pretty much22:54
*** cshen has quit IRC22:54
mgagnecould be an issue with serialization where data isn't properly signed anymore. but it doesn't explain that you can restore it on a 2nd refresh.22:55
adriantit could even be a django issue, but I somewhat doubt it22:55
adriantor maybe horizon can't yet talk to keystone to validate the token from the session?22:55
mgagnecould be it because if I refresh again, it now tries to contact keystone to list projects I have access to.22:56
mgagnebut it could also mean that django/horizon can't restore the session and therefore the existing token22:57
*** rdopiera has quit IRC23:01
adriantyep, lots of things that could be going wrong23:02
adriantbut... only for the first (or first few) request(s)23:03
mgagnelooks like I'm getting a horizon.exceptions.NotAuthenticated before process_response or even process_request from SessionMiddleware is called23:15
mgagnewhich makes absolutely no sense to me23:16
mgagneok, missed a log entry23:17
*** ianychoi has joined #openstack-horizon23:35

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!