Tuesday, 2014-07-29

*** terrylhowe has quit IRC00:30
*** stevemar has joined #openstack-sdks01:01
*** briancurtin has joined #openstack-sdks01:20
*** stevemar has quit IRC02:03
*** etoews has joined #openstack-sdks02:03
*** stevemar has joined #openstack-sdks03:00
*** stevemar has quit IRC03:46
*** stevemar has joined #openstack-sdks03:46
*** terrylhowe has joined #openstack-sdks03:55
*** terrylhowe has left #openstack-sdks04:12
*** HenryG is now known as HenryG_afk04:45
*** briancurtin has quit IRC05:02
*** briancurtin has joined #openstack-sdks05:03
*** briancurtin has quit IRC05:07
*** elight has quit IRC06:01
*** elight has joined #openstack-sdks06:06
*** briancurtin has joined #openstack-sdks06:13
*** briancurtin has quit IRC06:18
*** elight has quit IRC06:25
*** elight has joined #openstack-sdks06:29
openstackgerritwanghong proposed a change to openstack/python-openstackclient: fix typo in identity/v3/endpoint.py  https://review.openstack.org/11022207:37
*** stevemar has quit IRC07:46
*** jamielennox is now known as jamielennox|away08:23
*** mattyw has joined #openstack-sdks09:35
openstackgerritA change was merged to openstack/python-openstackclient: fix typo in identity/v3/endpoint.py  https://review.openstack.org/11022210:32
*** HenryG_afk is now known as HenryG10:53
*** stevemar has joined #openstack-sdks13:28
*** smashwilson has joined #openstack-sdks13:30
*** bknudson has joined #openstack-sdks13:41
*** terrylhowe has joined #openstack-sdks13:46
*** briancurtin has joined #openstack-sdks14:06
*** briancurtin has joined #openstack-sdks14:06
*** terrylhowe has quit IRC14:15
*** dhellmann has quit IRC14:17
*** terrylhowe has joined #openstack-sdks14:18
*** briancurtin has quit IRC14:20
*** briancurtin has joined #openstack-sdks14:20
*** dhellmann has joined #openstack-sdks14:20
*** briancurtin has quit IRC14:54
*** briancurtin has joined #openstack-sdks14:55
*** briancurtin has quit IRC14:59
*** terrylhowe has quit IRC15:02
*** etoews has joined #openstack-sdks15:03
*** briancurtin has joined #openstack-sdks15:16
*** briancurtin has joined #openstack-sdks15:16
*** briancurtin has quit IRC15:22
*** terrylhowe has joined #openstack-sdks15:25
*** HenryG_ has joined #openstack-sdks15:48
*** HenryG has quit IRC15:52
*** HenryG_ is now known as HenryG_afk15:52
*** HenryG_afk is now known as HenryG15:52
*** terrylhowe has quit IRC16:09
*** briancurtin has joined #openstack-sdks16:11
*** briancurtin has quit IRC16:11
*** briancurtin has joined #openstack-sdks16:11
*** briancurtin has quit IRC16:16
*** briancurtin has joined #openstack-sdks16:16
*** briancurtin has quit IRC16:16
*** smashwilson has quit IRC16:18
*** briancurtin has joined #openstack-sdks16:20
*** terrylhowe has joined #openstack-sdks16:28
*** smashwilson has joined #openstack-sdks16:28
*** smashwilson has quit IRC16:28
*** terrylhowe has quit IRC16:29
*** smashwilson has joined #openstack-sdks16:30
*** briancurtin has quit IRC16:41
*** briancurtin has joined #openstack-sdks16:42
*** briancurtin has quit IRC16:42
*** briancurtin has joined #openstack-sdks16:42
*** terrylhowe has joined #openstack-sdks16:55
*** mattyw has quit IRC17:13
*** terrylhowe has quit IRC17:14
*** etoews has quit IRC17:24
*** etoews has joined #openstack-sdks17:27
*** smashwilson has quit IRC17:30
*** smashwilson has joined #openstack-sdks17:31
*** smashwilson has quit IRC17:44
*** smashwilson has joined #openstack-sdks17:48
*** terrylhowe has joined #openstack-sdks18:02
*** smashwil_ has joined #openstack-sdks18:03
*** smashwilson has quit IRC18:04
*** jamielennox|away is now known as jamielennox18:07
*** briancurtin has quit IRC18:17
*** briancurtin has joined #openstack-sdks18:18
*** briancurtin has quit IRC18:19
*** briancurtin has joined #openstack-sdks18:20
*** briancurtin has quit IRC18:20
*** briancurtin has joined #openstack-sdks18:20
*** smashwil_ has quit IRC18:28
*** smashwilson has joined #openstack-sdks18:28
*** smashwilson has quit IRC18:39
*** smashwilson has joined #openstack-sdks18:40
briancurtinFYI python-openstacksdk meeting in 12 minutes in #openstack-meeting-3, small agenda at https://wiki.openstack.org/wiki/Meetings/PythonOpenStackSDK#Agenda_for_2014-07-29_1900_UTC18:48
briancurtinterrylhowe, dtroyer, jamielennox around for the meeting?19:01
jamielennoxbriancurtin: oops, coming19:02
*** smashwilson has quit IRC19:19
*** smashwilson has joined #openstack-sdks19:23
*** openstackgerrit has quit IRC19:48
jamielennoxdtroyer: so keystoneclient does some bad things to make the session stuff backwards compatible with the older keystoneclient19:58
jamielennoxit's something i've just ignored when doing the other clients, but as it 'grew' in keystoneclient it was kind of the only choice19:58
dtroyerjamielennox: right, and I really want to avoid that stuff if possible19:59
dtroyerbut I may be abusing some session stuff myself in trying to pass in one created earlier19:59
dtroyerthat the more I think about it, if I get the session == auth context in my head I shouldn't want to do that20:00
dtroyerI thought there might be a connection pool advantage, but I suspect now that would be small20:00
dtroyerif there even is one20:00
jamielennoxfor OSC i don't think its going to matter20:06
jamielennoxdtroyer: so i based this stuff on the requests session which has auth as either something permanent and stored on session or you can pass it as a parameter20:06
jamielennoxand session supports both because the likes of horizon should only need 1 session object and a whole lot of auth objects20:07
jamielennoxthough for OSC i don't see why you couldn't combine them20:08
dtroyerOSC has an interactive mode that is long-running like Horizon, but so far only a single set of credentials.  But I should consider that may change, so what you describe for Horizon makes sense20:08
dtroyerI think it will be easier later if I manage sessions and auth explicitly20:09
jamielennoxso the way i am converting clients is to base them on the keystoneclient.adapter20:09
jamielennoxadapter takes an auth plugin and if present it will set it on all requests20:09
jamielennoxso while it would be annoying and error prone to do client.users.list(auth=auth) every time20:09
jamielennoxyou should be able to do client = Client(session, auth) and create a client per/credentials20:10
jamielennoxclient objects are cheap because they won't auth on init any more20:10
dtroyeris that preferred in a non-compatibility-mode scenario?20:10
jamielennoxhonestly i don't think it matters20:11
jamielennoxi see them for two different classes of users20:11
jamielennoxthe end user will almost always want to link session and auth because they are working with one set of credentials20:11
jamielennoxhorizon will want to manage them more fine grain20:11
dtroyerwhat I am after is the "right" way to setup OSC so if/when compat stuff can be removed it is not painful, then to switch to the sdk it still isn't (too) painful20:12
jamielennoxOSC i'd have thought is a one-user kind of application, but if you want to juggle credentials there's no harm in doing it th eother way20:12
dtroyermy thought on multiple credentials is if we let users talk to multiple coulds in the same run20:13
dtroyerI've wanted that a time or two to move things between our internal dev clouds for example20:13
jamielennoxhmm, that get's complicated - because that could be multiple sessions (cacerts etc)20:13
dtroyerthe CLI to set that us in't pretty, but in my case ti is all the same except for auth_url20:14
dtroyerso if I add config files (yes, I know) to OSC you could define all that ahead of time and just refer to the clouds by name20:15
jamielennoxi think so long as you create the session object yourself it's personal preference as to whether you hold on to the auth plugin or attach it to session20:15
jamielennoxin OSC's case with the client manager i think it would be the matter of a couple of lines difference20:15
jamielennoxyou've got to store the auth somewhere so if you do self.auth = Auth() or self.session.auth = Auth() they will both be stored together20:16
*** terrylhowe has quit IRC20:16
dtroyersomething like that is what I was aiming for, with a better understanding now I should be able to get it right20:16
*** smashwilson has quit IRC20:42
*** smashwilson has joined #openstack-sdks20:44
*** briancurtin2 has joined #openstack-sdks20:46
*** briancurtin has quit IRC20:50
*** openstackgerrit has joined #openstack-sdks20:59
*** smashwilson has quit IRC21:02
*** terrylhowe has joined #openstack-sdks21:12
*** terrylhowe has quit IRC21:13
*** etoews has quit IRC21:32
*** terrylhowe has joined #openstack-sdks21:45
*** terrylhowe has quit IRC21:50
*** etoews has joined #openstack-sdks21:52
*** etoews_ has joined #openstack-sdks21:54
*** etoews has quit IRC21:57
*** etoews_ has quit IRC21:58
*** briancurtin2 has quit IRC22:01
*** briancurtin has joined #openstack-sdks22:02
*** briancurtin has quit IRC22:02
*** briancurtin has joined #openstack-sdks22:02
*** briancurtin has quit IRC22:06
*** HenryG is now known as HenryG_afk22:18
*** bknudson has quit IRC22:30
*** briancurtin has joined #openstack-sdks22:33
*** briancurtin has quit IRC22:33
*** briancurtin has joined #openstack-sdks22:33
*** mfer has joined #openstack-sdks22:38
*** mfer has quit IRC22:39
*** mattyw has joined #openstack-sdks22:58
*** terrylhowe has joined #openstack-sdks23:06
*** terrylhowe has quit IRC23:08
*** etoews has joined #openstack-sdks23:14
*** bknudson has joined #openstack-sdks23:20
*** bknudson has quit IRC23:25
*** bknudson has joined #openstack-sdks23:34
*** mattyw has quit IRC23:36
*** HenryG_afk is now known as HenryG23:45
*** etoews has quit IRC23:51

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