Friday, 2022-12-02

opendevreviewMridula Joshi proposed openstack/python-openstackclient master: Updating the glanceclient reference doc  https://review.opendev.org/c/openstack/python-openstackclient/+/86411806:02
sfinucantweining: In my own scripts, I normally just use `openstack.connect()`. However, that assumes a cloud.yaml file which you obviously won't have...11:42
sfinucannova is using openstacksdk for ironic stuff for a while. I'm looking at what they do now11:42
*** sfinucan is now known as stephenfin11:42
tweiningsfinucan: thanks. BTW, I found out the way octavia-dashboard does it is actually outdated.11:44
stephenfintweining: https://github.com/openstack/nova/blob/d05f9ef0dcecd55f37f362afe4b32544d8d81636/nova/utils.py#L959-L98511:45
gtemahttps://opendev.org/openstack/openstacksdk/src/branch/master/openstack/connection.py#L80 describes how to pass creds directly with connection.Connection11:45
gtemabut all same params can also go to openstack.connect directly11:46
tweiningyeah, those two ways, per CONF and per keyword args, are the two that seem right to me.11:47
stephenfinyeah, both should achieve the same thing. Presumably doing it with CONF involves less "unpacking" (i.e. you won't need to manually build a dict of credentials) but that shouldn't be too onerous at the same11:48
stephenfintime11:48
tweiningI also found an example in ironic, which seems simlar to the one from nova you found. https://opendev.org/openstack/ironic/src/branch/master/ironic/common/neutron.py#L7811:49
stephenfinyes, and less complex to boot11:49
stephenfintbh, this is an area that I'm not overly familiar with and gtema might be better placed to comment, but I suspect simpler but working is better :) (i.e. use ironic's example)11:50
tweiningok, thanks. I think my main task now is to ensure I get all the information openstacksdk needs for the connection from somewhere.11:54
gtemause any method of ones described in examples in https://opendev.org/openstack/openstacksdk/src/branch/master/openstack/connection.py and you should be fine11:55
gtemathose are the ones that we definitely support and keep maintaining11:55
gtematweining - you can have a look at https://github.com/opentelekomcloud-infra/octavia-proxy/blob/main/octavia_proxy/common/context.py We were forced to build octavia simulation API and just reuse user token11:57
gtemathis may give you some potential direction11:57
tweininggtema: cool, thanks. I will have a look11:58
opendevreviewArtem Goncharov proposed openstack/openstacksdk master: Rework network functional tests  https://review.opendev.org/c/openstack/openstacksdk/+/85911412:59
opendevreviewArtem Goncharov proposed openstack/openstacksdk master: Whitelist cloud functional tests in acceptance  https://review.opendev.org/c/openstack/openstacksdk/+/86000913:00
opendevreviewArtem Goncharov proposed openstack/openstacksdk master: Implement acceptance test job  https://review.opendev.org/c/openstack/openstacksdk/+/86039913:02
opendevreviewMerged openstack/python-openstackclient master: Use the compute SDK in server list  https://review.opendev.org/c/openstack/python-openstackclient/+/86154614:21
opendevreviewMerged openstack/python-openstackclient master: tests: Convert image tests to use 'parse_output'  https://review.opendev.org/c/openstack/python-openstackclient/+/86398714:21
opendevreviewMerged openstack/python-openstackclient master: tests: Convert volume tests to use 'parse_output'  https://review.opendev.org/c/openstack/python-openstackclient/+/86398814:21
opendevreviewMerged openstack/python-openstackclient master: tests: Convert identity tests to use 'parse_output'  https://review.opendev.org/c/openstack/python-openstackclient/+/86398914:21
opendevreviewMerged openstack/python-openstackclient master: tests: Convert compute tests to use 'parse_output'  https://review.opendev.org/c/openstack/python-openstackclient/+/86399014:21
opendevreviewMerged openstack/python-openstackclient master: tests: Convert network tests to use 'parse_output'  https://review.opendev.org/c/openstack/python-openstackclient/+/86399114:21
opendevreviewMerged openstack/python-openstackclient master: Revert "Don't look up project by id if given id"  https://review.opendev.org/c/openstack/python-openstackclient/+/86618314:21
opendevreviewMerged openstack/openstacksdk master: coe: Add support for clusters  https://review.opendev.org/c/openstack/openstacksdk/+/86526614:21
opendevreviewShnaidman Sagi (Sergey) proposed openstack/ansible-collections-openstack master: Fix template required_one_of arg  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/86648616:17
opendevreviewPavlo Shchelokovskyy proposed openstack/keystoneauth master: Enforce scope mutual exclusion for system  https://review.opendev.org/c/openstack/keystoneauth/+/80268318:03
opendevreviewPavlo Shchelokovskyy proposed openstack/keystoneauth master: Allow federation to work with unversioned auth_url  https://review.opendev.org/c/openstack/keystoneauth/+/86618918:04
*** Daviey29 is now known as Daviey219:19

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!