Tuesday, 2015-02-17

*** bknudson has joined #openstack-sdks00:48
*** etoews has quit IRC00:57
*** jamielennox is now known as jamielennox|away01:16
*** sigmavirus24 is now known as sigmavirus24_awa01:17
*** pm90_ has quit IRC01:20
*** jamielennox|away is now known as jamielennox01:31
*** jamielennox is now known as jamielennox|away01:41
*** pm90_ has joined #openstack-sdks01:43
openstackgerritBrian Curtin proposed stackforge/python-openstacksdk: Allow Resource attributes to be updated  https://review.openstack.org/15644802:07
*** jamielennox|away is now known as jamielennox02:09
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Revert "Skip functional tests until they are fixed"  https://review.openstack.org/15644902:11
*** terrylhowe has joined #openstack-sdks02:18
openstackgerritBrian Curtin proposed stackforge/python-openstacksdk: Use case insensitive dict for Resource attributes  https://review.openstack.org/15613502:33
*** bknudson has quit IRC02:37
openstackgerritBrian Curtin proposed stackforge/python-openstacksdk: Allow Resource attributes to be updated  https://review.openstack.org/15644803:09
*** pm90_ has quit IRC03:26
*** pm90_ has joined #openstack-sdks03:31
*** pm90_ has quit IRC03:50
*** pm90_ has joined #openstack-sdks05:21
*** pm90_ has quit IRC05:24
*** etoews has joined #openstack-sdks05:25
*** etoews has quit IRC05:29
*** terrylhowe has quit IRC05:33
*** pm90_ has joined #openstack-sdks05:38
*** pm90_ has quit IRC05:58
openstackgerritBrian Curtin proposed stackforge/python-openstacksdk: Mutate Resource via mapping instead of dict  https://review.openstack.org/15648506:46
*** etoews has joined #openstack-sdks06:57
openstackgerritBrian Curtin proposed stackforge/python-openstacksdk: Adjust Container override methods  https://review.openstack.org/15648706:58
*** etoews has quit IRC07:02
openstackgerritColleen Murphy proposed openstack/python-openstackclient: Add project-id parameter to network create  https://review.openstack.org/15649207:24
*** stevemar has quit IRC07:38
*** fifieldt has joined #openstack-sdks08:09
*** chlong has quit IRC08:11
*** etoews has joined #openstack-sdks08:20
*** etoews has quit IRC08:24
*** etoews has joined #openstack-sdks08:39
*** etoews has quit IRC08:43
*** fifieldt has quit IRC08:56
*** jamie_h_ has joined #openstack-sdks08:58
*** jamie_h_ is now known as jamie_h09:00
*** jamie_h has left #openstack-sdks09:02
*** etoews has joined #openstack-sdks09:10
*** etoews has quit IRC09:14
*** etoews has joined #openstack-sdks11:06
*** etoews has quit IRC11:11
*** etoews has joined #openstack-sdks11:25
*** etoews has quit IRC11:29
*** etoews has joined #openstack-sdks12:25
*** etoews has quit IRC12:30
*** etoews has joined #openstack-sdks13:19
*** HenryG has quit IRC13:49
*** HenryG has joined #openstack-sdks13:52
*** pm90_ has joined #openstack-sdks14:00
*** ayoung has joined #openstack-sdks14:12
*** terrylhowe has joined #openstack-sdks14:18
*** bknudson has joined #openstack-sdks14:20
*** pm90_ has quit IRC14:29
*** pm90_ has joined #openstack-sdks14:29
*** sigmavirus24_awa is now known as sigmavirus2414:54
openstackgerritBrian Curtin proposed stackforge/python-openstacksdk: Adjust Container override methods  https://review.openstack.org/15648715:26
*** stevemar has joined #openstack-sdks15:28
openstackgerritBrian Curtin proposed stackforge/python-openstacksdk: Use case insensitive dict for Resource attributes  https://review.openstack.org/15613515:36
*** pm90_ has quit IRC16:02
*** etoews has quit IRC16:03
*** etoews has joined #openstack-sdks16:04
briancurtinterrylhowe: what if we do Resource.list(..., paginated=True) and then just bounce out of the more_data list after one iteration when it's false?16:31
briancurtinthis way at the lower level, which i think we agree that you have to know some of what you're doing, there's not really anything added there. then it would still be equally hidden from Proxy.list_blah calls16:33
briancurtin**more_data loop16:33
*** bknudson has quit IRC16:50
openstackgerritBrian Curtin proposed stackforge/python-openstacksdk: Support listing non-paginated response bodies  https://review.openstack.org/15666417:04
terrylhowebriancurtin: I like the search code, it is cool, but I think a lot of people will want code that does minimal I/O17:05
terrylhowebriancurtin: It seems like part of your discomfort is page returns a dict and maybe we should change that so it returns a list of resource.  It is kind of inconsistent that it returns dicts17:06
briancurtinterrylhowe: how about https://review.openstack.org/#/c/156664/ instead of my Resource.page change? that allows page to stay as-is and list is able to work for both cases17:07
*** etoews has quit IRC17:07
briancurtinterrylhowe: i like the idea of find, but it returns duplicate when  you search by name for most services since they don't use field but instead use fields (or other way around, cant remember off the top of my head). when we know a resource uses those particular arguments to do fine grained searches we should add overrides17:08
*** etoews has joined #openstack-sdks17:09
briancurtinsomething i did the other day had one resource find-able within a service and another resource in that same service wasn't findable. i agree the one i proposed is IO heavy, but it functions in the lack of a more specialized offering for that service17:10
briancurtin(i cant remember which service this was, might have been when i was finding images and flavors, i think one worked but other didnt)17:11
terrylhowehttps://review.openstack.org/#/c/156664/ puts the problem to the user which might be best17:11
terrylhowethat way we don’t have the allow_page thing to manage and allow people to override17:12
briancurtini think it's probably the best way given the other technical approaches proved too hard (extra requests, etc). if you're working at the resource layer, you already have to know a little more about the API than you do at the proxy layer, which is where this would be covered up17:13
terrylhowethe search code is slick, but I’d also like to see a high perf method as well17:16
terrylhoweparticularlly in the object store area, the seach method could be painful.  I know I’ve seen an absurd number of objects in a container and it has caused a lot of issues, but should be supported17:17
briancurtinas a base method the current implementation doesn't actually work though - it chooses arguments that not all resources support. i'd love to see specializations but i dont think we can offer a base method that is going to raise duplicate a lot of the time17:18
*** pm90_ has joined #openstack-sdks17:25
*** etoews has quit IRC17:27
*** etoews has joined #openstack-sdks17:29
*** pm90_ has quit IRC17:33
*** pm90_ has joined #openstack-sdks17:33
briancurtinterrylhowe: what we should probably do is just create a resource with the given value as ID and get_by_id (i think you said this somewhere but i cant find it)17:34
briancurtinone call, one response, either it's found or its not. my list impl is wildly inefficient, but we should just try to directly get the value sent in17:34
briancurtinwe'd have to make Resource.id not be read-only. i dont know if there are other implications to this, i think we just did it for some safety17:35
*** etoews_ has joined #openstack-sdks17:36
*** etoews has quit IRC17:36
briancurtinif we don't get it back when it's sent as the id_attribute, make a second call with name_attribute set. that's two calls but potentially less data. i dont know the speed difference, but for something like find_images where there are 30 images, two calls vs one list is probably ok17:37
briancurtini'm going to hack that up and see how it works out17:44
*** bknudson has joined #openstack-sdks18:01
*** etoews_ has quit IRC18:02
*** etoews has joined #openstack-sdks18:05
*** bknudson has quit IRC18:14
*** etoews has quit IRC18:15
*** bknudson has joined #openstack-sdks18:16
*** etoews has joined #openstack-sdks18:16
briancurtinterrylhowe: the first half of this is what we need, second part is probably going to require the full list if we want it to work generally https://gist.github.com/briancurtin/5dd902f504b7bfd98205 - the marker part would be perfect if everything supported that but unfortunately it's not viable18:22
*** sigmavirus24 is now known as sigmavirus24_awa18:25
*** sigmavirus24_awa is now known as sigmavirus2418:31
briancurtinSDK meeting in 25 minutes in #openstack-meeting-3 - https://wiki.openstack.org/wiki/Meetings/PythonOpenStackSDK#Agenda_for_2015-02-16_1900_UTC18:35
katcois there any kind of automated test-suite for testing new sdks?18:55
openstackgerritBrian Curtin proposed stackforge/python-openstacksdk: Adjust Resource.find to try direct or filtered  https://review.openstack.org/15670718:57
briancurtinkatco: as in something that mimics openstack APIs?18:59
katcobriancurtin: yeah, something i could throw http requests against18:59
briancurtinterrylhowe: i think https://review.openstack.org/#/c/156707/1/openstack/resource.py might serve what you're looking for. the filters that were hardcoded before become parameters, so you can send the right ones for whichever resource you're searching for. i tried it with finding flavors and filtering on minRam size worked well19:00
briancurtinkatco: you might want to look at https://github.com/rackerlabs/mimic - i know the name, don't know what all it does or if it does what you're looking for19:01
katcobriancurtin: awesome, tyvm19:02
*** openstackgerrit has quit IRC19:20
*** openstackgerrit has joined #openstack-sdks19:20
briancurtinterrylhowe: hmm...maybe i should make Resource itself be the CaseInsensitiveDict?20:31
terrylhowemaybe20:31
terrylhoweif this is headers only, maybe special handling for that20:31
briancurtini'll check it out see how that works20:31
briancurtini thought about teh headers only thing for a bit, and while it's the most common problem, im not certain that it's specific to it. doing separate body/header handling then just adds complexity that we end up unifying anyway, and still need something like a CID20:32
briancurtinif it makes the Resource magic methods too messy perhaps it should stay on its own, but ill check it out20:32
terrylhoweI’m just concerned some service is going to be case sensive and cause headaches20:33
terrylhoweit would be something that would be hard to detect20:33
briancurtinterrylhowe: what we send outbound will have whatever case configure the prop as, so we can be safe there. hard to detect though20:33
terrylhoweokay, so it would only be a potential problem for attributes that aren’t resources maybe20:34
briancurtini think we can only worry about what we have resources for20:35
briancurtinsince we're not able to lookup things that we don't have props for, and we wouldn't be sending attributes we don't have props for in posts/puts20:36
openstackgerritTerry Howe proposed stackforge/python-openstacksdk: add metric proxy and service  https://review.openstack.org/15581120:56
openstackgerritTerry Howe proposed stackforge/python-openstacksdk: add metric proxy and service  https://review.openstack.org/15581120:58
openstackgerritTerry Howe proposed stackforge/python-openstacksdk: add metric proxy and service  https://review.openstack.org/15581121:25
*** bknudson has quit IRC22:00
openstackgerritTerry Howe proposed stackforge/python-openstacksdk: Revert to KSC auth plugins  https://review.openstack.org/15606422:13
openstackgerritColleen Murphy proposed openstack/python-openstackclient: Add project parameter to network create  https://review.openstack.org/15649222:20
*** utahcon has quit IRC22:36
*** bknudson has joined #openstack-sdks22:48
*** chlong has joined #openstack-sdks23:08
*** etoews has quit IRC23:29

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