Earlier  
Posted Nick Remark
#openstack-sdks - 2019-11-01
18:18:14 efried mmkay
18:18:30 umbSublime efried: I tried without and I get the same stack-trace as when using the nova register_ksa_opts
18:18:52 efried you would need to remove that hackup from both places
18:19:43 efried so 1) get_ksa_adapter_opts can go away and just use ks_loading.get_adapter_opts directly; and 2) kill L36-8
18:20:17 umbSublime Ohhh I see, remove lines for "Removing version opts" and the ones that "add dummy opts for version"
18:20:47 efried actually, it gets simpler.
18:21:32 efried I only did this conf.register(get_opts) thing because I had to hack out those version things.
18:22:07 efried There ought to be a ks_loading method like ks_loading.register_adapter_conf_options which you can call directly.
18:22:54 umbSublime Ok, I'll look into that
18:30:48 efried umbSublime: like this http://paste.openstack.org/show/785725/
18:37:58 umbSublime For some reason i'm getting "keystoneauth1.exceptions.catalog.EndpointNotFound: Could not find requested endpoint in Service Catalog." with that code (adapted to my env of course)
18:39:14 efried add to your conf:
18:39:15 efried service_type = placement
18:39:39 efried I simplified out the bit that detects that :P
18:39:48 efried here's super pared down: http://paste.openstack.org/show/785726/
18:40:38 efried btw, raise_exc=False means that for 4xx/5xx responses, instead of raising an exception, you still just get a Response back, which you can inspect yourself.
18:40:45 umbSublime this fixed it for me http://paste.openstack.org/show/785727/
18:41:06 umbSublime ohh very neat trick !
18:41:45 efried and Response has a magic __bool__ so you can actually say things like:
18:41:45 efried if resp:
18:41:45 efried # status code was 2xx/3xx, do success path
18:41:45 efried else:
18:41:45 efried # status code was 4xx/5xx, do failure stuff
18:42:19 efried umbSublime: yes, what fixed you there was the cfg.set_defaults(service_type='placement') which is the same thing as you setting it in the conf (but in code)
18:42:49 efried so, either way
18:43:05 umbSublime \o/
18:50:33 umbSublime Say I want to wrap all this in a function that takes a region_name and return the adapter for the specified region. I'd need to do something similar to "example 3" and then do CONF(['--my-opt', "my_val"]) https://www.programcreek.com/python/example/106145/oslo_config.cfg.CONF
19:02:17 umbSublime Ahh even easier I can just override the region_name attribute from the adapter
19:15:09 efried depending where in the flow you want to do it, you could do CONF.set_override(region_name='foo', group='placement')
19:15:16 efried (I may not have that syntax exactly right)
19:22:44 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: neutron: autogenerate docs https://review.opendev.org/691767
19:22:45 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: common: autogenerate docs https://review.opendev.org/691989
19:22:45 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: Update a stale doc reference to use :neutron-doc: https://review.opendev.org/692605
19:25:56 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: neutron: autogenerate docs https://review.opendev.org/691767
19:25:57 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: Update a stale doc reference to use :neutron-doc: https://review.opendev.org/692605
19:25:57 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: common: autogenerate docs https://review.opendev.org/691989
#openstack-sdks - 2019-11-04
07:33:19 jawad_axd Hi all, Is there any function to get instance console url from openstacksdk? I can not find any..
09:24:34 openstackgerrit Bence Romsics proposed openstack/openstacksdk master: Add router add/remove route operations https://review.opendev.org/674324
09:24:51 openstackgerrit Bence Romsics proposed openstack/openstacksdk master: Handle HTTP errors in add/remove router interface calls https://review.opendev.org/687304
13:33:04 mriedem can i get another osc core on https://review.opendev.org/#/c/691039/ to help unblock novaclient 16.0.0? https://review.opendev.org/#/c/690097/
13:33:08 mriedem please and thanks
15:14:56 gtema mriedem: you are not alone with that, I would also like to get any review on https://review.opendev.org/#/c/650374/ for switching from glanceclient to SDK.
15:20:35 mriedem heh, that glance one is much much bigger change
15:20:55 mriedem mine is "change this one nova call to use the sdk", not "change all compute api calls to use the sdk"
20:46:57 openstackgerrit Merged openstack/osc-lib master: Update master for stable/train https://review.opendev.org/683493
21:39:46 umbSublime Is it accurate to say openstack-sdk is just added functionnality around osc-lib ?
21:41:28 umbSublime err other way around
21:42:42 dtroyer umbSublime: neither really, osc-lib is the basis for the CLI commands in OpenStackClient, but it does not depend on the SDK specifically, it provides the common bits for OSC plugins
21:43:57 umbSublime so then osc-lib is another layer ontop of cliff to facilitate plugin creation ?
21:46:24 dtroyer basically, yes. It also includes the core functionality to enable making a stand-alone CLI that isn't OpenStackClient, such as a speciaized CLI for a stand-alone service installation
21:46:47 dtroyer I am not certain that anyone has actually done that, but that was what the original request was for
21:47:10 umbSublime Thanks for clearing that out for me. I'll look more into osc-lib and cliff :)
21:49:31 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: openstack.cli: autogenerate docs https://review.opendev.org/692914
22:03:46 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: compute: autogenerate docs https://review.opendev.org/692916
22:09:24 openstackgerrit Merged openstack/python-openstackclient master: Use SDK to get compute API extensions https://review.opendev.org/691039
22:09:28 openstackgerrit Merged openstack/python-openstackclient master: Use autoprogram-cliff for remaining plugin docs https://review.opendev.org/690387
22:10:08 efried mriedem: ---^
22:10:22 efried (16.0.0 should be unblocked now)
22:10:58 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: compute: autogenerate docs https://review.opendev.org/692916
22:17:44 mriedem woot
22:31:06 openstackgerrit Merged openstack/osc-lib master: Add KeyValueAppendAction to osc-lib https://review.opendev.org/685359
22:31:07 openstackgerrit Merged openstack/osc-lib master: Switch to Ussuri jobs https://review.opendev.org/690839
#openstack-sdks - 2019-11-05
00:01:08 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: Add redirect testing https://review.opendev.org/692929
00:01:08 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: Deflate .htaccess https://review.opendev.org/692930
00:01:09 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: WIP: identity: autogenerate docs https://review.opendev.org/692931
00:41:31 openstackgerrit Merged openstack/python-openstackclient master: neutron: autogenerate docs https://review.opendev.org/691767
07:53:19 openstackgerrit Bence Romsics proposed openstack/openstacksdk master: Add router add/remove route operations https://review.opendev.org/674324
07:53:43 openstackgerrit Bence Romsics proposed openstack/openstacksdk master: Handle HTTP errors in add/remove router interface calls https://review.opendev.org/687304
08:53:16 openstackgerrit Thomas Bechtold proposed openstack/openstacksdk master: update OVH vendor entry https://review.opendev.org/692961
13:09:20 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: Update a stale doc reference to use :neutron-doc: https://review.opendev.org/692605
13:09:21 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: common: autogenerate docs https://review.opendev.org/691989
13:09:21 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: openstack.cli: autogenerate docs https://review.opendev.org/692914
13:09:22 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: compute: autogenerate docs https://review.opendev.org/692916
13:09:22 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: Add redirect testing https://review.opendev.org/692929
13:09:23 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: Deflate .htaccess https://review.opendev.org/692930
13:09:23 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: WIP: identity: autogenerate docs https://review.opendev.org/692931
13:09:50 efried dtroyer: trivial rebase to resolve merge conflict ^
13:09:57 efried couple of those already had your +A
13:48:34 dtroyer efried: thanks, will have a look after the next call (or during depending on how it goes :)
13:49:29 efried no hurry
14:23:40 mnasiadka Hi there
14:24:06 mnasiadka Any idea how to request a system scoped token in Ansible os_* modules that are using openstacksdk?
14:30:56 efried mnasiadka: There are many words in there that I don't know. The people most likely to be able to answer your question are probably all at the summit/PTG in Shanghai at the moment, so you may want to ask your question on the mailing list, or wait until next week.
14:31:46 openstackgerrit Eric Fried proposed openstack/python-openstackclient master: identity: autogenerate docs https://review.opendev.org/692931
14:32:35 mnasiadka efried: It was my plan to wait until next week, but I decided it won't hurt to ask now, and in a week ;-)
14:32:55 efried good plan :)
14:33:58 gtema the only opportunity to influence the token scope is not to specify project_name, but both domain_name and user_domain_name
14:34:07 gtema this will give you domain scoped token
14:34:30 gtema if you do not specify domain_name, but project_name - you get project scoped token
14:37:36 mnasiadka gtema: we have a bug opened in Kolla (https://bugs.launchpad.net/kolla-ansible/+bug/1850656), we're trying to find the proper approach.
14:37:36 openstack Launchpad bug 1850656 in kolla-ansible train "Deploy will fail if keystone.conf has '[oslo_policy]/enforce_scope=true'" [Medium,In progress] - Assigned to Radosław Piliszek (yoctozepto)
14:38:04 mnasiadka gtema: seems for identity:create_endpoint we need system scoped token...
14:39:12 gtema and this with Ansible (facepalm). efried, do you know how to get system scoped token from Keystone?
14:39:24 gtema I was previously always referring to https://docs.openstack.org/keystone/pike/api_curl_examples.html for samples
14:39:39 efried gtema: I don't even know what a system scoped token is.
14:40:02 gtema it's kinda neither of both, but is even more powerful
14:40:22 gtema https://docs.openstack.org/keystone/stein/admin/tokens-overview.html#system-scoped-tokens
14:41:23 gtema I hoped you know a bit more than I about Keystone ;-)
14:41:32 efried https://docs.openstack.org/keystone/stein/admin/tokens-overview.html#operation_create_system_token ?
14:41:51 efried gtema: I know things about ksa, but very little about keystone itself :(

Earlier   Later