adriant | mordred: as part of the sdk stuff you were going to potentially make some nice constructor functions for people using it without an underlying clouds.yaml | 00:09 |
---|---|---|
*** salv-orlando has joined #openstack-sdks | 00:09 | |
adriant | there is something that sort of lets you do that, but it... still looks for underlying cloud.yaml unless you explicitly tell it not to or something. | 00:10 |
adriant | am trying to find where that doc was | 00:11 |
*** salv-orlando has quit IRC | 00:13 | |
adriant | here: https://github.com/openstack/python-openstacksdk/blob/master/doc/source/user/connection.rst#getting-a-connection-from-python-arguments-avoiding-cloudsyaml | 00:16 |
adriant | you were talking about making that into a nicer callable constructor that does that, without all the pointless boiler plate | 00:17 |
mordred | adriant: yes indeed. I'm just now AFKing - but thanks for the reminder I can hit that first thign in the morning | 00:20 |
adriant | mordred: sweet, thanks :) | 00:21 |
adriant | and are they any docks on doing that type of thing and saying what versions of stuff you want? | 00:21 |
adriant | since sometimes you do want to use a specific version of a given services API when you setup something like that in code | 00:22 |
adriant | ... | 00:22 |
adriant | docs* not docks | 00:22 |
adriant | I'll be around tomorrow and can test/review as needed! | 00:23 |
mordred | adriant: the docs need to be cleaned up - the tl;dr is that you can pass args like service_type_api_version to get_one_cloud (or to Connection itself) ... or via env vars .. | 00:30 |
mordred | adriant: so - for instance, OS_COMPUTE_API_VERSION='2' or compute_api_version='2' | 00:30 |
adriant | ideally, I would love a constructor function that is basically: explicitly ignore clouds.yaml, envvars, etc, and ONLY use what I'm giving it | 00:31 |
mordred | adriant: nod - can do | 00:31 |
adriant | a consumer of that is 100% certain of exactly where the config data it gets is coming from | 00:31 |
adriant | which is what I'd want for using it in services type stuff | 00:32 |
adriant | and cool, if you can easily enough supply what versions of a given service you need that makes it ideal | 00:32 |
*** dave-mccowan has quit IRC | 00:32 | |
mordred | adriant: woot. for now it's BASICALLY "config = openstack.config.OpenStackConfig(load_yaml_config=False, envvar_prefix='GARBAGE').get_one(region_name='my-region', auth=dict(auth_url='http://foo.example.com', username='', password=''), compute_api_version='2', compute_interface='public') ; conn = openstack.connect(config=config)" | 00:39 |
mordred | adriant: but that's obviously ugly - so when I awaken I'll get you a better option :) | 00:40 |
openstackgerrit | Merged openstack/python-openstackclient master: Use find_ip from openstacksdk https://review.openstack.org/538958 | 00:40 |
adriant | mordred: tyvm good dir! | 00:40 |
adriant | ... sir* | 00:40 |
mordred | I'm more like a dir :) | 00:40 |
mordred | adriant: I also have another version-selection related patch I've been hacking on today that should be ready for you to check out by tomorrow as well | 00:41 |
*** shu-mutou has joined #openstack-sdks | 00:41 | |
adriant | very cool. I'm going to play with the SDK as is today and see what it's like to use and mostly test out the old pain points I had with it. | 00:41 |
adriant | and tomorrow I'll follow up and see where you're at with that stuff | 00:42 |
*** sdague has quit IRC | 00:52 | |
*** chenyb4 has joined #openstack-sdks | 00:55 | |
*** pzchen has joined #openstack-sdks | 01:02 | |
*** melwitt has quit IRC | 01:10 | |
*** salv-orlando has joined #openstack-sdks | 01:33 | |
*** salv-orlando has quit IRC | 01:39 | |
openstackgerrit | chenyb4 proposed openstack/python-openstacksdk master: Rename unit test cluster to clustering https://review.openstack.org/539071 | 01:41 |
*** slaweq_ has joined #openstack-sdks | 01:54 | |
*** melwitt has joined #openstack-sdks | 01:56 | |
*** melwitt is now known as Guest94306 | 01:56 | |
*** Guest94306 is now known as jgwentworth | 01:58 | |
*** slaweq_ has quit IRC | 01:59 | |
*** jgwentworth is now known as melwitt | 02:01 | |
*** harlowja has quit IRC | 02:10 | |
openstackgerrit | OpenStack Proposal Bot proposed openstack/openstackclient master: Updated from global requirements https://review.openstack.org/521902 | 02:26 |
*** slaweq_ has joined #openstack-sdks | 02:29 | |
*** slaweq_ has quit IRC | 02:34 | |
*** fzdarsky_ has joined #openstack-sdks | 02:35 | |
*** fzdarsky|afk has quit IRC | 02:39 | |
*** d0ugal has quit IRC | 02:51 | |
*** d0ugal has joined #openstack-sdks | 02:52 | |
*** edmondsw has joined #openstack-sdks | 02:54 | |
*** edmondsw has quit IRC | 02:58 | |
*** dave-mccowan has joined #openstack-sdks | 02:58 | |
*** gildub has joined #openstack-sdks | 03:18 | |
*** ldl has joined #openstack-sdks | 03:26 | |
*** ldl has quit IRC | 03:27 | |
*** ldl has joined #openstack-sdks | 03:27 | |
*** ldl has quit IRC | 03:28 | |
*** ldl has joined #openstack-sdks | 03:28 | |
openstackgerrit | Merged openstack/python-openstackclient master: Fix tox -e venv -- reno new <slug> https://review.openstack.org/538536 | 03:33 |
*** salv-orlando has joined #openstack-sdks | 03:36 | |
*** slaweq_ has joined #openstack-sdks | 03:37 | |
*** salv-orlando has quit IRC | 03:41 | |
*** slaweq_ has quit IRC | 03:42 | |
*** tovin07 has quit IRC | 03:51 | |
*** dave-mccowan has quit IRC | 03:52 | |
*** tovin07 has joined #openstack-sdks | 03:52 | |
*** slaweq_ has joined #openstack-sdks | 03:58 | |
*** slaweq_ has quit IRC | 04:03 | |
*** adriant has quit IRC | 04:18 | |
*** harlowja has joined #openstack-sdks | 04:21 | |
*** harlowja has quit IRC | 04:26 | |
*** harlowja has joined #openstack-sdks | 04:26 | |
*** harlowja has quit IRC | 04:27 | |
*** adriant has joined #openstack-sdks | 04:30 | |
*** salv-orlando has joined #openstack-sdks | 04:37 | |
*** salv-orlando has quit IRC | 04:42 | |
*** edmondsw has joined #openstack-sdks | 04:42 | |
*** edmondsw has quit IRC | 04:46 | |
Qiming | modred | 05:01 |
Qiming | there? | 05:02 |
*** slaweq_ has joined #openstack-sdks | 05:12 | |
*** slaweq_ has quit IRC | 05:16 | |
openstackgerrit | Merged openstack/python-openstacksdk master: Rename unit test cluster to clustering https://review.openstack.org/539071 | 05:19 |
adriant | mordred: the envvar_prefix doesn't work as intended. I'm hitting this when adding SDK support to my interpreter tool since I have a constructor function that takes elements from the cloud config as defaults, and lets you build a different connection object with a specified region and api versions. | 05:26 |
adriant | the error I'm getting is: OpenStackConfigException: Region RegionTwo is not a valid region name for cloud envvars. Valid choices are RegionOne. Please note that region names are case sensitive. | 05:26 |
adriant | when I do it in a clean env, no OS_* stuff set, it does work, but... when there are some set, I can actually build an entirely clean config/connection object entirely with values I supply. | 05:27 |
adriant | I can't* actually build | 05:28 |
*** salv-orlando has joined #openstack-sdks | 05:38 | |
*** gildub has quit IRC | 05:39 | |
*** salv-orlando has quit IRC | 05:43 | |
*** gkadam has joined #openstack-sdks | 05:52 | |
*** salv-orlando has joined #openstack-sdks | 05:59 | |
*** slaweq has quit IRC | 06:00 | |
adriant | mordred: code I was trying to get working that complains if OS_REGION_NAME is set: https://github.com/Adrian-Turjak/openstack-interpreter/pull/3/files#diff-f02c38fdd6ae5f99d7f313ce3277d81d | 06:12 |
adriant | also, if you know of how I can do something similar for the shade cloud object, that would be cool, because I would like to be able to build a shade cloud object with a constructor function that do pretty much the same thing I'm doing for my get_connection function with the SDK. | 06:15 |
*** slaweq has joined #openstack-sdks | 06:16 | |
*** slaweq_ has joined #openstack-sdks | 06:17 | |
*** slaweq_ has quit IRC | 06:21 | |
*** slaweq has quit IRC | 06:21 | |
*** slaweq has joined #openstack-sdks | 06:24 | |
*** gildub has joined #openstack-sdks | 06:30 | |
*** edmondsw has joined #openstack-sdks | 06:30 | |
*** gildub has quit IRC | 06:30 | |
*** slaweq has quit IRC | 06:31 | |
*** gildub has joined #openstack-sdks | 06:34 | |
*** edmondsw has quit IRC | 06:34 | |
*** gildub has quit IRC | 06:40 | |
openstackgerrit | Hunt Xu proposed openstack/python-openstacksdk master: set paginated to False for list operations https://review.openstack.org/539115 | 07:08 |
openstackgerrit | Hunt Xu proposed openstack/python-openstacksdk master: set paginated to False for list operations https://review.openstack.org/539115 | 07:10 |
openstackgerrit | Hunt Xu proposed openstack/python-openstacksdk master: set paginated to False for list operations https://review.openstack.org/539115 | 07:11 |
openstackgerrit | Hunt Xu proposed openstack/python-openstacksdk master: orchestration: fix typo in doc https://review.openstack.org/539116 | 07:17 |
*** annp has joined #openstack-sdks | 07:27 | |
*** gildub has joined #openstack-sdks | 07:32 | |
*** d0ugal has quit IRC | 07:34 | |
*** salv-orlando has quit IRC | 07:36 | |
*** e0ne has joined #openstack-sdks | 07:36 | |
*** salv-orlando has joined #openstack-sdks | 07:36 | |
*** slaweq has joined #openstack-sdks | 07:39 | |
*** salv-orlando has quit IRC | 07:41 | |
*** slaweq has quit IRC | 07:44 | |
*** slaweq has joined #openstack-sdks | 07:54 | |
*** slaweq has quit IRC | 07:58 | |
*** salv-orlando has joined #openstack-sdks | 07:59 | |
*** d0ugal has joined #openstack-sdks | 08:02 | |
*** slaweq has joined #openstack-sdks | 08:11 | |
*** edmondsw has joined #openstack-sdks | 08:18 | |
*** edmondsw has quit IRC | 08:23 | |
*** ralonsoh has joined #openstack-sdks | 08:25 | |
*** Halbinger has joined #openstack-sdks | 08:28 | |
*** slaweq_ has joined #openstack-sdks | 08:28 | |
*** gildub has quit IRC | 08:29 | |
*** gildub has joined #openstack-sdks | 08:31 | |
*** slaweq_ has quit IRC | 08:32 | |
*** Halbinger has quit IRC | 08:34 | |
*** Halbinger has joined #openstack-sdks | 08:35 | |
*** jpena|off is now known as jpena | 08:50 | |
*** jpich has joined #openstack-sdks | 08:58 | |
*** slaweq_ has joined #openstack-sdks | 09:00 | |
*** slaweq_ has quit IRC | 09:04 | |
*** kmy has quit IRC | 09:08 | |
*** kmy has joined #openstack-sdks | 09:08 | |
*** fzdarsky_ is now known as fzdarsky | 09:12 | |
*** salv-orlando has quit IRC | 09:17 | |
*** salv-orlando has joined #openstack-sdks | 09:18 | |
*** salv-orlando has quit IRC | 09:23 | |
*** shu-mutou is now known as shu-mutou-AWAY | 09:26 | |
*** fzdarsky has quit IRC | 09:34 | |
*** fzdarsky has joined #openstack-sdks | 09:35 | |
openstackgerrit | Deepak Mourya proposed openstack/keystoneauth master: Override support message in AuthorizationFailure class https://review.openstack.org/539166 | 09:53 |
*** reedip has quit IRC | 10:05 | |
*** edmondsw has joined #openstack-sdks | 10:06 | |
*** edmondsw has quit IRC | 10:10 | |
*** edmondsw has joined #openstack-sdks | 10:12 | |
*** edmondsw has quit IRC | 10:12 | |
*** chenyb4 has quit IRC | 10:24 | |
*** pzchen has quit IRC | 10:25 | |
*** sdague has joined #openstack-sdks | 10:28 | |
*** reedip has joined #openstack-sdks | 10:29 | |
*** salv-orlando has joined #openstack-sdks | 10:31 | |
*** dave-mccowan has joined #openstack-sdks | 10:32 | |
*** pooja-jadhav has joined #openstack-sdks | 10:34 | |
*** pooja_jadhav has quit IRC | 10:37 | |
*** slaweq_ has joined #openstack-sdks | 10:48 | |
*** reedip has quit IRC | 10:50 | |
*** slaweq_ has quit IRC | 10:52 | |
openstackgerrit | Kairat Kushaev proposed openstack/keystoneauth master: use defusedxml for XML parsing https://review.openstack.org/536761 | 10:54 |
*** slaweq_ has joined #openstack-sdks | 10:54 | |
*** Halbinger has quit IRC | 10:55 | |
*** Halbinger has joined #openstack-sdks | 10:56 | |
*** slaweq_ has quit IRC | 11:02 | |
*** fzdarsky is now known as fzdarsky|afk | 11:22 | |
*** salv-orlando has quit IRC | 11:32 | |
*** salv-orlando has joined #openstack-sdks | 11:32 | |
*** d0ugal has quit IRC | 11:34 | |
*** salv-orlando has quit IRC | 11:37 | |
*** d0ugal has joined #openstack-sdks | 11:54 | |
*** d0ugal has quit IRC | 11:54 | |
*** d0ugal has joined #openstack-sdks | 11:54 | |
*** edmondsw has joined #openstack-sdks | 12:08 | |
*** cdent has joined #openstack-sdks | 12:21 | |
*** ldl has quit IRC | 12:40 | |
*** chenyb4 has joined #openstack-sdks | 12:44 | |
*** jpena is now known as jpena|lunch | 12:45 | |
*** edmondsw_ has joined #openstack-sdks | 12:49 | |
*** edmondsw has quit IRC | 12:51 | |
*** salv-orlando has joined #openstack-sdks | 12:52 | |
*** slaweq_ has joined #openstack-sdks | 12:58 | |
*** edmondsw_ has quit IRC | 12:58 | |
*** edmondsw has joined #openstack-sdks | 13:00 | |
*** slaweq_ has quit IRC | 13:05 | |
*** salv-orl_ has joined #openstack-sdks | 13:13 | |
*** salv-orlando has quit IRC | 13:16 | |
*** dave-mccowan has quit IRC | 13:37 | |
*** slaweq has quit IRC | 13:37 | |
*** slaweq has joined #openstack-sdks | 13:38 | |
-openstackstatus- NOTICE: Our ubuntu-xenial images (used for e.g. unit tests and devstack) are currently failing to install any packages, restrain from *recheck* or *approve* until the issue has been investigated and fixed. | 13:43 | |
*** jpena|lunch is now known as jpena | 13:46 | |
*** jpich has quit IRC | 13:54 | |
openstackgerrit | Merged openstack/service-types-authority master: Add .zuul.yaml file with tox job https://review.openstack.org/538305 | 13:57 |
*** ldl has joined #openstack-sdks | 14:03 | |
*** ldl has quit IRC | 14:03 | |
openstackgerrit | Merged openstack/service-types-authority master: Add masakari and service-type instance-ha https://review.openstack.org/534875 | 14:19 |
*** slaweq_ has joined #openstack-sdks | 14:36 | |
*** slaweq_ has quit IRC | 14:41 | |
*** d0ugal has quit IRC | 14:44 | |
*** slaweq_ has joined #openstack-sdks | 14:46 | |
*** d0ugal has joined #openstack-sdks | 14:47 | |
*** slaweq_ has quit IRC | 14:50 | |
*** dave-mccowan has joined #openstack-sdks | 14:56 | |
*** d0ugal has quit IRC | 14:58 | |
openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Add a descriptor object for each service proxy https://review.openstack.org/539232 | 15:03 |
openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Ensure Connection can be made from keyword arguments https://review.openstack.org/539233 | 15:03 |
openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Add OpenStackCloud object to Connection https://review.openstack.org/539234 | 15:03 |
mordred | adriant: ok. that ^^ should take care of all of your questions and use cases (I hope) | 15:03 |
*** gkadam has quit IRC | 15:14 | |
*** zhongjun has quit IRC | 15:18 | |
*** chenyb4 has quit IRC | 15:21 | |
*** d0ugal has joined #openstack-sdks | 15:25 | |
openstackgerrit | Monty Taylor proposed openstack/service-types-authority master: Update build to put content into sphinx location https://review.openstack.org/539239 | 15:36 |
mordred | dtroyer: jeez. it seems like devstack on pike is just flat broken for us there does't it :( | 15:37 |
*** slaweq_ has joined #openstack-sdks | 15:45 | |
*** slaweq_ has quit IRC | 15:50 | |
*** tulivu_ has joined #openstack-sdks | 15:55 | |
*** Halbinger has quit IRC | 15:57 | |
*** slaweq_ has joined #openstack-sdks | 15:58 | |
*** tulivu_ has quit IRC | 16:02 | |
*** slaweq_ has quit IRC | 16:04 | |
*** e0ne has quit IRC | 16:12 | |
openstackgerrit | Monty Taylor proposed openstack/service-types-authority master: Update build to put content into sphinx location https://review.openstack.org/539239 | 16:23 |
mordred | dtroyer: oh - those errors may have just been this morining's image issue | 16:30 |
dtroyer | mordred: I'm hoping so | 16:30 |
mordred | dtroyer: although the volume type create seems less happy | 16:32 |
mordred | locally, with stable/pike osc and master sdk I get: | 16:33 |
mordred | mordred@solace:~/src/git.openstack.org/openstack/python-openstackclient$ openstack --os-cloud=vexxhost volume type create monty | 16:33 |
mordred | Policy doesn't allow volume_extension:types_manage to be performed. (HTTP 403) (Request-ID: req-d9acb541-fa27-4983-9e07-65c5c0e42f6b) | 16:33 |
dtroyer | In the log I poked through that seemed to be the first osc invocation… I wonder if something got moved around? | 16:33 |
mordred | (which is what I'd expect, since I can't do that - but it's certainly getting past auth) | 16:33 |
dtroyer | oh, that's different | 16:33 |
mordred | so - my local error seems like correct behavior | 16:34 |
mordred | dtroyer: so - I might need to spin up a devstack and poke | 16:34 |
mordred | dtroyer: I put in a zuul hold so we can grab the node from that job next time it breaks and look | 16:36 |
*** slaweq_ has joined #openstack-sdks | 16:52 | |
*** slaweq_ has quit IRC | 16:57 | |
*** gkadam has joined #openstack-sdks | 16:58 | |
*** slaweq has quit IRC | 17:03 | |
*** slaweq has joined #openstack-sdks | 17:03 | |
*** slaweq_ has joined #openstack-sdks | 17:03 | |
*** slaweq_ has quit IRC | 17:07 | |
*** slaweq has quit IRC | 17:08 | |
*** ralonsoh_ has joined #openstack-sdks | 17:28 | |
*** ralonsoh has quit IRC | 17:31 | |
*** markvoelker has joined #openstack-sdks | 17:36 | |
openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Add OpenStackCloud object to Connection https://review.openstack.org/539234 | 17:37 |
openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Cleanup the BaseProxy docs a bit https://review.openstack.org/539270 | 17:37 |
openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Rename BaseProxy to Proxy https://review.openstack.org/539271 | 17:37 |
*** ralonsoh__ has joined #openstack-sdks | 17:54 | |
*** ralonsoh_ has quit IRC | 17:58 | |
*** slaweq has joined #openstack-sdks | 18:08 | |
*** slaweq has quit IRC | 18:13 | |
openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Add a descriptor object for each service proxy https://review.openstack.org/539232 | 18:20 |
openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Ensure Connection can be made from keyword arguments https://review.openstack.org/539233 | 18:21 |
openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Add OpenStackCloud object to Connection https://review.openstack.org/539234 | 18:21 |
openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Cleanup the BaseProxy docs a bit https://review.openstack.org/539270 | 18:21 |
openstackgerrit | Monty Taylor proposed openstack/python-openstacksdk master: Rename BaseProxy to Proxy https://review.openstack.org/539271 | 18:21 |
*** ralonsoh__ has quit IRC | 18:33 | |
*** slaweq has joined #openstack-sdks | 18:33 | |
*** slaweq has quit IRC | 18:38 | |
*** salv-orl_ has quit IRC | 18:39 | |
*** salv-orlando has joined #openstack-sdks | 18:39 | |
*** salv-orlando has quit IRC | 18:44 | |
*** thrash is now known as thrash|biab | 18:44 | |
*** cdent has quit IRC | 18:52 | |
*** jpena is now known as jpena|off | 19:00 | |
openstackgerrit | Merged openstack/python-openstacksdk master: Provide compatibility for people passing raw sessions https://review.openstack.org/538968 | 19:09 |
openstackgerrit | Merged openstack/python-openstacksdk master: Update reno for stable/queens https://review.openstack.org/538693 | 19:09 |
*** slaweq has joined #openstack-sdks | 19:12 | |
*** slaweq has quit IRC | 19:16 | |
*** harlowja has joined #openstack-sdks | 19:17 | |
openstackgerrit | Hongbin Lu proposed openstack/python-openstackclient master: [WIP] Disallow setting default on internal network https://review.openstack.org/539303 | 19:19 |
*** cdent has joined #openstack-sdks | 19:50 | |
*** cdent has quit IRC | 19:52 | |
*** slaweq has joined #openstack-sdks | 20:17 | |
*** d0ugal has quit IRC | 20:26 | |
*** thrash|biab is now known as thrash | 20:29 | |
adriant | mordred: looking at those constructor patches now | 20:36 |
mordred | adriant: awesome! thanks! | 20:39 |
openstackgerrit | Hongbin Lu proposed openstack/python-openstackclient master: Disallow setting default on internal network https://review.openstack.org/539303 | 20:39 |
*** d0ugal has joined #openstack-sdks | 20:41 | |
*** e0ne has joined #openstack-sdks | 20:42 | |
openstackgerrit | Colleen Murphy proposed openstack/python-openstackclient master: Add CRUD support for application credentials https://review.openstack.org/536163 | 20:50 |
adriant | mordred: with that code I think I can swap to just reusing the session, which actually makes things much simpler | 20:53 |
adriant | still reading, found a few typos on the comments/docs, but so far the code looks good | 20:53 |
*** e0ne has quit IRC | 20:55 | |
*** slaweq_ has joined #openstack-sdks | 21:08 | |
*** slaweq_ has quit IRC | 21:13 | |
mordred | adriant: awesome | 21:17 |
*** slaweq has quit IRC | 21:55 | |
*** edmondsw has quit IRC | 22:11 | |
*** edmondsw has joined #openstack-sdks | 22:12 | |
*** salv-orlando has joined #openstack-sdks | 22:14 | |
*** edmondsw has quit IRC | 22:17 | |
openstackgerrit | Merged openstack/python-openstacksdk master: orchestration: fix typo in doc https://review.openstack.org/539116 | 22:33 |
*** dave-mccowan has quit IRC | 23:03 | |
*** sdague has quit IRC | 23:13 | |
*** salv-orlando has quit IRC | 23:21 | |
*** salv-orlando has joined #openstack-sdks | 23:22 | |
*** salv-orlando has quit IRC | 23:26 | |
*** slaweq has joined #openstack-sdks | 23:40 | |
*** slaweq has quit IRC | 23:45 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!