Tuesday, 2019-06-25

*** btully has joined #openstack-horizon00:11
*** btully has quit IRC00:19
*** btully has joined #openstack-horizon00:23
*** btully has quit IRC00:36
*** btully has joined #openstack-horizon00:40
*** btully has quit IRC00:44
*** btully has joined #openstack-horizon00:45
*** spatel has joined #openstack-horizon00:48
*** btully has quit IRC00:49
*** dayou_ has quit IRC00:56
*** duochao has joined #openstack-horizon00:59
*** spatel has quit IRC01:26
*** BjoernT has quit IRC01:31
*** dayou_ has joined #openstack-horizon01:36
*** btully has joined #openstack-horizon01:45
*** rcernin has quit IRC01:48
*** rcernin has joined #openstack-horizon01:48
*** btully has quit IRC01:49
*** btully has joined #openstack-horizon01:51
*** btully has quit IRC01:55
*** whoami-rajat has joined #openstack-horizon02:07
*** rcernin has quit IRC02:42
*** rcernin has joined #openstack-horizon02:42
*** rcernin has quit IRC03:04
*** rcernin has joined #openstack-horizon03:04
*** fyx has quit IRC03:18
*** mnaser has quit IRC03:19
*** fyx has joined #openstack-horizon03:19
*** mnaser has joined #openstack-horizon03:20
*** BjoernT has joined #openstack-horizon03:26
*** rcernin has quit IRC03:30
*** rcernin has joined #openstack-horizon03:31
*** BjoernT has quit IRC03:31
*** BjoernT has joined #openstack-horizon03:35
*** btully has joined #openstack-horizon03:51
*** btully has quit IRC03:55
*** btully has joined #openstack-horizon04:00
*** btully has quit IRC04:04
*** btully has joined #openstack-horizon04:08
*** btully has quit IRC04:12
*** btully has joined #openstack-horizon04:12
*** BjoernT has quit IRC04:18
*** btully has quit IRC04:25
*** btully has joined #openstack-horizon05:02
*** btully has quit IRC05:11
*** btully has joined #openstack-horizon05:12
*** btully has quit IRC05:17
*** btully has joined #openstack-horizon05:23
*** btully has quit IRC05:27
*** mlycka has joined #openstack-horizon05:31
*** jtomasek has joined #openstack-horizon05:51
*** pcaruana has joined #openstack-horizon05:56
*** pcaruana has quit IRC05:57
*** pcaruana has joined #openstack-horizon05:57
*** btully has joined #openstack-horizon06:02
*** btully has quit IRC06:07
*** e0ne has joined #openstack-horizon06:29
*** ChanServ sets mode: +o e0ne06:29
*** cshen has joined #openstack-horizon06:34
*** rcernin has quit IRC06:41
*** altlogbot_1 has quit IRC06:46
*** altlogbot_1 has joined #openstack-horizon06:49
*** altlogbot_1 has quit IRC06:50
*** yoctozepto has joined #openstack-horizon06:51
yoctozeptohello horizon devs, kolla dev here, we have been hit by https://opendev.org/openstack/horizon/commit/4e911e2889ebe7f0a577a0323649dceb9cef363c (Explicitly set LOCALE_PATHS for Horizon apps), details and my current solution are here: https://review.opendev.org/667204 in short: we were compiling messages for all dashboards/uis in a loop using horizon manage.py and this latest horizon change caused them to do needless work06:53
yoctozeptoplease advise whether the proposed solution is the correct approach06:54
*** altlogbot_1 has joined #openstack-horizon06:55
*** e0ne has quit IRC06:57
*** jpich has joined #openstack-horizon07:07
*** btully has joined #openstack-horizon07:08
*** tesseract has joined #openstack-horizon07:11
*** btully has quit IRC07:13
*** rdopiera has joined #openstack-horizon07:17
*** btully has joined #openstack-horizon07:24
*** btully has quit IRC07:28
*** tosky has joined #openstack-horizon07:28
*** jtomasek has quit IRC07:31
*** jtomasek has joined #openstack-horizon07:32
*** Emine has joined #openstack-horizon07:33
amotokiyoctozepto: not all folks are always online. please file a bug to horizon if you hit an issue around the change of LOCALE_PATHS.07:34
amotokiyoctozepto: LOCALE_PATHS was set several releases ago (with relative paths). Django searches 'locale' dir in all django apps and the old LOCALE_PATHS was unnecessary so it was dropped.07:35
amotokiyoctozepto: LOCALE_PATHS was previously set, so I don't see a reason the change in horizon affects kolla build...07:36
amotokiyoctozepto: does kolla do something special around horizon plugins?07:36
yoctozeptoamotoki: we loop over all plugin directories to compile messages, it used not to recompile all messages for horizon, openstack_dashboard, openstack_auth, yet now it does07:38
amotokiyoctozepto: perhaps e0ne knows more than me. According to his commit msg, it seems a django bug or expected behavior (I am not sure) and a workaround is needed.07:38
amotokiyoctozepto: do you mean kolla depends on LOCALE_PATHS?07:38
yoctozeptoamotoki: in a sense, yes, we do: for locale in  /var/lib/kolla/venv/lib/python{{distro_python_version}}/site-packages/*/locale; do \07:39
yoctozepto           (cd ${locale%/*} && /var/lib/kolla/venv/bin/python /var/lib/kolla/venv/bin/manage.py compilemessages) \07:39
yoctozepto       done \07:39
yoctozepto(did at least)07:39
yoctozeptomanage.py is the one from horizon which sets the settings07:40
yoctozeptodoing it this way triggers extra compilations with each invocatin07:40
yoctozeptoit caused timeout in our CI because CentOS gettext seems to be slow07:40
yoctozeptoand doing it 40+ times had its best07:41
*** btully has joined #openstack-horizon07:56
*** e0ne has joined #openstack-horizon08:01
*** ChanServ sets mode: +o e0ne08:01
amotokiyoctozepto: I tested with horizon+neutron-fwaas-dashboard master latest but it seems to work expected http://paste.openstack.org/show/753338/08:02
amotokiyoctozepto: I will be offline a while. I will check irc logs later when back to online a bit later08:03
*** btully has quit IRC08:05
yoctozeptoamotoki: the problem is not that it does not work but that it resulted in a ton of unnecessary recompilations - your example did openstack_auth, openstack_dashboard and horizon along with neutron-fwaas-dashboard - now imagine the same but for all languages and each such plugin08:05
*** btully has joined #openstack-horizon08:06
yoctozeptoubuntu copes with the extra work but centos 7 seems to have slow gettext which cannot deal with such amount of work08:06
* e0ne reading irc logs to understand the issue08:07
*** btully has quit IRC08:10
yoctozeptosee http://logs.openstack.org/15/666015/3/gate/kolla-build-centos-source/423deec/logs/build/horizon.txt.gz for example of such a run08:10
e0neyoctozepto: sorry, I still don't understand what is the issue :(08:27
*** tkajinam has quit IRC08:27
*** tkajinam has joined #openstack-horizon08:28
*** tkajinam has quit IRC08:29
yoctozeptoe0ne: the issue is the change in behavior - pre that change we did fine with that loop because it only triggered compilation of the locales files in cwd08:34
yoctozeptopost it we get recompilations for _auth, _dashboard and horizon extra for each such module08:35
yoctozepto(which combined with centos slowness caused our recent problems)08:36
yoctozeptoI switched to using django-admin in my patch to kolla but wonder whether this is the right approach, it works for us but I am not django-expert08:37
amotokiyoctozepto: My test result above did the same thing as you do.....08:44
amotokiyoctozepto: it installs horizon into a virtualenv, cd to each plugin dir and then run compilemessages. Is there any difference?08:45
amotokiyoctozepto: from my test result, horizon change does not affect compilemessages....08:45
amotokiyoctozepto: what is the problem? do you mean compilemessages needs more time after that change?08:47
yoctozeptoamotoki: yes, exactly, due to repetitive recompilations and these seem to have started for us with that commit08:48
yoctozeptopreviously it only did the project it was currently in08:49
amotokie0ne: btw, is your change on LOCALE_PATHS caused caused by a djnago bug or is it the expected behavior of Django?08:49
amotokie0ne: I see no Django bug report mentioned in your commit, so I am wondering your change works but am not sure it is the right approach or not now.08:50
amotokie0ne: in addition, horizon plugins would hit in the same problem in ch-tw as dklyle mentioned yesterday here.08:50
amotokiyoctozepto: okay, understood. As of now, the bug fix fixed by that change is much more important rather than compilation time (critical vs wishlist) so we need a working alternative instead of reverting the change to address your problem.08:53
yoctozeptoamotoki: it's ok, I never demanded a revert in the first place :D my question is whether I might be doing something utterly wrong by using django-admin instead which fixes our problem and does not seem to cause any problems at the first glance08:56
*** priteau has joined #openstack-horizon08:56
*** btully has joined #openstack-horizon09:09
e0nedjango loads locales by relative paths and it doesn't work now for deprecated chaneese locale names09:11
*** btully has quit IRC09:14
e0neamotoki, yoctozepto: it would be good to switch to the new locale names, but this affects our translation team. I need to figure out how to proceed  this09:14
yoctozeptoamotoki, e0ne: sorry for being repetitive myself but can you answer the question whether doing this via django-admin instead of via manage.py has some repercussions :D09:16
e0neafaik, manage.py and django-admin should work in the same way09:17
yoctozeptoe0ne: django-admin does not reference the horizon settings.py09:18
yoctozeptobut would it affect compilemessages in a bad way?09:18
yoctozeptoif we are doing it for every project that has some locales09:18
e0neI don't understand how it affects compilemessages09:19
e0nefrom horizon perspective, we just drop django's localization messages and explicitly set what we want to use09:20
e0neyoctozepto: anyway, could you please file a bug for horizon?09:38
yoctozeptoe0ne: sure09:43
e0nethanks09:43
*** duochao has quit IRC10:39
openstackgerritOpenStack Proposal Bot proposed openstack/horizon master: Imported Translations from Zanata  https://review.opendev.org/66732711:00
*** e0ne has quit IRC11:05
*** e0ne has joined #openstack-horizon11:05
*** ChanServ sets mode: +o e0ne11:05
*** cshen has quit IRC11:10
*** cshen has joined #openstack-horizon11:19
*** btully has joined #openstack-horizon11:23
*** btully has quit IRC11:27
*** btully has joined #openstack-horizon11:38
*** btully has quit IRC11:42
*** priteau has quit IRC11:43
*** spatel has joined #openstack-horizon11:55
*** spatel has quit IRC12:00
openstackgerritMerged openstack/horizon master: Imported Translations from Zanata  https://review.opendev.org/66732712:28
*** btully has joined #openstack-horizon12:30
*** btully has quit IRC12:37
*** btully has joined #openstack-horizon12:39
*** btully has quit IRC12:43
*** btully has joined #openstack-horizon12:47
*** btully has quit IRC12:51
*** btully has joined #openstack-horizon13:06
*** lseki has joined #openstack-horizon13:10
*** btully has quit IRC13:10
*** whoami-rajat has quit IRC13:16
*** btully has joined #openstack-horizon13:19
*** btully has quit IRC13:24
*** cshen_ has joined #openstack-horizon13:26
*** cshen has quit IRC13:29
amotokie0ne: do you have any specific plan to switch Chinese lang codes to the new ones used by Django?13:29
amotokie0ne: this needs coordination among infra, i18n and horizon teams.13:30
amotokie0ne: Especially we need to discuss what lang codes we would like to use in zanata. Also we need to discuss what lang codes for doc website.13:32
*** dave-mccowan has joined #openstack-horizon13:32
e0neamotoki: it's on top of my TODOs list. I'm going to attend the meeting if there is one with i18n team next week13:33
e0neI'm not familiar with zanata now :(13:33
amotokido you mean the i18n meeting?13:35
*** BjoernT has joined #openstack-horizon13:37
*** openstackgerrit has quit IRC13:48
*** spatel has joined #openstack-horizon13:52
*** spatel has quit IRC13:52
e0neamotoki: yes13:53
*** vmarkov has joined #openstack-horizon13:58
*** btully has joined #openstack-horizon14:06
*** btully has quit IRC14:10
*** btully has joined #openstack-horizon14:13
*** btully has quit IRC14:18
*** btully has joined #openstack-horizon14:36
*** btully has quit IRC14:40
amotokie0ne: sounds nice. While I know the context around this, I don't attend the i18n meeting recently due to conflict with weekly f2f meetings.14:47
amotokie0ne: I mentioned some in #-i18n channel. If someone wants me to write more context, I can send a mail to the mailing list but would like to wait responses for a while.14:48
*** e0ne has quit IRC15:26
*** BjoernT_ has joined #openstack-horizon15:29
*** yan0s has joined #openstack-horizon15:30
*** BjoernT has quit IRC15:30
*** btully has joined #openstack-horizon15:33
*** btully has quit IRC15:37
*** Emine has quit IRC15:39
*** btully has joined #openstack-horizon15:49
*** cshen_ has quit IRC15:49
*** btully has quit IRC15:53
*** btully has joined #openstack-horizon15:57
*** BjoernT has joined #openstack-horizon16:00
*** btully has quit IRC16:01
*** BjoernT_ has quit IRC16:02
*** yan0s has quit IRC16:05
*** btully has joined #openstack-horizon16:05
*** mlycka has quit IRC16:09
*** btully has quit IRC16:10
*** btully has joined #openstack-horizon16:18
*** btully has quit IRC16:22
*** btully has joined #openstack-horizon16:25
*** btully has quit IRC16:29
*** tesseract has quit IRC16:35
*** tesseract has joined #openstack-horizon16:36
*** btully has joined #openstack-horizon16:41
*** btully has quit IRC16:46
*** btully has joined #openstack-horizon16:48
*** jpich has quit IRC16:56
*** btully has quit IRC16:57
*** tesseract has quit IRC16:59
*** jtomasek has quit IRC17:21
*** vmarkov has quit IRC17:52
*** btully has joined #openstack-horizon17:58
*** btully has quit IRC18:02
*** btully has joined #openstack-horizon18:39
*** btully has quit IRC18:43
*** ianychoi_ has quit IRC18:49
*** ianychoi_ has joined #openstack-horizon18:50
*** e0ne has joined #openstack-horizon19:07
*** ChanServ sets mode: +o e0ne19:07
*** jtomasek has joined #openstack-horizon19:19
*** e0ne has quit IRC19:31
*** pcaruana has quit IRC19:38
*** tosky has quit IRC19:40
*** btully has joined #openstack-horizon20:00
*** btully has quit IRC20:05
*** e0ne has joined #openstack-horizon20:18
*** ChanServ sets mode: +o e0ne20:18
*** e0ne has quit IRC20:32
*** btully has joined #openstack-horizon20:55
*** ianychoi_ has quit IRC20:59
*** btully has quit IRC21:00
*** ianychoi_ has joined #openstack-horizon21:00
*** ianychoi_ has quit IRC21:05
*** btully has joined #openstack-horizon21:05
*** ianychoi_ has joined #openstack-horizon21:09
*** btully has quit IRC21:10
*** btully has joined #openstack-horizon21:13
*** btully has quit IRC21:17
*** ianychoi_ is now known as ianychoi21:18
*** jtomasek has quit IRC21:24
*** Emine has joined #openstack-horizon21:45
*** tobberydberg has quit IRC21:49
*** tobberydberg has joined #openstack-horizon21:51
*** rdopiera has quit IRC22:02
*** Emine has quit IRC22:07
*** BjoernT has quit IRC22:23
*** btully has joined #openstack-horizon22:39
*** btully has quit IRC22:43
*** tkajinam has joined #openstack-horizon22:56
*** rcernin has joined #openstack-horizon23:05
*** lseki has quit IRC23:26
*** btully has joined #openstack-horizon23:28
*** btully has quit IRC23:33

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