Thursday, 2016-05-12

*** bpokorny_ has joined #openstack-searchlight00:02
*** bpokorny has quit IRC00:05
*** bpokorny_ has quit IRC00:07
*** yingjun has joined #openstack-searchlight00:18
*** pcaruana has joined #openstack-searchlight04:25
*** pcaruana has quit IRC04:32
*** pcaruana has joined #openstack-searchlight06:12
openstackgerritGB21 proposed openstack/searchlight: Flavor Plugin  https://review.openstack.org/31540908:27
openstackgerritGB21 proposed openstack/searchlight: Flavor Plugin  https://review.openstack.org/31540908:47
*** GB21 has joined #openstack-searchlight08:47
*** pcaruana is now known as pcaruana|afk|09:01
*** openstackgerrit has quit IRC09:04
*** openstackgerrit has joined #openstack-searchlight09:05
*** GB21 has quit IRC09:16
*** GB21 has joined #openstack-searchlight09:33
*** yingjun has quit IRC09:46
*** GB21 has quit IRC10:08
*** GB21 has joined #openstack-searchlight10:25
*** GB21 has quit IRC10:56
*** GB21 has joined #openstack-searchlight11:00
*** yingjun has joined #openstack-searchlight11:44
*** GB21 has quit IRC12:31
*** yingjun has quit IRC12:47
*** yingjun has joined #openstack-searchlight12:47
*** yingjun has quit IRC12:52
*** pcaruana|afk| is now known as pcaruana13:01
*** itisha has quit IRC13:09
*** yingjun has joined #openstack-searchlight13:11
*** sigmavirus24_awa is now known as sigmavirus2413:28
openstackgerritTravis Tripp proposed openstack/searchlight: Simple Script for Generating Resources  https://review.openstack.org/23069714:23
*** GB21 has joined #openstack-searchlight14:36
*** GB21 has quit IRC14:42
TravTCourtesy Searchlight meeting reminder in 1 minute in #openstack-meeting-4: lakshmiS, nikhil_k, rosmaita, TravT, david-lyle, sjmc7, itisha, GB21, briancline, lei-zh, yingjun, RickA-HP14:59
*** GB21 has joined #openstack-searchlight15:49
*** GB21 has quit IRC16:09
*** gb21 has joined #openstack-searchlight16:24
sjmc7TravT: hypervisors came up as part of the ui discussion. there is a BP for admin-only plugins already, https://blueprints.launchpad.net/searchlight/+spec/admin-only-plugins16:27
sjmc7but that’s not really what you were asking for16:27
TravTyeah, it is kind of complicated16:27
sjmc7you don’t want hypervisors visible unless all_projects is set, correct?16:27
TravTso, we have the "get plugins"16:28
sjmc7naively flavors would look like a similar issue (or a third party patch to search documentation or something); they’re not directly project related16:28
TravTand we have the "match_all" case16:28
*** bpokorny has joined #openstack-searchlight16:28
TravTfor get_plugins, you'd want to be able to state whether or not you want to include admin only ones.16:29
TravTmaybe it really should be you get plugins and they have some info on them about scope16:29
TravTand up to user to decide which ones to show.16:30
sjmc7but is it really ‘admin only'?16:30
TravTno, i don't think so16:30
TravTflavors as you mentioned16:30
sjmc7do you want hypversiros to show up for an admin running match_all?16:30
TravTflavors maybe isn't actually an admin only example16:30
sjmc7maybe i misunderstood earlier16:30
sjmc7no… it IS a “not project related” example16:31
TravTbut it is as well16:31
TravTflavors can be assigned to projects16:31
sjmc7they can be *visible* to individual projects16:31
TravTyes16:31
TravTmembers""16:32
*** bpokorny has quit IRC16:32
sjmc7i guess i’m trying to ask is hypervisors a one off special case?16:32
TravTi think there'd by others.16:32
*** bpokorny has joined #openstack-searchlight16:32
sjmc7maybe a better definition is that they’re cloud scoped?16:33
sjmc7app catalog might be another example16:33
TravThmm, that's interesting16:33
sjmc7although… that sort of depends too16:33
TravTmaybe we should put the cross project spec roles16:33
gb21Hi sjmc7 and TravT16:33
TravThi gb2116:34
sjmc7conversely i guess, what’s the problem including hypervisors with a match_all search?16:34
TravTgb21, FYI that the plugin author docs have been updated.16:34
TravTnot sure if you got a chance to look them over?16:34
TravTgive feedback, see if they need more?16:35
TravThttp://docs.openstack.org/developer/searchlight/authoring-plugins.html16:35
gb21TravT, I did'nt know about it; sure I will look into it16:35
gb21I have a couple of questions regarding flavor Indexing16:35
gb21First; thers is a parameter called as extra specs; which doesnt appear when a check the parameters of flavor with python client16:36
gb21but it is present in the nova doc16:37
TravTyou need to add extra specs to a flavor to get them16:37
TravTdo you have horizon running?16:37
gb21so; should I map it also; because I remember sjmc7 telling me at the summit that we should add them16:38
gb21yepp16:38
gb21I am16:38
TravTeasy thing to do is to go to flavors page and click the update metadata link16:38
TravTthen you can add them16:38
TravTre: mapping them... good questions16:38
TravTlet me see if nova has a policy file for seeing the extra specs16:39
TravTyou won't be able to map them all ahead of time16:39
TravTthe best we could do for now is allow dynamic16:39
gb21sure; and do we need it to be admin only?16:39
sjmc7if it’s mapped as an “object” it’ll get indexed16:39
TravTgood point sjmc716:39
TravTso, interestingly, flavors have some fine grained policy controls it appears16:40
TravT    "compute_extension:flavor_access": "",16:40
TravT    "compute_extension:flavor_access:addTenantAccess": "rule:admin_api",16:40
TravT    "compute_extension:flavor_access:removeTenantAccess": "rule:admin_api",16:40
TravT    "compute_extension:flavor_disabled": "",16:40
TravT    "compute_extension:flavor_rxtx": "",16:40
TravT    "compute_extension:flavor_swap": "",16:40
TravT    "compute_extension:flavorextradata": "",16:40
TravT    "compute_extension:flavorextraspecs:index": "",16:40
TravT    "compute_extension:flavorextraspecs:show": "",16:41
TravTignore the access ones above16:41
sjmc7yeah, neutron’s the same16:41
TravTbut sadly, i think we'd have to do a policy check on each of those16:41
sjmc7right now we have to duplicate that with admin_only_fields16:41
TravTand then add a filter or do post result filtering based on the policy check for each field16:42
sjmc7it’s better to filter when indexing16:42
TravTwhen indexing?16:42
sjmc7to avoid fishing searches like we had with nova16:42
TravTthat's true... but16:42
TravTwell, i suppose could check policy at index time to determine whether or not to do admin only indexing for specific fields16:43
*** yingjun has quit IRC16:43
TravTbut the policy check won't give that narrow of a result16:43
TravTsince it could be anything16:43
*** yingjun has joined #openstack-searchlight16:44
sjmc7it’s the same test, just at a different time. the drawback is you can’t then change the policy16:44
sjmc7but i don’t know how common it would be to tweak those in a deployment16:44
TravTnot likely16:44
TravTand you can always re-index16:44
TravTi mean we can just document that they'll have to set them as admin only fields in config16:44
TravTstart with that16:44
TravTand look at actually policy check at indexing later16:45
sjmc7yeah. i think we’ll need to look at it for neutron as well. i’m fine with admin-only for now16:45
TravTthe default is that they aren't16:45
TravTso, gb21, to answer your base question16:45
TravTadd extra specs to flavors and you should get them16:45
TravTin api result16:45
TravTmap as object16:46
sjmc7i think you have to call get_keys() or something?16:46
gb21and I don't need to define any of its properties right?16:46
gb21I think yes16:46
gb21I think get_keys() is there16:47
gb21I will check16:47
TravTnot right now16:48
TravTin the future i have an idea for how to do that across plugins16:48
TravTbut that can come later16:48
*** yingjun has quit IRC16:48
gb21okay; Thanks16:49
gb21:D16:49
TravTsjmc716:49
TravTthe cross project thing i was talking about is this:16:49
TravThttps://review.openstack.org/#/c/245629/16:49
TravTthey basically have the "common roles"16:50
TravTthat nobody has implemented yet16:50
TravTbecause it isn't agreed to16:50
TravTso i was just thinking that a plugin could declare what roles can use it...16:51
TravTlist of them16:51
TravTright now we really only have admin (cloud admin) and project user16:51
sjmc7isn’t that what policy does?16:51
TravTyes, it is16:52
TravTbut16:52
TravTback to SL UI usage16:52
sjmc7what’s the behavior you want for hypervisors specifically?16:52
TravTthe project vs admin dashboard16:52
TravTright now I can come in as an admin16:52
TravTand the list of plugins i can see would include everything16:53
sjmc7yep16:53
TravTso from a UI perspective16:53
TravTi need a way to know or to filter the plugins (types) that they can choose from in the project dashboard16:53
TravT(don't show hypervisor)16:53
sjmc7wait, so what’s the issue with hypervisors appearing?16:53
TravThypervisors are currently an admin dashboard thing16:54
openstackgerritTyr Johanson proposed openstack/searchlight-ui: Code organization cleanup  https://review.openstack.org/31567216:54
sjmc7so are flavors16:54
TravTbut users of a project can see flavors16:55
TravTthey show up at instance launch time16:55
sjmc7ok. i think i’m being dense :(16:55
TravTmaybe there isn't a panel16:55
TravTbut it doesn't matter, they can see them.16:56
sjmc7i guess i’m not getitng the rules under which something should or should not be visible. if it’s a hypervisor-specific thing then ok, we can do that16:56
gb21Do I have to index flavors with admin type as hypervisors are done?16:56
TravTyes16:56
david-lylesjmc7: it's policy driven16:57
gb21aalright; I will do that.16:57
sjmc7policy restricts whether a user can see them, but this seems to go beyond that16:57
TravTsjmc7, you were pointing out why we should have separate search panels (project vs admin)16:57
sjmc7yeah.. btu doesn’t this same problem hold right now?16:57
sjmc7or in its own dashboard?16:57
TravTmaybe and i we'd probably need to do something similar16:58
sjmc7i think i’m just confused, i should stop :)16:58
TravTyou just need to be able to scope your search to the right scope16:58
TravTdon't show me things that are adminny16:58
sjmc7:)16:59
david-lyleadminny?16:59
sjmc7i mean, they will only show up to an admin.16:59
TravTnew word of the day16:59
gb21I like it16:59
gb21:D16:59
sjmc7i would consider hypervisors like flavors in that sense, except they happen to be useable by everyone and can’t be restricted by project16:59
david-lyleso there's not really a problem of bleeding admin level info to a project level view, if the user has those permission and it relates to the currently scoped project17:00
TravTdavid-lyle: definitely on flavors17:00
david-lyleyeah, hypervisors, not so much17:00
TravTjust thinking if i'm logged in as admin and got to project search panel17:01
TravTdo i want to see hypervisors (exemplary type) as an option to only search on?17:02
TravTdo i want hypervisors to show up in my search when i don't restrict the search to a specific type?17:02
david-lyleI doubt it17:03
sjmc7and i presume you think ‘no'17:03
sjmc7which makes sense17:03
david-lylebut that's subjective17:03
sjmc7if you have a resource that’s not project specific and you’re a normal user (say a third party plugin that indexes docs) that would be the same question17:04
sjmc7so that’s my justification for saying this is not a role discussion17:04
sjmc7so much as a scoping one17:04
sjmc7so i’m fine with adding a parameter for ‘things that make sense in a project context’, i think17:05
*** lakshmiS has joined #openstack-searchlight17:06
TravTi think that's kind of what i'm getting as well.17:06
TravTif a plugin in its info has list of "scopes" or whatever17:06
TravTthen the UI can decide which "scopes" to include / exclude17:06
sjmc7i would worry that the distinction to a user will be tricky17:06
TravTwhether they see the plugin at all is still policy driven17:06
TravTi don't think it is necessarily up to the user17:07
sjmc7especially in a single dashboard/panel setup17:07
TravTbut to the developers17:07
TravTso i'm not sure if you think i'm arguing for single dashboard here or not, but i'm not17:07
sjmc7no, i don’t think you’re arguing either way17:08
sjmc7i’m trying to imagine the scenarios17:08
TravTi'm saying this is what we need to do in order to build a project & admin search based panel17:08
sjmc7i don’t even think that “fixes” it fully17:08
sjmc7(separate panels)17:08
TravTso, in project dashboard, i could chose to code in to exclude types that are admin only scope17:08
sjmc7i could imagine plugins that don’t make sense in a project context but aren’t admin only17:08
TravTso if admin comes in17:09
sjmc7if only there were a UX group :)17:09
TravTwe were going to run a usability study this month with piet17:09
TravTbut weren't sure we could get it prepared in time17:10
TravTand now he says our next chance is 6 months from now17:10
sjmc7like the motions of the planets17:10
TravTyeah, if the wind isn't blowing just right, you miss it17:10
TravTso, if flavors had17:11
TravTscope: ['admin', 'project']17:11
TravThypervisor had scope: ['admin']17:11
TravTas an api user17:12
TravTi could query plugins17:12
sjmc7and my imaginary docs plugin?17:12
TravTand then say for any that don't have scope of project, i will add an exclude filter17:12
TravTdocs: scope: ['admin', 'project', 'all']17:13
TravTfrankly you could have admin and user docs17:13
david-lyleproblem is admin, project is a classification that shouldn't be binary17:13
TravThmmm...17:13
TravTwell, i think the nut of it is that we need some way to classify in a way that API users and UI builders can make a choice.17:14
sjmc7i do kind of see the point. i don’t think the admin/non-admin boundary is where the distinction is though17:14
TravTif we have separate searching areas (project, admin, top nav)17:14
TravTno i don't either17:15
TravTbut i don't have a better word17:15
TravTokay, i know we didn't solve it, but i have to go17:16
TravTwill be back online in about an hour.17:17
david-lylemaybe combined is the best answer17:17
david-lylewith the UX issues tackled17:17
TravTcombined?17:18
david-lylea unified view that only relies on policy17:18
david-lyleI did it with identity17:18
david-lylebut identity is special :)17:19
sjmc7i still have nightmares about domains17:19
david-lyleyou're welcome17:19
david-lylefrom me and keystone17:19
sjmc7project hierarchy, anyone?17:20
sjmc7this has given me the heebie jeebies, i need to go eat things17:20
TravTyes, brain hurting17:21
TravTi'm going to go for the moment as well.17:21
TravTbut let's come back to this later.17:22
david-lyleyeah HMT should burn in a fire slowly17:22
david-lyleso much hell for one use case17:22
TravTcan i bring marshmallows?17:22
david-lyleif you like roasting marshmallows over burning toxic waste :)17:22
TravTit sounds similar to my day job17:22
TravT;)17:23
*** TravT_ has joined #openstack-searchlight17:24
*** TravT has quit IRC17:27
*** TravT_ has quit IRC17:30
openstackgerritYosef Hoffman proposed openstack/searchlight: Include zone_id in Designate Recordset mapping  https://review.openstack.org/31569117:32
*** gb21 has quit IRC17:33
*** TravT has joined #openstack-searchlight17:41
*** pcaruana has quit IRC17:58
*** openstackgerrit has quit IRC18:18
*** openstackgerrit has joined #openstack-searchlight18:19
sjmc7TravT: you back?19:05
*** bpokorny has quit IRC19:18
*** yingjun has joined #openstack-searchlight19:44
*** yingjun has quit IRC19:45
*** yingjun has joined #openstack-searchlight19:45
*** bpokorny has joined #openstack-searchlight19:45
*** yingjun has quit IRC19:50
TravThey sjmc720:07
TravTi had a thought on the whole plugins thing20:07
TravTjust add tags to the plugins20:07
TravTrather than a predefined set of categories or scopes...20:08
TravTbut then it becomes a deployment configuration headache20:09
sjmc7mmm20:10
*** lakshmiS has quit IRC21:13
*** sigmavirus24 is now known as sigmavirus24_awa22:00
openstackgerritTyr Johanson proposed openstack/searchlight-ui: Code organization cleanup  https://review.openstack.org/31567222:02
*** lakshmiS has joined #openstack-searchlight22:24
*** bpokorny_ has joined #openstack-searchlight22:47
*** bpokorny has quit IRC22:51
*** TravT has quit IRC22:51
*** lakshmiS has quit IRC23:01
*** bpokorny_ has quit IRC23:28
*** bpokorny has joined #openstack-searchlight23:29

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