Thursday, 2018-01-11

*** edmondsw has quit IRC00:00
mordredignore that ^^00:12
mordredQiming: if you have a sec, feel like reviewing https://review.openstack.org/#/c/530769/ ? I think it should be ok from your earlier comments00:14
mordredQiming: also, I pushed up a patch to heat to shift it from using senlinclient to using SDK https://review.openstack.org/#/c/532680/ and a senlin patch https://review.openstack.org/#/c/532641/ that I'd love your feedback on00:16
*** chenyb4 has joined #openstack-sdks00:46
*** dayou has quit IRC00:50
*** dayou has joined #openstack-sdks01:03
*** slaweq has joined #openstack-sdks01:19
*** slaweq_ has joined #openstack-sdks01:21
*** slaweq has quit IRC01:24
*** slaweq_ has quit IRC01:25
*** edmondsw has joined #openstack-sdks01:44
*** shu-mutou-AWAY is now known as shu-mutou01:46
*** edmondsw has quit IRC01:48
*** markvoelker has joined #openstack-sdks01:50
*** bobh has joined #openstack-sdks01:53
*** annp has joined #openstack-sdks02:11
*** chenyb4 has quit IRC02:22
*** Qiming has quit IRC02:33
*** markvoelker has quit IRC02:36
*** chenyb4 has joined #openstack-sdks02:39
*** Qiming has joined #openstack-sdks02:39
*** adriant has joined #openstack-sdks02:57
adriantis it just me, or query params/filters are busted for the openstackSDK?02:58
adriantI'm trying to list stuff via the SDK and the list commands appear to just take key/values as kwargs, but those aren't actually being used since QueryParameters._transpose() appears to gobble them up...02:59
adriantfrom what I can tell, this is because 'somewhere' on the resource we need to define what they acceptable query params are... or something? but this isn't actually happening anywhere.03:06
adriantno wait... they are actually being used03:07
adriantjust not at all for any of the identity03:07
adriantbut then the terrifying thing is that after mangling the query, i get returned EVERYTHING03:08
adriantso if I do: sdk.identity.projects(name="some project")03:09
adrianta list with projects of that name, OR nothing03:09
adriantyet I get everything...03:09
adriantbecause my query is being mangled and the API then does a call for everything03:10
adriantI think it would be much much safer to no mangle the query, just throw a damn error03:10
adriantnot*03:10
adriantif you attempt to query with a key that isn't setup to be queried with, throw an error rather than return to me a list of data that I may act upon thinking it matched my query...03:11
adriantwhen it didn't.03:11
*** slaweq has joined #openstack-sdks03:21
*** slaweq_ has joined #openstack-sdks03:21
*** ldl has joined #openstack-sdks03:22
*** slaweq has quit IRC03:25
*** slaweq_ has quit IRC03:26
*** thrash is now known as thrash|g0ne03:32
*** gkadam has joined #openstack-sdks04:03
openstackgerritAdrian Turjak proposed openstack/python-openstacksdk master: Raise error when supplying invalid query params  https://review.openstack.org/53272304:04
openstackgerritAdrian Turjak proposed openstack/python-openstacksdk master: Raise error when supplying invalid query params  https://review.openstack.org/53272304:05
adriantmordred, briancurtin: : ^ this technically break functionality, but because you're now requiring explicit definition of valid queries in the Resource2 class, rather than just passing them through without checking like Resource did, you can confirm people are being sensible.04:08
adriantIdentity has been moved to Resource2, but no one setup any valid queries for it... so trying to list projects and filtering by name returns all projects... which is an unsafe query because you're mangling the query I supplied since no one configured it as valid in the code.04:10
adriantBut... since we are configuring valid queries in the code (a good thing), we can stop people from making stupid mistakes by throwing this kind of error.04:10
adriantWhich means we actually need to define the queries. I'll dig through and see if there is a patch for adding filters to identityv3, if not, I'll submit that.04:11
*** bobh has quit IRC04:11
adrianthah, fuck, nvm, my bad. the version of the sdk I was using to test doesn't have it... master does... ignore me04:14
adriantStill worth throwing errors for invalid queries because it's safer, since we know what a valid query is04:18
*** shu-mutou has quit IRC04:35
*** shu-mutou has joined #openstack-sdks04:36
*** gkadam has quit IRC05:16
*** edmondsw has joined #openstack-sdks05:20
*** edmondsw has quit IRC05:24
*** shu-mutou is now known as shu-mutou-AWAY05:32
*** markvoelker has joined #openstack-sdks05:47
*** slaweq has joined #openstack-sdks06:09
*** slaweq has quit IRC06:13
*** annp has quit IRC06:38
*** markvoelker has quit IRC06:40
*** markvoelker has joined #openstack-sdks06:42
*** edmondsw has joined #openstack-sdks07:08
*** edmondsw has quit IRC07:13
*** dims_ has quit IRC07:21
*** dims has joined #openstack-sdks07:25
*** reedip has quit IRC07:34
*** slaweq has joined #openstack-sdks07:38
*** reedip has joined #openstack-sdks07:47
*** annp has joined #openstack-sdks08:01
*** fzdarsky has joined #openstack-sdks08:07
*** slaweq_ has joined #openstack-sdks08:10
*** slaweq_ has quit IRC08:14
*** gkadam has joined #openstack-sdks08:18
*** reedip has quit IRC08:34
openstackgerritZhaokun Fu proposed openstack/python-openstackclient master: add --password option for openstack server create  https://review.openstack.org/49071808:34
*** jpena|off is now known as jpena08:34
*** reedip has joined #openstack-sdks08:46
*** b_bezak has joined #openstack-sdks08:47
*** Mr_Broken has joined #openstack-sdks08:48
Mr_BrokenHey guys,08:48
Mr_BrokenAny chance that shade will be supporting SubnetPool functionality ? ( create, delete , manage ? )08:48
*** ralonsoh has joined #openstack-sdks08:50
*** edmondsw has joined #openstack-sdks08:56
*** b_bezak has quit IRC08:57
*** edmondsw has quit IRC09:01
*** jpich has joined #openstack-sdks09:02
*** e0ne has joined #openstack-sdks09:21
*** fzdarsky has quit IRC09:26
*** dtantsur|afk is now known as dtantsur09:38
*** fzdarsky has joined #openstack-sdks09:59
*** slaweq_ has joined #openstack-sdks10:11
*** markvoelker has quit IRC10:13
*** slaweq_ has quit IRC10:15
*** cdent has joined #openstack-sdks10:30
*** e0ne has quit IRC10:38
*** e0ne has joined #openstack-sdks10:39
*** edmondsw has joined #openstack-sdks10:44
*** slaweq_ has joined #openstack-sdks10:46
*** slaweq_ has quit IRC10:48
*** slaweq_ has joined #openstack-sdks10:48
*** slaweq has quit IRC10:48
*** edmondsw has quit IRC10:49
openstackgerritMerged openstack/python-openstacksdk master: Add query filters for find_network  https://review.openstack.org/47641011:02
*** chenyb4 has quit IRC11:06
*** fzdarsky has quit IRC11:27
*** sdague has joined #openstack-sdks11:39
*** e0ne has quit IRC11:58
*** cdent has quit IRC12:02
*** jpena is now known as jpena|lunch12:04
*** jkilpatr has joined #openstack-sdks12:05
*** annp has quit IRC12:05
*** slaweq has joined #openstack-sdks12:11
*** markvoelker has joined #openstack-sdks12:14
*** cdent has joined #openstack-sdks12:16
*** slaweq has quit IRC12:16
*** ldl has quit IRC12:28
*** e0ne has joined #openstack-sdks12:30
*** dayou has quit IRC12:32
*** edmondsw has joined #openstack-sdks12:33
*** e0ne has quit IRC12:33
*** Mr_Broken has quit IRC12:34
*** edmondsw has quit IRC12:38
*** e0ne has joined #openstack-sdks12:42
*** bobh has joined #openstack-sdks12:42
*** markvoelker has quit IRC12:48
*** e0ne has quit IRC12:52
*** dayou has joined #openstack-sdks12:53
*** e0ne has joined #openstack-sdks12:53
*** jpena|lunch is now known as jpena13:00
*** Mr_Broken has joined #openstack-sdks13:12
*** thrash|g0ne is now known as thrash13:18
*** e0ne has quit IRC13:20
*** fzdarsky has joined #openstack-sdks13:22
*** e0ne has joined #openstack-sdks13:24
*** bobh has quit IRC13:25
*** dayou has quit IRC13:26
*** e0ne has quit IRC13:30
openstackgerritDmitry Tantsur proposed openstack/api-wg master: [WIP] Add guideline on exposing microversions in SDKs  https://review.openstack.org/53281413:31
*** e0ne has joined #openstack-sdks13:33
*** e0ne has quit IRC13:34
*** dayou has joined #openstack-sdks13:39
*** markvoelker has joined #openstack-sdks13:44
openstackgerritStephen Finucane proposed openstack/cliff master: sphinxext: Warn if namespace or command pattern invalid  https://review.openstack.org/51091313:47
*** rabel_b1 has joined #openstack-sdks13:52
*** efried has joined #openstack-sdks13:53
*** e0ne has joined #openstack-sdks13:58
openstackgerritDmitry Tantsur proposed openstack/api-wg master: Add guideline on exposing microversions in SDKs  https://review.openstack.org/53281414:02
dtantsurcdent, mordred, TheJulia, thought dump complete  ^^^ :)14:03
*** slaweq has joined #openstack-sdks14:12
*** dave-mccowan has joined #openstack-sdks14:16
*** slaweq has quit IRC14:17
*** markvoelker has quit IRC14:18
mordreddtantsur: ooh, fun reading for this morning14:18
dtantsurhaha, I hope you enjoy it :) I did steal a few things from Shade docs ;)14:19
mordreddtantsur: it's good - and it's a hard topic. I think that's an excellent write up14:20
dtantsurcool!14:21
*** edmondsw has joined #openstack-sdks14:21
mordredadriant: in shade we do a hybrid approach, which is that we send query parameters to the service if we know about them, but then also filter results client-side before returning them, in case someone wants to filter by something that's not possible as a server-side filter14:22
*** edmondsw_ has joined #openstack-sdks14:24
mordredadriant: I was actually just thinking the other day about adding that post-filtering to Resource2 ... but I think we'd also want to add a flag to control pushdown behavior14:24
mordredbecause there are three general things people tend to want "pushdown as many filters to the server as possible and apply any remaining filters client-side" "pushdown everything and error if some filters can't be handled server-side" "pushdown nothing and do all filtering client-side"14:25
*** edmondsw has quit IRC14:28
*** jkilpatr has quit IRC14:39
*** jkilpatr has joined #openstack-sdks14:45
*** edmondsw_ is now known as edmondsw14:45
*** markvoelker has joined #openstack-sdks15:02
*** markvoelker has quit IRC15:02
*** rabel__b1 has joined #openstack-sdks15:03
*** rabel_b1 has quit IRC15:05
*** jkilpatr has quit IRC15:13
*** jkilpatr has joined #openstack-sdks15:13
*** jkilpatr has quit IRC15:13
*** jkilpatr has joined #openstack-sdks15:13
*** edmondsw has quit IRC15:18
*** cleong has joined #openstack-sdks15:20
*** markvoelker has joined #openstack-sdks15:24
*** edmondsw has joined #openstack-sdks15:24
*** bobh has joined #openstack-sdks15:24
*** slaweq_ has quit IRC15:30
*** slaweq has joined #openstack-sdks15:31
*** slaweq has quit IRC15:35
*** slaweq has joined #openstack-sdks16:09
*** slaweq has quit IRC16:13
*** slaweq_ has joined #openstack-sdks16:13
*** slaweq_ has quit IRC16:17
*** e0ne has quit IRC16:24
*** thrash is now known as thrash|biab16:26
*** cdent has quit IRC16:47
*** dtantsur is now known as dtantsur|afk16:47
*** cdent has joined #openstack-sdks16:52
*** fzdarsky has quit IRC17:00
*** thrash|biab is now known as thrash17:03
*** jpich has quit IRC17:17
cdentelmiko, edleafe, dtantsur|afk : https://etherpad.openstack.org/p/api-sig-newsletter please and thank you17:22
*** amotoki has quit IRC17:24
edleafelooking...17:24
edleafelooks like cdent has his thesaurus at the ready :)17:25
cdentI am a thesaurus17:26
*** rabel__b1 has quit IRC17:27
edleafecdent: one small wording change, but otherwise LGTM17:28
cdentyah, seems a sensible change17:28
cdentthanks17:28
cdentshipped17:29
*** slaweq has joined #openstack-sdks17:33
*** gkadam has quit IRC17:37
*** slaweq has quit IRC17:37
-openstackstatus- NOTICE: Due to an unexpected issue with zuulv3.o.o, we were not able to preserve running jobs for a restart. As a result, you'll need to recheck your previous patchsets17:48
*** ralonsoh has quit IRC18:04
openstackgerritDean Troyer proposed openstack/python-openstackclient master: Add floating IP qos_policy actions  https://review.openstack.org/51784518:10
*** jpena is now known as jpena|off18:16
elmikosorry cdent, was otherwise occupied :|18:36
cdentno problem18:37
*** cdent has quit IRC18:59
*** jkilpatr_ has joined #openstack-sdks19:00
*** jkilpatr has quit IRC19:01
*** jkilpatr_ has quit IRC19:07
*** gkadam has joined #openstack-sdks19:17
*** slaweq has joined #openstack-sdks19:20
*** jkilpatr_ has joined #openstack-sdks19:21
*** edmondsw_ has joined #openstack-sdks19:48
*** edmonds__ has joined #openstack-sdks19:48
*** edmondsw has quit IRC19:52
*** edmondsw_ has quit IRC19:52
adriantmordred: as long as we make the defaults sensible, and give the user control over them, I'm game. My problem is that if I give it incorrect params, or even correct params thatthe API accepts but we haven't coded in yet, and the code gobbles them up and doesn't tell me...19:53
adriantI'll be screwed when i realise the query I got back includes a list of everything, and none of the filters were actually passed along.19:54
adriantthrowing an error at least tells me to submit a patch to add missing filters to the SDK, or that I made a typo and threw in the wrong filter.19:55
adriantsilent failure = pain19:55
adriantlike I was using 0.9.19 which switched identity to resource2 but didn't yet have the identity filters merged, so when trying to filter project list by name I got back a full list, which... confused me since resource1 just passed the whole dict through.19:57
adriantmordred: as new services add filters, people will try using them via the SDK sometimes before we add them there, so we either need to make it clear we don't  support  them yet (error), or a way to explicitly bypass which filters we configure and just pass the filters through raw. The latter of which really could just be a case of: "do a raw API cal19:59
adriantl" if we don't want to add too much complexity.19:59
openstackgerritMerged openstack/osc-lib master: Fix find() interface when attr is not specified  https://review.openstack.org/52993420:07
*** gkadam has quit IRC20:12
*** e0ne has joined #openstack-sdks20:55
openstackgerritMerged openstack/python-openstackclient master: Add floating IP qos_policy actions  https://review.openstack.org/51784521:03
*** edmonds__ is now known as edmondsw21:07
*** e0ne has quit IRC21:09
*** Mr_Broken has quit IRC21:10
openstackgerritMichael Johnson proposed openstack/python-openstacksdk master: Re-enable octavia functional tests  https://review.openstack.org/53151421:14
*** jkilpatr_ has quit IRC21:27
*** e0ne has joined #openstack-sdks21:32
*** cleong has quit IRC21:33
*** jkilpatr has joined #openstack-sdks21:52
*** slaweq has quit IRC21:55
*** slaweq has joined #openstack-sdks21:56
*** e0ne has quit IRC21:57
*** dave-mccowan has quit IRC22:16
*** dave-mccowan has joined #openstack-sdks22:17
*** dave-mccowan has quit IRC22:25
*** bobh has quit IRC22:32
*** slaweq has quit IRC22:46
*** markvoelker has quit IRC22:49
*** markvoelker has joined #openstack-sdks22:49
*** Jeffrey4l has quit IRC22:53
*** markvoelker has quit IRC22:54
*** edmondsw has quit IRC22:54
*** edmondsw has joined #openstack-sdks22:55
*** Jeffrey4l has joined #openstack-sdks22:56
*** markvoelker has joined #openstack-sdks22:56
*** edmondsw has quit IRC22:59
*** markvoelker has quit IRC22:59
*** markvoelker has joined #openstack-sdks23:00
*** markvoelker has quit IRC23:05

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