Monday, 2018-09-24

*** btully has joined #openstack-horizon00:19
*** btully has quit IRC00:24
*** lblanchard has joined #openstack-horizon00:25
*** hoangcx has joined #openstack-horizon00:41
*** btully has joined #openstack-horizon00:56
*** btully has quit IRC01:00
*** lblanchard has quit IRC01:06
*** btully has joined #openstack-horizon01:19
*** btully has quit IRC01:23
*** btully has joined #openstack-horizon01:24
*** btully has quit IRC01:33
*** btully has joined #openstack-horizon01:34
*** btully has quit IRC01:38
*** btully has joined #openstack-horizon01:39
*** rcernin has quit IRC01:40
*** rcernin has joined #openstack-horizon01:40
*** btully has quit IRC01:43
*** btully has joined #openstack-horizon01:45
*** btully has quit IRC01:49
*** btully has joined #openstack-horizon01:50
*** btully has quit IRC01:55
*** btully has joined #openstack-horizon01:57
*** btully has quit IRC02:01
*** btully has joined #openstack-horizon02:03
*** Bhujay has joined #openstack-horizon02:04
*** btully has quit IRC02:08
*** btully has joined #openstack-horizon02:09
*** Bhujay has quit IRC02:12
*** btully has quit IRC02:18
*** btully has joined #openstack-horizon02:18
*** btully has quit IRC02:23
*** btully has joined #openstack-horizon02:30
*** btully has quit IRC02:34
*** btully has joined #openstack-horizon03:26
*** btully has quit IRC03:30
*** btully has joined #openstack-horizon03:56
*** btully has quit IRC04:08
*** btully has joined #openstack-horizon04:09
*** btully has quit IRC04:13
*** btully has joined #openstack-horizon04:13
*** btully has quit IRC04:18
*** btully has joined #openstack-horizon04:19
*** btully has quit IRC04:37
*** btully has joined #openstack-horizon04:45
*** btully has quit IRC04:49
*** btully has joined #openstack-horizon04:53
*** btully has quit IRC04:57
*** btully has joined #openstack-horizon04:57
*** Bhujay has joined #openstack-horizon04:58
*** btully has quit IRC05:06
*** btully has joined #openstack-horizon05:09
*** btully has quit IRC05:13
*** btully has joined #openstack-horizon05:13
*** btully has quit IRC05:17
*** btully has joined #openstack-horizon05:26
*** btully has quit IRC05:34
*** dave-mccowan has joined #openstack-horizon05:36
*** jtomasek has joined #openstack-horizon05:37
*** btully has joined #openstack-horizon05:43
*** dayou has quit IRC05:43
*** dayou has joined #openstack-horizon05:44
*** btully has quit IRC05:51
*** btully has joined #openstack-horizon05:51
*** Bhujay has quit IRC05:53
*** Bhujay has joined #openstack-horizon05:59
*** btully has quit IRC05:59
*** pcaruana has joined #openstack-horizon06:05
*** btully has joined #openstack-horizon06:07
*** btully has quit IRC06:12
*** e0ne has joined #openstack-horizon06:23
*** ChanServ sets mode: +o e0ne06:23
*** btully has joined #openstack-horizon06:24
*** btully has quit IRC06:29
*** btully has joined #openstack-horizon06:36
*** belmoreira has joined #openstack-horizon06:36
*** gvrangan has joined #openstack-horizon06:38
*** e0ne_ has joined #openstack-horizon06:41
*** ChanServ sets mode: +o e0ne_06:41
*** e0ne has quit IRC06:44
*** btully has quit IRC06:44
*** btully has joined #openstack-horizon06:44
*** belmoreira has quit IRC06:45
*** belmoreira has joined #openstack-horizon06:47
*** btully has quit IRC06:49
*** btully has joined #openstack-horizon06:52
*** btully has quit IRC06:57
*** btully has joined #openstack-horizon07:00
*** rdopiera has joined #openstack-horizon07:04
*** rcernin has quit IRC07:06
*** btully has quit IRC07:09
*** btully has joined #openstack-horizon07:09
*** btully has quit IRC07:14
*** btully has joined #openstack-horizon07:17
*** ircuser-1 has joined #openstack-horizon07:20
*** btully has quit IRC07:22
*** btully has joined #openstack-horizon07:25
*** btully has quit IRC07:34
*** btully has joined #openstack-horizon07:34
*** btully has quit IRC07:42
*** gvrangan has quit IRC07:42
*** tosky has joined #openstack-horizon07:51
*** jpich has joined #openstack-horizon07:56
*** btully has joined #openstack-horizon07:58
*** btully has quit IRC08:02
*** btully has joined #openstack-horizon08:05
*** btully has quit IRC08:10
*** btully has joined #openstack-horizon08:14
*** openstackgerrit has quit IRC08:22
*** btully has quit IRC08:22
e0ne_rdopiera: hi Radomir. are you around?08:25
*** btully has joined #openstack-horizon08:26
rdopierae0ne_: I am, hello08:32
*** btully has quit IRC08:34
rdopierae0ne_: what about CVEs for jquery?08:35
*** btully has joined #openstack-horizon08:35
e0ne_rdopiera: it's a good question08:37
e0ne_rdopiera: I'm all to fix horizon to use newer JS libs08:37
rdopierathere has been a whole bunch of XSS-es for older jquery08:38
e0ne_rdopiera: but let's fix our gates first08:38
rdopieraok, so unblock the gate first, and then miograte to newer jquery08:38
*** Bhujay has quit IRC08:38
rdopieraI thought that the jquer-migrate was doing that for us08:38
e0ne_rdopiera: +208:38
e0ne_rdopiera: I'm looking into the maintainers section here: https://pypi.org/project/XStatic-jQuery/#history08:39
*** btully has quit IRC08:39
e0ne_rdopiera: do you know Thomas Waldmann?08:39
e0ne_all xstatic packages from the https://github.com/xstatic-py were updated last week08:39
rdopierayes, we worked on MoinMoin together08:39
adriante0ne_, rdopiera: after you fix the gate, would you be willing to take a look at: https://bugs.launchpad.net/horizon/+bug/1793411 ?08:39
openstackLaunchpad bug 1793411 in OpenStack Dashboard (Horizon) "Dashboard memory leaks" [Undecided,New]08:39
rdopierayes, in fact he messaged me about it08:39
adriantWe're hitting that really badly in production08:40
e0ne_adriant: :(08:40
adriantwe used to solve it with uwsgi max requests setting, but that has started killing workers too quickly and causing weird false logouts08:40
rdopierae0ne_: I plan to look at it, but at the moment I still have some blockers for osp14 and some regression testing08:41
adriante0ne_: but the uwsgi fix we had was only a fix over the underlying problem :(08:42
*** btully has joined #openstack-horizon08:42
e0ne_adriant: I didn't take a look on this issue yet08:43
rdopieraperhaps it would make sense to replace memoize with a MRU cache08:44
rdopierathen we have a guarantee it won't use more memory than what we set08:44
rdopieraof course then there is the problem of tweaking that setting08:44
e0ne_rdopiera: or use a memcache as an option08:45
rdopierahow does that help?08:45
adriantwell, memcache then handles the overflow08:46
adriantas it evacs any old or unused values08:46
rdopierawe mostly use memoize to avoid repeating api calls within the same request08:47
adriantwhich since you already will be using it for session caching isn't too bad08:47
rdopieraI wonder if we could explicitly clear it at the end of the request08:47
adriantthat's what I was playing with08:48
adriantsince I always assumed it was caching for the duration of just a request08:48
rdopieradepend on which api call08:48
rdopierabut it's mostly one request08:48
adriantcan we code it with an explicit expiry on the cached values and clear all expired ones after each request?08:50
adriantor might that add too much time to each request08:51
*** btully has quit IRC08:51
rdopieraI don't think time is the problem here, but it would need a substantial rewrite08:51
rdopieraas right now it keeps the cached values in a closure08:51
adriantoh that's right08:52
*** btully has joined #openstack-horizon08:55
*** btully has quit IRC08:59
*** btully has joined #openstack-horizon08:59
adriantultimately though it's just a rewrite of the util itself and maybe somewhere in the middleware to to clear it09:00
adriantI started playing with ways to solve it but was having issues because lots of javascript seemed broken on master :P09:01
*** btully has quit IRC09:07
*** gvrangan has joined #openstack-horizon09:08
e0ne_adriant: what exactly is broken on master?09:08
*** kukacz has quit IRC09:10
*** btully has joined #openstack-horizon09:11
*** kukacz has joined #openstack-horizon09:12
*** btully has quit IRC09:19
*** btully has joined #openstack-horizon09:20
*** btully has quit IRC09:28
rdopieralooking at the memoized code, it should be easy to add a "clear_memoized" function to the decorated function09:29
rdopierayou would still need to explicitly call it for every function you want cleared09:30
*** ianychoi_ has joined #openstack-horizon09:30
*** Bhujay has joined #openstack-horizon09:32
*** ianychoi has quit IRC09:34
rdopieraadriant: did you narrow it down to a particular function being decorated?09:34
*** Bhujay has quit IRC09:37
*** e0ne_ has quit IRC09:38
*** e0ne has joined #openstack-horizon09:38
*** ChanServ sets mode: +o e0ne09:38
*** btully has joined #openstack-horizon09:40
*** btully has quit IRC09:44
adriantrdopiera: not really, we notice it the most with stuff coming from the network topology panel (mostly coss it refreshes) but i think it's just a lot of small calls09:47
rdopieraadriant: it would be interesting to see which kind of function arguments is actually problematic09:47
rdopieraadriant: for example, strings and ints can't be weakrefed09:48
*** btully has joined #openstack-horizon09:48
rdopieraso if a function only takes those, it won't ever trigger the cleanup09:48
adriantrdopiera: maybe we can stick some extra debug logging into the function which tells us which function has values we can't weakref09:50
rdopieraadriant: all functions have such values, the problem only appears when all the values are like that09:52
*** btully has quit IRC09:53
rdopierahmm, we could weakref the request object and add cleanup on that...09:54
adriantOh I see, as long as one arg or param in the key is a weakref, then the delete call will clear the cache09:56
adrianti see09:56
*** btully has joined #openstack-horizon09:56
*** btully has quit IRC10:00
*** btully has joined #openstack-horizon10:01
*** Emine has joined #openstack-horizon10:01
*** openstackgerrit has joined #openstack-horizon10:02
openstackgerritRadomir Dopieralski proposed openstack/horizon master: Add clean_memoized to memorized functions  https://review.openstack.org/60472110:02
rdopieraadriant: can you try this? ^^10:02
*** e0ne has quit IRC10:08
*** btully has quit IRC10:09
*** btully has joined #openstack-horizon10:09
*** btully has quit IRC10:14
*** btully has joined #openstack-horizon10:17
*** btully has quit IRC10:21
*** btully has joined #openstack-horizon10:21
*** e0ne has joined #openstack-horizon10:27
*** ChanServ sets mode: +o e0ne10:27
*** btully has quit IRC10:30
*** btully has joined #openstack-horizon10:33
*** btully has quit IRC10:38
*** e0ne has quit IRC10:40
*** Bhujay has joined #openstack-horizon10:40
*** btully has joined #openstack-horizon10:42
*** btully has quit IRC10:46
*** btully has joined #openstack-horizon10:46
*** e0ne has joined #openstack-horizon10:49
*** ChanServ sets mode: +o e0ne10:49
adriantrdopiera: will take a look at it tomorrow :)10:50
*** btully has quit IRC10:54
*** btully has joined #openstack-horizon10:54
*** e0ne has quit IRC10:57
*** btully has quit IRC11:02
*** Bhujay has quit IRC11:02
*** Bhujay has joined #openstack-horizon11:05
*** btully has joined #openstack-horizon11:06
*** Bhujay has quit IRC11:06
*** Bhujay has joined #openstack-horizon11:07
*** Bhujay has quit IRC11:08
*** Bhujay has joined #openstack-horizon11:08
*** Bhujay has quit IRC11:09
*** Bhujay has joined #openstack-horizon11:10
*** btully has quit IRC11:11
*** Bhujay has quit IRC11:11
*** Bhujay has joined #openstack-horizon11:11
*** btully has joined #openstack-horizon11:16
*** mvkr has quit IRC11:17
*** btully has quit IRC11:20
*** mvkr has joined #openstack-horizon11:29
*** btully has joined #openstack-horizon11:32
*** btully has quit IRC11:37
*** btully has joined #openstack-horizon11:42
*** btully has quit IRC11:46
*** btully has joined #openstack-horizon11:48
*** btully has quit IRC11:53
*** btully has joined #openstack-horizon11:53
*** btully has quit IRC11:57
*** btully has joined #openstack-horizon11:58
*** btully has quit IRC12:03
*** btully has joined #openstack-horizon12:06
*** e0ne has joined #openstack-horizon12:10
*** ChanServ sets mode: +o e0ne12:10
*** btully has quit IRC12:11
*** btully has joined #openstack-horizon12:14
*** Bhujay has quit IRC12:15
*** Bhujay has joined #openstack-horizon12:16
rdopierae0ne: I started wondering... what if instead of having all those special workarounds for memoizing functions that take a request object, we simply made the request object hashable?12:20
e0nerdopiera: sounds good12:20
rdopierae0ne: something like def __hash__(self): return id(self)12:20
*** btully has quit IRC12:22
*** btully has joined #openstack-horizon12:26
*** btully has quit IRC12:31
*** btully has joined #openstack-horizon12:31
*** btully has quit IRC12:35
*** btully has joined #openstack-horizon12:39
*** Bhujay has quit IRC12:39
*** Bhujay has joined #openstack-horizon12:40
*** Bhujay has quit IRC12:41
*** Bhujay has joined #openstack-horizon12:41
*** btully has quit IRC12:43
*** btully has joined #openstack-horizon12:47
*** btully has quit IRC12:52
*** jadajada has joined #openstack-horizon12:52
*** jadajada has quit IRC12:53
*** jrist has joined #openstack-horizon13:00
*** btully has joined #openstack-horizon13:00
*** lblanchard has joined #openstack-horizon13:00
*** btully has quit IRC13:04
*** lbragstad has joined #openstack-horizon13:17
*** gvrangan has quit IRC13:24
*** btully has joined #openstack-horizon13:26
*** belmorei_ has joined #openstack-horizon13:30
*** btully has quit IRC13:30
*** belmoreira has quit IRC13:32
*** e0ne has quit IRC13:38
*** btully has joined #openstack-horizon13:44
*** e0ne has joined #openstack-horizon13:47
*** ChanServ sets mode: +o e0ne13:47
*** btully has quit IRC13:48
*** btully has joined #openstack-horizon13:48
*** btully has quit IRC14:01
*** belmorei_ has quit IRC14:19
openstackgerritRadomir Dopieralski proposed openstack/horizon master: Add clean_memoized to memorized functions  https://review.openstack.org/60472114:19
*** belmoreira has joined #openstack-horizon14:30
*** dave-mccowan has quit IRC14:50
*** Bhujay has quit IRC15:07
*** btully has joined #openstack-horizon15:09
*** dave-mccowan has joined #openstack-horizon15:12
*** btully has quit IRC15:13
*** dave-mccowan has quit IRC15:17
*** dave-mccowan has joined #openstack-horizon15:23
*** btully has joined #openstack-horizon15:44
*** btully has quit IRC15:49
*** e0ne has quit IRC16:01
*** lbragstad has quit IRC16:10
*** lbragstad has joined #openstack-horizon16:18
*** rdopiera has quit IRC16:27
*** dave-mccowan has quit IRC16:38
*** jpich has quit IRC16:50
*** btully has joined #openstack-horizon16:57
*** btully has quit IRC17:01
*** btully has joined #openstack-horizon17:02
*** belmoreira has quit IRC17:04
*** btully has quit IRC17:06
*** btully has joined #openstack-horizon17:09
*** btully has quit IRC17:13
*** btully has joined #openstack-horizon17:17
*** btully has quit IRC17:21
*** btully has joined #openstack-horizon17:22
*** mvkr has quit IRC17:25
*** btully has quit IRC17:26
*** tosky has quit IRC17:30
*** btully has joined #openstack-horizon17:32
*** dave-mccowan has joined #openstack-horizon17:35
*** btully has quit IRC17:36
*** e0ne has joined #openstack-horizon18:06
*** ChanServ sets mode: +o e0ne18:06
*** ediardo has joined #openstack-horizon18:07
*** coreycb has joined #openstack-horizon18:12
*** btully has joined #openstack-horizon18:13
*** mvkr has joined #openstack-horizon18:15
*** btully has quit IRC18:18
*** btully has joined #openstack-horizon18:24
*** btully has quit IRC18:28
*** btully has joined #openstack-horizon18:28
*** btully has quit IRC18:33
*** btully has joined #openstack-horizon18:38
*** btully has quit IRC18:42
*** ianychoi_ is now known as ianychoi18:54
*** tosky has joined #openstack-horizon19:11
*** pcaruana has quit IRC19:17
*** btully has joined #openstack-horizon19:20
*** btully has quit IRC19:24
*** btully has joined #openstack-horizon20:10
*** btully has quit IRC20:15
*** btully has joined #openstack-horizon20:24
*** lblanchard has quit IRC20:28
*** btully has quit IRC20:28
*** btully has joined #openstack-horizon20:35
*** e0ne has quit IRC20:37
*** btully has quit IRC20:43
*** btully has joined #openstack-horizon20:57
*** btully has quit IRC21:02
*** btully has joined #openstack-horizon21:32
*** btully has quit IRC21:36
*** jtomasek has quit IRC21:37
*** btully has joined #openstack-horizon21:50
*** btully has quit IRC21:55
*** Emine has quit IRC22:03
*** jonmills_nasa has joined #openstack-horizon22:09
jonmills_nasaI am seeing an issue in Queens where images uploaded to Glance via CLI work fine, but images uploaded via Horizon fail to be associated with a project/tenant.  The image appears as "Image from Other Project"22:12
jonmills_nasaI also see things in horizon error log related to problems with oslo.policy22:13
jonmills_nasa"[:error] [pid 5654] DEBUG:oslo_policy.policy:Rule [default] does not exist"22:13
jonmills_nasa"[:error] [pid 5654] DEBUG:oslo_policy.policy:Rule [admin_and_matching_domain_id] does not exist"22:13
jonmills_nasaAll of the policy files exist beneath /etc/openstack-dashboard, and are readable22:14
*** rcernin has joined #openstack-horizon22:45
*** kukacz_ has joined #openstack-horizon22:55
*** dims_ has joined #openstack-horizon22:59
*** kukacz has quit IRC23:00
*** dims has quit IRC23:00
*** fbouliane has quit IRC23:00
*** tosky has quit IRC23:03
*** jonmills_nasa has quit IRC23:29
*** btully has joined #openstack-horizon23:39
openstackgerritAdrian Turjak proposed openstack/horizon master: Ugly fix to clear memo cache every request  https://review.openstack.org/60493423:39
*** btully has quit IRC23:43
openstackgerritAdrian Turjak proposed openstack/horizon master: Ugly fix to clear memo cache every request  https://review.openstack.org/60493423:55

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