Thursday, 2015-07-09

*** Qiming has quit IRC00:12
*** jamielennox is now known as jamielennox|away00:29
*** hitalia has quit IRC00:33
*** jamielennox|away is now known as jamielennox00:39
*** ameybhide has left #openstack-sdks00:46
*** Qiming has joined #openstack-sdks01:06
*** Qiming_ has joined #openstack-sdks01:07
*** Qiming has quit IRC01:10
*** dguerri` is now known as dguerri01:29
*** Yanyanhu has joined #openstack-sdks01:37
*** Qiming_ has quit IRC01:41
*** Qiming_ has joined #openstack-sdks01:41
*** bitblt has quit IRC01:45
*** sigmavirus24_awa is now known as sigmavirus2401:49
*** Yanyan has joined #openstack-sdks01:51
*** Yanyanhu has quit IRC01:54
*** steveortiz is now known as zz_steveortiz02:05
*** crinkle has quit IRC02:08
*** crinkle has joined #openstack-sdks02:16
*** dguerri is now known as dguerri`02:17
*** sigmavirus24 is now known as sigmavirus24_awa02:17
*** dguerri` is now known as dguerri02:22
*** dguerri is now known as dguerri`02:25
*** dguerri` is now known as dguerri02:30
*** dguerri is now known as dguerri`02:34
*** stevemar has joined #openstack-sdks02:40
*** rbrooker has quit IRC02:56
*** Qiming_ is now known as Qiming03:00
*** guojian has joined #openstack-sdks03:00
*** jamielennox is now known as jamielennox|away03:22
*** jamielennox|away is now known as jamielennox03:31
*** pm90_ has joined #openstack-sdks03:57
*** pm90_ has quit IRC04:30
*** pm90_ has joined #openstack-sdks04:40
*** terrylhowe has quit IRC05:01
*** hitalia has joined #openstack-sdks05:03
*** stevemar has quit IRC05:22
*** Qiming_ has joined #openstack-sdks05:40
*** Qiming has quit IRC05:43
*** ig0r_ has joined #openstack-sdks05:51
*** ig0r__ has quit IRC05:55
openstackgerritGuojian Shao proposed openstack/python-openstackclient: add functional tests for identity v2  https://review.openstack.org/19849806:08
openstackgerritOpenStack Proposal Bot proposed openstack/python-openstackclient: Imported Translations from Transifex  https://review.openstack.org/19989106:11
*** dguerri` is now known as dguerri06:40
*** dguerri is now known as dguerri`06:46
*** Qiming_ is now known as Qiming06:53
*** tobe has joined #openstack-sdks07:18
*** aufi has joined #openstack-sdks07:25
*** karimb has joined #openstack-sdks07:29
*** stevemar has joined #openstack-sdks07:37
*** stevemar has quit IRC07:40
*** sorantis has joined #openstack-sdks07:44
*** jaosorior has joined #openstack-sdks07:55
*** heha has joined #openstack-sdks08:05
*** heha has quit IRC08:06
*** hitalia has quit IRC08:47
*** pm90_ has quit IRC08:52
*** pm90_ has joined #openstack-sdks09:23
*** pm90_ has quit IRC09:28
*** Qiming has quit IRC10:10
*** Yanyan has quit IRC10:17
*** guojian has quit IRC10:17
*** sorantis has quit IRC10:27
*** sorantis has joined #openstack-sdks10:59
*** sorantis has quit IRC11:05
*** sorantis has joined #openstack-sdks11:09
*** Qiming has joined #openstack-sdks11:13
*** sorantis has quit IRC11:38
*** sorantis has joined #openstack-sdks11:44
*** tobe has quit IRC11:48
*** trown|outttypeww is now known as trown12:01
*** bknudson has quit IRC12:26
*** thrash|g0ne is now known as thrash12:33
*** bknudson has joined #openstack-sdks12:42
*** pserebryakov has joined #openstack-sdks12:50
openstackgerritMonty Taylor proposed openstack/os-client-config: Specify the config file with environment variable  https://review.openstack.org/19850213:04
openstackgerritMonty Taylor proposed openstack/os-client-config: Add support for configuring region lists with yaml  https://review.openstack.org/19850113:04
*** stevemar has joined #openstack-sdks13:06
*** sorantis_ has joined #openstack-sdks13:09
*** sorantis has quit IRC13:11
*** sorantis_ is now known as sorantis13:11
openstackgerritMonty Taylor proposed openstack/os-client-config: Specify the config file with environment variable  https://review.openstack.org/19850213:11
openstackgerritMonty Taylor proposed openstack/os-client-config: Add support for configuring region lists with yaml  https://review.openstack.org/19850113:11
*** rbrooker has joined #openstack-sdks13:13
*** stevemar has quit IRC13:26
*** stevemar has joined #openstack-sdks13:26
*** terrylhowe has joined #openstack-sdks13:27
*** pm90_ has joined #openstack-sdks13:28
*** stevemar has quit IRC13:33
*** pm90_ has quit IRC13:33
*** pm90_ has joined #openstack-sdks13:33
*** petertr7_away is now known as petertr713:37
openstackgerritMerged stackforge/python-openstacksdk: Some updates to object_store user guide  https://review.openstack.org/19962213:44
openstackgerritMerged stackforge/python-openstacksdk: Add or change timestamp suffixes to "_at"  https://review.openstack.org/19973113:46
*** sigmavirus24_awa is now known as sigmavirus2413:47
openstackgerritMerged stackforge/python-openstacksdk: Add docstrings for database resources  https://review.openstack.org/19973813:49
*** rbrooker has quit IRC13:51
*** pm90_ is now known as pratikmallya13:56
mordredShrews: ^^ I reworked https://review.openstack.org/198501 based on feedback from GheRivero13:59
*** karimb has quit IRC13:59
*** pserebryakov has quit IRC14:00
openstackgerritEverett Toews proposed stackforge/python-openstacksdk: Log reauth  https://review.openstack.org/19716514:08
*** stevemar has joined #openstack-sdks14:25
*** stevemar has quit IRC14:25
*** stevemar has joined #openstack-sdks14:26
*** jose4183 has quit IRC14:27
*** jose4183 has joined #openstack-sdks14:27
*** zz_steveortiz is now known as steveortiz14:28
openstackgerritMerged openstack/python-openstackclient: Imported Translations from Transifex  https://review.openstack.org/19989114:39
*** petertr7 is now known as petertr7_away14:41
*** petertr7_away is now known as petertr714:43
*** notmars has joined #openstack-sdks14:53
mordredShrews, dtroyer: just sent email to the dev list about adding Ghe to oscc core15:01
*** sorantis has quit IRC15:02
*** steveortiz is now known as zz_steveortiz15:03
*** pratikmallya has quit IRC15:18
*** jamielennox is now known as jamielennox|away15:23
*** pratikmallya has joined #openstack-sdks15:24
*** aufi has quit IRC15:26
*** jamielennox|away is now known as jamielennox15:32
*** Qiming has quit IRC15:33
*** zz_steveortiz is now known as steveortiz15:34
etoewsbriancurtin: do you think would this be the best place for a re-auth log message? https://github.com/stackforge/python-openstacksdk/blob/master/openstack/auth/identity/base.py#L10915:41
briancurtinetoews: looking. that might be, but i think i'd want it even closer to where the call is being made since that just tells something that tells something else that tells something else "ok, *now* do it"15:43
briancurtinetoews: or maybe log that reauthentication is needed, and we also log when the call is actually made? i dont know if i'm adding too many log messages here or not, but it feels like an important distinction15:44
briancurtinetoews: oh, we actually do log "Making authentication request to %s" in openstack/auth/identity/v2.py and v3.py15:46
briancurtinetoews: so yeah, that spot would be a good time to say something like "Re-authentication needed"15:46
etoewsk15:47
briancurtinbeing able to trace that we have an expiring token, we need reauth, and that the auth request was made seems like a good set of debug logs to have. this seems good15:47
etoewsyep. super important event. guaranteed we'll be seeing lots of logs from people with this in it. ;)15:51
openstackgerritEverett Toews proposed stackforge/python-openstacksdk: Log reauth  https://review.openstack.org/19716515:54
*** stevemar has quit IRC15:56
openstackgerritMerged openstack/python-openstackclient: openstack catalog list always returns publicURL for internalURL and adminURL  https://review.openstack.org/19959115:58
*** trown is now known as trown|mtg15:59
*** notmars has quit IRC16:03
*** bitblt has joined #openstack-sdks16:03
*** notmars has joined #openstack-sdks16:08
*** notmars_ has joined #openstack-sdks16:11
*** notmars has quit IRC16:13
*** notmars_ is now known as notmars16:13
*** jose4183 has quit IRC16:20
*** jamielennox is now known as jamielennox|away16:21
*** jose4183 has joined #openstack-sdks16:21
*** boris-42 has quit IRC16:22
*** jamielennox|away is now known as jamielennox16:29
*** notmars has quit IRC16:31
*** pratikmallya has quit IRC16:31
*** pratikmallya has joined #openstack-sdks16:32
*** pratikmallya has quit IRC16:34
*** petertr7 is now known as petertr7_away16:38
openstackgerritBrian Curtin proposed stackforge/python-openstacksdk: Argument consistency in test_proxy_base  https://review.openstack.org/20017416:38
openstackgerritMerged stackforge/python-openstacksdk: Log reauth  https://review.openstack.org/19716516:39
*** trown|mtg is now known as trown16:45
*** bitblt has quit IRC16:45
*** trown is now known as trown|lunch16:54
terrylhowebriancurtin: you all done with proxy testing, etc?  I’m messing with find and list is next on my list16:55
briancurtinterrylhowe: yeah for right now, had been meaning to adjust those methods for a while and just got that out. won't be touching that anymore until after find work is done16:56
terrylhowethx16:56
*** rbrooker has joined #openstack-sdks17:11
*** notmars has joined #openstack-sdks17:15
*** boris-42 has joined #openstack-sdks17:20
*** beagles is now known as beagles_lunch17:24
openstackgerritMerged stackforge/python-openstacksdk: Argument consistency in test_proxy_base  https://review.openstack.org/20017417:25
*** pratikmallya has joined #openstack-sdks17:26
*** stevemar has joined #openstack-sdks17:36
*** petertr7_away is now known as petertr717:37
*** trown|lunch is now known as trown17:48
openstackgerritBrian Curtin proposed stackforge/python-openstacksdk: WIP: Support get/set metadata on object_store proxy  https://review.openstack.org/18845217:49
openstackgerritTerry Howe proposed stackforge/python-openstacksdk: Add ignore_missing to proxy find  https://review.openstack.org/20019117:57
*** bknudson has quit IRC17:59
*** ameybhide has joined #openstack-sdks18:03
terrylhoweis that a cliff bug stevemar ?18:09
stevemarterrylhowe: the help18:09
stevemar?18:09
stevemaryeah, probably, assign cliff too18:10
terrylhowethat help issue18:10
*** notmars has quit IRC18:10
*** notmars has joined #openstack-sdks18:10
*** stevemar has quit IRC18:11
*** hitalia has joined #openstack-sdks18:11
openstackgerritTerry Howe proposed stackforge/python-openstacksdk: Add ignore_missing to proxy find  https://review.openstack.org/20019118:13
*** stevemar has joined #openstack-sdks18:14
*** stevemar has quit IRC18:15
*** stevemar has joined #openstack-sdks18:15
*** shaleh has joined #openstack-sdks18:18
stevemarterrylhowe: yeah, shaleh is the fella from the ML18:20
*** rbrooker has quit IRC18:34
*** jaosorior has quit IRC18:36
*** beagles_lunch is now known as beagles18:37
etoewsall: terrylhowe: briancurtin: here's proposal i worked up for the sdk to be added to the big tent https://etherpad.openstack.org/p/python-openstacksdk-big-tent-proposal18:45
etoewsplease have a look. fix grammar and punctuation as you will. discuss here or comment on the etherpad for substantial changes.18:45
etoewswe'll also need to fill in the ptl field for the projects.yaml18:46
etoewsdtroyer: fyi, i mention osc in the proposal18:47
etoewsmordred: fyi, i mention occ in the proposal18:47
briancurtinetoews: i think url in the projects.yaml should just we the wiki. that looks like what others have done, and i have to assume we'll eventually have docs up on openstack.org (could leave RTD as well, though)18:56
terrylhoweoh oh, etoews is punting on image create18:58
etoewsterrylhowe: ? i actually did image create/import. i'm punting on update. :) https://review.openstack.org/#/c/199318/19:00
terrylhoweah, okay, thanks19:00
*** petertr7 is now known as petertr7_away19:01
terrylhowesomehow I missed that one19:01
*** petertr7_away is now known as petertr719:01
*** rbrooker has joined #openstack-sdks19:19
etoewsterrylhowe: also, image update in glance v2 uses json-patch, which isn't used anywhere else in the sdk yet. i knew i wouldn't have time to dig into it before leaving on vacation tomorrow.19:22
terrylhowewell, have a blast on vacation :)19:23
*** notmars has quit IRC19:24
briancurtinterrylhowe: what do you want to do about the PTL slot in that proposal? i dont know if we need a formal election for this one or if a meeting works or how we want to get started with this19:26
*** notmars has joined #openstack-sdks19:31
*** shaleh has quit IRC19:42
*** shaleh has joined #openstack-sdks19:47
shalehre: --help option to openstack subcommands19:47
shalehI investigated why 'openstack user list --help' shows the openstack top level help instead of the sub command help.19:48
shalehThe --help option is consumed by the top level argparse before the code ever looks at the subcommands.19:48
*** petertr7 is now known as petertr7_away19:48
shalehso the help action is triggered at the top level instead of lower down19:48
shalehto resolve this what I did was check if 'remainder' had any values during app.run(). If it does and self.options.deferred_help is true I set it to false and push "--help" onto the remainders list.19:49
shalehThis allows the code to end sub command processing.19:50
shalehBut then the next snag occurs. The check for a proper project, username, etc. is run before the arguments to the subcommand are processed.19:50
shalehTo fix this I moved prepare_to_run_command to occur just before the command runs instead of before argument parsing.19:51
shalehIt is this second change I am most concerned about.19:51
shalehAll told this is only about 7 lines of code.19:51
shalehis there a reason to not parse the subcommand options before ensuring the user has what they need to authenticate?19:51
*** petertr7_away is now known as petertr719:52
shalehI could not think of a good reason, but I thought I would ask the old timers19:52
terrylhoweshaleh: the main reason is you can’t tell what commands you have until you parse the options and auth19:53
terrylhoweif you don’t have v3 identity for instance, the commands don’t show up, you’d get v219:53
shalehterrylhowe: is there a use case where a user will ask for --help and not get any because they have not given all of the parameters?19:54
shalehlook at line 304+ in cliff/app.py. This is where all of the changes occur.19:55
shalehI moved self.prepare_to_run_command() to just before cmd.run()19:56
shalehat this point, I know you have asked for 'user list' and I am attempting to parse the options accordingly19:56
terrylhowewell, as long as ‘os user list —os-identity-api-version 3 —help’ works we are g2g19:57
terrylhowedefault is v2 I think although that might of changed19:57
shalehdoes passing --os-identity-api-version 3 change the output of the help?19:57
shalehAll of the --os-foo options are consumed at the top level already.19:58
shalehAll that is being parsed here are subcommand specific options19:58
shalehThis is actually the core reason this behaviour occurs. os --os-blah user list and os user list --os-blah both work19:59
shalehMost apps consume top level options first then let subcommands handle it. So 'os user list --os-blah' would try to let user->list process --os-blah20:00
terrylhowewell ‘os credential list’ is maybe a better example.  it doesn’t exist for v220:00
shalehI will experiment and ensure. Thanks for the pointer.20:01
shalehback in a bit20:01
terrylhoweuser list for example is in both, but v3 has —domain20:01
*** pratikmallya has quit IRC20:05
*** stevemar has quit IRC20:08
*** stevemar has joined #openstack-sdks20:11
openstackgerritTerry Howe proposed stackforge/python-openstacksdk: Add ignore_missing to proxy find  https://review.openstack.org/20019120:11
*** stevemar has quit IRC20:12
*** stevemar has joined #openstack-sdks20:12
*** notmars has quit IRC20:17
openstackgerritDoug Hellmann proposed openstack/cliff: Fix logging config in demo app  https://review.openstack.org/20024020:17
*** stevemar has quit IRC20:19
*** stevemar has joined #openstack-sdks20:21
*** stevemar has quit IRC20:25
*** pratikmallya has joined #openstack-sdks20:33
*** pratikmallya has quit IRC20:33
*** pratikmallya has joined #openstack-sdks20:34
*** karimb has joined #openstack-sdks20:38
*** karimb has quit IRC20:39
*** karimb has joined #openstack-sdks20:39
*** hitalia has quit IRC20:43
dtroyershaleh: the API version options affect the help output, the commands are different for different API versions.  we hide that when we can, but it is unavoidable21:02
dtroyerre-rdering cliff will have ramifications in more than just OSC and needs to be carefully considered21:02
dtroyeras it is there is more context-sensitivity to help than I would like, it seemed easier to me to document that —help and -h were for global and the help command is for command-specific21:03
dtroyerie, easier for a user to learn.  trying to be too smart often for one group means we're too obtuse for another21:04
mordredetoews: woot!21:05
*** sigmavirus24 is now known as emacsraptor21:10
*** emacsraptor is now known as sigmavirus2421:10
*** hitalia has joined #openstack-sdks21:13
*** petertr7 is now known as petertr7_away21:17
*** trown is now known as trown|outttypeww21:20
*** notmars has joined #openstack-sdks21:21
*** jose4183 has quit IRC21:25
*** jamielennox is now known as jamielennox|away21:37
*** steveortiz is now known as zz_steveortiz21:40
*** shaleh has quit IRC21:47
*** shaleh has joined #openstack-sdks21:47
*** jamielennox|away is now known as jamielennox21:48
*** notmars has quit IRC21:55
*** sigmavirus24 is now known as sigmavirus24_awa21:59
*** bknudson has joined #openstack-sdks22:04
openstackgerritMerged openstack/cliff: Use base command for help test  https://review.openstack.org/19905222:05
openstackgerritMerged openstack/cliff: Fix logging config in demo app  https://review.openstack.org/20024022:10
shalehdtroyer: documenting bad UX does not improve the UX. There is no reason not to behave better.22:10
shalehif there is concern about my change affecting projects outside of OpenStack it would be pretty easy to put another flag like deferred_help in cliff.22:11
*** bknudson has quit IRC22:27
*** shaleh has quit IRC22:37
*** stevemar has joined #openstack-sdks22:49
*** stevemar has quit IRC22:54
*** pratikmallya has quit IRC23:01
*** pratikmallya has joined #openstack-sdks23:01
openstackgerritTerry Howe proposed stackforge/python-openstacksdk: WIP: List QueryParameters class  https://review.openstack.org/20030823:34
*** openstack has joined #openstack-sdks23:40
-cameron.freenode.net- [freenode-info] channel flooding and no channel staff around to help? Please check with freenode support: http://freenode.net/faq.shtml#gettinghelp23:40
*** Qiming has joined #openstack-sdks23:43
*** chlong has quit IRC23:49
*** thrash is now known as thrash|g0ne23:54

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