Saturday, 2014-10-11

*** etoews has joined #openstack-sdks01:20
*** ayoung has quit IRC01:23
*** ayoung has joined #openstack-sdks01:23
*** etoews has quit IRC01:25
*** etoews has joined #openstack-sdks01:56
*** etoews has quit IRC02:00
*** etoews has joined #openstack-sdks02:23
*** etoews has quit IRC02:28
*** etoews has joined #openstack-sdks02:41
*** etoews has quit IRC02:46
*** stevemar has joined #openstack-sdks03:38
*** jamielennox has quit IRC04:09
*** etoews has joined #openstack-sdks04:11
*** etoews has quit IRC04:16
*** etoews has joined #openstack-sdks04:19
*** stevemar has quit IRC04:22
*** jamielennox has joined #openstack-sdks04:24
*** etoews has quit IRC04:26
*** etoews has joined #openstack-sdks04:40
*** jamielennox has quit IRC04:40
*** etoews has quit IRC04:44
*** briancurtin has quit IRC07:57
*** etoews has joined #openstack-sdks08:07
*** etoews has quit IRC08:12
*** etoews has joined #openstack-sdks08:26
*** etoews has quit IRC08:31
*** openstackgerrit has joined #openstack-sdks13:01
*** etoews has joined #openstack-sdks14:38
*** etoews has quit IRC14:43
*** etoews has joined #openstack-sdks14:56
*** briancurtin has joined #openstack-sdks14:58
*** briancurtin has joined #openstack-sdks14:58
*** etoews has quit IRC15:01
*** terrylhowe has left #openstack-sdks15:49
openstackgerritOpenStack Proposal Bot proposed a change to openstack/python-openstackclient: Updated from global requirements  https://review.openstack.org/12668215:56
openstackgerritOpenStack Proposal Bot proposed a change to stackforge/python-openstacksdk: Updated from global requirements  https://review.openstack.org/12765015:58
openstackgerritMonty Taylor proposed a change to stackforge/os-client-config: Add support for command line argument processing  https://review.openstack.org/12780717:33
dtroyermordred: so dammit, I'm 3/4 through doing just that ^^^ for osc to combine with the auth plugin option handling...17:43
dtroyermordred: if you're using any of the existing cli parsers, watch out for their default environment variables stomping on your values from the yaml file.  The precedence combination is likely not what you expect17:50
mordreddtroyer: oops. we should talk more then :)17:52
dtroyercombining these two is like straddling two boats going northwest and west…I'm going to get wet before it's over17:54
mordreddtroyer: I just got it plumbed through from ansible, but hadn't tried passing in args list from python-*client argparse yet17:54
mordredyah17:54
dtroyerargparse gives you a Namespace object, that takes a bit of care...17:54
mordredoh lovely17:54
dtroyerI was headed in the direction of just adding a method to take the Namespace and merge it on top o everything else17:54
dtroyeron the assumption that command line args should have preference over config file args17:55
mordredyes. I think command line args are the most explicitly request things - totally agree17:55
dtroyerlet me get things cleaned up a bit and I'll push up what I have and we can compare notes17:55
mordredbasically I'm treating the passed in args list (which is what I get from ansible) same as command line args - it just doesn't come from argparse17:56
mordredcool17:56
dtroyermordred: ok, so I just realized that what I have is taking a slightly longer way around and the ability to add the options later isn't a requirement…18:51
dtroyerhowever, I did stop to write up the option/config handling sequence in OSC at https://etherpad.openstack.org/p/os-client-config to lay out the auth plugins options18:52
dtroyerI'm curious to see how different what you have in ansible is18:52
dtroyerI'm going to try it now with 127807 and add the two tweaks I need yet18:55
mordreddtroyer: reading19:17
mordreddtroyer: hrm. it sounds like kdc auth plugins mean we need the os-client-config to re-run? or .. hrm19:20
mordredit sounds like since we'll happily pick up any value you might want to put in a config file19:20
mordredthen we should have all of the things that would be needed - other than not having a great way to do required things validation19:21
mordredmaybe yeah - the thing you say about REQUIRED_VALUES optionally being skipped is the thing19:21
dtroyerin osc I'm letting that validation be handled by the plugins19:21
mordredyah19:21
dtroyerI don't like not having control over how thigs look19:21
dtroyerbut so far it's ok19:21
mordredI think that's right.19:21
mordredalso, you already swapped the config/env var precedence, no?19:22
dtroyernot yet19:22
dtroyerso let me paste what I've done to get_one_cloud() to handle the Namespace19:22
mordredokie. cool19:22
mordreddtroyer: yeah - that looks totally sane19:23
mordreddtroyer: devananda and I discovered tons of fun related to project_id and project_name yesterday19:23
mordredapparently HP and Rackspace public clouds both have different behavior than devstack clouds19:24
mordred:)19:24
dtroyerI'm not sure how to handle the Namespace as a single arg, I want cloud_config to do the breakdown work so the argparse= bit does that19:24
dtroyerI'm not surprised about the name/id stuff.   it's a mess19:24
mordredin that in both rax and hp, project_id and project_name are interchangable completely19:24
mordredin devsatck, you can pass project_id to project_name, but not vice-versa19:24
dtroyerdoes current v3 not allow that too?19:25
dtroyerah, ok19:25
mordredtotal madness19:25
dtroyerI've only put ID into name I think19:25
dtroyerthat's mostly because I've just ignored project-id, why?  I want to rename it to project and let the backend figure it out19:26
mordredyes. I kinda want to do that too19:26
dtroyerso if everyone accepts either in project-name, we're good19:26
mordredyup. project-name seems to work across teh board19:26
dtroyerI'm also doing some filtering from the auth plugins…do you think that belongs in os-client-config?  I don't care where it lives, at least until I get it into a lowest-level api somewhere19:28
dtroyeryou already have some of the same stuff I have in OSC wrt tenant/project19:28
mordredyeah - tenant/project I definitely want to hide from users because it's crazy and nobody programming in openstack should need to know the dance19:30
mordredauth plugins ... maybe? I haven't played with those at all - what do you think?19:30
mordredis there a good way to dtrt there? (and/or would that make os-client-config need to depend on keystoneclient?19:31
dtroyerI want everything in OSC to be consistent and some of the option names from the plugins are odd.  It would be nice to have all of that corection in one place.  I'm not sure if plugin-specific stuff belongs here though19:31
dtroyerI wouldn't make anything dependent, just do the mappings there19:31
mordredcool. well, I share the same desire19:33
mordredalso - the auth plugins are new - why they heck do they have weird option names?19:33
dtroyersame as always, people don't talk19:33
mordredyay!19:34
dtroyerI'd have thought the existing names might have influenced some of that, but , you know the story19:34
mordredmy favorite thing we discoverd is that python-keystoneclient, when you pass project_name to it - still sends it over the wire as tenant_name19:35
dtroyerI do have a couple of things to push back into KSC once this is firmed up, I'll add those option names too19:35
dtroyerv2 auth _always_ will do that…we you using v3?19:35
mordrednot to my knowledge19:36
mordredbut that was deva on devstack - so it's possible it was doing v319:36
dtroyerthere is a path when ksc does the version discovery where tenant might still show up in a v3 request.  I haven't used that yet19:38
dtroyerok, I'm good on those reviews with the exception of that one bool type check19:43
*** briancurtin has quit IRC19:52
*** etoews has joined #openstack-sdks19:55
*** etoews has quit IRC20:00
openstackgerritMonty Taylor proposed a change to stackforge/os-client-config: Add support for command line argument processing  https://review.openstack.org/12780720:01
mordreddtroyer: cool. thanks - nice catch20:01
dtroyerYou want deva to look at these or shall I +A them?20:05
*** etoews has joined #openstack-sdks20:13
mordredgo for it!20:14
mordredin fact, once they land, maybe we should release an 0.3.0?20:14
*** etoews has quit IRC20:18
dtroyerI'd like to get the Namespace bit in first?20:18
dtroyerI'll need a rebase yet...20:19
openstackgerritA change was merged to stackforge/os-client-config: Remove unused class method get_services  https://review.openstack.org/12766820:20
openstackgerritA change was merged to stackforge/os-client-config: Handle no vendor clouds config files  https://review.openstack.org/12464520:21
openstackgerritA change was merged to stackforge/os-client-config: Add cache control settings  https://review.openstack.org/12464320:24
openstackgerritA change was merged to stackforge/os-client-config: Handle the project/tenant nonesense more cleanly  https://review.openstack.org/12766420:25
openstackgerritA change was merged to stackforge/os-client-config: Handle lack of username for project_name defaults  https://review.openstack.org/12767920:26
openstackgerritA change was merged to stackforge/os-client-config: Add support for command line argument processing  https://review.openstack.org/12780720:27
openstackgerritDean Troyer proposed a change to stackforge/os-client-config: Add support for argparse Namespace objects  https://review.openstack.org/12781020:30
openstackgerritDean Troyer proposed a change to stackforge/os-client-config: Add support for argparse Namespace objects  https://review.openstack.org/12781020:41
openstackgerritDean Troyer proposed a change to stackforge/os-client-config: Add support for argparse Namespace objects  https://review.openstack.org/12781020:48
*** briancurtin has joined #openstack-sdks20:53
openstackgerritDean Troyer proposed a change to stackforge/os-client-config: Add support for argparse Namespace objects  https://review.openstack.org/12781020:56
dtroyerjeez…apparently I can't py26 on the first or second try…20:56
mordredheh20:57
mordredpy26 sucks20:57
mordreddtroyer: so - do you need the cloud param to continue to live in the config dict?20:58
*** briancurtin has quit IRC20:58
mordreddtroyer: removing it made a bunch of pass-through stuff easier for me in shade ... but if you need it I can totally do the other thing20:58
mordred(other than that, that patch looks great to me whenever it works for you)20:59
*** briancurtin has joined #openstack-sdks20:59
dtroyerno I don't need it21:00
mordredexcellent21:00
mordreddtroyer: oh - actually, turns out I may not actually need it to be deleted21:03
mordredso never mnd21:03
*** briancurtin has quit IRC21:04
mordredk. your patch works in my stack21:04
mordredI think it may be time to add a bunch of tests ...21:04
dtroyernice…21:04
mordreddtroyer: so, I know you probably have other things on your tdl21:07
mordredbut master osc on my laptop: openstack server list returns nothing - but nova list shows a server21:07
mordreddo you want me to dig in and diagnose that?21:07
dtroyer—debug might be interesting21:08
mordreddtroyer: may be az related21:09
dtroyerah, could be…I don't have that to test with anywhere21:09
mordredit _looks_ like it's making the request against only one az21:09
mordredhttps://az-1.region-a.geo-1.compute.hpcloudsvc.com/v1.121:09
dtroyerdog park is calling…gotta run21:12
mordredIhave fun21:12
*** etoews has joined #openstack-sdks21:16
mordreddtroyer: ZOMG ZOMG ZOMG21:21
mordredit's in keystoneclient21:21
mordredI'm going to stab something21:21
*** etoews has quit IRC21:21
mordredah. nope. it's not. one sec ...21:22
openstackgerritMonty Taylor proposed a change to openstack/python-openstackclient: Fix operation on clouds with availability-zones  https://review.openstack.org/12781121:26
openstackgerritMonty Taylor proposed a change to openstack/python-openstackclient: Fix operation on clouds with availability-zones  https://review.openstack.org/12781121:30
mordreddtroyer: k. that fixes it in local testing21:31
*** etoews has joined #openstack-sdks21:34
*** etoews has quit IRC21:40
*** briancurtin has joined #openstack-sdks22:00
*** ayoung has quit IRC22:03
*** briancurtin has quit IRC22:05
*** bknudson has joined #openstack-sdks22:23
openstackgerritOpenStack Proposal Bot proposed a change to openstack/python-openstackclient: Updated from global requirements  https://review.openstack.org/12668222:38
*** briancurtin has joined #openstack-sdks23:01
*** briancurtin has quit IRC23:05
*** sigmavirus24_awa is now known as sigmavirus2423:29
*** stevemar has joined #openstack-sdks23:36

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