*** chlong has joined #openstack-sdks | 00:05 | |
*** tellesnobrega has quit IRC | 00:09 | |
*** tellesnobrega has joined #openstack-sdks | 00:11 | |
*** stevemar has joined #openstack-sdks | 00:17 | |
*** stevemar has quit IRC | 00:27 | |
*** sigmavirus24_awa is now known as sigmavirus24 | 01:05 | |
*** sigmavirus24 is now known as sigmavirus24_awa | 01:11 | |
*** rmcall has quit IRC | 01:20 | |
*** dtroyer has quit IRC | 01:37 | |
*** britthouser has quit IRC | 01:49 | |
*** britthouser has joined #openstack-sdks | 01:49 | |
*** sigmavirus24_awa is now known as sigmavirus24 | 01:53 | |
*** dtroyer has joined #openstack-sdks | 01:55 | |
*** ayoung has joined #openstack-sdks | 02:01 | |
*** dtroyer has quit IRC | 02:08 | |
*** tellesnobrega has quit IRC | 02:09 | |
*** dtroyer has joined #openstack-sdks | 02:09 | |
*** edleafe has quit IRC | 02:13 | |
*** edleafe has joined #openstack-sdks | 02:17 | |
*** tellesnobrega has joined #openstack-sdks | 02:20 | |
*** dtroyer has quit IRC | 02:23 | |
*** dtroyer has joined #openstack-sdks | 02:25 | |
*** stevemar has joined #openstack-sdks | 02:46 | |
*** lbragstad has quit IRC | 02:47 | |
*** lbragstad has joined #openstack-sdks | 02:55 | |
*** briancurtin has joined #openstack-sdks | 03:00 | |
*** briancurtin has joined #openstack-sdks | 03:00 | |
*** lbragstad has quit IRC | 03:08 | |
*** lbragstad has joined #openstack-sdks | 03:10 | |
*** ayoung has quit IRC | 03:31 | |
*** dtroyer has quit IRC | 03:36 | |
*** lbragstad has quit IRC | 03:38 | |
*** dtroyer has joined #openstack-sdks | 03:39 | |
*** ayoung has joined #openstack-sdks | 03:43 | |
*** britthouser has quit IRC | 03:44 | |
*** britthouser has joined #openstack-sdks | 03:44 | |
*** lbragstad has joined #openstack-sdks | 03:47 | |
*** dtroyer has quit IRC | 03:52 | |
*** dtroyer has joined #openstack-sdks | 03:58 | |
*** lbragstad has quit IRC | 04:00 | |
*** lbragstad has joined #openstack-sdks | 04:02 | |
*** sigmavirus24 is now known as sigmavirus24_awa | 04:11 | |
*** dtroyer has quit IRC | 04:13 | |
openstackgerrit | Dean Troyer proposed openstack/python-openstackclient: Copy wiki content to index page https://review.openstack.org/147018 | 04:14 |
---|---|---|
*** dtroyer has joined #openstack-sdks | 04:21 | |
*** britthouser has quit IRC | 04:41 | |
*** britthouser has joined #openstack-sdks | 04:58 | |
*** britthouser has quit IRC | 04:59 | |
*** britthouser has joined #openstack-sdks | 04:59 | |
*** briancurtin has quit IRC | 05:15 | |
*** lbragstad has quit IRC | 05:52 | |
*** subscope_ has joined #openstack-sdks | 05:52 | |
*** lbragstad has joined #openstack-sdks | 05:55 | |
openstackgerrit | OpenStack Proposal Bot proposed openstack/python-openstackclient: Imported Translations from Transifex https://review.openstack.org/144829 | 06:11 |
*** briancurtin has joined #openstack-sdks | 06:16 | |
*** briancurtin has joined #openstack-sdks | 06:16 | |
*** briancurtin has quit IRC | 06:20 | |
*** subscope_ has quit IRC | 06:45 | |
*** stevemar has quit IRC | 06:47 | |
*** terrylhowe has quit IRC | 07:10 | |
*** dtroyer has quit IRC | 07:18 | |
*** dtroyer has joined #openstack-sdks | 07:26 | |
*** Miouge has joined #openstack-sdks | 07:38 | |
*** britthouser has quit IRC | 07:43 | |
*** britthouser has joined #openstack-sdks | 07:43 | |
*** chlong has quit IRC | 07:47 | |
*** briancurtin has joined #openstack-sdks | 08:04 | |
*** briancurtin has quit IRC | 08:09 | |
*** dtroyer has quit IRC | 08:10 | |
*** Miouge has quit IRC | 08:11 | |
*** dtroyer has joined #openstack-sdks | 08:12 | |
*** lbragstad has quit IRC | 08:24 | |
*** lbragstad has joined #openstack-sdks | 08:34 | |
*** dtroyer has quit IRC | 08:37 | |
*** dtroyer has joined #openstack-sdks | 08:39 | |
*** Miouge has joined #openstack-sdks | 08:40 | |
*** dtroyer has quit IRC | 08:59 | |
*** dtroyer has joined #openstack-sdks | 09:00 | |
*** Miouge has quit IRC | 09:10 | |
*** Miouge has joined #openstack-sdks | 09:15 | |
*** jamielennox is now known as jamielennox|away | 09:31 | |
*** Miouge has quit IRC | 09:32 | |
*** Miouge has joined #openstack-sdks | 09:33 | |
*** dtroyer has quit IRC | 09:44 | |
*** briancurtin has joined #openstack-sdks | 09:53 | |
*** dtroyer has joined #openstack-sdks | 09:55 | |
*** briancurtin has quit IRC | 09:58 | |
*** terrylhowe has joined #openstack-sdks | 10:27 | |
*** briancurtin has joined #openstack-sdks | 11:42 | |
*** briancurtin has quit IRC | 11:47 | |
*** chlong has joined #openstack-sdks | 12:05 | |
*** chlong has quit IRC | 13:02 | |
*** briancurtin has joined #openstack-sdks | 13:31 | |
*** briancurtin has quit IRC | 13:36 | |
*** sigmavirus24_awa is now known as sigmavirus24 | 13:50 | |
*** briancurtin has joined #openstack-sdks | 14:09 | |
*** briancurtin has joined #openstack-sdks | 14:09 | |
*** mattfarina has joined #openstack-sdks | 14:11 | |
*** briancurtin has quit IRC | 14:32 | |
*** pm90_ has joined #openstack-sdks | 14:58 | |
*** briancurtin has joined #openstack-sdks | 14:58 | |
*** pm90_ has quit IRC | 15:01 | |
*** pm90_ has joined #openstack-sdks | 15:01 | |
*** Miouge has quit IRC | 15:22 | |
*** britthouser has quit IRC | 15:23 | |
*** stevemar has joined #openstack-sdks | 15:24 | |
*** Miouge has joined #openstack-sdks | 15:36 | |
*** pm90_ has quit IRC | 15:49 | |
*** britthouser has joined #openstack-sdks | 16:14 | |
*** pm90_ has joined #openstack-sdks | 16:30 | |
*** pm90_ has quit IRC | 16:33 | |
*** pm90_ has joined #openstack-sdks | 16:34 | |
*** Guest8210 is now known as redrobot | 16:54 | |
*** bonsai has joined #openstack-sdks | 17:00 | |
britthouser | Trying to use conn.networks.list_networks(). My tenant has a single network. But what I get back seems to be an infinite iterable. Am I doing something wrong? | 17:03 |
britthouser | Here's my code: | 17:03 |
britthouser | http://paste.openstack.org/show/157965/ | 17:03 |
bonsai | Hi! I'm wondering whether it's possible to monitor an OpenStack Server and be called back when it reaches a certain state, like with the abiquo VirtualMachineMonitor | 17:06 |
dtroyer | bonsai: AFAIK none of the Python libs have this built-in, the Compute REST API v2.x does not, so you would have to roll your own polling loop. | 17:08 |
bonsai | dtroyer: Thanks! I suspected as much so it's good to have this confirmed. May I ask what Python's got to do with it? | 17:10 |
dtroyer | You didn't specify if you were asking about the REST or a Python interface…and it's 80% python devs in this room | 17:11 |
bonsai | Oh, OK, sorry, I didn't get that. I'm actually using Java and I came here because this page https://wiki.openstack.org/wiki/OpenStack-SDK-Java points to this channel | 17:12 |
bonsai | I'll try the jclouds channel instead. Thanks again :) | 17:15 |
*** bonsai has left #openstack-sdks | 17:16 | |
*** terrylhowe has quit IRC | 17:20 | |
britthouser | Added a second network, and not it just loops over those two network over and over again. Is that expected? Shouldn't it stop after the first time through the list? | 17:23 |
sigmavirus24 | britthouser: I think I know what's causing it | 17:24 |
sigmavirus24 | briancurtin: are you around? | 17:25 |
briancurtin | sigmavirus24: what's up | 17:25 |
briancurtin | britthouser: uh yeah that shouldn't happen | 17:25 |
sigmavirus24 | https://github.com/stackforge/python-openstacksdk/blob/master/openstack/resource.py#L633 doesn't halt if teh URL doesn't change (like in britthouser's case) because there's always a body for the same URL | 17:26 |
sigmavirus24 | I'm pretty sure we need an extra check | 17:26 |
sigmavirus24 | i.e., if last_url == current_url, halt | 17:26 |
briancurtin | hmm, will check it out | 17:26 |
sigmavirus24 | Seems to tie in with the problems with how APIs do pagination | 17:26 |
sigmavirus24 | I'm actually kind of surprised that there isn't anything there to change/update page=# | 17:27 |
sigmavirus24 | (or that we don't check the response's links attr | 17:27 |
briancurtin | sigmavirus24: a bunch of them dont use links, so this is the most general as could be since it's in the base resource | 17:28 |
briancurtin | i dont know what "change/update page=#" is though | 17:28 |
briancurtin | (pagination is a disaster) | 17:29 |
*** terrylhowe has joined #openstack-sdks | 17:29 | |
sigmavirus24 | I know it's a disaster, but I the APIs that come to mind for me all use page=1, page=2, page=3, etc. to paginate | 17:29 |
briancurtin | that's one i've never seen | 17:30 |
sigmavirus24 | the URL doesn't really change much each time through the loop so I probably need to look at all the APIs we support more closely | 17:30 |
sigmavirus24 | huh | 17:30 |
* sigmavirus24 's memory could be totally wrong today | 17:30 | |
britthouser | Ok. Glad I'm not doing something silly. =) | 17:32 |
*** bknudson has quit IRC | 17:33 | |
sigmavirus24 | yep I'm totally thinking of something else | 17:34 |
briancurtin | britthouser: ok i can confirm the same is happening over here. looking into fixing now | 17:40 |
sigmavirus24 | Right, we update https://github.com/stackforge/python-openstacksdk/blob/master/openstack/resource.py#L639 | 17:40 |
britthouser | briancurtin: Thanks for quick response. Need me to do anything? | 17:40 |
* sigmavirus24 thinks this is related to requests | 17:41 | |
sigmavirus24 | nevermind. we do the right thing | 17:42 |
briancurtin | britthouser: maybe another test once we get it figured out, but nothing at the moment i can think of | 17:42 |
britthouser | briancurtin: I'm eager to help, just lemme know. =) | 17:43 |
briancurtin | britthouser: are you pointing at a devstack or some vendor cloud? it seems like we're trying to page through results when pagination is disabled, which is why we just keep getting the full results back...forever | 17:50 |
*** glenc has quit IRC | 17:51 | |
britthouser | briancurtin: Its just a RHEL OSP install in my lab. | 17:51 |
*** glenc has joined #openstack-sdks | 17:53 | |
briancurtin | ugh. this might require the Networks Resource gaining it's own implementation of list to cope with the fact that pagination can be disabled (seems to be by default) and we can't discover if it's disabled - however, this is one that will give us a links entry that should have no "next" to tell us we got everything | 17:59 |
sigmavirus24 | briancurtin: I wonder if instead of Network needing it's own list method, we allow a resource to define a different way of doing pagination that list calls/ | 18:01 |
sigmavirus24 | s|/|?| | 18:02 |
terrylhowe | I kind of think we need some sort of service properties or something and have pagination=false for network | 18:02 |
sigmavirus24 | This way the amount of duplicated code stays super minimal and we let the class define (from a response) what the next page should be | 18:02 |
terrylhowe | maybe in user preferences | 18:03 |
briancurtin | terrylhowe: the bad thing is that setting pagination=false when the server actually paginates misses out on that, and we can't discover through the API | 18:03 |
terrylhowe | the other way would be see if the response is less than the limit | 18:04 |
terrylhowe | same kind of thing though, you don’t know the limit of the service | 18:04 |
briancurtin | we already do that one when a limit is given, but yeah, can't find that out generally | 18:05 |
terrylhowe | either way, I think the user should be able to set some of that stuff as service preferences briancurtin | 18:07 |
terrylhowe | since different versions/configurations may support different features | 18:07 |
terrylhowe | that way the user can set the service prefrences to whatever works for their provider | 18:08 |
terrylhowe | pagination, limits, etc. | 18:08 |
briancurtin | yep | 18:08 |
*** chlong has joined #openstack-sdks | 18:10 | |
stevelle | pagination_from_links = true for network? | 18:13 |
briancurtin | stevelle: if we just do more generic, supports_pagination, and then either try or dont try, nothing else fancy should be needed for network | 18:15 |
briancurtin | if i just enter "more_data = False" after the get call within list, it works just fine. devstack has two network entries, and setting limit=1 works fine as-is when i let it page | 18:17 |
briancurtin | i need to go have a fun time at the DMV for a while, so i'll get back to this later unless someone jumps on it | 18:20 |
*** bknudson has joined #openstack-sdks | 18:36 | |
*** briancurtin has quit IRC | 18:54 | |
*** briancurtin has joined #openstack-sdks | 19:37 | |
stevemar | dtroyer, someone is eager for an OSC release on the bug page eh | 20:30 |
dtroyer | stevemar: who? me? I am but I'm not sure I follow the reference... | 20:34 |
stevemar | dtroyer, someone just commented on 2 bugs with some strongly worded comments | 20:35 |
stevemar | https://bugs.launchpad.net/python-openstackclient/+bug/1385338 | 20:35 |
stevemar | https://bugs.launchpad.net/python-openstackclient/+bug/1405416 | 20:35 |
dtroyer | ah, I wasn't reading comments… | 20:36 |
dtroyer | so did you still intend to change the Identity default to v3 now? | 20:37 |
sigmavirus24 | stevemar: pro-tip, follow https://twitter.com/avoidcomments | 20:37 |
stevemar | sigmavirus24, most of the time i live by that rule, but i should read bug comments :P | 20:38 |
dtroyer | sigmavirus24: nice, I need to put that on replay and stream from the beginning, one or so a day... | 20:39 |
sigmavirus24 | nah | 20:39 |
sigmavirus24 | stevemar: once the bug is fixed/fix committed, just put that on loop | 20:39 |
sigmavirus24 | I mean granted, I don't follow my own advice | 20:39 |
stevemar | dtroyer, i dunno, i'm on the fence, it's a KSC variable | 20:39 |
sigmavirus24 | But I'm already well aware that I make terrible life decisions | 20:39 |
dtroyer | stevemar: oh, I read that as the OSC default... | 20:40 |
dtroyer | "The Two Classic Online Blunders: Never get into a LAN war in Asia, and never go in to the comments section when your sanity is on the line." | 20:40 |
britthouser | "No more rhymes now I mean it"..."Anybody want a peanut?" | 20:41 |
sigmavirus24 | britthouser: A+ Princess bride reference | 20:42 |
terrylhowe | It would be nice if instead of v3 default, osc would attempt to guess the release based on the url and if not, v3 default | 20:42 |
terrylhowe | I would of put that in a comment, but … | 20:43 |
britthouser | sigmavirus24: Thanks! =) | 20:43 |
sigmavirus24 | britthouser: If I weren't listening to progressive gaelic death metal right now, I'd totally try to think of some of the other lines from that scene but alas | 20:44 |
britthouser | sigmavirus24: Another time then. =) Are you in Ireland? Or just fancy gaelic death metal? | 20:45 |
stevemar | terrylhowe, please add comments, i don't abide by the 'dont read the comments' rule just yet | 20:45 |
dtroyer | terrylhowe: not sure I understand? if a version is in the URL we're just supposed to use it, although I have a hack to strip that and do discovery anyway… | 20:46 |
sigmavirus24 | britthouser: it's a welcome change occasionally. One of my TAs in college introduced me to it. She had a really good taste in music | 20:46 |
dtroyer | also, not all comments are created equal, some are more equal than others | 20:46 |
terrylhowe | if authurl.endswith(“v2.0”) identity_version = 2 something like that dtroyer stevemar | 20:47 |
terrylhowe | I don’t know the current state of what is going on there, maybe you guys have something like that already. There have been a ton of changes in that area | 20:48 |
dtroyer | terrylhowe: actually we're looking to do the opposite, strip the v2.0 and do discovery because SO many clouds still hand out auth URLs with v2.0 in them… | 20:49 |
britthouser | I hate to monopolize the IRC with issues, but I've hit another. Same RHEL OSP deployment as before. When I do a conn.image.list_images() I get error, and I'm not sure what it means. | 20:49 |
britthouser | http://paste.openstack.org/show/158013/ | 20:49 |
britthouser | glance image-list on command line does show me the images I uploaded. | 20:51 |
sigmavirus24 | britthouser: can you add --debug to the glance call and show me the output? | 20:52 |
* sigmavirus24 knows glance better than networking =P | 20:52 | |
terrylhowe | sounds a bit confusing to me dtroyer I’d expect v2 auth if I supply a v2.0 auth url | 20:52 |
britthouser | sigmavirus24: http://paste.openstack.org/show/158014/ | 20:53 |
sigmavirus24 | britthouser: ok, mind seeing if glance --os-image-api-version=2 --debug image-list works? | 20:55 |
dtroyer | terrylhowe: it is confusing. but so is expecting to use v3 and still handing out v2.0 URLs. it's only when discovery is expected to be used anyway | 20:56 |
terrylhowe | handing out v2 auth urls and expecting v3 auth makes absolutely no sense to me | 21:00 |
britthouser | sigmavirus24: It works, would pastebin of the output be useful? | 21:01 |
sigmavirus24 | britthouser: if you'll humor me | 21:01 |
britthouser | sigmavirus24: http://paste.openstack.org/show/158016/ | 21:01 |
dtroyer | terrylhowe: handing out v2 urls and expecting discovery to work is the use case. I don't remember if it is on or off by default in ksc, but it is already there… | 21:05 |
sigmavirus24 | hm | 21:05 |
sigmavirus24 | britthouser: I expect you didn't pick a specific image api version in your User Preferences, right? | 21:15 |
britthouser | right | 21:16 |
britthouser | Should I have? | 21:16 |
briancurtin | britthouser: i entered a bug to track the network list issue https://bugs.launchpad.net/python-openstacksdk/+bug/1410980 - going to try something a little whacky first, then try manual config | 21:23 |
britthouser | briancurtin: Thanks! I hope the DMV was nice to you. =) | 21:24 |
briancurtin | britthouser: they were nice enough to give me directions to the proper place to go after waiting in line forever, so sort of haha. (title never showed up, phone people said go to to place X, place X says to go to place Y) | 21:25 |
britthouser | briancurtis: I had my license thrown back at me once, so that sounds like a mild visit. =) | 21:27 |
britthouser | briancurtin: I also see the same thing with compute.list_keypairs(). I assume its same root cause? | 21:27 |
briancurtin | britthouser: i'll take a look, but probably. one that should work, or has been working for me, is any pagination in object_store | 21:28 |
britthouser | briancurtis: Ok I'll add that as another datapoint to the same bug. So to workaround I edited my neutron.conf and set allow_pagination = False, restarted neturon-server, but that didn't fix it. Should it have? | 21:30 |
britthouser | briancurtis: Sorry I set it to True (and then back to false when it didn't work.) | 21:30 |
terrylhowe | britthouser: was the image list issue solved? You still getting that key error? | 21:30 |
briancurtin | britthouser: hmm, that is concerning. let me find that config file on devstack and play with it - would have thought setting to True would make it work since we're expecting that it does work | 21:31 |
britthouser | terrylhowe: Still getting it. | 21:31 |
briancurtin | er, we're expecting that it woudl be true | 21:31 |
britthouser | briancurtin: So my setup is RHEL OSP Icehouse, so if it does work for you, I bet there is a bug in neutron itself. | 21:32 |
terrylhowe | britthouser: was there ever a pastebin of the sdk with debug? I didn’t see it. I was wondering if that was page related as well. | 21:32 |
terrylhowe | and I’m still talking about the glance issue | 21:33 |
britthouser | terrylhowe: not from sdk, but I'm happy todo that. Where do I set debug level? UserPref? | 21:33 |
briancurtin | terrylhowe: on the SDK/pagination issue, there was no debug one, but i've run it through and can grab if you want. on my devstack we get back a body with two network entries, set the marker to the last one, make the same request, get the same two body entries, set the marker to the last again, and on and on | 21:34 |
briancurtin | britthouser: the keypair one is apparently the same issue - i added one kp and just get the same one forever | 21:36 |
terrylhowe | britthouser: can you recreate the problem with: | 21:36 |
terrylhowe | python examples/list.py openstack/image/v1/image.py | 21:36 |
britthouser | briancurtin: So I guess that means nova has pagination turned off too? | 21:37 |
terrylhowe | I assume you have the sdk cloned | 21:37 |
briancurtin | britthouser: i'm going to try a few more things and then look at that, but probably yes | 21:37 |
britthouser | terrylhowe: Yeah I did a git clone. I'll try that. | 21:37 |
britthouser | terrylhowe: I get: ERROR: examples.common Exception raised: 'images' | 21:39 |
terrylhowe | python examples/list.py openstack/image/v1/image.py —debug | 21:39 |
terrylhowe | britthouser: ^^^ | 21:39 |
sigmavirus24 | britthouser: should openstack/image/v2/ have a _proxy.py? | 21:40 |
terrylhowe | sounds like it is getting the same key error, very strange | 21:40 |
terrylhowe | it should sigmavirus24 | 21:40 |
terrylhowe | maybe no one ever added one | 21:40 |
* sigmavirus24 looks at stevelle =P | 21:40 | |
sigmavirus24 | Yeah I think it was forgotten | 21:40 |
sigmavirus24 | i'll send a patchset | 21:40 |
britthouser | terrylhowe: http://paste.openstack.org/show/158023/ | 21:41 |
sigmavirus24 | so that looks like glance is requiring the request be made to /v{1,2}/images | 21:45 |
sigmavirus24 | but sdk is requesting just /images | 21:45 |
terrylhowe | yeh sigmavirus24 it is kind of like the sdk isn’t properly setting the version | 21:46 |
*** chlong has quit IRC | 21:47 | |
briancurtin | i think i entered an issue in LP for that...that's going to be a real hassle | 21:47 |
terrylhowe | britthouser: does it work if you add on the —os-ap-version image=v1.0 ? | 21:47 |
briancurtin | sigmavirus24, terrylhowe: i haven't been following but is this what you're dealing with? https://bugs.launchpad.net/python-openstacksdk/+bug/1391971 | 21:48 |
terrylhowe | I would guess there is something different than expected in service catalog | 21:48 |
sigmavirus24 | briancurtin: I guess it's something like that | 21:48 |
terrylhowe | looks good, thanks briancurtin | 21:48 |
*** stevemar has quit IRC | 21:48 | |
terrylhowe | britthouser: that should of been —os-api-version image=v1.0 | 21:49 |
britthouser | terrylhowe: yeah I did s/ap/api/ but still can't seem to get it to run. I think image=v1.0 is the script name. | 21:50 |
terrylhowe | britthouser: what I meant was python examples/list.py openstack/image/v1/image.py —debug —os-api-version image=v1.0 | 21:51 |
britthouser | terrylhowe: I get: list.py: error: unrecognized arguments: —-debug -—os-api-version image=v1.0 | 21:52 |
britthouser | not trying to be dense here...sorry if there's an obvious way. | 21:52 |
britthouser | that I'm missing | 21:52 |
briancurtin | britthouser: "python -m examples.list openstack/image/v1/image.py --debug --os-api-version image=v1.0" is working for me (well, the KeyError, but it's sending out the request) | 21:56 |
terrylhowe | so it doesn’t put the v1.0 in the url briancurtin ? | 21:57 |
terrylhowe | britthouser: I think it was just pasting special characters from the IRC client and that was messing you up | 21:57 |
briancurtin | terrylhowe: nope, "GET http://162.242.228.177:9292/images" | 21:57 |
britthouser | briancurtain: Thanks for that. I was trying to edit a copy of list.py and add #!/usr/bin/python but it wasn't getting anywhere | 21:57 |
briancurtin | and that just returns that body with teh supported versioned endpoints | 21:58 |
terrylhowe | yeh, the url is malformed | 21:58 |
* sigmavirus24 wonders if glance should return a 404 | 21:58 | |
* sigmavirus24 doesn't know if that route should be defined | 21:58 | |
terrylhowe | true | 21:58 |
briancurtin | it's all documented to do this, it's just really, really weird | 21:59 |
sigmavirus24 | briancurtin: just because it's documented doesn't make it right ;) | 21:59 |
britthouser | terrylhowe: Here's a pastebin if you still need: http://paste.openstack.org/show/158025/ | 21:59 |
briancurtin | i believe our PHP people request to this unversioned endpoint before any other glance requests to find out where the real endpoint should go, then cache that, then move on to make requests | 21:59 |
sigmavirus24 | glenc is one of our PHP people, yes? | 22:02 |
briancurtin | yep, and he sits right behind me. once he gets back i'm going to ask what's up there | 22:04 |
sigmavirus24 | briancurtin: I have yet to meet glenc inspite of being in proximity of them several times | 22:04 |
terrylhowe | well, it is normal to hit the / and get versions, but not so normal to hit /images and get versions | 22:04 |
* sigmavirus24 thinks they were at MadisonPHP last year | 22:04 | |
sigmavirus24 | terrylhowe: right | 22:04 |
sigmavirus24 | terrylhowe: I'm relatively new to OS, but I can only imagine (no pun intended) that Glance's API wasn't versioned previously and so /images is backwards-compat shim | 22:05 |
briancurtin | terrylhowe: i think there's something that redirects unversioned requests to / to give you the actual endpoints | 22:06 |
openstackgerrit | Ian Cordasco proposed stackforge/python-openstacksdk: Add image v2 proxy https://review.openstack.org/147314 | 22:06 |
briancurtin | or something weird | 22:06 |
terrylhowe | ah, makes sense. Either way, the sdk should handle that bettere | 22:06 |
briancurtin | yep | 22:06 |
sigmavirus24 | That patchset adds a _proxy to openstack/image/v2 | 22:07 |
*** mattfarina has quit IRC | 22:18 | |
*** terrylhowe has quit IRC | 22:19 | |
britthouser | sigmavirus24: is that patch orthogonal to the images issues, or the fix? | 22:20 |
sigmavirus24 | orthogonal | 22:21 |
sigmavirus24 | just something I noticed | 22:21 |
britthouser | ok that's what I thought | 22:21 |
*** briancurtin has quit IRC | 22:22 | |
*** briancurtin has joined #openstack-sdks | 22:25 | |
*** briancurtin has joined #openstack-sdks | 22:25 | |
*** bknudson has quit IRC | 22:37 | |
britthouser | Ok so if I create a UserPref, and then set the version explcitly, I still see the issue. Which I think is expected since that is equivalent of what I was doing with "--os-api-version image=v1.0", right? | 22:37 |
sigmavirus24 | britthouser: correct | 22:39 |
britthouser | Ok. I think I'm caught up. =) And https://bugs.launchpad.net/python-openstacksdk/+bug/1391971 addresses this, right? | 22:39 |
sigmavirus24 | britthouser: to a degree. yes | 22:42 |
britthouser | Ok. Really appreciate all the help today guys. This has been a great help. | 22:44 |
*** jamielennox|away is now known as jamielennox | 22:56 | |
*** briancurtin has quit IRC | 22:57 | |
*** bknudson has joined #openstack-sdks | 23:03 | |
*** briancurtin has joined #openstack-sdks | 23:26 | |
*** briancurtin has quit IRC | 23:27 | |
*** briancurtin has joined #openstack-sdks | 23:27 | |
*** briancurtin has joined #openstack-sdks | 23:27 | |
*** pm90_ has quit IRC | 23:35 | |
*** sigmavirus24 is now known as sigmavirus24_awa | 23:52 | |
*** britthouser has quit IRC | 23:56 | |
*** pm90_ has joined #openstack-sdks | 23:58 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!