Tuesday, 2016-01-26

*** chlong has quit IRC00:20
*** chlong has joined #openstack-sahara00:20
*** chlong has quit IRC00:41
*** chlong has joined #openstack-sahara00:41
*** david-lyle has joined #openstack-sahara00:42
*** chlong has quit IRC00:48
*** chlong has joined #openstack-sahara00:49
*** chlong has quit IRC00:53
*** chlong has joined #openstack-sahara00:53
*** chlong has quit IRC01:55
*** chlong has joined #openstack-sahara01:55
*** macjack has quit IRC02:05
*** david-lyle has quit IRC02:05
*** macjack has joined #openstack-sahara02:09
openstackgerritJaxon Wang proposed openstack/sahara: CDH plugin versionhandler refactoring  https://review.openstack.org/26119202:24
*** chlong has quit IRC02:49
*** chlong has joined #openstack-sahara02:49
*** superflyy has joined #openstack-sahara02:50
*** chlong has quit IRC03:17
*** chlong has joined #openstack-sahara03:18
*** chlong has quit IRC03:19
*** chlong has joined #openstack-sahara03:19
*** david-lyle has joined #openstack-sahara03:25
*** superflyy has quit IRC04:01
*** tingwang has joined #openstack-sahara04:51
*** tellesnobrega is now known as tellesnobrega_af05:12
*** tellesnobrega_af is now known as tellesnobrega05:13
*** hdd has quit IRC05:46
*** rcernin has joined #openstack-sahara06:53
*** tingwang has quit IRC07:13
*** vgridnev has joined #openstack-sahara07:17
*** nkrinner has joined #openstack-sahara07:24
*** tingwang has joined #openstack-sahara07:27
*** tellesnobrega is now known as tellesnobrega_af07:34
*** tingwang has quit IRC07:39
*** esikachev has joined #openstack-sahara07:47
*** tingwang has joined #openstack-sahara08:07
*** witlessb has joined #openstack-sahara08:11
openstackgerritlu huichun proposed openstack/sahara: [EDP] Add suspend_job() for sahara edp engine(oozie implementation)  https://review.openstack.org/20144808:12
*** AndreyPavlov has joined #openstack-sahara08:13
*** witlessb has quit IRC08:15
*** witlessb has joined #openstack-sahara08:19
openstackgerritJinxing Fang proposed openstack/sahara: Add Sahara-dashboard plugin in devstack local.conf  https://review.openstack.org/27168808:31
*** witlessb has quit IRC08:33
*** tmckay has quit IRC08:33
*** witlessb has joined #openstack-sahara08:34
openstackgerritlu huichun proposed openstack/sahara: Add release note for deprecate-plugin-vanilla2.6.0  https://review.openstack.org/27242808:40
*** witlessb has quit IRC08:43
*** witlessb has joined #openstack-sahara08:47
*** tmckay has joined #openstack-sahara08:50
*** esikachev has quit IRC08:51
openstackgerritlu huichun proposed openstack/sahara: Remove vanilla 2.6.0 code  https://review.openstack.org/25511108:59
*** esikachev has joined #openstack-sahara09:07
*** AndreyPavlov has quit IRC09:07
*** witlessb has quit IRC09:19
*** witlessb has joined #openstack-sahara09:24
*** _degorenko|afk is now known as degorenko09:56
*** AndreyPavlov has joined #openstack-sahara09:56
*** witlessb has quit IRC09:58
*** witlessb has joined #openstack-sahara10:01
*** jamielennox is now known as jamielennox|away10:15
*** jamielennox|away is now known as jamielennox10:25
*** witlessb_ has joined #openstack-sahara10:31
*** witlessb has quit IRC10:32
*** witlessb_ is now known as witlessb10:32
*** tosky has joined #openstack-sahara10:43
*** tellesnobrega_af is now known as tellesnobrega10:46
openstackgerritMerged openstack/sahara-image-elements: Pass all current env to tox venv  https://review.openstack.org/27217910:47
*** tingwang has quit IRC10:51
*** tingwang has joined #openstack-sahara10:51
openstackgerritMerged openstack/sahara: Use internal auth url to communicate with swift  https://review.openstack.org/26900110:57
*** chlong has quit IRC11:05
*** chlong has joined #openstack-sahara11:10
*** witlessb has quit IRC11:29
*** witlessb has joined #openstack-sahara11:30
*** vgridnev has quit IRC11:45
openstackgerritMerged openstack/sahara: Enable sahara-dashboard devstack plugin in sahara plugin  https://review.openstack.org/25290612:17
openstackgerritAndrey Pavlov proposed openstack/python-saharaclient: Adding ability to unset fields with update calls  https://review.openstack.org/27250312:21
*** vgridnev has joined #openstack-sahara12:22
openstackgerritEvgeny Sikachev proposed openstack/sahara-ci-config: Add sahara-ci to sahara-scenario  https://review.openstack.org/26815012:30
*** witlessb has quit IRC12:33
*** witlessb has joined #openstack-sahara12:38
*** vgridnev has quit IRC12:41
*** vgridnev has joined #openstack-sahara12:42
openstackgerritEvgeny Sikachev proposed openstack/sahara-ci-config: Fix ci in saharaclient  https://review.openstack.org/27250912:42
*** tmckay has left #openstack-sahara12:47
*** tmckay has joined #openstack-sahara12:48
openstackgerritEvgeny Sikachev proposed openstack/sahara-ci-config: Add sahara-ci to sahara-scenario  https://review.openstack.org/26815012:52
*** raildo-afk is now known as raildo12:59
*** witlessb has quit IRC13:02
openstackgerritEvgeny Sikachev proposed openstack/sahara-ci-config: Add sahara-ci to sahara-scenario  https://review.openstack.org/26815013:02
*** witlessb has joined #openstack-sahara13:05
openstackgerritMerged openstack/sahara: Fix using regions in all OS clients  https://review.openstack.org/26902413:06
*** tingwang has quit IRC13:07
openstackgerritMerged openstack/sahara-ci-config: Fix ci in saharaclient  https://review.openstack.org/27250913:11
*** raildo is now known as raildo-afk13:13
*** raildo-afk is now known as raildo13:14
*** witlessb has quit IRC13:17
*** witlessb has joined #openstack-sahara13:20
openstackgerritAkihiro Motoki proposed openstack/sahara-dashboard: Update devstack plugin  https://review.openstack.org/27252513:25
openstackgerritEvgeny Sikachev proposed openstack/sahara-scenario: testcommit for ci  https://review.openstack.org/27253713:35
*** witlessb has quit IRC13:47
*** witlessb has joined #openstack-sahara13:47
*** witlessb has quit IRC14:01
*** witlessb has joined #openstack-sahara14:02
*** crobertsrh has joined #openstack-sahara14:04
*** tmckay has quit IRC14:04
*** tmckay has joined #openstack-sahara14:09
crobertsrhvgridnev:  Have you noticed that our tests are failing looking for "urlresolvers"?14:16
*** witlessb has quit IRC14:16
vgridnevcrobertsrh, yep14:16
crobertsrhI noticed it yesterday and tmckay was just trying to get up and running.14:16
vgridnevAnd also know reasons14:17
crobertsrhHave you already figured out the fix?14:17
crobertsrhah, great14:17
crobertsrhI was just about to go looking14:17
vgridnevhttps://github.com/openstack/horizon/commit/8b2a3417e380a95b3a3b9a20cfbb5b03b9354c1514:17
tmckaylooks like some horizon utils module went missing14:17
vgridnevyes, I was removed in commit above14:17
crobertsrhok, so it was an intentional change14:18
*** witlessb has joined #openstack-sahara14:19
tmckaythat might fix the gate stuff, I guess. But I'm getting this when I try to connect to a running horizon with sahara-dashboard installed:14:20
tmckayblah blah blah14:20
tmckay  File "/home/fedora/horizon/.venv/lib/python2.7/site-packages/sahara_dashboard/content/data_processing/job_executions/views.py", line 20, in <module>14:20
tmckay    from horizon.utils.urlresolvers import reverse  # noqa14:20
tmckayImportError: No module named urlresolvers14:20
tmckayvgridnev, crobertsrh, seems like a different issue to me ... not a test14:21
tmckaybut maybe I misunderstand14:22
openstackgerritGeorgy Dyuldin proposed openstack/sahara-dashboard: Add test 'cluster create-delete with fake plugin'  https://review.openstack.org/27255814:28
crobertsrhvgridnev:  I'm guessing we need to change our horizon.utils.urlresolvers to django.core.urlresolvers?  Are you already working on a patch, or shall I?14:31
vgridnevI haven't working on this14:32
crobertsrhOk, I'll take a whack at it.  thanks14:34
crobertsrhtmckay, vgridnev:  ok, the urlresolvers change takes care of a lot.  Now just a few AttributeError: 'module' object has no attribute 'ComplexActionRowRegion' to sort out....any ideas on that vgridnev?14:46
*** witlessb has quit IRC14:47
vgridnevhm, about this I have no ideas right now14:47
*** witlessb has joined #openstack-sahara14:47
crobertsrhOk, thanks14:49
tmckaycrobertsrh, ++, thanks for chasing this14:51
crobertsrhOk, those errors are likely to be fixed by another patch chain https://review.openstack.org/#/c/262747/4  (I hope)14:54
openstackgerritAndrey Pavlov proposed openstack/sahara-specs: Distributed periodic tasks spec  https://review.openstack.org/27256914:56
openstackgerritChad Roberts proposed openstack/sahara-dashboard: Now using django.core.urlresolvers  https://review.openstack.org/27257014:56
crobertsrhtmckay:  ^^^ should get you going.  The other errors are in the integration tests and shouldn't affect you.14:57
crobertsrhplease review the patch as well.  It would be good to get that merged soon.14:58
*** witlessb has quit IRC14:58
*** witlessb has joined #openstack-sahara14:59
*** witlessb has quit IRC14:59
*** tosky has quit IRC14:59
*** witlessb has joined #openstack-sahara15:00
*** egafford has joined #openstack-sahara15:01
*** tosky has joined #openstack-sahara15:01
*** tmckay has quit IRC15:02
*** tmckay has joined #openstack-sahara15:09
tmckaycrobertsrh, thanks ^^15:09
crobertsrhno prob.  Let me know how it works for you15:09
*** AndreyPavlov has quit IRC15:30
openstackgerritJinxing Fang proposed openstack/sahara: Update the devstack.rst document  https://review.openstack.org/27168815:39
openstackgerritAndrey Pavlov proposed openstack/sahara-specs: Distributed periodic tasks spec  https://review.openstack.org/27256916:07
*** vgridnev has quit IRC16:08
*** vgridnev has joined #openstack-sahara16:09
crobertsrhvgridnev:  It looks like the integration test stuff is also a problem for https://review.openstack.org/272570 to be able to pass.  I think that tsufiev's patches to the integration tests are also needed, but it looks like those are also failing to pass right now.  Any ideas on how we should un-wedge ourselves?16:19
crobertsrhalso, should those integration tests be run as part of py27?16:19
*** AndreyPavlov has joined #openstack-sahara16:22
crobertsrhI need to head out for lunch.  Will be back soon.16:25
*** chlong is now known as chlong_zzz16:28
*** crobertsrh has quit IRC16:31
*** nkrinner has quit IRC16:51
*** vgridnev has quit IRC16:51
*** hdd has joined #openstack-sahara17:05
*** tellesnobrega is now known as tellesnobrega_af17:06
*** esikachev has quit IRC17:11
*** tellesnobrega_af is now known as tellesnobrega17:15
*** openstackgerrit has quit IRC17:17
*** openstackgerrit has joined #openstack-sahara17:18
*** vgridnev has joined #openstack-sahara17:24
*** jriveram has joined #openstack-sahara17:26
*** crobertsrh has joined #openstack-sahara17:34
*** vgridnev has quit IRC17:43
*** vgridnev has joined #openstack-sahara17:46
crobertsrhSergeyLukjanov, vgridnev:  Question about https://review.openstack.org/272570 It's currently failing due to some integration tests, but I thought that the integration tests were to be run separately from the unit tests (there's a separate job for them).  The patch is badly needed since horizon won't even start with the sahara-dashboard plugin at the moment.  Any thoughts on what a sensible step would be?17:46
*** raildo is now known as raildo-afk17:47
*** tellesnobrega is now known as tellesnobrega_af17:48
*** raildo-afk is now known as raildo17:49
vgridnevcrobertsrh, I think that we should run integration tests separately17:50
crobertsrhYeah, I agree.  There is already a separate job for them.  Somehow, they are also running as part of gate-sahara-dashboard-python2717:51
crobertsrhI'm a little unfamiliar with how/where they are configured.17:51
*** tellesnobrega_af is now known as tellesnobrega17:51
vgridnevactually it's a little bit strange, I think17:52
vgridnevmaybe we have some kind of unit tests for integration tests?17:53
tmckayhttp://paste.openstack.org/show/485049/17:53
tmckaysomething wrong with the path, or is there some way to configure the test loader?17:54
tmckaylooks to me from 10,000 feet that it's just reading stuff out of that dir ...17:54
tmckaycrobertsrh, ^^17:54
crobertsrhyeah, it does appear to be grabbing all of those from that dir.  It's a newer behavior though.  Tests were fine until about yesterday, I think.17:55
crobertsrhOf course, that was when I noticed it...could have been broken for a bit longer, I guess.17:55
tmckayyeah, there are api_tests and integration_tests in there.  Hmm17:55
elmikocrobertsrh: if you are curious about the testing infra, i *think* this is the repo you want to checkout https://github.com/openstack-infra/project-config/17:55
elmikolook at the jenkins subdir17:55
*** degorenko is now known as _degorenko|afk17:56
vgridnevelmiko, tmckay actually we don't have any dirs in tox.ini : https://github.com/openstack/sahara-dashboard/blob/master/tox.ini#L1717:58
vgridnevshould we specify something?17:58
crobertsrhYeah, I was just discovering that17:58
crobertsrhMaybe?17:58
crobertsrh./run_tests.sh  yields    "nosetests sahara_dashboard --nocapture --nologcapture --cover-package=openstack_dashboard --cover-inclusive --all-modules --verbosity=1"17:59
*** hdd has quit IRC17:59
tmckaycrobertsrh, I wonder if the sahara repo is analagous18:00
tmckayanalogous, sorry :)18:00
crobertsrhsomething must have changed somewhere...these tests had to have passed at some point, right?18:01
elmikoi would *hope* so ;)18:01
crobertsrhOh right...I think the horizon table action bits changed underneath....causing these tests to fail.18:01
tmckayI would think so.  do we know the root cause of the ComplexRowAction18:01
crobertsrhsorry....replaying things in my mind18:01
crobertsrhThere is a patch that would possibly fix that, but that patch is currently failing tests as well.18:02
crobertsrhBut, ideally, I don't think these tests should be run as part of gate*python2718:02
*** Taz_ has joined #openstack-sahara18:04
rickflareguys allow me introduce you to Taz. He is a awesome dev and cloud engineer who works with me. He is going to be helping with testing and more soon!18:05
tmckaywelcome!18:05
Taz_hey im a newb18:05
rickflareto sahara yes but to Hadoop he is not.18:06
crobertsrhwelcome Taz_18:06
Taz_thanks!18:07
Taz_waiting for devstack to install...takes forever18:08
crobertsrhHeh18:09
rickflareso I finished my RDO install using VM's18:09
crobertsrheverything working smoothly?18:09
rickflarewhat the directions fail to tell you is that once you are done you will not be able to access horizon without serveral layers of ssh tunnels18:09
*** raildo is now known as raildo-afk18:10
rickflarecrobertsrh yes everything install as expected18:10
rickflarebut accesses it is a major PITA18:10
rickflareand i cant using the bare metal install18:10
rickflarebecause all my systems dont have ipmi18:10
crobertsrhbare metal pains have been felt by tmckay recently.  You guys could swap war stories, I'm sure.18:11
rickflareI was talking to Taz and one of the things we feel holding up community dev is just getting this up and running18:12
rickflareI found some issues with the documentation and I submitted fixes18:12
rickflarebut there is still some rough edges18:12
*** esikachev has joined #openstack-sahara18:12
rickflarethe biggest area is just detailed explanation of networking18:13
rickflareand how it should be setup in most environments18:13
*** raildo-afk is now known as raildo18:13
rickflareif that is covered I think it would address 90% of the issues I ran into18:13
crobertsrhYeah, the networking stuff is really complex in the "non-devstack" world18:13
crobertsrhany feedback/patches are certainly welcomed.  It's good to hear back from actual users.18:13
rickflarewhats worse crobertsrh is I actually understand the openstack networking18:13
crobertsrhOh dear.  my condolences :)18:14
rickflarewhats not explained is how you should setup routing18:14
rickflarelike when install RDO they are like ok you can use your network settings here blah blah18:14
rickflarewith no mention of like well if you do this you can or can not route to your vms or the vms wont be able to route out to your real network etc18:15
rickflareI was telling egafford how maddening it is18:15
rickflareto have this running and can not route to anything18:15
crobertsrhI wonder if there are just too many possibilities to document them all or if the doc writer was just lazy18:15
crobertsrhYes, running and not routable is pretty much == not running :)18:15
rickflarewell I think it should cover how most will test this18:15
rickflare99% will have a network they dont control18:16
rickflareIE ISP18:16
rickflareand they have a box that is running kvm and runs the RDO manager etc18:16
rickflarebase it off that18:16
rickflarethat way when folks want to do more advanced stuff they have a solid baseline.18:16
rickflareDoes that make sense?18:16
crobertsrhI think so.  I've never had a setup like that, but I certainly understand what you're getting at.18:17
rickflarewhen you deploy RDO how do you do it?18:18
rickflareor are you strickly a devstack users18:18
*** tosky has quit IRC18:19
crobertsrhI have only done upstream devstack-based dev recently.18:20
crobertsrhWhen I did use RDO, it was a very basic "try it out" kind of install.18:20
egaffordrickflare: This room is going to be very devstack-centric, really.18:31
*** witlessb has quit IRC18:33
rickflareahh18:37
rickflareok18:37
egafford#rdo and #tripleo are more focused on the RDO codebase and its installer.18:38
rickflare10-418:39
*** vgridnev has quit IRC18:45
*** witlessb has joined #openstack-sahara18:47
*** akuznetsov has joined #openstack-sahara18:48
*** vgridnev has joined #openstack-sahara18:48
*** vgridnev has quit IRC18:48
*** hdd has joined #openstack-sahara19:09
*** akuznetsov has quit IRC19:10
openstackgerritChad Roberts proposed openstack/sahara-dashboard: Fixing imports and no longer always running int tests  https://review.openstack.org/27270019:17
crobertsrhtmckay, elmiko, egafford, vgridnev:  Ok, please take a look at ^^^.  It combines the 2 needed fixes to get things flowing again.  The urlresolvers fix from this morning and a fix to stop running the integration tests when they should not be.19:19
crobertsrhI had to combine the 2 fixes because neither one would pass tests without the other one.....fun :)19:20
elmikocrobertsrh: ack, taking a look19:21
egaffordcrobertsrh: https://review.openstack.org/#/c/272700/1/sahara_dashboard/content/data_processing/job_binaries/views.py just removes the import without adding a new one. Is this awesome?19:21
crobertsrhYeah....a bit of fun there19:22
egaffordSo fun.19:22
crobertsrhevidently, we just imported the other stuff on top of the good stuff19:22
crobertsrhbonus bug fix19:22
elmikolol19:22
egaffordcrobertsrh: So the contract is that if (either with_selenium or integration is true,) then the integration tests will run?19:25
crobertsrhYeah...same in horizon run_tests.sh19:25
*** jriveram has quit IRC19:31
*** esikachev has quit IRC19:50
*** rcernin has quit IRC19:58
openstackgerritTimur Sufiev proposed openstack/sahara-dashboard: Adapt for all horizon i9n refactoring changes  https://review.openstack.org/26274720:05
*** vgridnev has joined #openstack-sahara20:06
crobertsrhelmiko, tmckay, egafford:  tests passed....should we merge it (considering it's totally broken atm)?20:10
elmikosounds good to me20:11
elmikoit's got +5 currently, i think that should be fine20:12
elmikodone and done...20:12
crobertsrhcool20:12
crobertsrhthanks20:12
elmikoand thank you for putting it together so quickly =)20:13
crobertsrh'twas a learning experience for sure :)20:13
*** egafford has quit IRC20:14
openstackgerritMerged openstack/sahara-dashboard: Fixing imports and no longer always running int tests  https://review.openstack.org/27270020:14
openstackgerritChad Roberts proposed openstack/sahara-dashboard: Adding support for editing active cluster shares  https://review.openstack.org/25322320:18
openstackgerritChad Roberts proposed openstack/sahara-dashboard: Update devstack plugin  https://review.openstack.org/27252520:20
vgridnevcan we bring more attention for this one: https://review.openstack.org/#/c/270156/ ?20:29
elmikovgridnev: ack, i'll take another look20:30
*** rcernin has joined #openstack-sahara20:32
*** flwang has left #openstack-sahara20:33
*** crobertsrh has quit IRC20:34
tmckayvgridnev, I'll take a look too20:34
tmckayalso, guys, I wonder if we should revisit this https://review.openstack.org/#/c/232067/20:35
*** AndreyPavlov has quit IRC20:36
tmckayno substring filtering is a real failing, imho. I wonder if it's worth the (I think) low risk of a change in behavior20:36
*** crobertsrh has joined #openstack-sahara20:37
tmckaycrobertsrh, while you were disconnected I posted this:20:40
tmckay03:35:19 PM) tmckay: also, guys, I wonder if we should revisit this https://review.openstack.org/#/c/232067/20:40
tmckay(03:36:27 PM) tmckay: no substring filtering is a real failing, imho. I wonder if it's worth the (I think) low risk of a change in behavior20:40
crobertsrhah, yes.  I remember it fondly20:41
tmckayif we wait for v2, it may be a really long time20:41
crobertsrhYeah, I remember originally, I was all for just doing it.20:41
crobertsrhThe concern was for people that might have come to rely on the broken behavior20:42
tmckayelmiko, ^^20:42
crobertsrhpunting to v2 seems like it would only encourage more people to adapt to the brokenness20:42
tmckayyeah. but if we say that filtering was broken, ie it was a bug, and this is the correct behavior ...20:42
tmckayooo, crazy idea. I wonder if we could provide a config to keep it busted20:43
tmckaydefaulted to "filter" but you could set it to "broken"20:43
elmikohmm20:43
elmikowell, we aren't changing the api contract here, we are just "fixing" a broken search impl. i would think we could make a case for just fixing it20:44
tmckayyeah, your result set may change for a particular search20:44
elmikoi agree about documenting the change *thoroughly*20:45
tmckaybut the current situation -- search for exact match, and exact match only, has got to be broken by anyone's estimation20:45
elmiko+120:45
tmckayafter all, if you make the search string long enough, you can still have exact match.20:45
elmikoi'd say start by making a bug, if we don't aleady have one20:45
tmckayFind the thing you're looking for, cut and paste the name, and then search :-D20:46
* elmiko doesn't remember if we already have a bug20:46
elmikohaha20:46
*** esikachev has joined #openstack-sahara20:46
elmikoat they very least, fixing it to behave more like a substring match would be great imo20:46
tmckayI'll check for a bug. Thanks. I think it's worth serious consideration of getting this in Mitaka20:46
elmikoi'm good with that20:46
tmckayk, thanks20:47
tmckayhttps://bugs.launchpad.net/sahara/+bug/150334520:48
openstackLaunchpad bug 1503345 in Sahara "Filtering queries only works for exact matches" [High,In progress] - Assigned to Trevor McKay (tmckay)20:48
tmckayelmiko, ^^20:48
elmikoawesome20:50
elmikolooks like you posted a fix too ;)20:50
elmikovgridnev: i have one small nit with the health check spec, otherwise lgtm20:50
*** esikachev has quit IRC20:51
openstackgerritVitaly Gridnev proposed openstack/sahara-specs: Cluster verifications spec  https://review.openstack.org/27015620:52
tmckayelmiko, does the API working group have guidelines for filtering? I bet they do20:53
* tmckay goes to look20:53
*** raildo is now known as raildo-afk20:54
vgridnevtmckay, I just revisited your change, I think that it's okay to accept that to mitaka, and also we should definitely avoid undocumented places.20:54
elmikotmckay: http://specs.openstack.org/openstack/api-wg/guidelines/pagination_filter_sort.html20:55
tmckayelmiko, "TODO: Add guidance on a “LIKE” or regex operator to search text." lol20:56
tmckaywe can be trailblazers20:56
*** hdd has quit IRC20:59
elmikoyea!21:01
openstackgerritMerged openstack/sahara-dashboard: Adding support for editing active cluster shares  https://review.openstack.org/25322321:01
elmikotmckay: if you come up with something good, propose it as a guideline21:01
*** crobertsrh has quit IRC21:04
tmckayelmiko, gonna play around with Nova, I did once but I forget what I found :)21:04
elmikok21:06
elmikotmckay: it may also be interesting to see how searchlight does this?21:07
openstackgerritVitaly Gridnev proposed openstack/sahara-dashboard: ACL support in Sahara UI  https://review.openstack.org/25341821:07
elmikoassuming they expose an api21:07
tmckayelmiko, ack, good idea21:09
tmckayelmiko, yeah, nova-api.log shows "1f953c83a044bf4b940335321dc6514/servers/detail?limit=21&name=ha&project_id=91f953c83a044bf4b940335321dc6514", that was a filter on name "ha" and it worked as a substring21:12
elmikocool21:12
tmckayso, no indication in the url that it is anything other than literal equality (but it's not)21:12
elmikothat doesn't seem too out of whack, it's just a matter of how the server interprets that search command21:13
tmckayyeah. that's our case, too.21:13
* tmckay goes off to check the nova code again21:13
elmikoi mean, if we *really* want to preserve exact match, just make the parameter partial_name or something?21:13
elmikoor add an exact_name param21:14
elmikoor even an exact_match boolean21:14
*** Erming_ has quit IRC21:14
elmikoi think that last one is my fav.21:14
*** esikachev has joined #openstack-sahara21:14
elmikoname=<some name>, which results in a substring match21:14
elmikoadd exact=True to get an exact match21:14
elmikoso, like. .../some/resource?name=foo&exact=True21:15
tmckayooo21:15
elmikoor somesuch...21:15
tmckaythat might give us a way to sorta preserve compat in the client21:17
elmikoyea, i mean if you want total backward compat, just add a subtring=True param?21:17
elmikoi would question if we need to keep backward compat here though21:18
tmckayme too21:18
elmikoright, so given that, my preference would be to add an "exact=" param (if needed)21:19
tmckayoh man, nova allows \ continuation lines. Barbarians.21:19
elmikohehe21:19
tmckayit's really jarring now that I've been in Sahara land :)21:19
*** esikachev has quit IRC21:21
elmikostranger in a strange land?21:22
*** hdd has joined #openstack-sahara21:23
tmckayelmiko, yeah, the nova stuff is much more complicated, with same fields set to exact, and some set to regex, and then the regex op is based on the database connection type. But there is a "like" case that just uses %value%, like our simple patch21:26
tmckay"same fields" => "some fields"21:27
elmikoah, interesting21:27
tmckayso, we could start with simple substring matches where appropriate and then build out filtering if necessary21:27
elmikoprobably best if we just stick to answering the "exact vs like" debate first ;)21:27
openstackgerritVitaly Gridnev proposed openstack/sahara-dashboard: ACL support in Sahara UI  https://review.openstack.org/25341821:27
tmckayoh yeah21:27
*** rcernin has quit IRC21:28
elmikoi could see us defaulting to "like" style match21:28
elmikoespecially with things like searchlight gaining more traction21:28
elmikoi have a feeling that anyone writing a client for sahara will be more affected by our choice than end-users who are using sahara through horizon21:28
*** hdd has quit IRC21:29
tmckayyes. I think horizon uses would say "hey! they fixed it!"21:29
elmikohaha21:29
elmikocould be ;)21:30
elmikolike, i totally get why nova would need a very robust filtering api21:30
elmikobut, there is more than just horizon consuming nova. many apps are written to interact with nova through the client apis21:30
elmikobut for sahara, we don't have the same level of usage that nova does21:31
elmiko(although we can dream)21:31
*** vgridnev has quit IRC21:33
*** jriveram has joined #openstack-sahara21:43
*** egafford has joined #openstack-sahara21:56
tmckayelmiko, ack, I don't think we need anything fancy22:04
*** Erming_ has joined #openstack-sahara22:46
*** egafford has quit IRC22:55

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