Thursday, 2020-09-10

*** spatel has joined #openstack-horizon00:36
*** gyee has quit IRC00:50
*** spatel has quit IRC01:24
openstackgerritVishal Manchanda proposed openstack/horizon master: [DNM] Testing pep8 with pylint greater version  https://review.opendev.org/75085401:58
*** vishalmanchanda has joined #openstack-horizon01:58
openstackgerritVishal Manchanda proposed openstack/horizon master: [DNM] Testing pep8  https://review.opendev.org/75085402:05
*** chenhaw has quit IRC02:15
*** chenhaw has joined #openstack-horizon02:15
amotokivishalmanchanda: I already tested pep8 job https://review.opendev.org/75084302:19
amotokivishalmanchanda: pylint 2.6 fixes the problem.02:19
vishalmanchandaamotoki: oh nice.02:19
vishalmanchandaamotoki: I am also trying with 2.4.402:20
amotokivishalmanchanda: is there any reason to try non-latest pylint version?02:20
vishalmanchandaamotoki: Could you purpose a patch for that?02:20
amotokivishalmanchanda: I am working on it already. testing it in local02:20
vishalmanchandaamotoki: cool.02:21
vishalmanchandaamotoki: no specific reason I am just trying with pylint 2.4.4 version.02:22
amotokiperhaps we should test it in advance. neutron team tested focal migration with depends-on and detected this several weeks ago.02:32
amotokiso this is not an unexpected failure with focal switch of base jobs.02:33
vishalmanchandayeah.02:35
openstackgerritAkihiro Motoki proposed openstack/horizon master: Bump pylint version to support python3.8  https://review.opendev.org/75086202:41
amotokiwoops. I forgot to update test-requirements :-(02:41
openstackgerritAkihiro Motoki proposed openstack/horizon master: Bump pylint version to support python3.8  https://review.opendev.org/75086202:45
*** rcernin has quit IRC02:50
amotokivishalmanchanda: btw, I don't understand your last comment. I expect each tab can be identified by an URL like ?tab=volume_details__snapshots_tab. I wonder why this does not work for your case.02:55
amotokivishalmanchanda: I am talking about https://review.opendev.org/#/c/734161/9/openstack_dashboard/dashboards/project/volumes/tests.py02:55
vishalmanchandaamotoki: When I do the same thing for my patch https://review.opendev.org/#/c/734161/10/openstack_dashboard/dashboards/project/volumes/tests.py@150902:57
vishalmanchandaamotoki: I did't get the expected response  in res = self.client.get(url) https://review.opendev.org/#/c/734161/10/openstack_dashboard/dashboards/project/volumes/tests.py@151002:58
amotokivishalmanchanda: what is the string 'messages_tab_link' after resolved? is it '?tab=volume_details__messages_tab'?02:59
*** rcernin has joined #openstack-horizon02:59
vishalmanchandaamotoki: yeah03:00
vishalmanchandabut in response I got an error.03:00
amotokivishalmanchanda: it depends on an error you hit. I've never got into trouble in similar cases.03:01
amotokivishalmanchanda: does it work in real environments?03:02
amotokivishalmanchanda: I mean '?tab=volume_details__messages_tab'03:02
amotokiif it works, something in UT has an issue. Otherwise, something in the impl has an issue.03:03
vishalmanchandaamotoki: hmm I don't think there is an issue in implementation.03:07
amotokivishalmanchanda: does it work?03:08
vishalmanchandaamotoki: here is my test result http://paste.openstack.org/show/797684/ if you find anything03:08
vishalmanchandaplease let me know.03:08
amotokivishalmanchanda: it looks a simple problem03:09
amotokivishalmanchanda: just because of a missing mock03:09
amotokithe logic should not reach L.194 of the paste03:10
vishalmanchandaamotoki: ohh I See.03:11
amotokii think you can check how the micro-version logic is handled in our UT03:11
vishalmanchandaamotoki: ok thanks for pointing me to right direction.03:11
vishalmanchandaamotoki: thanks I have fixed my test but I will push U.T in a separate patch as I don't want to block my feature patch.03:36
*** dave-mccowan has quit IRC04:12
*** jtomasek has joined #openstack-horizon05:17
*** jtomasek has quit IRC05:22
openstackgerritAkihiro Motoki proposed openstack/horizon master: Fix ironic-ui cross job  https://review.opendev.org/75087406:09
openstackgerritAkihiro Motoki proposed openstack/horizon master: Fix ironic-ui cross job  https://review.opendev.org/75087406:10
*** dklyle has quit IRC06:43
openstackgerritVishal Manchanda proposed openstack/horizon master: Add Unit Test for cinder-user-facing messages  https://review.opendev.org/75088206:54
*** jtomasek has joined #openstack-horizon07:00
*** priteau has joined #openstack-horizon07:16
*** tosky has joined #openstack-horizon07:32
*** e0ne has joined #openstack-horizon07:43
*** ChanServ sets mode: +o e0ne07:43
*** rdopiera has joined #openstack-horizon07:46
*** priteau has quit IRC07:47
*** priteau has joined #openstack-horizon07:53
openstackgerritVishal Manchanda proposed openstack/horizon master: Add Unit Test for cinder-user-facing messages  https://review.opendev.org/75088207:58
*** CeeMac has joined #openstack-horizon07:59
*** rcernin has quit IRC08:35
*** kevko has joined #openstack-horizon08:36
*** jtomasek has quit IRC08:45
e0neamotoki: hi. are you around? I would like to discuss https://review.opendev.org/#/c/721992/08:46
e0nevishalmanchanda: hi. are you going to update your patches https://review.opendev.org/#/c/749739/ and https://review.opendev.org/#/c/734161/ today before we'll reach FF?08:54
vishalmanchandae0ne: yeah working on it.08:54
e0nevishalmanchanda: ok08:55
openstackgerritVishal Manchanda proposed openstack/horizon master: Refactor error messages.  https://review.opendev.org/74973909:03
amotokie0ne: hi, I was in evening break09:04
amotokie0ne: vishalmanchanda: I will have a drink with friends tonight so my response would be super slower.09:08
amotokie0ne: vishalmanchanda: it might be better to ask feature patch reviews to rdopiera if you land them quickly.09:09
amotokie0ne: per your pong, what's about https://review.opendev.org/#/c/721992/ ?09:10
e0neamotoki: I tested it a bit more: it doesn't show extended attributes if values are 0, None or ''09:12
amotokie0ne: yeah, that is expected as the template engine evaluates a value in such way.09:13
e0neamotoki: IMO, it's a better rather than have these values rendered as empty because we can't check policies from the code09:13
e0neamotoki: even if we check horizon policies, we can't check that in nove09:13
amotokie0ne: I think they need to be checked one by one.09:14
amotokie0ne: for example, the common value of launch_index is 0, so it means launch_index=0 is not shown.09:15
amotokie0ne: per your comment in the review, it is mainly for the admin panel. Perhaps the ideal (or better) solution would be to prepare a separate template for the admin panel.09:15
e0neamotoki: no, it's for project panel09:16
amotokie0ne: ah... I was confused. some of them are only for admin.09:16
e0neamotoki: they are admin-only be default, but operator can configure it via policies09:17
amotokiperhaps only one is "instance_name"09:17
amotokie0ne: do you have a good pointer for the corresponding nova policy?09:18
e0neamotoki: https://github.com/openstack/nova/blob/ea5017c6f56dba413ffdc148af1f4b4df5edb141/nova/policies/extended_server_attributes.py#L3009:18
amotokie0ne: I see. Hopefully we can evaluate this policy and show these fields based on the evaluation result (perhaps via a context value). it would be straight-forward.09:21
amotokie0ne: but I am not sure it can now.09:21
e0neamotoki: sorry, I didn't understand what you mean09:21
amotokie0ne: okay, let me rephrase it.09:22
amotokie0ne: according to the nova policy definition, the visibility of these fields are controled by the single policy rule.09:22
amotokie0ne: ideally, we can evaluate this rule in the horizon policy engine and store the (boolean) result into the context for the template of the instance detail.09:23
e0neamotoki: oh.. I see... but this will work only on horizon side.09:23
amotokie0ne: what is your concern?09:24
amotokie0ne: I expect the nova policy file in both horizon and nova sides should match.09:24
e0neamotoki: nova does or does not return these fields based on nova policy and even if we check it on horizon side, we still should validate nova's response09:25
e0neamotoki: unfortunately, I faced a lot of deployments issues with different policies in horizon and nova/neutron/cinder :(09:25
amotokie0ne: hmm09:26
e0neamotoki: so I don't expect that everything is configured right and policies are equal09:26
amotokie0ne: I see09:27
amotokie0ne: so, another way is to prepare a dict which contains each field is available or not.09:28
e0neamotoki: I like this solution09:28
amotokie0ne: or these fields are controlled by the single policy so we might not need to check all fields one by one.09:29
e0neI'll update my patch09:29
e0neamotoki: thanks for the help09:30
amotokie0ne: would it be something like "{% if instance.field_availability.launch_index %} {{ instance.launch_index }} {% endif %}"09:31
amotokie0ne:  or "{% instance.has_extended_attributes %} {{ instance.launch_index }} {% endif %}" ?09:31
e0neamotoki: I'll add 'has_extended_attribute' property onto the https://review.opendev.org/#/c/721992/2/openstack_dashboard/api/_nova.py09:33
amotokie0ne: sounds fine, thanks :)09:33
e0neamotoki: thanks for helping me find a better solution09:34
amotokie0ne: yw09:34
e0nee0ne: enjoy your evening!09:34
vishalmanchandaamotoki: hi, I have one only question to ask if you have time.09:35
vishalmanchandaIf I used this filter filtersfilters=(filters.parse_isotime, filters.timesince_sortable)  for "guaranteed_until"09:36
vishalmanchandathen it looks wired to me https://pasteboard.co/JqpI3PL.png09:36
vishalmanchandaamotoki: ^^09:37
amotokivishalmanchanda: hi, that's expected as I commented in the review.09:37
amotokivishalmanchanda: timesince filter assumes a target time is in the past :)09:38
amotokivishalmanchanda: I am not sure the importance of "guatranteed_until" field as I don't kwno the background of this field.09:38
amotokivishalmanchanda: * from user perspective09:39
vishalmanchandae0ne: Ivan any suggestions here09:40
vishalmanchandaWe are discussing this comment https://review.opendev.org/#/c/734161/11/openstack_dashboard/dashboards/project/snapshots/tables.py@27509:40
e0neamotoki, vishalmanchanda: guaranteed_until is a time when the message will expire09:41
amotokibut the tab is a page used much less frequently compared to the detail overview page, so the first target might be just to provide information and a way to present messages might not be so important.09:42
amotokie0ne: I know. I wonder how regular users can use "guaranteed_until" and what action they can take.09:43
e0neamotoki: IMO, from user perspective it's better to have 'Expired in' column09:44
e0nebut it's needed only to show this message to other users or operators09:45
amotokie0ne: makes sense.09:47
vishalmanchandaamotoki: what about if I used above filter only for "created_at" and keep "guaranteed_until" date as it is https://pasteboard.co/JqpPg8u.png09:48
vishalmanchandabecause "guaranteed_until" 0 minutes doesn't provide any information.09:49
amotokivishalmanchanda: could you judge them from the POV of users who am not so familiar with cinder details?09:49
vishalmanchandahttps://www.irccloud.com/pastebin/AWWrO5hy/09:51
amotokivishalmanchanda: do you want me a direct solution?09:58
amotokivishalmanchanda: the normal UI design is first to design what it should be (mainly from user perspective). It looks like you are discussing how the implementation can be based on the current implementation.  The implementation needs to close gaps between what should be and what kind of information we can get from backend APIs.09:58
openstackgerritVishal Manchanda proposed openstack/horizon master: Add cinder-user-facing messages  https://review.opendev.org/73416110:23
*** rcernin has joined #openstack-horizon10:39
vishalmanchandardopiera: e0ne : Pep8 is fixed by https://review.opendev.org/#/c/750862/. Please approve it to unblock the gate. once zuul +1 for this patch.10:44
openstackgerritRadomir Dopieralski proposed openstack/horizon master: Refactor error messages.  https://review.opendev.org/74973910:45
rdopieravishalmanchanda: that patch fails the gate, if we merge it we will break everything10:48
rdopierahmm, a timeout in integration tests10:49
rdopieraselenium.common.exceptions.WebDriverException: Message: HTTP method not allowed10:49
*** dave-mccowan has joined #openstack-horizon11:46
vishalmanchandardopiera: e0ne : CI is passed for https://review.opendev.org/#/c/750862/.12:08
e0nevishalmanchanda: approved12:28
vishalmanchandae0ne: thanks.12:32
openstackgerritVishal Manchanda proposed openstack/horizon master: Add Unit Test for cinder-user-facing messages  https://review.opendev.org/75088212:40
*** priteau has quit IRC13:11
*** tmazur has joined #openstack-horizon13:14
*** priteau has joined #openstack-horizon13:16
openstackgerritMerged openstack/horizon master: Bump pylint version to support python3.8  https://review.opendev.org/75086214:02
*** jtomasek has joined #openstack-horizon14:23
openstackgerritTobias Urdin proposed openstack/horizon master: Fix missing comment in swift storage policy code  https://review.opendev.org/75100914:46
*** dklyle has joined #openstack-horizon14:54
*** ChanServ sets mode: +o dklyle14:54
openstackgerritIvan Kolodyazhny proposed openstack/horizon master: Show all os-extended-server-attributes  https://review.opendev.org/72199215:24
*** dklyle sets mode: -o dklyle15:32
*** rcernin has quit IRC15:50
vishalmanchandardopiera: Could you take a look at cinder-user-facing-messages  patch.16:05
e0nevishalmanchanda, rdopiera, amotoki:  FYI, I"m going to propose horizon release in 2-3 hours16:06
vishalmanchandae0ne: ok.16:07
rdopiera73 comments? what16:14
e0nerdopieraL it's a CI issue16:16
e0nerdopiera: ^16:16
rdopieraand here I was  expecting some drama16:16
rdopieradisappointing16:16
e0ne:)16:18
*** jadonn has quit IRC16:19
*** rdopiera has quit IRC16:29
*** e0ne has quit IRC16:39
*** gyee has joined #openstack-horizon17:03
*** tonyb has quit IRC17:15
*** tonyb has joined #openstack-horizon17:57
openstackgerritMerged openstack/horizon master: Add cinder-user-facing messages  https://review.opendev.org/73416118:04
*** gmann is now known as gmann_afk18:11
*** e0ne has joined #openstack-horizon18:57
*** ChanServ sets mode: +o e0ne18:57
*** priteau has quit IRC19:16
*** e0ne has quit IRC19:33
openstackgerritVishal Manchanda proposed openstack/horizon master: Add Unit Test for cinder-user-facing messages  https://review.opendev.org/75088220:01
*** openstackgerrit has quit IRC20:36
*** dklyle has quit IRC20:40
*** david-lyle has joined #openstack-horizon20:40
*** ChanServ sets mode: +o david-lyle20:40
*** david-lyle sets mode: -o david-lyle20:55
*** david-lyle is now known as dklyle20:56
*** jtomasek has quit IRC21:11
*** vishalmanchanda has quit IRC22:21
*** tosky has quit IRC22:42
*** gmann_afk is now known as gmann22:49
*** rcernin has joined #openstack-horizon22:58
*** rcernin has quit IRC22:59
*** rcernin has joined #openstack-horizon22:59
*** tmazur has quit IRC23:13

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