*** catintheroof has quit IRC | 00:06 | |
anupn | so i am running runserver and it says server running at 127.0.0.1:8888 | 00:16 |
---|---|---|
anupn | ying_zuo, but when i try to run that inside browser it does not load | 00:16 |
anupn | ying_zuo, i have set the level of logging to debug right now | 00:17 |
anupn | trying again if i see anything | 00:17 |
anupn | ying_zuo, i do not see anything on the console as i try to run the IP:PORT | 00:19 |
anupn | here is the pastebin http://paste.openstack.org/show/622230/ | 00:19 |
*** kei-ichi has quit IRC | 00:21 | |
*** kei-ichi has joined #openstack-horizon | 00:21 | |
*** mrunge_ has joined #openstack-horizon | 00:25 | |
*** mrunge has quit IRC | 00:26 | |
*** rcernin has quit IRC | 00:29 | |
ying_zuo | maybe try a different port? | 00:35 |
anupn | ying_zuo, i am thinking somehow runserver is not running | 00:37 |
*** zhurong has joined #openstack-horizon | 00:37 | |
anupn | ying_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 forwarded | 00:37 |
anupn | ying_zuo, have you used horizon from vagrant? | 00:38 |
*** itlinux has joined #openstack-horizon | 00:38 | |
*** rama_y has quit IRC | 00:45 | |
*** victor286 has joined #openstack-horizon | 00:50 | |
*** erlon has quit IRC | 00:53 | |
*** victor286 has quit IRC | 00:56 | |
*** wolverineav has quit IRC | 01:08 | |
*** wolverineav has joined #openstack-horizon | 01:09 | |
*** wolverineav has quit IRC | 01:13 | |
ying_zuo | anupn: I used it before until devstack changed to use the same port for keystone and horzion | 01:23 |
ying_zuo | the port forwarding is tricky with vagrant | 01:23 |
anupn | ying_zuo, yeah true | 01:24 |
*** lblanchard has joined #openstack-horizon | 01:24 | |
*** kei-ichi has quit IRC | 01:33 | |
*** kei-ichi has joined #openstack-horizon | 01:34 | |
*** lblanchard has quit IRC | 01:36 | |
*** yamamoto has joined #openstack-horizon | 01:36 | |
*** itlinux has quit IRC | 01:39 | |
*** jamesbenson has joined #openstack-horizon | 01:44 | |
*** yamamoto has quit IRC | 01:44 | |
*** kei-ichi has quit IRC | 01:45 | |
*** kei-ichi has joined #openstack-horizon | 01:45 | |
*** jamesbenson has quit IRC | 01:49 | |
*** zhurong has quit IRC | 01:50 | |
*** zhurong has joined #openstack-horizon | 01:58 | |
*** gyee has quit IRC | 02:09 | |
*** dave-mcc_ has quit IRC | 02:13 | |
*** rcernin has joined #openstack-horizon | 02:20 | |
*** itlinux has joined #openstack-horizon | 02:24 | |
*** lbragstad has joined #openstack-horizon | 02:31 | |
*** yamamoto has joined #openstack-horizon | 02:36 | |
*** jamesbenson has joined #openstack-horizon | 02:38 | |
*** kei-ichi has quit IRC | 02:50 | |
*** itlinux has quit IRC | 02:50 | |
*** kei-ichi has joined #openstack-horizon | 02:51 | |
*** zhurong has quit IRC | 03:12 | |
*** udesale has joined #openstack-horizon | 03:48 | |
*** flwang1 has quit IRC | 03:58 | |
*** lbragstad has quit IRC | 04:00 | |
*** kei-ichi has quit IRC | 04:10 | |
*** kei-ichi has joined #openstack-horizon | 04:11 | |
*** zhurong has joined #openstack-horizon | 04:19 | |
*** hoangcx has quit IRC | 04:27 | |
*** hoangcx has joined #openstack-horizon | 04:28 | |
*** kei-ichi has quit IRC | 04:32 | |
*** kei-ichi has joined #openstack-horizon | 04:33 | |
*** jamesbenson has quit IRC | 04:59 | |
*** kei-ichi has quit IRC | 05:09 | |
*** kei-ichi has joined #openstack-horizon | 05:10 | |
*** ianychoi has quit IRC | 05:11 | |
*** ianychoi has joined #openstack-horizon | 05:12 | |
*** ratailor has joined #openstack-horizon | 05:14 | |
*** rcernin has quit IRC | 05:15 | |
*** mrunge_ is now known as mrunge | 05:18 | |
*** kei-ichi has quit IRC | 05:21 | |
*** kei-ichi has joined #openstack-horizon | 05:21 | |
*** pcaruana has joined #openstack-horizon | 05:24 | |
*** pcaruana has quit IRC | 05:29 | |
*** vishwana_ has joined #openstack-horizon | 05:35 | |
*** vishwan__ has joined #openstack-horizon | 05:36 | |
*** vishwanathj has quit IRC | 05:37 | |
*** vishwana_ has quit IRC | 05:39 | |
*** rcernin has joined #openstack-horizon | 05:52 | |
*** yamamoto_ has joined #openstack-horizon | 05:53 | |
*** yamamoto has quit IRC | 05:57 | |
*** ratailor is now known as rtailor | 06:06 | |
*** flwang1 has joined #openstack-horizon | 06:20 | |
*** jamesbenson has joined #openstack-horizon | 06:48 | |
*** jamesbenson has quit IRC | 06:52 | |
*** jtomasek has joined #openstack-horizon | 06:53 | |
*** kei-ichi has quit IRC | 07:04 | |
*** pcaruana has joined #openstack-horizon | 07:04 | |
*** kei-ichi has joined #openstack-horizon | 07:05 | |
adriant | Hello! I have some potentially silly questions around some odd stuff we noticed today when trying to debug horizon's slow performance. | 07:08 |
adriant | We 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 reload | 07:09 |
adriant | so... we began a long and weird process of trying to find where the hell those extra 4 seconds are coming form | 07:09 |
adriant | from* | 07:09 |
adriant | in the end that ended up us limiting our horizon service to one worker, and the stracing it's process to see what it did | 07:10 |
adriant | we 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 |
adriant | so... 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-L138 | 07:11 |
*** jpich has joined #openstack-horizon | 07:12 | |
adriant | thus bypassing all calls to oslo_policy and just making all the buttons show themselves regardless of the allowed status or what the policy wanted | 07:12 |
*** mrch has joined #openstack-horizon | 07:12 | |
adriant | so 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 up | 07:13 |
adriant | based 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-L70 | 07:16 |
adriant | so... i'm curious, does that actually do what it is meant to? (need to edit the code and start debugging that myself) | 07:16 |
adriant | then 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 |
adriant | although I don't really know the oslo.policy code remotely | 07:17 |
adriant | even* remotely | 07:18 |
adriant | I may have to throw some debug statements there too and see what it might be doing.. | 07:18 |
adriant | Soooo 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 |
adriant | Also, 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 IRC | 07:28 | |
*** kei-ichi has joined #openstack-horizon | 07:29 | |
*** itxaka has joined #openstack-horizon | 08:03 | |
*** hoangcx has quit IRC | 08:03 | |
*** hoangcx has joined #openstack-horizon | 08:04 | |
openstackgerrit | Shu Muto proposed openstack/horizon master: Commonize load-edit directive https://review.openstack.org/483810 | 08:22 |
openstackgerrit | Shu Muto proposed openstack/horizon master: Use load-edit directive in import key pair https://review.openstack.org/487689 | 08:22 |
openstackgerrit | Shu Muto proposed openstack/horizon master: Adding identity ng-groups create action https://review.openstack.org/480426 | 08:24 |
*** e0ne has joined #openstack-horizon | 08:24 | |
*** belmoreira has joined #openstack-horizon | 08:38 | |
*** tosky has joined #openstack-horizon | 08:44 | |
e0ne | amotoki: 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 dialog | 08:48 |
e0ne | amotoki: zuul is broken now, so CI marked the last one with -1 | 08:50 |
*** kei-ichi has quit IRC | 08:51 | |
*** kei-ichi has joined #openstack-horizon | 08:52 | |
*** yamamoto_ has quit IRC | 09:01 | |
*** yamamoto has joined #openstack-horizon | 09:29 | |
*** yamamoto has quit IRC | 09:32 | |
*** yamamoto has joined #openstack-horizon | 09:40 | |
*** udesale has quit IRC | 09:42 | |
openstackgerrit | Marek Lyčka proposed openstack/horizon master: Added type checks for ha device owners https://review.openstack.org/508476 | 09:52 |
*** yamamoto has quit IRC | 09:54 | |
*** yamamoto has joined #openstack-horizon | 10:01 | |
*** adriant has quit IRC | 10:06 | |
*** adriant has joined #openstack-horizon | 10:22 | |
*** jamesbenson has joined #openstack-horizon | 10:24 | |
*** jamesbenson has quit IRC | 10:28 | |
*** zhurong has quit IRC | 10:36 | |
*** hoangcx has quit IRC | 11:02 | |
*** sapd_ has quit IRC | 11:17 | |
*** sapd_ has joined #openstack-horizon | 11:17 | |
*** sapd_ has quit IRC | 11:17 | |
*** sapd_ has joined #openstack-horizon | 11:18 | |
*** sapd_ has quit IRC | 11:23 | |
*** sapd_ has joined #openstack-horizon | 11:24 | |
*** sapd__ has joined #openstack-horizon | 12:03 | |
*** sapd__ has quit IRC | 12:03 | |
*** sapd_ has quit IRC | 12:03 | |
*** rtailor has quit IRC | 12:13 | |
*** 07IAA8DSW has joined #openstack-horizon | 12:29 | |
*** 5EXAACMRJ has joined #openstack-horizon | 12:29 | |
*** 07IAA8DSW has quit IRC | 12:33 | |
*** 5EXAACMRJ has quit IRC | 12:34 | |
*** wolverineav has joined #openstack-horizon | 12:35 | |
*** hoonetorg has joined #openstack-horizon | 12:35 | |
*** tonygunk has joined #openstack-horizon | 12:41 | |
*** lblanchard has joined #openstack-horizon | 12:49 | |
*** catintheroof has joined #openstack-horizon | 13:03 | |
*** lbragstad has joined #openstack-horizon | 13:15 | |
openstackgerrit | Ferenc Cserepkei proposed openstack/horizon master: Add "prev" link to instance page list pagination https://review.openstack.org/498018 | 13:23 |
*** mrch has quit IRC | 13:24 | |
robcresswell | adriant: It sounds interesting, but a lot of the policy code predates even my time here :/ So I'm not really familiar with it | 13:39 |
robcresswell | adriant: If your digging uncovers anything, let us know. In the meantime, a writeup would be great | 13:40 |
*** jamesbenson has joined #openstack-horizon | 14:00 | |
*** jamesbenson has quit IRC | 14:04 | |
*** tonygunk has quit IRC | 14:21 | |
*** tonygunk has joined #openstack-horizon | 14:21 | |
*** TravT has joined #openstack-horizon | 14:25 | |
*** e0ne has quit IRC | 14:51 | |
*** tonygunk has quit IRC | 14:56 | |
*** wolverineav has quit IRC | 14:56 | |
*** tonygunk has joined #openstack-horizon | 14:57 | |
*** ethfci has quit IRC | 14:58 | |
*** wolverineav has joined #openstack-horizon | 14:58 | |
*** rcernin has quit IRC | 15:01 | |
*** tonygunk has quit IRC | 15:03 | |
*** belmoreira has quit IRC | 15:14 | |
*** yamamoto has quit IRC | 15:18 | |
*** dave-mccowan has joined #openstack-horizon | 15:21 | |
*** chlong has quit IRC | 15:35 | |
*** tonygunk has joined #openstack-horizon | 15:46 | |
*** rama_y has joined #openstack-horizon | 15:57 | |
*** yamamoto has joined #openstack-horizon | 16:18 | |
*** jamesbenson has joined #openstack-horizon | 16:23 | |
*** itlinux has joined #openstack-horizon | 16:23 | |
*** yamamoto has quit IRC | 16:24 | |
*** pcaruana has quit IRC | 16:26 | |
*** jamesbenson has quit IRC | 16:27 | |
*** itlinux has quit IRC | 16:44 | |
*** gyee has joined #openstack-horizon | 16:45 | |
*** lnxnut_ has joined #openstack-horizon | 16:46 | |
*** itlinux has joined #openstack-horizon | 16:47 | |
*** itlinux has quit IRC | 17:02 | |
*** yamamoto has joined #openstack-horizon | 17:20 | |
*** yamamoto has quit IRC | 17:25 | |
*** jamesbenson has joined #openstack-horizon | 17:25 | |
*** tosky has quit IRC | 17:29 | |
*** itxaka has quit IRC | 17:30 | |
*** rdopiera has quit IRC | 17:41 | |
*** dave-mccowan has quit IRC | 17:41 | |
*** rdopiera has joined #openstack-horizon | 17:41 | |
*** tosky has joined #openstack-horizon | 17:51 | |
*** david-lyle has quit IRC | 17:56 | |
*** david-lyle has joined #openstack-horizon | 17:56 | |
*** ChanServ sets mode: +o david-lyle | 17:56 | |
*** jpich has quit IRC | 17:58 | |
*** hoonetorg has quit IRC | 18:06 | |
*** rmart04 has joined #openstack-horizon | 18:13 | |
*** yamamoto has joined #openstack-horizon | 18:22 | |
*** yamamoto has quit IRC | 18:26 | |
*** tonygunk has quit IRC | 18:38 | |
*** nikhil has joined #openstack-horizon | 18:39 | |
*** rama_y has quit IRC | 18:40 | |
*** rama_y has joined #openstack-horizon | 18:43 | |
*** lbragstad has quit IRC | 19:03 | |
*** lbragstad has joined #openstack-horizon | 19:07 | |
*** tsmith has joined #openstack-horizon | 19:16 | |
*** catintheroof has quit IRC | 19:20 | |
*** catintheroof has joined #openstack-horizon | 19:20 | |
*** yamamoto has joined #openstack-horizon | 19:23 | |
*** catintheroof has quit IRC | 19:24 | |
*** yamamoto has quit IRC | 19:28 | |
*** e0ne has joined #openstack-horizon | 19:30 | |
*** jtomasek has quit IRC | 19:42 | |
*** yohoffman has joined #openstack-horizon | 20:04 | |
*** tonygunk has joined #openstack-horizon | 20:08 | |
*** e0ne has quit IRC | 20:15 | |
*** e0ne has joined #openstack-horizon | 20:15 | |
*** e0ne has quit IRC | 20:16 | |
*** e0ne has joined #openstack-horizon | 20:16 | |
*** e0ne has quit IRC | 20:16 | |
*** e0ne has joined #openstack-horizon | 20:17 | |
*** e0ne has quit IRC | 20:17 | |
*** e0ne has joined #openstack-horizon | 20:17 | |
*** e0ne has quit IRC | 20:18 | |
*** e0ne has joined #openstack-horizon | 20:18 | |
*** e0ne has quit IRC | 20:19 | |
*** yamamoto has joined #openstack-horizon | 20:24 | |
*** tonygunk has quit IRC | 20:27 | |
*** yamamoto has quit IRC | 20:29 | |
*** jtomasek has joined #openstack-horizon | 20:31 | |
*** jtomasek has quit IRC | 20:42 | |
*** nikhil has quit IRC | 20:49 | |
*** jtomasek has joined #openstack-horizon | 20:51 | |
*** yamamoto has joined #openstack-horizon | 21:25 | |
*** yamamoto has quit IRC | 21:31 | |
*** hoonetorg has joined #openstack-horizon | 21:50 | |
*** jamesbenson has quit IRC | 22:05 | |
*** jtomasek has quit IRC | 22:22 | |
*** jtomasek has joined #openstack-horizon | 22:22 | |
*** lblanchard has quit IRC | 22:24 | |
*** yamamoto has joined #openstack-horizon | 22:27 | |
*** jtomasek has quit IRC | 22:27 | |
*** yamamoto has quit IRC | 22:32 | |
*** wolverineav has quit IRC | 22:57 | |
*** rama_y has quit IRC | 23:10 | |
*** rama_y has joined #openstack-horizon | 23:15 | |
*** yamamoto has joined #openstack-horizon | 23:29 | |
*** yamamoto has quit IRC | 23:35 | |
*** lbragstad has quit IRC | 23:35 | |
*** zhurong has joined #openstack-horizon | 23:52 | |
*** gyee has quit IRC | 23:53 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!