Friday, 2017-09-29

*** catintheroof has quit IRC00:06
anupnso i am running runserver and it says server running at 127.0.0.1:888800:16
anupnying_zuo, but when i try to run that inside browser it does not load00:16
anupnying_zuo, i have set the level of logging to debug right now00:17
anupntrying again if i see anything00:17
anupnying_zuo, i do not see anything on the console as i try to run the IP:PORT00:19
anupnhere is the pastebin http://paste.openstack.org/show/622230/00:19
*** kei-ichi has quit IRC00:21
*** kei-ichi has joined #openstack-horizon00:21
*** mrunge_ has joined #openstack-horizon00:25
*** mrunge has quit IRC00:26
*** rcernin has quit IRC00:29
ying_zuomaybe try a different port?00:35
anupnying_zuo, i am thinking somehow runserver is not running00:37
*** zhurong has joined #openstack-horizon00:37
anupnying_zuo, but yes let me try to use different port, i may have to destroy my vagrant and do it again as other ports are not forwarded00:37
anupnying_zuo, have you used horizon from vagrant?00:38
*** itlinux has joined #openstack-horizon00:38
*** rama_y has quit IRC00:45
*** victor286 has joined #openstack-horizon00:50
*** erlon has quit IRC00:53
*** victor286 has quit IRC00:56
*** wolverineav has quit IRC01:08
*** wolverineav has joined #openstack-horizon01:09
*** wolverineav has quit IRC01:13
ying_zuoanupn: I used it before until devstack changed to use the same port for keystone and horzion01:23
ying_zuothe port forwarding is tricky with vagrant01:23
anupnying_zuo, yeah true01:24
*** lblanchard has joined #openstack-horizon01:24
*** kei-ichi has quit IRC01:33
*** kei-ichi has joined #openstack-horizon01:34
*** lblanchard has quit IRC01:36
*** yamamoto has joined #openstack-horizon01:36
*** itlinux has quit IRC01:39
*** jamesbenson has joined #openstack-horizon01:44
*** yamamoto has quit IRC01:44
*** kei-ichi has quit IRC01:45
*** kei-ichi has joined #openstack-horizon01:45
*** jamesbenson has quit IRC01:49
*** zhurong has quit IRC01:50
*** zhurong has joined #openstack-horizon01:58
*** gyee has quit IRC02:09
*** dave-mcc_ has quit IRC02:13
*** rcernin has joined #openstack-horizon02:20
*** itlinux has joined #openstack-horizon02:24
*** lbragstad has joined #openstack-horizon02:31
*** yamamoto has joined #openstack-horizon02:36
*** jamesbenson has joined #openstack-horizon02:38
*** kei-ichi has quit IRC02:50
*** itlinux has quit IRC02:50
*** kei-ichi has joined #openstack-horizon02:51
*** zhurong has quit IRC03:12
*** udesale has joined #openstack-horizon03:48
*** flwang1 has quit IRC03:58
*** lbragstad has quit IRC04:00
*** kei-ichi has quit IRC04:10
*** kei-ichi has joined #openstack-horizon04:11
*** zhurong has joined #openstack-horizon04:19
*** hoangcx has quit IRC04:27
*** hoangcx has joined #openstack-horizon04:28
*** kei-ichi has quit IRC04:32
*** kei-ichi has joined #openstack-horizon04:33
*** jamesbenson has quit IRC04:59
*** kei-ichi has quit IRC05:09
*** kei-ichi has joined #openstack-horizon05:10
*** ianychoi has quit IRC05:11
*** ianychoi has joined #openstack-horizon05:12
*** ratailor has joined #openstack-horizon05:14
*** rcernin has quit IRC05:15
*** mrunge_ is now known as mrunge05:18
*** kei-ichi has quit IRC05:21
*** kei-ichi has joined #openstack-horizon05:21
*** pcaruana has joined #openstack-horizon05:24
*** pcaruana has quit IRC05:29
*** vishwana_ has joined #openstack-horizon05:35
*** vishwan__ has joined #openstack-horizon05:36
*** vishwanathj has quit IRC05:37
*** vishwana_ has quit IRC05:39
*** rcernin has joined #openstack-horizon05:52
*** yamamoto_ has joined #openstack-horizon05:53
*** yamamoto has quit IRC05:57
*** ratailor is now known as rtailor06:06
*** flwang1 has joined #openstack-horizon06:20
*** jamesbenson has joined #openstack-horizon06:48
*** jamesbenson has quit IRC06:52
*** jtomasek has joined #openstack-horizon06:53
*** kei-ichi has quit IRC07:04
*** pcaruana has joined #openstack-horizon07:04
*** kei-ichi has joined #openstack-horizon07:05
adriantHello! I have some potentially silly questions around some odd stuff we noticed today when trying to debug horizon's slow performance.07:08
adriantWe adding in our own profiling code to confirm certain elements, and overall found that the API calls took roughly around 4s out of a 8s page load on an instance list page reload07:09
adriantso... we began a long and weird process of trying to find where the hell those extra 4 seconds are coming form07:09
adriantfrom*07:09
adriantin the end that ended up us limiting our horizon service to one worker, and the stracing it's process to see what it did07:10
adriantwe found that it kept opening and touching the nova policy file, over and over again when loading the permissions for the table actions.07:11
adriantso... with further hacking and debugging we noticed a 2-3second difference when we simply added a return true at the top of https://github.com/openstack/horizon/blob/master/horizon/tables/actions.py#L131-L13807:11
*** jpich has joined #openstack-horizon07:12
adriantthus bypassing all calls to oslo_policy and just making all the buttons show themselves regardless of the allowed status or what the policy wanted07:12
*** mrch has joined #openstack-horizon07:12
adriantso now I'm digging into the code path for policy checking and trying to work out why we are seeing so much file access to the policy file. Which I then assume is followed by a json parse. Sure that isn't much time, but when you do for EACH table action, for each row... it adds up07:13
adriantbased on this code it 'looks' like we are caching the policy enforcers, which in turn should mean that each of them only every loads the file once in a given process: https://github.com/openstack/django_openstack_auth/blob/master/openstack_auth/policy.py#L52-L7007:16
adriantso... i'm curious, does that actually do what it is meant to? (need to edit the code and start debugging that myself)07:16
adriantthen looking in https://github.com/openstack/oslo.policy/blob/master/oslo_policy/policy.py it sort of seems to have a reload param, which appears to default to false, so I can't see if we're potentially setting that to true somewhere by accident...07:17
adriantalthough I don't really know the oslo.policy code remotely07:17
adrianteven* remotely07:18
adriantI may have to throw some debug statements there too and see what it might be doing..07:18
adriantSoooo I've no clue where to go. And am curious of anyone knows this particular code path and is able to help me work out why this is so terrible inefficient so we can fix it!07:19
adriantAlso, since this is an odd hour and this discussion is probably better not done in IRC, I'll write up an email about this and send it to the mailing list. Hopefully with less typos! :)07:27
*** kei-ichi has quit IRC07:28
*** kei-ichi has joined #openstack-horizon07:29
*** itxaka has joined #openstack-horizon08:03
*** hoangcx has quit IRC08:03
*** hoangcx has joined #openstack-horizon08:04
openstackgerritShu Muto proposed openstack/horizon master: Commonize load-edit directive  https://review.openstack.org/48381008:22
openstackgerritShu Muto proposed openstack/horizon master: Use load-edit directive in import key pair  https://review.openstack.org/48768908:22
openstackgerritShu Muto proposed openstack/horizon master: Adding identity ng-groups create action  https://review.openstack.org/48042608:24
*** e0ne has joined #openstack-horizon08:24
*** belmoreira has joined #openstack-horizon08:38
*** tosky has joined #openstack-horizon08:44
e0neamotoki: hi. could you please test and review https://review.openstack.org/506190 and https://review.openstack.org/507560? These patches fix network selection on a legacy instance launch dialog08:48
e0neamotoki: zuul is broken now, so CI marked the last one with -108:50
*** kei-ichi has quit IRC08:51
*** kei-ichi has joined #openstack-horizon08:52
*** yamamoto_ has quit IRC09:01
*** yamamoto has joined #openstack-horizon09:29
*** yamamoto has quit IRC09:32
*** yamamoto has joined #openstack-horizon09:40
*** udesale has quit IRC09:42
openstackgerritMarek Lyčka proposed openstack/horizon master: Added type checks for ha device owners  https://review.openstack.org/50847609:52
*** yamamoto has quit IRC09:54
*** yamamoto has joined #openstack-horizon10:01
*** adriant has quit IRC10:06
*** adriant has joined #openstack-horizon10:22
*** jamesbenson has joined #openstack-horizon10:24
*** jamesbenson has quit IRC10:28
*** zhurong has quit IRC10:36
*** hoangcx has quit IRC11:02
*** sapd_ has quit IRC11:17
*** sapd_ has joined #openstack-horizon11:17
*** sapd_ has quit IRC11:17
*** sapd_ has joined #openstack-horizon11:18
*** sapd_ has quit IRC11:23
*** sapd_ has joined #openstack-horizon11:24
*** sapd__ has joined #openstack-horizon12:03
*** sapd__ has quit IRC12:03
*** sapd_ has quit IRC12:03
*** rtailor has quit IRC12:13
*** 07IAA8DSW has joined #openstack-horizon12:29
*** 5EXAACMRJ has joined #openstack-horizon12:29
*** 07IAA8DSW has quit IRC12:33
*** 5EXAACMRJ has quit IRC12:34
*** wolverineav has joined #openstack-horizon12:35
*** hoonetorg has joined #openstack-horizon12:35
*** tonygunk has joined #openstack-horizon12:41
*** lblanchard has joined #openstack-horizon12:49
*** catintheroof has joined #openstack-horizon13:03
*** lbragstad has joined #openstack-horizon13:15
openstackgerritFerenc Cserepkei proposed openstack/horizon master: Add "prev" link to instance page list pagination  https://review.openstack.org/49801813:23
*** mrch has quit IRC13:24
robcresswelladriant: It sounds interesting, but a lot of the policy code predates even my time here :/ So I'm not really familiar with it13:39
robcresswelladriant: If your digging uncovers anything, let us know. In the meantime, a writeup would be great13:40
*** jamesbenson has joined #openstack-horizon14:00
*** jamesbenson has quit IRC14:04
*** tonygunk has quit IRC14:21
*** tonygunk has joined #openstack-horizon14:21
*** TravT has joined #openstack-horizon14:25
*** e0ne has quit IRC14:51
*** tonygunk has quit IRC14:56
*** wolverineav has quit IRC14:56
*** tonygunk has joined #openstack-horizon14:57
*** ethfci has quit IRC14:58
*** wolverineav has joined #openstack-horizon14:58
*** rcernin has quit IRC15:01
*** tonygunk has quit IRC15:03
*** belmoreira has quit IRC15:14
*** yamamoto has quit IRC15:18
*** dave-mccowan has joined #openstack-horizon15:21
*** chlong has quit IRC15:35
*** tonygunk has joined #openstack-horizon15:46
*** rama_y has joined #openstack-horizon15:57
*** yamamoto has joined #openstack-horizon16:18
*** jamesbenson has joined #openstack-horizon16:23
*** itlinux has joined #openstack-horizon16:23
*** yamamoto has quit IRC16:24
*** pcaruana has quit IRC16:26
*** jamesbenson has quit IRC16:27
*** itlinux has quit IRC16:44
*** gyee has joined #openstack-horizon16:45
*** lnxnut_ has joined #openstack-horizon16:46
*** itlinux has joined #openstack-horizon16:47
*** itlinux has quit IRC17:02
*** yamamoto has joined #openstack-horizon17:20
*** yamamoto has quit IRC17:25
*** jamesbenson has joined #openstack-horizon17:25
*** tosky has quit IRC17:29
*** itxaka has quit IRC17:30
*** rdopiera has quit IRC17:41
*** dave-mccowan has quit IRC17:41
*** rdopiera has joined #openstack-horizon17:41
*** tosky has joined #openstack-horizon17:51
*** david-lyle has quit IRC17:56
*** david-lyle has joined #openstack-horizon17:56
*** ChanServ sets mode: +o david-lyle17:56
*** jpich has quit IRC17:58
*** hoonetorg has quit IRC18:06
*** rmart04 has joined #openstack-horizon18:13
*** yamamoto has joined #openstack-horizon18:22
*** yamamoto has quit IRC18:26
*** tonygunk has quit IRC18:38
*** nikhil has joined #openstack-horizon18:39
*** rama_y has quit IRC18:40
*** rama_y has joined #openstack-horizon18:43
*** lbragstad has quit IRC19:03
*** lbragstad has joined #openstack-horizon19:07
*** tsmith has joined #openstack-horizon19:16
*** catintheroof has quit IRC19:20
*** catintheroof has joined #openstack-horizon19:20
*** yamamoto has joined #openstack-horizon19:23
*** catintheroof has quit IRC19:24
*** yamamoto has quit IRC19:28
*** e0ne has joined #openstack-horizon19:30
*** jtomasek has quit IRC19:42
*** yohoffman has joined #openstack-horizon20:04
*** tonygunk has joined #openstack-horizon20:08
*** e0ne has quit IRC20:15
*** e0ne has joined #openstack-horizon20:15
*** e0ne has quit IRC20:16
*** e0ne has joined #openstack-horizon20:16
*** e0ne has quit IRC20:16
*** e0ne has joined #openstack-horizon20:17
*** e0ne has quit IRC20:17
*** e0ne has joined #openstack-horizon20:17
*** e0ne has quit IRC20:18
*** e0ne has joined #openstack-horizon20:18
*** e0ne has quit IRC20:19
*** yamamoto has joined #openstack-horizon20:24
*** tonygunk has quit IRC20:27
*** yamamoto has quit IRC20:29
*** jtomasek has joined #openstack-horizon20:31
*** jtomasek has quit IRC20:42
*** nikhil has quit IRC20:49
*** jtomasek has joined #openstack-horizon20:51
*** yamamoto has joined #openstack-horizon21:25
*** yamamoto has quit IRC21:31
*** hoonetorg has joined #openstack-horizon21:50
*** jamesbenson has quit IRC22:05
*** jtomasek has quit IRC22:22
*** jtomasek has joined #openstack-horizon22:22
*** lblanchard has quit IRC22:24
*** yamamoto has joined #openstack-horizon22:27
*** jtomasek has quit IRC22:27
*** yamamoto has quit IRC22:32
*** wolverineav has quit IRC22:57
*** rama_y has quit IRC23:10
*** rama_y has joined #openstack-horizon23:15
*** yamamoto has joined #openstack-horizon23:29
*** yamamoto has quit IRC23:35
*** lbragstad has quit IRC23:35
*** zhurong has joined #openstack-horizon23:52
*** gyee has quit IRC23:53

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