Tuesday, 2022-03-29

zigoHi team! Trove-dashboard is broken since https://review.opendev.org/c/openstack/horizon/+/81630310:22
zigoCan someone help me repair it?10:22
zigovishalmanchanda: ^10:22
zigoOh, master branch doesn't have the broken include, so it's probably already fixed ...10:24
vishalmanchandazigo: looking10:25
zigoLooks like rc1 is missing this commit: https://review.opendev.org/c/openstack/trove-dashboard/+/83349710:26
zigovishalmanchanda: After the patch, it's looking better, but still some failures:10:31
zigohttps://paste.opendev.org/show/bGGbsT40egOzjPNVmL4c/10:31
vishalmanchandazigo: where you see this error https://paste.opendev.org/show/bGGbsT40egOzjPNVmL4c/10:35
vishalmanchandazigo: patch link?10:35
zigovishalmanchanda: That's when I build the Debian package for Trove-dashboard.10:36
vishalmanchandazigo: ok let me try to run these tests on my env.10:37
zigoFYI, that's the last piece of the puzzle for me, all has been built, fixed, and uploaded ! :)10:37
zigoLooking deeper, it's probably only a test problem.10:39
opendevreviewMerged openstack/horizon stable/wallaby: Change to a proper policy for Resume operation  https://review.opendev.org/c/openstack/horizon/+/83513210:40
amotokizigo: I think you are right. It looks like a test-only problem. 10:53
amotokizigo: trove_dashboard/content/databases/workflows/create_instance.py SetNetworkAction instance_utils.network_field_data() calls openstack_dsahboard.api.neutron.network_list_for_tenant()10:54
amotokicorrection: SetNetworkAction.populate_network_choices() calls openstack_dashboard.dashboards.project.instances.utils.network_field_data()10:55
amotokiand network_field_data() calls openstack_dsahboard.api.neutron.network_list_for_tenant() internally.10:55
amotokiapi.neutron.network_list_for_tenant() was refactored during Yoga10:55
amotokitrove_dashboard mock relies on the internal of api.neutron.network_list_for_tenant()10:56
amotokithis is the cause of the failure.10:56
amotokithe test in trove_dashboard should api.neutron.network_list_for_tenant() at least.10:56
amotokiI don't have time to fix the test, but I believe this is the cause of the UT failure of trove-dashboard.10:56
vishalmanchandaremoving https://github.com/openstack/trove-dashboard/blob/62cd08226b7e170e615f12f2cdc52e38351e3daf/trove_dashboard/content/database_backups/tests.py#L231-L23210:57
vishalmanchandawill fix the issue10:57
amotokivishalmanchanda: I am talking about the failure of test_create_simple_instance10:58
vishalmanchandaok10:59
amotokivishalmanchanda: dropping assertion just skips the test, so it is not surprising to pass the test.10:59
amotokivishalmanchanda: this is about what you mentioned.10:59
amotokivishalmanchanda: but my point above may be related to all failures, i.e., caused by the refactorig of api.neutron.network_list_for_tenant(). you are more faimiliar with it as you reviewed it in detail.11:01
vishalmanchandaamotoki: ok got your point.11:01
ironfootHi all, is it possible to enable the "Common Operating System Properties" for Images in horizon for users other than admin? I can't find any documentation about it. 11:18
ironfootUsing the CLI, a regular user can see them. 11:19
zigovishalmanchanda: amotoki: I'll be removing trove_dashboard/content/database_backups/tests.py in the Debian package as a temporary measure.11:39
vishalmanchandazigo: hi, what you have to do replace self.mock_network_list.assert_has_calls in failed unit tests with https://paste.opendev.org/show/b2tjmd4o4Khhqxn9ZZRL/11:39
vishalmanchandazigo: this will fix the unit tests11:39
zigoOk, will try.11:39
vishalmanchandazigo: let me push a quick patch to fix all failed unit tests.11:39
zigoGreat, thanks.11:40
zigoWill wait for it.11:40
vishalmanchandaironfoot: hi, I will check and let you know if find anything. probably depends on policy used I guess.11:45
zigoI also got this with senlin dashboard: https://paste.opendev.org/show/bi3Wg958LjKpjMb1dI2Z/ :/11:46
ironfootvishalmanchanda: thank you!11:46
vishalmanchandazigo: fix for trove-dashboard unit test https://review.opendev.org/c/openstack/trove-dashboard/+/83561712:15
vishalmanchandazigo: Feel free to update commit-msg if needed.12:15
zigoThanks, I'll let you know how it goes. (in a meeting right now)12:15
vishalmanchandazigo: ok12:15
vishalmanchandaWe already discussed all these issue in a weekly meeting12:17
vishalmanchandaYou will also hit this one as well https://storyboard.openstack.org/#!/story/200992412:17
vishalmanchandaI will take a look at senlin-dashboard issue after some time12:18
zigovishalmanchanda: FYI, trove-dashboard is now ok for me, thanks for your work.14:24
vishalmanchandazigo: np14:25
zigovishalmanchanda: Any idea about senlin-dashboard though ? https://paste.opendev.org/show/bi3Wg958LjKpjMb1dI2Z/14:25
vishalmanchandazigo: looking14:26
vishalmanchandazigo: fixed senlin-dashbord in local env., pushing a patch soon.14:48
zigoWhen I click on "launch instance" I'm being de-logged ... http://shade.infomaniak.ch/out-8.ogv14:57
vishalmanchandazigo: Patch to fix senlin-dashboard https://review.opendev.org/c/openstack/senlin-dashboard/+/83564214:58
zigoThanks, trying it out.14:58
zigovishalmanchanda: Any idea what's going on ? (see video above)14:58
vishalmanchandazigo: looks like policy issues.14:59
zigoAh... which means?15:00
zigoMissing horizon policy file, maybe? :)15:00
vishalmanchandazigo user not authorized to Launch instance that's why redirected to Login Page.15:01
vishalmanchandathat's my understanding from above video.15:02
zigoHum ... with another horizon (victoria), it works well...15:02
zigoThough I tried plugging this Yoga horizon on a Victoria cloud, could that be the issue?15:03
zigo(usually, it's not ...)15:03
zigoSenlin-dashboard UT fix, gr8 ! :)15:03
* zigo uploads it15:03
vishalmanchandazigo: Could you try any other operation like created image/network also keystone operations.15:06
vishalmanchandacreate*15:06
zigoWhen I click on the "image" tab on the left, I'm being delogged as well ...15:09
zigoNot all the time, that's weird ... :/15:11
vishalmanchandaon which horizon branch you trying this and Can you check and send HEAD of horizon repo by "git log"?15:12
zigoThat's latest tag: 22.0.015:22
vishalmanchandaCould you try 22.1.0 just released https://review.opendev.org/c/openstack/releases/+/83546115:23
zigook15:26
zigoAfter activating debug, I saw this:15:27
zigoWARNING django.request The request's session was deleted before the request completed. The user may have logged out in a concurrent request, for example.: /horizon/api/nova/flavors/15:27
zigoAnyways, trying 22.1.015:27

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