| Posted | Nick | Remark | |
|---|---|---|---|
| #openstack-sdks - 2017-03-29 | |||
| 22:20:18 | dtroyer | I think that is a higher-level problem. I see the version exception stuff going all the way up to OSC's command classes | |
| 22:21:02 | dtroyer | yeah, that was a good first-cut in novaclient, time to generalize cleanly :) | |
| 22:21:42 | jamielennox | dtroyer: so i'm keen to put that information into ksa, i just don't know how so if you come up with something at least we can discuss from there | |
| 22:21:44 | dtroyer | do you have an opinion on using a Version class like novaclient does? I did that in one of my other early attempts at this, not sure if that should go into ksa though | |
| 22:21:59 | jamielennox | will need to have another look at novaclient | |
| 22:22:51 | dtroyer | I'm going to work in osc I think for now until it becomes clearer. this is tightly tied into the plugin mechanism for osc | |
| 22:23:02 | jamielennox | dtroyer: do they do version class for microversions/ | |
| 22:23:12 | dtroyer | but the atomic bits can and shold go somewhere common | |
| 22:23:18 | dtroyer | yes | |
| 22:23:40 | dtroyer | nothing there is specific to microversions, it's just an x.y representation. I did x.y.z before… | |
| 22:24:22 | jamielennox | i have very simplistic versions of that in discover | |
| 22:24:54 | jamielennox | but i don't think there is any way to check a minimum there - because it never needed to | |
| 22:25:03 | jamielennox | so yea, i'd be happy to take that | |
| 22:25:15 | jamielennox | i think there is a version of that in one of the oslo libs already - but we can redirect that to ksa | |
| 22:27:54 | jamielennox | dtroyer: a possible implementation might be a request class you can pass to ksa? subclass the request() bit with a number of if microversion >x<y stuff | |
| 22:28:14 | jamielennox | i think i'll let you play with it | |
| 22:28:40 | jamielennox | though one of the things i meant to do after atlanta was draw up a new version of a cross-project discovery page | |
| 22:28:52 | dtroyer | I need to make version decisions in commands before I get that far | |
| 22:28:57 | jamielennox | something that did major and microversion discovery - and probably capabilities on the same request | |
| 22:29:00 | dtroyer | oooh, that would be helpful at some point :) | |
| 22:29:37 | jamielennox | ya, if we just put it on a new content-type and say ksa works if you implement this i think we might actually get some traction as opposed to last time i did it | |
| 22:33:05 | jamielennox | dtroyer: anyway i can wait and make sure to put everything we actually need in there first | |
| 22:33:27 | jamielennox | dtroyer: so on another front did you have a look at the os-c-c-2 WIP i put up | |
| 22:33:30 | jamielennox | ? | |
| 22:33:37 | jamielennox | i cannot figure out what i want that interface to look like | |
| 22:33:50 | dtroyer | I did last week and wasn't exactly sure I understood it all | |
| 22:34:19 | jamielennox | yea, i didn't make it easy, it was all experimenting and no comments | |
| 22:35:21 | dtroyer | I am ok with the current interface, basically decomposing get_one_cloud() so I can insert things and leave out other things is what I'm looking for | |
| 22:35:47 | dtroyer | that auth plugin loading bit me again this week | |
| 22:36:12 | dtroyer | it happens waaaaaay to early in o-c-c | |
| 22:37:05 | jamielennox | dtroyer: agreed, i'm not sure i want people overriding it | |
| 22:37:12 | jamielennox | my thought was it should be simply a datastore | |
| 22:37:29 | jamielennox | but i got way into the weeds | |
| 22:39:19 | dtroyer | that would be my preference | |
| 22:40:25 | dtroyer | I would love to hand it an argparse Namespace, have it merge that with clouds.*, do all of the hacky things to make interop work and be done | |
| 22:41:49 | jamielennox | that's part of where i was getting caught up, does o-c-c control the parser, what about envs? | |
| 22:43:28 | jamielennox | how do you handle the AllClouds object vs the get_one_cloud case | |
| 22:43:49 | dtroyer | OSC does the parser and env (via argparse) | |
| 22:43:55 | dtroyer | I don't look at AllClouds at all | |
| 22:44:06 | jamielennox | yea, but o-c-c has to maintain that | |
| 22:44:10 | dtroyer | altough commands to work with clouds.yaml might | |
| 22:44:29 | dtroyer | right, that's fine | |
| 22:45:15 | dtroyer | I would be OK with there being a common set of argparse declaration in o-c-c, but I want control over it | |
| 22:46:52 | dtroyer | working with this again Monday I realized just how f-ed up OSC's use of the auth plugins is. IS it work fixing that before this rewrite is done? do those go together? | |
| 22:51:05 | jamielennox | dtroyer: i've attempted to mess with osc's auth plugins before and can never find a way to exactly maintain compatibility | |
| 22:51:14 | jamielennox | but i don't think you should wait for o-c-c | |
| 22:51:41 | dtroyer | we can't avoid breaking some things. I'm preparing for a 4.0 where we can make some changes there | |
| 22:52:36 | dtroyer | since _everything else_ is doing some things differently than OSC, maybe its time OSC adjusts a bit | |
| 22:53:28 | jamielennox | would be nice to have the o-c-c fixed up for then | |
| 22:53:33 | jamielennox | not sure how likely that is though | |
| 22:54:09 | dtroyer | yeah, I expected some things to change there. I don't knwo what the timing of 4.0 is, June/July at the absolute earliest | |
| 22:56:32 | dtroyer | one other thing that's bugging me: you mentioned a long time ago that I should be making requests adapters rather than sessions. | |
| 22:57:03 | dtroyer | I'm thinking I need to fix that too | |
| 23:04:40 | jamielennox | dtroyer: so adapters were a direct response to how you create a client once and then reuse it with the same parameters | |
| 23:05:16 | jamielennox | it meant you could do things like set the service_type on an object and make calls via that rather than set it every time on a session.request | |
| 23:05:51 | jamielennox | it's _probably_ easier give that you do like a create_client thing that returns something specific to that usage | |
| 23:06:07 | jamielennox | but if you know what you're doing with a session you may not need it | |
| 23:06:46 | jamielennox | it really depends on how you want to use it | |
| 23:07:30 | dtroyer | ok. I was looking at shade and wanting to converge some of the lower-level stuff a bit more. I've got to implement some nova-net stuff that's being removed from novaclient so I was looknig again at OSC' api layer stuff | |
| #openstack-sdks - 2017-03-30 | |||
| 00:31:57 | openstackgerrit | OpenStack Proposal Bot proposed openstack/python-openstackclient master: Updated from global requirements https://review.openstack.org/451606 | |
| 01:52:06 | openstackgerrit | Dean Troyer proposed openstack/python-openstackclient master: start using api.versions https://review.openstack.org/451618 | |
| 01:52:43 | dtroyer | jamielennox: ^^^ is a very quick attempt at microversion handling in osc. openstackclient.api.versions is the bit that I'm thinking about for ksa | |
| 02:28:32 | reedip | stevemar ; there ? | |
| 04:18:39 | reedip | RuiChen : there? | |
| 04:40:15 | openstackgerrit | Merged openstack/python-openstackclient master: Updated from global requirements https://review.openstack.org/451606 | |
| 06:22:17 | openstackgerrit | Thomas Bechtold proposed openstack/python-openstacksdk master: Fix doc build if git is absent https://review.openstack.org/451662 | |
| 06:42:22 | reedip | RuiChen : ping | |
| 08:36:27 | rabel | good morning! | |
| 08:36:48 | reedip | its evening ! :D | |
| 08:37:38 | rabel | :D good evening, reedip | |
| 10:05:07 | openstackgerrit | Thomas Bechtold proposed openstack/python-openstacksdk master: Fix doc build if git is absent https://review.openstack.org/451662 | |
| 12:15:58 | openstackgerrit | Merged openstack/python-openstacksdk master: Fix doc build if git is absent https://review.openstack.org/451662 | |
| 13:01:41 | RuiChen | we have IRC meeting now? | |
| 13:01:52 | reedip | we do ? | |
| 13:03:22 | RuiChen | I'm not sure, but today is thursday | |
| 13:05:04 | dtroyer | it's later today, 1900 UTC | |
| 13:05:21 | reedip | whats the time now ?? | |
| 13:05:25 | reedip | :D | |
| 13:06:10 | dtroyer | 1306 UTC | |
| 13:06:21 | dtroyer | so six hours from now | |
| 13:06:48 | RuiChen | I always fail to identify odd and even weeks :( | |
| 13:06:54 | reedip | thats better thanks :) | |
| 13:07:41 | dtroyer | maybe this can help: http://eavesdrop.openstack.org/calendars/oslo-team-meeting.ics | |
| 13:07:47 | reedip | :D | |
| 13:07:54 | dtroyer | http://eavesdrop.openstack.org/calendars/openstackclient-team-meeting.ics is the right one | |
| 13:08:24 | RuiChen | ah, thank you dtroyer :) | |
| 13:10:26 | RuiChen | today IRC meeting is too late for me, I will join next time | |
| 13:11:29 | dtroyer | RuiChen: did you see my last comemnt on https://review.openstack.org/#/c/450452/? If you have no objection I'll merge it today | |
| 13:11:55 | dtroyer | the OSC companion to that is https://review.openstack.org/#/c/450453/ | |
| 13:12:30 | dtroyer | I'm doing both so we don't have to wait on the osc-lib release cycle to fix the problem | |
| 13:12:50 | RuiChen | dtroyer: not yet, I will review it now | |
| 13:20:04 | RuiChen | dtroyer: I saw your comments, but the current patch will break network help command in no auth case, I face it in my devstack | |
| 13:32:17 | dtroyer | do you have both of them in place? | |
| 13:32:56 | RuiChen | yes, I do | |
| 13:33:11 | RuiChen | pip install -e osc-lib and osc | |
| 13:33:33 | dtroyer | ok, I'll get back to it then, I'm in the middle of microversion stuff ATM and can't switch back mentally that quickly | |
| 13:33:35 | dtroyer | thanks | |
| 13:35:04 | RuiChen | np, would like to see microversion land in osc :) | |
| 13:36:42 | dtroyer | RuiChen: https://review.openstack.org/451618 is the start if you're interested. I'm working on the set of stuff to put into ksa for support | |
| 13:39:12 | RuiChen | dtroyer: yeah, I push it in my review queue, I have a nova keypair related commands depends on osc microversion, thank you | |