Tuesday, 2017-08-29

*** gouthamr_ has joined #openstack-manila01:05
*** gouthamr has quit IRC01:07
*** baojg_ has quit IRC01:10
openstackgerritMerged openstack/puppet-manila master: Add "host" parameter for manila.conf  https://review.openstack.org/49748101:23
zhongjungouthamr_: ping01:27
gouthamr_zhongjun: pong01:27
zhongjungouthamr_: We can not get all shares by non-admin even if we change share_instance:index policy from ‘admin_api’ to non limit. Because we added01:27
zhongjun@require_admin_context in share_instances_get_all db function. Do you know any01:27
zhongjunhistorical reasons?01:27
*** gouthamr_ is now known as gouthamr01:27
bswartzzhongjun: we never test the nonstandard policies01:28
gouthamrzhongjun: sounds like a bug01:28
bswartzI would count it as a bug01:28
zhongjungouthamr: I tested it when I write the code about "policy in code" feature, it will raise “ERROR: User does not have admin privileges.”01:29
gouthamrWe could unit test policies..01:29
bswartzgouthamr: if you can think of a scalable way to do so01:30
bswartzIMO the matrix of options is too large01:30
gouthamrbswartz: true.. but with zhongjun's changes, there'll be a default policy in code, we could specify a non-default configuration to test01:32
zhongjunbswartz:  We added @require_admin_context in many places : https://github.com/openstack/manila/blob/master/manila/db/sqlalchemy/api.py#L372   I thought it could have a original reason01:32
gouthamrzhongjun: i used to see the pattern with deletes, most calls elevate privileges to delete the row01:33
bswartzI would be mostly concerned with testing the dangerous cases01:33
gouthamrzhongjun: wait-a-minute, that's many GET methods01:33
bswartzit's way worse if a non-admin can do admin things than if an admin can't do something01:34
gouthamryes.. i think we've been mindful about the first part.. kinda why we split admin and regular api tests apart01:35
zhongjunbswartz: I changed "share:get_all" policy from ‘admin_api’ to 'default',  it is not nonstandard policies.01:36
gouthamrzhongjun: would be a bug worth fixing.. we have the policy check in the service API as well... https://github.com/openstack/manila/blob/master/manila/api/v2/services.py#L3501:37
bswartzzhongjun: as long as the policy is properly enforced (and we have tests to ensure that) then I'm happy01:39
bswartzit's entirely possible that there's some code in there that predates the policy.json mechanism and effectively hard codes the policy in some places01:40
zhongjungouthamr, bswartz: yeah, it look like a bug. but I could try to find the original code modification, why they added this.01:41
zhongjunbswartz: yes, It could be.01:42
zhongjunbswartz: I didn't find it in nova, it could be changed from cinder01:43
tommylikehumaybe it could remind the administrator he/she had configured the wrong policy01:43
zhongjuntommylikehu: yes, It could be.   I just think of the case: If the admin give a policy to the user to see all of the shares,  is it a reasonable requirement?01:46
*** markstur has quit IRC01:47
zhongjungouthamr, bswartz:  In nova, it also added the admin check in db level after the policy check in API.    But it didn't raise the error if the   "xxx:get_all" policy changed from ‘admin_api’ to 'default'. It just add the appropriate filter(project, user) in db api level.       https://github.com/openstack/nova/blob/16.0.0.0b2/nova/db/sqlalchemy/api.py#L205102:26
zhongjungouthamr:  yeah, we can not let a non-admin do admin things, it will be enforced in code02:28
zhongjungouthamr:  s / share:get_all / share_instance:index02:49
*** gcb has joined #openstack-manila02:50
*** markstur has joined #openstack-manila02:53
*** markstur has quit IRC02:57
*** gouthamr has quit IRC02:59
*** baojg has joined #openstack-manila03:14
*** baojg has quit IRC03:19
*** markstur has joined #openstack-manila03:26
*** hoonetorg has quit IRC04:11
*** hoonetorg has joined #openstack-manila04:23
*** markstur has quit IRC04:24
*** markstur has joined #openstack-manila04:25
*** lpetrut has joined #openstack-manila04:26
*** markstur has quit IRC04:30
*** markstur has joined #openstack-manila04:46
*** rejy has joined #openstack-manila04:50
*** markstur has quit IRC04:50
*** lpetrut has quit IRC04:56
*** rejy has quit IRC05:22
*** markstur has joined #openstack-manila05:28
*** markstur has quit IRC05:32
*** carthaca_1 has quit IRC05:58
*** carthaca_ has joined #openstack-manila05:58
*** zengyingzhe has quit IRC06:14
*** zengyingzhe has joined #openstack-manila06:14
*** pcaruana has joined #openstack-manila06:39
*** raissa has quit IRC06:46
*** jprovazn has joined #openstack-manila07:10
*** markstur has joined #openstack-manila07:46
*** td has joined #openstack-manila07:49
*** markstur has quit IRC07:51
*** dsariel has joined #openstack-manila08:14
*** raissa has joined #openstack-manila08:20
*** markstur has joined #openstack-manila08:23
*** markstur has quit IRC08:28
*** markstur has joined #openstack-manila09:00
*** markstur has quit IRC09:05
*** markstur has joined #openstack-manila09:37
*** markstur has quit IRC09:42
*** markstur has joined #openstack-manila10:13
*** markstur has quit IRC10:18
*** ociuhandu has quit IRC10:30
*** lpetrut has joined #openstack-manila10:34
*** lpetrut_ has joined #openstack-manila10:34
*** markstur has joined #openstack-manila10:50
*** ociuhandu has joined #openstack-manila10:51
*** markstur has quit IRC10:55
*** ganso has joined #openstack-manila10:56
*** markstur has joined #openstack-manila11:11
*** markstur has quit IRC11:15
*** markstur has joined #openstack-manila11:48
*** baojg has joined #openstack-manila11:52
*** markstur has quit IRC11:52
*** MVenesio has joined #openstack-manila12:20
*** MVenesio has quit IRC12:20
*** markstur has joined #openstack-manila12:24
*** markstur has quit IRC12:29
*** gcb has quit IRC12:29
*** gcb has joined #openstack-manila12:30
*** eharney has quit IRC12:50
*** rraja has joined #openstack-manila13:00
*** hoonetorg has quit IRC13:08
*** hoonetorg has joined #openstack-manila13:09
*** catintheroof has joined #openstack-manila13:19
*** dustins has joined #openstack-manila13:20
*** belmoreira has joined #openstack-manila13:26
*** zengyingzhe has quit IRC13:26
*** zengyingzhe has joined #openstack-manila13:26
*** gouthamr has joined #openstack-manila13:33
*** eharney has joined #openstack-manila13:41
*** zengyingzhe_ has joined #openstack-manila13:54
*** zengyingzhe has quit IRC13:57
*** jprovazn has quit IRC13:58
*** ociuhandu has quit IRC14:07
*** baojg has quit IRC14:25
*** baojg has joined #openstack-manila14:26
*** markstur has joined #openstack-manila14:35
*** eharney has quit IRC14:35
*** baojg has quit IRC14:37
*** markstur has quit IRC14:39
*** baojg has joined #openstack-manila14:39
*** baojg has quit IRC14:40
*** baojg has joined #openstack-manila14:40
*** baojg has quit IRC14:40
*** chlong has joined #openstack-manila14:41
*** baojg has joined #openstack-manila14:42
*** baojg has quit IRC14:42
openstackgerritMerged openstack/manila master: doc migration: update the doc link address  https://review.openstack.org/49835914:43
*** markstur has joined #openstack-manila14:44
*** eharney has joined #openstack-manila14:50
*** jprovazn has joined #openstack-manila15:02
smcginnisbswartz: Would be good to get your validation on here when you get a chance: https://review.openstack.org/#/c/498263/15:28
bswartzsmcginnis: looking15:31
bswartzsmcginnis: never seen diff_start before -- you know what that is?15:31
smcginnisbswartz: That controls the release notes output so you get a full release instead of the separate ones we have now for each RC.15:35
bswartzI see15:35
smcginnisbswartz: There's a small chance of overlap since they do it from the first RC of the last release, but that makes sure all included changes are there.15:35
bswartzso the commit hash in there misses all of the docs changes made in the last week15:35
bswartzI assume that's okay but I wanted to confirm that that was intentional15:35
smcginnisbswartz: Did you do another RC?15:35
bswartzno I was told not to make another RC just for docs changes15:36
bswartzwhich makes sense because the docs website doesn't care about tags -- just branches15:36
smcginnisAh, yeah, docs are published separately, so that's ok. As long as there isn't any code change missed that's critical to pike.15:36
bswartzthe only other missing changes are the .gitreview file and the upper constrains in tox.ini15:37
bswartzI'm okay to +1 it15:38
smcginnisbswartz: Yep, those are OK too as they aren't included in the release tars.15:38
bswartzdone15:39
smcginnisbswartz: Cool, thanks. That will help wrap things up for Pike once we have all the validation from individual projects.15:39
bswartzIt will be nice to see pike shipped15:39
smcginnis++15:40
bswartzpike was less stressful than some other releases, but still challenging to get done15:40
smcginnisYeah, same for me.15:45
*** xyang_ has joined #openstack-manila15:48
*** rraja has quit IRC15:49
*** lpetrut_ has quit IRC15:50
*** markstur_ has joined #openstack-manila15:58
*** markstur has quit IRC16:01
Reepicheepis anyone familure with how the manila share service creates openvswitch ports and adds system routes when using the generic backend?16:43
Reepicheephttps://bugs.launchpad.net/manila/+bug/168815516:43
openstackLaunchpad bug 1688155 in Manila "tap device will disappear after manila-share node restart" [Undecided,In progress] - Assigned to yankee (yankeefu)16:43
Reepicheepthis seems to be giving me problems ^ ^16:44
ReepicheepI'm wonder what I need to run to bring these ports / routes backup from the manila share service16:45
*** belmoreira has quit IRC16:46
*** belmoreira has joined #openstack-manila16:47
*** belmoreira has quit IRC16:48
*** pcaruana has quit IRC16:48
*** lpetrut has quit IRC16:54
*** raissa has quit IRC17:10
bswartzReepicheep: I'm familiar with it17:41
bswartzReepicheep: you're correct that the generic driver isn't able to recreate things that are destroyed externally -- including ports, tap devices, routes, nova VMs, etc17:43
bswartzwork is needed to make the driver able to survive reboots17:44
*** lpetrut has joined #openstack-manila17:45
*** catintheroof has quit IRC17:49
*** eharney has quit IRC17:49
*** lpetrut has quit IRC17:51
*** lpetrut has joined #openstack-manila17:51
Reepicheepbswartz: thanks for the update is there a manual procedure I can use to recreate those ports?18:16
ReepicheepI was looking at the setup_connectivity_with_service_instances function but not being a developer I'm struggling with the steps need18:17
*** sumitshatwara has quit IRC18:21
*** catintheroof has joined #openstack-manila18:23
*** xyang_ has quit IRC18:34
*** xyang_ has joined #openstack-manila18:35
*** xyang_ has quit IRC18:36
*** lpetrut has quit IRC18:37
*** eharney has joined #openstack-manila18:49
*** lpetrut has joined #openstack-manila18:59
*** lpetrut has quit IRC19:05
*** catintheroof has quit IRC19:30
*** gcb has quit IRC19:33
*** lpetrut has joined #openstack-manila19:33
*** catintheroof has joined #openstack-manila19:36
*** jprovazn has quit IRC19:43
*** xyang1 has joined #openstack-manila19:47
*** belmoreira has joined #openstack-manila20:04
bswartzReepicheep: I've never tried it -- basically you'd have to follow the code and replicate what it does20:44
bswartzwe maybe need to clarify the existing limitations of the generic driver in our docs20:45
bswartzwe've designed the generic driver to be production ready eventually, but there are gaps to be addressed before we get there20:46
*** ChanServ changes topic to "OpenStack Shared File Systems | Manila | PTG Sept 20-21 https://etherpad.openstack.org/p/manila-ptg-queens"20:47
bswartzReepicheep: I put a topic on the PTG etherpad to discuss it in September20:48
*** gouthamr has quit IRC21:05
Reepicheepbswartz: thanks.. I'm going to have to try to figure out what it does.  I'm basically in a spot that I need to get it back online21:24
Reepicheepgeneric is currently one of the few options that I have :(21:28
Reepicheepam I correct in understanding that the cephfs driver still has some significant work to be done also?21:30
*** catintheroof has quit IRC21:34
*** tbarron is now known as tbarron|errand21:46
*** belmoreira has quit IRC21:49
*** markstur_ has quit IRC21:50
*** lpetrut has quit IRC21:55
*** xyang1 has quit IRC22:06
*** gouthamr has joined #openstack-manila22:38
*** dustins has quit IRC22:45
*** ianychoi has quit IRC23:17
*** ianychoi has joined #openstack-manila23:17
*** jmlowe has joined #openstack-manila23:43

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!