Saturday, 2020-10-31

*** yamamoto has joined #openstack-qa00:05
*** tosky has quit IRC00:08
*** hamalq has quit IRC00:15
*** yamamoto has quit IRC00:27
*** zenkuro has quit IRC00:30
*** yamamoto has joined #openstack-qa00:51
*** lseki has quit IRC02:29
*** rpioso has quit IRC02:50
*** lxkong has quit IRC02:50
*** rpioso has joined #openstack-qa02:52
*** lxkong has joined #openstack-qa02:52
*** rfolco|bbl has quit IRC02:56
*** yamamoto has quit IRC03:20
*** ajitha has joined #openstack-qa03:32
*** yamamoto has joined #openstack-qa04:15
*** yamamoto has quit IRC04:21
*** yamamoto has joined #openstack-qa04:22
*** yamamoto has quit IRC04:45
*** akahat|PTO is now known as akahat05:19
*** yamamoto has joined #openstack-qa05:22
*** yamamoto has quit IRC05:31
*** evrardjp has quit IRC05:33
*** evrardjp has joined #openstack-qa05:33
*** gcheresh has joined #openstack-qa06:55
*** yamamoto has joined #openstack-qa07:10
*** slaweq has joined #openstack-qa07:56
*** slaweq has quit IRC08:17
*** ajitha has quit IRC09:32
*** ramishra has quit IRC09:58
*** slaweq has joined #openstack-qa11:02
*** slaweq has quit IRC11:10
*** slaweq has joined #openstack-qa11:12
*** yamamoto has quit IRC11:15
*** tosky has joined #openstack-qa11:23
*** zenkuro has joined #openstack-qa11:25
*** rfolco|bbl has joined #openstack-qa12:04
*** yamamoto has joined #openstack-qa12:18
*** rfolco|bbl is now known as rfolco12:25
*** yamamoto has quit IRC12:35
*** ccamposr__ has quit IRC13:04
*** ccamposr has joined #openstack-qa13:05
*** yamamoto has joined #openstack-qa13:45
*** tosky_ has joined #openstack-qa13:50
*** tosky is now known as Guest1051613:52
*** tosky_ is now known as tosky13:52
*** yamamoto has quit IRC13:58
*** zenkuro has quit IRC15:03
*** zenkuro has joined #openstack-qa15:03
*** chaconpiza has quit IRC15:46
*** yamamoto has joined #openstack-qa15:55
*** yamamoto has quit IRC16:09
*** tosky has quit IRC16:12
*** gcheresh has quit IRC17:31
gmannlbragstad: great. reviewing...18:07
*** elod has quit IRC18:27
*** elod has joined #openstack-qa18:32
lbragstadgmann thanks - i'll take another poke at it next week, but i'm wondering if something like that will help18:57
lbragstadat least getting people on the same page18:57
lbragstadand writing uniform tests - writing all the tests manually in keystone was a pain (i'm not sure if you felt that way implementing it in nova)18:57
gmannlbragstad: in nova we added unit tests only but for plugins this will be nice.18:58
lbragstadi got https://review.opendev.org/#/c/686305/47 working locally and it's really nice18:59
gmannand tempest tests we will slowly move existing tests towards scoped token as services move their policy18:59
gmannlbragstad: ok. only concern i had with that approach (686305 ) was duplicating the tests.19:00
gmannmay be making patrole more light weight can save time in that, we discussed it in PTG also - L138 - https://etherpad.opendev.org/p/qa-wallaby-ptg19:01
gmannbut for keystone we can run patrole as it is because keystone patrole tests does not take much time19:02
lbragstadyeah - testing it going to take longer using tempest19:03
lbragstadcan you elaborate on your concern duplicating the tests?19:03
lbragstadare you referencing the abstract base classes?19:03
gmanni mean tests for all API are already exist in tempest or plugins. and writing same for scoped tokens again is kind of duplicate.19:04
lbragstadoh - i see what you mean19:05
gmannother issue is complete runtime, for keystone it is fine but for nova and other service running complete API operation for RBAC checks is long time like patrole tests19:05
lbragstadyeah19:06
lbragstadi'm not really sure how to get around that19:06
*** tosky has joined #openstack-qa19:07
lbragstadunless we reconsider writing everything as a unit test and simulate scopes using context objects19:07
gmannI will think on policy engine flag (like osprofiller) approach if we can do (L147 - https://etherpad.opendev.org/p/qa-wallaby-ptg) but main challenge in that if all services are ok to do that19:08
lbragstadi know some people have asked for a set of tests they can use to verify RABC in their deployment19:08
gmannyeah, in nova i did that which took almost 70% of the work for new policy19:08
lbragstadright - either way, the majority of this work is in writing tests19:08
gmannyeah19:09
lbragstadeven the unit test approach takes a significant amount of time to run19:09
lbragstadwe noticed that before colleen ported all our protection unit tests to tempest19:09
lbragstadwe drastically increased the run time of our unit tests19:10
gmannok, in nova i did with mock which did not increase  much time19:10
lbragstadi guess our tests was pretty much a functional api test19:11
lbragstadtest*19:11
gmanni see19:11
*** ccamposr has quit IRC19:11
lbragstadwe didn't mock anything19:11
lbragstadand we let keystone translate request objects to oslo.context objects - instead of simulating them19:12
gmannbut did you move your existing functional tests to new policy or adding new one?19:12
*** ccamposr has joined #openstack-qa19:12
lbragstadwe add a new suite of protection tests that were exhaustive19:12
gmannok19:12
lbragstadthen we refactored and removed existing tests if they were redundant or irrelevant19:13
lbragstadand those stuck out as we implemented the feature, because they usually broke19:13
gmannfor nova, my is to make existing functional tests to run with actual policy (currently we mock policy rules in fun tests) and starting scoped token there19:13
lbragstadyou're talking about existing tests in tempest?19:14
lbragstador the tests you implemented in nova?19:14
gmannno, nova functional tests.19:14
lbragstadok - that makes sense19:14
lbragstadso - you just leveraging the existing tests and filling in the gaps as you find them19:15
gmanntempest tests also same way but it is branchless so we need some flag to keep testing stable branch on old policy19:15
lbragstadright - we added a flag for that in tempest19:15
lbragstadand we set it in the plugin19:15
gmannexample  - https://review.opendev.org/#/c/740122/419:15
gmannok19:15
*** rfolco has quit IRC19:16
lbragstadyeah - we do exactly the same thing19:16
lbragstadbut since all the rbac tests are new - we short-circuit the entire suite if enforce_scope is false19:16
lbragstadhttps://review.opendev.org/#/c/686305/47/keystone_tempest_plugin/tests/rbac/v3/base.py,unified@2719:17
gmannok, for tempest i am thinking to switch it to old scope (projects scope) if  enforce_scope is false. but need to try that how it will work19:18
lbragstadsure - that makes sense19:18
lbragstadif we can find a better way to re-use the existing tempest tests for various situations, i'm all for it19:19
lbragstadi think having a separate suite dedicated to RBAC is cleaner and much easier to use to validate deployments, but run time might be a problem19:19
gmannyeah for all other services like nova, cinder it is very high and that is main reason we are not able to add patrole in their gate. but for keystone it make sense19:20
lbragstadi'll have to think about it a bit more19:21
lbragstadi gotta run - but i'll try and catch up with you early next week19:21
gmannI feel if 1. each service write (or move existing) unit tests or functional tests with real policy (new ) enforcement  then we will be good and 2. start tempest to move towards new policy as default 3. think on patrole to make it aster19:22
gmannsure, I am going to spend next week on these and reviewing existing patches also19:23
lbragstad++19:24
gmannand we can also catch up on call for that after some finding which is quicker than chat :)19:24
*** ccamposr__ has joined #openstack-qa19:37
*** ccamposr has quit IRC19:40
*** yamamoto has joined #openstack-qa20:09
*** yamamoto has quit IRC20:13
*** zenkuro has quit IRC20:23
*** zenkuro has joined #openstack-qa20:23
*** whoami-rajat__ has quit IRC20:24
openstackgerritGhanshyam Mann proposed openstack/tempest master: Add system scope for admin auth  https://review.opendev.org/68607320:25
openstackgerritGhanshyam Mann proposed openstack/tempest master: Add client methods and tests for system grants  https://review.opendev.org/74386520:25
openstackgerritGhanshyam Mann proposed openstack/tempest master: Add default RBAC personas to dynamic credentials  https://review.opendev.org/68630620:25
openstackgerritGhanshyam Mann proposed openstack/tempest master: Add default RBAC personas to pre-provisioned creds  https://review.opendev.org/69839720:26
openstackgerritGhanshyam Mann proposed openstack/tempest master: Add system scoped request for compute hypervisor tests  https://review.opendev.org/74012220:32
openstackgerritGhanshyam Mann proposed openstack/devstack master: Add system_scope setting support for Nova & Tempest  https://review.opendev.org/61325120:32
openstackgerritGhanshyam Mann proposed openstack/devstack master: DNM: Testing system-scope scenario-3  https://review.opendev.org/61448620:32
openstackgerritGhanshyam Mann proposed openstack/devstack master: DNM: Testing system-scope scenario-2  https://review.opendev.org/61641620:32
openstackgerritGhanshyam Mann proposed openstack/devstack master: DNM: Testing system-scope scenario-2  https://review.opendev.org/61641620:33
openstackgerritGhanshyam Mann proposed openstack/devstack master: DNM: Testing system-scope scenario-1  https://review.opendev.org/61641520:33
openstackgerritGhanshyam Mann proposed openstack/devstack master: Add system_scope setting support for Nova & Tempest  https://review.opendev.org/61325120:48
openstackgerritGhanshyam Mann proposed openstack/tempest master: Add new job for system scope testing  https://review.opendev.org/61448420:50
*** paras333 has quit IRC20:56
openstackgerritGhanshyam Mann proposed openstack/devstack master: DNM: Testing system-scope scenario-1  https://review.opendev.org/61641521:00
openstackgerritGhanshyam Mann proposed openstack/devstack master: DNM: Testing system-scope scenario-2  https://review.opendev.org/61641621:04
openstackgerritGhanshyam Mann proposed openstack/devstack master: DNM: Testing system-scope scenario-3  https://review.opendev.org/61448621:06
openstackgerritGhanshyam Mann proposed openstack/devstack master: DNM: Testing system-scope scenario-4  https://review.opendev.org/76069721:09
gmannkopecmartin: this is good to go now, testing passing with nova's depends-on patch  - https://review.opendev.org/#/c/742546/21:15
*** gcheresh has joined #openstack-qa21:50
*** yamamoto has joined #openstack-qa22:11
*** yamamoto has quit IRC22:13
*** yamamoto has joined #openstack-qa22:13
*** gcheresh has quit IRC22:14
*** ccamposr__ has quit IRC22:45
*** yamamoto has quit IRC22:48
*** yamamoto has joined #openstack-qa22:52
*** early has quit IRC23:02
*** yamamoto has quit IRC23:03
*** yamamoto has joined #openstack-qa23:05
*** early has joined #openstack-qa23:06
*** yamamoto has quit IRC23:38
*** yamamoto has joined #openstack-qa23:42
*** slaweq_ has joined #openstack-qa23:55
*** slaweq has quit IRC23:57

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