Thursday, 2015-01-08

*** chlong has quit IRC00:01
*** sigmavirus24 is now known as sigmavirus24_awa00:01
*** sigmavirus24_awa is now known as sigmavirus2400:01
*** chlong has joined #openstack-sdks00:02
*** chlong has quit IRC00:06
*** chlong has joined #openstack-sdks00:29
*** pm90__ has quit IRC00:55
*** etoews has quit IRC01:33
*** sigmavirus24 is now known as sigmavirus24_awa01:34
*** terrylhowe has quit IRC01:35
*** britthou_ has joined #openstack-sdks01:38
*** britthouser has quit IRC01:42
*** chlong has quit IRC02:11
*** stevemar has quit IRC02:26
*** etoews has joined #openstack-sdks03:07
*** etoews has quit IRC03:12
*** briancurtin has joined #openstack-sdks03:46
*** chlong has joined #openstack-sdks03:57
*** chlong has quit IRC04:02
openstackgerritDean Troyer proposed openstack/python-openstackclient: Add version url config hack  https://review.openstack.org/14568104:05
dtroyerjamielennox: ^^^^  we talked about that concept quite a while ago and I couldn't find it in the current ksc.  I don't expect to merge that review, but it demonstrates what I need to do to work with the broken default Keystone configs I have the joy of dealing with.04:08
dtroyerthoughts on the actual right implementation?  should it just go directly into BaseGenericPlugin?04:08
jamielennoxdtroyer: so i have part of that in ksc04:08
jamielennoxwhere are you trying to do it from though?04:09
jamielennoxis this the initial OS_AUTH_URL url?04:09
dtroyerno.  the URL returned in the default Keystone version response is http://localhost:xxxx/v2.0 and if that is not set then version discovery falls over04:09
jamielennoxoh04:10
jamielennoxsorry was thinking something else04:10
jamielennoxso i know i fixed that server side04:10
dtroyerright, different from the v2.0 hack that I see you do have (nice solution btw)04:10
jamielennoxat least for keystone04:10
jamielennoxheh, not sure if i'm proud of it or not but it's working04:11
dtroyerI couldn't find a better way to do this in OSC because of the timing of the delayed auth, I didn't see any place to hook it04:12
jamielennoxso that's just going to fix keystone04:12
dtroyerright, but I don't think there is a single solution to do both auth and other services too04:12
dtroyersame process, different locations04:13
jamielennoxwell i guess the place to hook the other services is when discovery happens, that if you return a localhost then use the url that you sent discovery to instead04:13
jamielennoxi don't know how you'd hook that one either04:14
dtroyeranyway, no hurry, I've sat on this for a couple of months already…  just wanted some ideas of where it should really go04:15
jamielennoxdtroyer: are you seeing it much in reality?04:16
dtroyernot on real production clouds, yet, but on a few POC and internal things04:17
jamielennoxi could handle it as part of all identity plugins - but i'm not really sure we should04:17
*** chlong has joined #openstack-sdks04:18
dtroyerright, which is why I looked for an OSC solution first04:18
jamielennoxi'd be inclined to override the get_endpoint function rather than the builder04:19
jamielennoxoh - but that will only help with once you have a client - it won't help with creating a new plugin04:19
dtroyerright, the auth path is separate04:19
dtroyerand frankly, that's the only one I've had a problem with so far, but I don't think anything else is doing discovery from the URL retrieved from the service catalog (yet)04:20
jamielennoxkeystone will04:20
jamielennoxthere is a patch up for cinder that makes it do ti04:21
jamielennoxthey're the only two i'm aware of04:21
dtroyerI didn't know about cinder, nice04:21
jamielennoxyea - that wasn't even me - thingee did that04:21
jamielennoxbecause v1 is deprecated as of juno they want to have the version less endpoint in the catalog for k04:22
jamielennoxdtroyer: so looking back through you should probably override create_plugin rather than get_auth_ref04:24
jamielennoxsignature is (self, session, version, url, ...)04:24
jamielennoxif localhost in 'url' replace it with what you got from self.auth_url04:25
jamielennoxthen just chain up04:25
dtroyerok, thanks, I'll give that a shot in the morning04:26
jamielennoxit'll get called a couple of times but it's not a big deal i think04:26
dtroyerah, I see, it's earlier in the sequence…called for each URL in the server data, right?04:27
jamielennoxyea, it gets called with every possible version04:29
jamielennoxand the first to respond wins04:29
jamielennoxso it'll ask for a plugin to match v304:29
jamielennoxthen it'll ask for a plugin to match v204:29
jamielennoxor whatever combination actually happens04:29
jamielennoxrealisticly it'll probably never happen more than a couple of times as keystone only specifies 2 versions04:30
jamielennoxin short yes - once for each URL found in discovery04:30
*** subscope has joined #openstack-sdks04:52
*** briancurtin has quit IRC05:02
*** stevemar has joined #openstack-sdks05:22
*** briancurtin has joined #openstack-sdks06:03
*** briancurtin has quit IRC06:07
*** subscope has quit IRC06:08
openstackgerritOpenStack Proposal Bot proposed openstack/python-openstackclient: Imported Translations from Transifex  https://review.openstack.org/14482906:11
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Command doc: consumer  https://review.openstack.org/14569406:29
*** jamielennox is now known as jamielennox|away06:33
*** briancurtin has joined #openstack-sdks07:03
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Request token creation docs + tweaks  https://review.openstack.org/14570507:04
*** briancurtin has quit IRC07:08
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Request token authorize  https://review.openstack.org/14570607:14
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Command doc: access token  https://review.openstack.org/14570707:22
*** k4n0 has joined #openstack-sdks07:38
*** k4n0 has quit IRC07:42
*** chlong has quit IRC07:47
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Command doc: image  https://review.openstack.org/14571107:54
stevemardtroyer, finally done. you can assume i won't be doing anything doc related for a while07:55
*** stevemar has quit IRC08:02
openstackgerritZhiyuan Cai proposed openstack/python-openstackclient: Rename title to show name and description for backup list  https://review.openstack.org/14571808:44
*** briancurtin has joined #openstack-sdks08:52
*** briancurtin has quit IRC08:57
*** chlong has joined #openstack-sdks11:43
*** Miouge has quit IRC12:02
*** Miouge has joined #openstack-sdks12:03
*** Miouge has quit IRC12:08
*** briancurtin has joined #openstack-sdks12:30
*** briancurtin has quit IRC12:34
*** Miouge has joined #openstack-sdks13:03
*** briancurtin has joined #openstack-sdks13:46
*** briancurtin has quit IRC13:50
*** britthou_ has quit IRC14:14
*** britthouser has joined #openstack-sdks14:14
*** terrylhowe has joined #openstack-sdks14:27
*** sigmavirus24_awa is now known as sigmavirus2414:27
*** pm90_ has joined #openstack-sdks14:34
*** pm90_ has quit IRC14:34
*** pm90_ has joined #openstack-sdks14:34
*** mattfarina has joined #openstack-sdks14:44
*** mattfarina has quit IRC14:57
*** mattfarina has joined #openstack-sdks14:57
*** Miouge has quit IRC15:09
*** briancurtin has joined #openstack-sdks15:21
*** etoews has joined #openstack-sdks15:22
*** pm90_ has quit IRC15:24
*** stevemar has joined #openstack-sdks15:29
*** pm90_ has joined #openstack-sdks15:30
*** Miouge has joined #openstack-sdks15:33
*** pm90_ has quit IRC15:44
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Request token creation docs + tweaks  https://review.openstack.org/14570516:12
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Request token authorize  https://review.openstack.org/14570616:12
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Command doc: access token  https://review.openstack.org/14570716:12
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Request token authorize  https://review.openstack.org/14570616:16
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Command doc: access token  https://review.openstack.org/14570716:16
*** chlong has quit IRC16:34
*** pm90_ has joined #openstack-sdks17:10
*** pm90_ has quit IRC17:19
*** pm90_ has joined #openstack-sdks17:19
*** stevemar2 has joined #openstack-sdks17:50
*** stevemar has quit IRC17:50
*** stevemar2 has quit IRC17:56
*** stevemar2 has joined #openstack-sdks17:57
*** briancurtin has quit IRC18:38
*** stevemar2 has quit IRC18:50
*** etoews has quit IRC18:59
*** etoews has joined #openstack-sdks19:00
*** stevemar has joined #openstack-sdks19:07
*** etoews has quit IRC19:26
*** etoews has joined #openstack-sdks19:26
*** briancurtin has joined #openstack-sdks19:29
*** briancurtin has joined #openstack-sdks19:29
*** stevemar has quit IRC19:37
*** stevemar has joined #openstack-sdks19:38
*** etoews has quit IRC20:14
*** subscope_ has joined #openstack-sdks20:16
*** etoews has joined #openstack-sdks20:19
*** subscope_ has quit IRC20:28
*** briancurtin has quit IRC20:29
stevemardtroyer, thanks for reviewing :)20:30
*** fifieldt_ has quit IRC20:32
*** fifieldt_ has joined #openstack-sdks20:33
dtroyerstevemar: I'll get to them all eventually…20:37
stevemardtroyer, i think we'll just have a handful of commands left undoc'ed by the end of what i submitted20:37
stevemari think just host/hypervisor/sec group/compute agent/compute server20:38
openstackgerritMerged openstack/python-openstackclient: tweak the server command docs  https://review.openstack.org/14493720:50
openstackgerritMerged openstack/python-openstackclient: Command doc: volume type  https://review.openstack.org/14493620:55
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Fixup backup list output  https://review.openstack.org/14510521:03
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Command doc: backup  https://review.openstack.org/14510821:05
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Fix up snapshot command  https://review.openstack.org/14511421:05
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Command doc: snapshot  https://review.openstack.org/14511721:05
*** jamielennox|away is now known as jamielennox21:24
*** pm90_ has quit IRC21:28
stevemardtroyer, you're going to hate me for the oauth related changes21:35
stevemaralso, if you have any idea on whats going on here, that would be great: https://bugs.launchpad.net/python-openstackclient/+bug/1407805 getting to different outcomes21:35
dtroyerstevemar: so we're going back to RADIUS and RSA tokens?  ;)21:35
stevemarhue hue21:36
dtroyerI've not used cinder backups in a while so nothing right off…it'll be interesting to se who's results I manage to replicate21:37
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Command doc: mapping  https://review.openstack.org/14514421:39
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Command doc: identity provider  https://review.openstack.org/14515021:40
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Command doc: identity provider  https://review.openstack.org/14515021:41
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Command doc: federation protocol  https://review.openstack.org/14515621:41
stevemardtroyer, http://paste.openstack.org/show/156023/21:46
dtroyeryeah, I think that's clear enough.  also, very similar to how python docs are done ;)21:48
dtroyerwell, between minor revs anyway21:49
stevemarexcellent21:49
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Allow user list to filter by project  https://review.openstack.org/14221021:49
stevemari'm surprised i haven't had any merge conflicts yet21:49
*** ycombinator_ has joined #openstack-sdks21:52
dtroyerstevemar: are you ready to merge the translations?  I don't know the custom on those21:54
dtroyerstevemar: maybe I just found the bit you warned me about in request token authorize…21:56
stevemardtroyer, i'm sure you did21:56
stevemardtroyer, in keystone we just merge the translations pretty willy nilly21:56
stevemardtroyer, whaa... you +2'ed this guy: https://review.openstack.org/#/c/145705/2/openstackclient/identity/v3/token.py i changed a parameter! from --project-id to --project21:57
stevemari figured you were going to make me keep the old one as a deprecated arg21:57
dtroyerI would have had I noticed…21:58
stevemarand i would have had to plead and claim no one is using this stuff yet21:58
dtroyerwhat I get for doing reviews during mettings21:58
dtroyerI'll buy that argument...21:58
stevemarpretty sure i'm the only person using oauth stuff :)21:59
stevemarand the intersection of ppl using oauth stuff + osc -> pretty much only me21:59
dtroyerso really, multiple —role options isn't a thing?21:59
stevemarhmm? i don't follow?22:00
dtroyerI'm on the fence about —roles in request token authorize22:00
stevemarit would be --roles admin member22:00
stevemaryou saying it should be --role admin --role member22:00
stevemaror just 1 role?22:00
stevemarwe handle the delete commands the same way22:01
dtroyerwe do multiple properites with —property a=1 —property b=2 etc22:01
dtroyerbut for the deletes, thats a positional22:01
stevemarah22:01
stevemari see what ya mean22:01
dtroyerin this case there is umlikely to be any ambiguity,22:01
dtroyerso it might be ok, but I'm concerned about opening the nargs door22:02
stevemarnormally i do the following: --request-key 123 --roles admin member22:02
stevemarwould cliff be smart enough if it were: --roles admin member --request-key 12322:02
stevemaror would --request-key become part of nargs...22:03
*** pm90_ has joined #openstack-sdks22:03
dtroyerits an argparse issue, and it will most of the time, except when it doesn't22:03
openstackgerritMerged openstack/python-openstackclient: Command docs: volume  https://review.openstack.org/14494722:04
openstackgerritIan Cordasco proposed stackforge/python-openstacksdk: Increase Resource test coverage  https://review.openstack.org/13660622:04
dtroyerthe third alternative is to do —role admin,member and parse the argument22:05
dtroyerI don't think we do that a tall so probably shouldn't start now22:05
dtroyers/a tall/at all/22:06
stevemaragreed22:06
stevemarso i tried: authorize --roles admin --request-key fc8b71cd4f1e452bb50d6471c3469e0122:06
stevemarand it works22:06
stevemari think argparse is smart enough to see the dashes22:06
stevemarsauce: http://paste.openstack.org/show/156030/22:07
dtroyerit gets it right most of the time…its when something looks like an option, like -1 or something22:07
stevemarfwiw, i think this is a better UX, rather than --role x --role y22:08
dtroyerthe other hard part is when a positional foloows —roles, how do you know?  in this command there isn't one, but we can't do it if there is22:08
stevemaragreed 100%22:08
dtroyerI agree repeating the option name is sub-optimal, but everything else seems to be worse ;)  so any complaints about this get sent to you22:09
stevemarfair enough!22:12
stevemarat which point i release a non-backwards compatible change!22:13
stevemarbuahahaha22:13
stevemarthe oauth api hasn't changed in a while, i don't expect it to22:13
*** ycombinator_ has quit IRC22:23
*** ycombinator_ has joined #openstack-sdks22:26
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Command doc: consumer  https://review.openstack.org/14569422:28
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Request token creation docs + tweaks  https://review.openstack.org/14570522:28
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Request token authorize  https://review.openstack.org/14570622:28
openstackgerritSteve Martinelli proposed openstack/python-openstackclient: Command doc: access token  https://review.openstack.org/14570722:28
stevemardtroyer, you're almost done! just snapshot and image left :P22:29
stevemarkudos sir22:29
stevemardtroyer, i just +A'ed a bunch of patches that you had initially -1'ed (i fixed up the issues), but let me know if i went on too much of a spree...22:39
dtroyerthat's fine, thanks…juggling this many (during the qa meeting no less) gets tricky ;)22:40
stevemardtroyer, it's all good.22:43
dtroyerI want to make 'neutroned' a thing!22:45
dtroyerthen again, I also want to remain friends with MArk and Kyle and co… ;)22:46
stevemarlol22:48
stevemarneutroned is a thing, AFAIC22:48
stevemaralright, i'm outta here, thanks dtroyer22:50
dtroyerthat you sir, that's a truckload of work…22:50
dtroyers/that/thank/22:50
dtroyernot-exciting work at that22:50
*** stevemar has quit IRC22:55
*** sigmavirus24 is now known as sigmavirus24_awa23:01
openstackgerritMerged openstack/python-openstackclient: Fixup backup list output  https://review.openstack.org/14510523:04
openstackgerritMerged openstack/python-openstackclient: Command doc: backup  https://review.openstack.org/14510823:05
openstackgerritMerged openstack/python-openstackclient: Command doc: mapping  https://review.openstack.org/14514423:06
openstackgerritMerged openstack/python-openstackclient: Command doc: identity provider  https://review.openstack.org/14515023:07
openstackgerritMerged openstack/python-openstackclient: Command doc: federation protocol  https://review.openstack.org/14515623:07
openstackgerritMerged openstack/python-openstackclient: Allow user list to filter by project  https://review.openstack.org/14221023:07
*** etoews has quit IRC23:11
*** pm90_ has quit IRC23:13
*** pm90_ has joined #openstack-sdks23:16
*** mattfarina has quit IRC23:22

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