Wednesday, 2020-09-23

*** zigo has quit IRC00:53
*** gyee has quit IRC01:33
*** spatel has joined #openstack-horizon01:44
*** tkajinam_ has joined #openstack-horizon02:17
*** jrosser_ has joined #openstack-horizon02:19
*** zigo has joined #openstack-horizon02:26
*** tkajinam has quit IRC02:27
*** johnsom has quit IRC02:27
*** jrosser has quit IRC02:27
*** jrosser_ is now known as jrosser02:27
*** johnsom has joined #openstack-horizon02:33
*** spatel has quit IRC04:18
-openstackstatus- NOTICE: A failing log storage endpoint has been removed, you can recheck any recent jobs with POST_FAILURE where logs have failed to upload04:44
*** vishalmanchanda has joined #openstack-horizon05:19
amotokivishalmanchanda: question on https://review.opendev.org/#/c/752016/  how can we test client-side messages?05:47
amotokivishalmanchanda: reply to your IRC message on horizon RC1 yesterday. Do you know there is no RC in horizon? It seems you still follow cycle-with-rc model....05:48
amotokivishalmanchanda: horizon now adopts cycle-with-intermediary model, so the next target date is R-1 week ie Oct 5.05:49
vishalmanchandaamotoki: hi, honestly I didn't find a way to test this bug https://bugs.launchpad.net/horizon/+bug/1895570 for client-side messages but I am pretty sure Ivan patch wok for client-side messages as well.05:53
openstackLaunchpad bug 1895570 in OpenStack Dashboard (Horizon) "when multiple error popups are shown we cannot show details of second or later popups" [High,In progress] - Assigned to Ivan Kolodyazhny (e0ne)05:53
amotokivishalmanchanda: hmm...05:54
vishalmanchandaamotoki: although I have checked it work for single error message in client-side and it worked fine.05:54
amotokivishalmanchanda: I am wondering how  Date.now() is unique enough. What is the resolution?05:56
amotokivishalmanchanda: according to the spec, the resolution is milisecond, so it works as long as multiple msgs are processed in a same milisecond.05:57
vishalmanchandaamotoki: ok let me check a real scenario for multiple error messages on client side with Ivan patch.05:59
vishalmanchandaamotoki: btw do you think we can use something else for unique id rather than Date.06:03
amotokivishalmanchanda: no idea. I just would like to test it in real envs.06:05
amotokivishalmanchanda: I am not talking about theoretical behavior. it is just a side discussion.06:05
*** ianychoi_ is now known as ianychoi06:16
amotokivishalmanchanda: how did you test single error message in client-side?06:31
amotokivishalmanchanda: I just cannot remember how I tested it...06:31
vishalmanchandaamotoki: just add redirect parameter in exception.handle()06:32
amotokivishalmanchanda: in which file?06:32
vishalmanchandaamotoki: I have test it for https://opendev.org/openstack/horizon/src/branch/master/openstack_dashboard/dashboards/admin/volume_types/forms.py#L13206:33
amotokivishalmanchanda: thanks. I will try it. In case of modal forms like "Create Network", server-side message (forloop.count) is used, so I wondered why.06:34
vishalmanchandaamotoki: Admin->Volume_type->Click_on_create_encryption->Enter_any_value an then you will get an error06:35
*** e0ne has joined #openstack-horizon06:41
*** ChanServ sets mode: +o e0ne06:41
*** e0ne has quit IRC06:45
*** dklyle has quit IRC06:47
*** jtomasek has joined #openstack-horizon06:59
*** rdopiera has joined #openstack-horizon07:05
amotokivishalmanchanda: https://opendev.org/openstack/horizon/src/branch/master/openstack_dashboard/dashboards/admin/volume_types/forms.py#L132 you mentioned has redirect parameter.07:07
amotokivishalmanchanda: do you mean dropping redirect from there?07:07
vishalmanchandaamotoki: no need to drop redirect from there.07:08
vishalmanchandaamotoki: What I mean every exception.handle function which have redirect parameter will use client_side/_alert_message.html template for  error messages display.07:10
vishalmanchandaamotoki: oops sorry for confusion yeah drop redirect from there07:11
vishalmanchandaamotoki: Also make sure  a volume is already created with that"volume_type" which try to encrypt and just remove redirect parameter from exceptions.handle() and you will get an error message.07:15
*** tosky has joined #openstack-horizon07:19
amotokivishalmanchanda: I tested the client-side msg by dropping redirect parameter there, doublingexceptions.handle() there with different messages, and inserting "raise Exception(...)" in handle().07:20
amotokivishalmanchanda: I got two messages and ID of the two messages are different only by 2 miliseconds.07:20
amotokivishalmanchanda: message_details_1600845471116 and message_details_1600845471118.... they looks too close and I cannot say they are safe enough.07:21
vishalmanchandaamotoki: hmm 2 miliseconds...07:22
amotokivishalmanchanda: perhaps UUID is safer07:24
vishalmanchandaamotoki: ok then we can use UUID.07:28
vishalmanchandaamotoki: Could you please comments your finding on the patch https://review.opendev.org/#/c/752016/  as well.07:29
*** rcernin has quit IRC07:45
*** priteau has joined #openstack-horizon07:50
*** kevko has joined #openstack-horizon07:51
*** rdopiera has quit IRC07:51
*** tkajinam_ is now known as tkajinam08:34
*** priteau has quit IRC08:56
*** vinay_m has joined #openstack-horizon10:17
vinay_mhi all , i have doubt ,with enabling debug-logs for horizon , as it is different from other services10:19
vinay_mcan anyone help me out with this?10:19
vishalmanchandavinay_m: hi, I think you can enable logs from local_settings.py file.10:23
amotokivishalmanchanda: I added a comment on your cinder message tests https://review.opendev.org/#/c/750882/710:37
amotokivishalmanchanda: I confirmed the message table says "No items to display."10:38
amotokivishalmanchanda: In most popular cases,  it looks like something goes wrong in your mocks.10:38
amotokivishalmanchanda: I don't investigate more. thanks.10:38
vishalmanchandaamotoki: ok thanks for review will look into it.10:40
amotokivinay_m: horizon is a web service, so a way to enable debug log is a bit different.10:41
amotokivinay_m: setting DEBUG=True in local_settings.py just enables the debug mechanism of Django which is a framework horizon depends on.10:41
amotokivinay_m: To enable debug log, you need to configure LOGGING setting in local_settings.py.10:42
amotokivinay_m: in typical cases, you need to change LOGGING['handlers']['console']['class'] to 'DEBUG'. IRC the default value is 'INFO'.10:43
amotokivinay_m: perhaps vishalmanchanda's advise is a bit unclear.10:43
vishalmanchandaI run the horizon on a development server using this command "python manage.py runserver" and I just set "DEBUG = True" in my  local_settings.py file for debug logs.10:47
*** e0ne has joined #openstack-horizon11:12
*** ChanServ sets mode: +o e0ne11:12
amotokivishalmanchanda: that's because https://opendev.org/openstack/horizon/src/branch/master/openstack_dashboard/local/local_settings.py.example#L16411:13
e0neamotoki: hi. do you have a time to discuss https://review.opendev.org/#/c/752016/4/horizon/static/horizon/js/horizon.messages.js?11:34
*** kevko has quit IRC11:37
amotokie0ne: hi11:42
e0neamotoki: Date.now() returns returns the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC. (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now)11:43
e0neand browsers executes JS in a single-thread only, so it can't be conflicting11:43
amotokie0ne: do you mean at least one second is guranteed?11:44
e0neamotoki: is you change https://opendev.org/openstack/horizon/src/branch/master/openstack_dashboard/dashboards/admin/volume_types/forms.py#L132 to raise an exception, it will use djang-based template https://review.opendev.org/#/c/752016/4/horizon/templates/horizon/_messages.html11:44
amotokie0ne: as I commented in the comment, when I tested I dropped 'redirect' parameter, so client-side message is used.11:45
e0neamotoki: got it, I'll re-check11:45
e0neamotoki: technically, it can return the same date im milliseconds11:46
amotokie0ne: I am not sure the proposed change is a final solution or just a workaround towards the release.11:47
amotokie0ne: I am now trying UUID approach by borrowing an UUID impl from https://www.w3resource.com/javascript-exercises/javascript-math-exercise-23.php11:47
e0neamotoki: I hope that client-side version will be a final11:49
e0nebut who knows11:49
e0neamotoki: we've got this https://github.com/openstack/horizon/blob/4e0ee573db4561dc7e0c10835d31d73eddb12aca/horizon/static/framework/util/uuid/uuid.js#L29 already11:49
*** vinay_m has quit IRC11:50
amotokie0ne: can we consume a function defined in AngularJS module in non-AngularJS module? it might be a stupid question.11:51
e0neamotoki: AFAIK, we can't:(11:51
*** vinay_m has joined #openstack-horizon11:52
amotokie0ne: but the code is exactly same as I mentioned above, so we can borrow it.11:52
*** kevko has joined #openstack-horizon11:56
vinay_m<amotoki> Thanks for these configuration suggestions. At last after these to get those debug logs from console i should run the command which <vishalmanchanda> mentioned "python manage.py runserver" ..right?11:59
amotokivinay_m: it depends on how you deploy horizon.12:00
amotokivinay_m: "python manage.py runserver" is only for development.12:00
*** tosky_ has joined #openstack-horizon12:02
vinay_mi use devstack ussuri version deployed in a vm12:02
*** tosky is now known as Guest7321912:03
*** tosky_ is now known as tosky12:03
amotokivinay_m: If so, it should work for apache based deployment in devstack.12:03
amotokivinay_m: one thing I wonder is DEBUG should be enabled in devstack ussuri by default. At least DEBUG is enabled in ussuri devstack.12:05
*** Guest73219 has quit IRC12:05
*** ianychoi has left #openstack-horizon12:08
e0neamotoki: I've got working PoC12:10
e0neamotoki: need to check for angular-based panel that I didn't break uuid generator12:10
amotoki:)12:10
vinay_mamotoki: yes Debug is set to true under openstack_dashboard/local/local_settings.py12:11
vinay_mso logs are generated under /var/log/apache2 dir12:12
vinay_munder which they were specific logs like horizon_access.log, horizon_error.log12:13
vinay_mso i'm not aware of these debug logs where will be generating12:14
amotokivinay_m: horizon_access.log is just logged by apache12:19
amotokivinay_m: horizon_error.log records standard errors from WSGI application i.e. horizon on top of Django in this case.12:19
amotokivinay_m: when using apache mod_wsgi, all data sent to standard error is directed to the apache logging system and then recorded into a corresponding apache error log.12:21
*** admin0 has joined #openstack-horizon12:26
openstackgerritIvan Kolodyazhny proposed openstack/horizon master: Set unique identifier for Django messages  https://review.opendev.org/75201612:28
e0neamotoki:  here is it ^^12:29
amotokie0ne: thanks. Did you forget to add horizon/static/horizon/js/horizon.uuid.js?12:34
e0nei did:(12:34
openstackgerritIvan Kolodyazhny proposed openstack/horizon master: Set unique identifier for Django messages  https://review.opendev.org/75201612:34
*** priteau has joined #openstack-horizon12:35
amotokie0ne: thanks. you already did it :)12:35
e0ne:)12:36
e0neamotoki: I didn'12:37
e0neamotoki: I didn't find a solution to use angular-defined function in a pain js function, so I defined it in a pure js and re-use in angular12:38
amotokie0ne: it sounds reasonable to me too.12:39
e0neamotoki: it seems that https://review.opendev.org/#/c/752016/6/horizon/static/framework/util/uuid/uuid.js is not really needed anymore12:39
e0neamotoki: I left if for 2 reasons:12:39
e0ne#1) it has some unit tests12:39
e0ne2) I don't want to make such big changes right before release/rc12:40
amotokie0ne: thanks for checking it. sounds good at the moment.12:45
e0neamotoki: thanks for the feedback12:45
amotokie0ne: I don't know the motivation that uuid angular module was implemented though.12:46
*** tkajinam has quit IRC12:51
*** tkajinam has joined #openstack-horizon12:52
openstackgerritIvan Kolodyazhny proposed openstack/horizon master: Set unique identifier for Django messages  https://review.opendev.org/75201613:01
*** tosky_ has joined #openstack-horizon13:26
*** tosky is now known as Guest1333613:26
*** tosky_ is now known as tosky13:26
*** Guest13336 has quit IRC13:28
*** tosky_ has joined #openstack-horizon13:29
*** tosky is now known as Guest6102013:31
*** tosky_ is now known as tosky13:31
*** Guest61020 has quit IRC13:32
*** kevko has quit IRC13:37
*** tmazur has joined #openstack-horizon13:51
*** kevko has joined #openstack-horizon14:04
*** tkajinam has quit IRC14:05
vinay_mamotoki: Thanks sir! it's working14:14
*** vinay_m has quit IRC14:38
*** kevko has quit IRC14:42
*** dklyle has joined #openstack-horizon14:48
*** ChanServ sets mode: +o dklyle14:48
*** gyee has joined #openstack-horizon15:45
*** tosky has quit IRC15:59
*** priteau has quit IRC17:02
*** jtomasek has quit IRC17:41
*** e0ne has quit IRC17:56
*** chenhaw has joined #openstack-horizon18:19
*** spatel has joined #openstack-horizon18:57
*** spatel has quit IRC19:02
*** tosky has joined #openstack-horizon19:15
*** dklyle sets mode: -o dklyle19:42
*** vishalmanchanda has quit IRC20:38
*** viks____ has quit IRC20:49
*** vkmc has quit IRC20:49
*** fyx has quit IRC20:49
*** jrosser has quit IRC20:50
*** rpittau|afk has quit IRC20:50
*** coreycb has quit IRC20:50
*** gmann has quit IRC20:50
*** CeeMac has quit IRC20:51
*** NobodyCam has quit IRC20:51
*** vkmc has joined #openstack-horizon20:51
*** kklimonda has quit IRC20:52
*** CeeMac has joined #openstack-horizon20:52
*** coreycb has joined #openstack-horizon20:52
*** NobodyCam has joined #openstack-horizon20:52
*** kklimonda has joined #openstack-horizon20:52
*** jrosser has joined #openstack-horizon20:52
*** fyx has joined #openstack-horizon20:52
*** rpittau|afk has joined #openstack-horizon20:53
*** gmann has joined #openstack-horizon20:53
*** rcernin has joined #openstack-horizon22:46
*** CeeMac has quit IRC22:50
*** johnsom has quit IRC22:50
*** ShadowJonathan has quit IRC22:50
*** andrein has quit IRC22:50
*** jberg-dev has quit IRC22:50
*** coreycb has quit IRC22:50
*** fyx has quit IRC22:50
*** mnaser has quit IRC22:50
*** NobodyCam has quit IRC22:51
*** vkmc has quit IRC22:51
*** CeeMac has joined #openstack-horizon22:51
*** ShadowJonathan has joined #openstack-horizon22:51
*** kklimonda has quit IRC22:51
*** andrein has joined #openstack-horizon22:52
*** fyx has joined #openstack-horizon22:52
*** kklimonda has joined #openstack-horizon22:52
*** rm_work has quit IRC22:52
*** mnaser has joined #openstack-horizon22:53
*** rpittau|afk has quit IRC22:54
*** jrosser has quit IRC22:54
*** rm_work has joined #openstack-horizon22:54
*** coreycb has joined #openstack-horizon22:55
*** johnsom has joined #openstack-horizon22:55
*** jberg-dev has joined #openstack-horizon22:55
*** jrosser has joined #openstack-horizon22:56
*** rpittau|afk has joined #openstack-horizon22:56
*** vkmc has joined #openstack-horizon22:56
*** dannins has quit IRC22:57
*** andrein has quit IRC22:58
*** NobodyCam has joined #openstack-horizon22:59
*** andrein has joined #openstack-horizon23:00
*** tkajinam has joined #openstack-horizon23:03
*** tmazur has quit IRC23:05
*** rcernin has quit IRC23:34
*** rcernin has joined #openstack-horizon23:34
*** tosky has quit IRC23:49

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!