Friday, 2022-04-29

opendevreviewDan Smith proposed openstack/devstack master: Change DB counting mechanism  https://review.opendev.org/c/openstack/devstack/+/83982001:58
opendevreviewDan Smith proposed openstack/devstack master: Improve API log parsing  https://review.opendev.org/c/openstack/devstack/+/83906701:58
opendevreviewDan Smith proposed openstack/devstack master: WIP: Test static perfdata comparisons  https://review.opendev.org/c/openstack/devstack/+/83894701:58
*** bhagyashris|ruck is now known as bhagyashris|sick04:37
*** jpena|off is now known as jpena07:07
bkopilovHi experts , a question about tempest cleanup , i see in base classed (example volume) that we add to cleanup  in class level11:12
bkopilovmeans that we clean the volumes at the end of class (resource_cleanup) and not in testcase level11:13
bkopilovWhy do we delete the resource in class level ? while on others i see in testcase level11:13
*** iurygregory__ is now known as iurygregory11:14
fricklerbkopilov: I wouldn't call myself expert on tempest, but I think it depends on whether the resource can be reused for multiple tests within a class or whether each individual test needs a new one11:16
bkopilovfrickler, but the resources usually per testcase and they should be deleted. 11:19
bkopilovwhy do we keep "all" created volume till class ended , assume we have a class with 10 testcases of volume create11:19
bkopilovin that case if delete volume fails , you will not know for sure if its because test x or other issue11:20
fricklerbkopilov: IMO if the assumption is that a deletion could fail in relation with a test, the deletion should explicitly be part of the test and not be delayed to the cleanup phase11:36
*** pojadhav is now known as pojadhav|afk13:50
bkopilovfrickler, ack , agree. 14:05
bkopilovfrickler, if you have 10 testcases for volume_create , and the failure point is on delete volume from clenaup , means all 10 will be passed but error on tear_down , 14:06
bkopilovfrickler, i think i am going to raise this issue in a bug14:07
gmannbkopilov: reason is same what frickler mentioned that is resource is shared among the tests in class then we create/delete resource at class level otherwise test leve14:10
bkopilovgm14:11
gmannone good example is GET resource tests, where we create resoruce at class level and check all GET APIs14:11
bkopilovgmann, but it creates a bug , if the failure on deletion 14:11
gmannbkopilov: but if any resource only used at test level and we wait to clean that at class level, feel free to propose change that will be valid things to do14:12
bkopilovgmann, need to think about , thanks 14:12
gmannbkopilov: on that, we delete resource with ignore-not-found try-block means if resource is deleted before class/test cleanup start then we do not fail test14:13
gmannbkopilov: but again if there is any issue in some test on this ^^ feel free to propose fix and we can check the issye14:13
gmannbkopilov: remember, most cleanup in tests are bets effort to "do not leak resource in testing cloud" and they are not perfect we keep fixing them regularly. 14:14
gmann*best effort 14:14
gmannbkopilov: or you can just raise bug in tempest and ping me here, so that we can check before you do the changes. 14:14
gmannbkopilov: or I am here if you have anything failing and want to discuss 14:15
opendevreviewyatin proposed openstack/devstack master: Collect status of all services  https://review.opendev.org/c/openstack/devstack/+/83975214:21
slaweqgmann: regarding secure rbac, I just tried locally run all neutron_tempest_plugin.api tests with enforce_new_defaults=True in Neutron14:22
slaweqI also sent DNM patch https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/839954 to check that in Zuul14:22
slaweqbut the main issue there is that in tempest (and neutron-tempest-plugin) admin_client is always in same tenant and it's different one than tenant of os.client14:23
gmannslaweq: and enforce_scope=True also?14:23
slaweqso this admin_client don't have any access to the client's resources14:23
slaweqgmann: locally I tried with enfoce_scope=False first but then also with enforce_scope=True14:24
gmannohk NEUTRON_ENFORCE_SCOPE set both in devstack14:24
slaweqso with small "hack" https://review.opendev.org/c/openstack/neutron/+/839952 most of the test were passing for me14:24
slaweqthere are some issues with sharing resources but that I will check14:25
gmannslaweq: ohk, that is actually what new RBAC was securing not allowing projectA-admin to do anything on projectB-admin14:25
slaweqmain question is - should tempest be changed to create admin_client always in same tenant as client ?14:25
slaweqor should we change somehow all of our tests?14:25
gmannslaweq: yeah that is target ^^ and we will be able to see same admin is accessing the resource in their project14:26
gmannslaweq: I will say let's wait for the RBAC discussion on policy popup meeting in case we decide something on scope things.14:26
slaweqok14:26
slaweqwhen this discussion will be? next tuesday?14:26
gmannslaweq: but one thing we can do is to set enforce_new_defaults=True only and see how test behaving 14:27
gmannslaweq: yeah https://wiki.openstack.org/wiki/Consistent_and_Secure_Default_Policies_Popup_Team#Meeting14:27
slaweqyes, that's what I did locally14:27
gmannslaweq: I think that conflict with your neutorn meeting?14:27
slaweqand that's what didn't work properly for me due to this admin limitation to the own project14:27
slaweqyes, it is14:27
slaweqand this next tuesday it's public holiday in Poland so I will not be available14:28
gmannslaweq: ok I think admin client we need to change. let me check in tempest side becuase I need to fix one bug also for member, reader having same project_id as admin14:28
slaweqsure14:28
slaweqI can continue that next week :)14:28
gmannslaweq: sure, no hurry. menawhile let's see if will ready with that project_id things which id needed for new default testing14:29
gmannslaweq: just to know and in case I check time for rbac discussion, what time can work for you or neutron folks14:29
slaweqif Tuesday then e.g. 1300 UTC would work for me14:30
gmannI can try to check in 3rd May call and see if we can change in future call14:31
slaweqat least every second week14:31
slaweqthx14:31
gmannslaweq: starting with 10th May or 17th ?14:31
slaweq10th is good for me14:32
gmannk14:32
opendevreviewDan Smith proposed openstack/devstack master: Change DB counting mechanism  https://review.opendev.org/c/openstack/devstack/+/83982014:46
*** jpena is now known as jpena|off16:30
opendevreviewyatin proposed openstack/devstack master: Collect status of all services  https://review.opendev.org/c/openstack/devstack/+/83975216:40
opendevreviewyatin proposed openstack/devstack master: DNM: Testing only jammy job  https://review.opendev.org/c/openstack/devstack/+/83938916:40
dansmithslaweq: still around?18:18
opendevreviewDan Smith proposed openstack/devstack master: Change DB counting mechanism  https://review.opendev.org/c/openstack/devstack/+/83982018:24
opendevreviewDan Smith proposed openstack/devstack master: Improve API log parsing  https://review.opendev.org/c/openstack/devstack/+/83906718:24
bkopilovgmann,Thanks , 18:43
*** spotz_ is now known as spotz19:53
opendevreviewDan Smith proposed openstack/devstack master: Change DB counting mechanism  https://review.opendev.org/c/openstack/devstack/+/83982020:18
opendevreviewDan Smith proposed openstack/devstack master: Improve API log parsing  https://review.opendev.org/c/openstack/devstack/+/83906720:18
opendevreviewDan Smith proposed openstack/devstack master: WIP: Test static perfdata comparisons  https://review.opendev.org/c/openstack/devstack/+/83894720:18
opendevreviewDan Smith proposed openstack/devstack master: Change DB counting mechanism  https://review.opendev.org/c/openstack/devstack/+/83982022:09
opendevreviewDan Smith proposed openstack/devstack master: Improve API log parsing  https://review.opendev.org/c/openstack/devstack/+/83906722:09
opendevreviewDan Smith proposed openstack/devstack master: WIP: Test static perfdata comparisons  https://review.opendev.org/c/openstack/devstack/+/83894722:09
dansmithgmann: with these two changes ^ I get at least a couple of stable runs that show 0% change for API and DB loads22:10
dansmiththe "test static perfdata comparisons" now reports no change (locally, hopefully in gate on the next run)22:10
dansmithbut just FYI that's where I'm at22:11
dansmiththe DB one ended up being a lot less easy than I was hoping by just turning on mysql logging22:11
dansmithit defaults to "record 10k queries", which I had bumped to 100k22:11
dansmithturns out, keystone has almost 100k queries before devstack is even finished stacking, and we're waaaay over 100k after a tempest run all around22:12
dansmithturning mysql up to 1m rows causes it to OOM in our workers22:12
dansmithso I took a different approach, which is more complicated, but hopefully tenable.. way less performance impact and gives us what we want22:13

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