Friday, 2023-10-20

opendevreviewSteve Baker proposed openstack/openstacksdk master: [baremetal] Add missing owner attribute to allocation  https://review.opendev.org/c/openstack/openstacksdk/+/89888201:24
opendevreviewSteve Baker proposed openstack/openstacksdk master: [baremetal] driver add missing firmware interface  https://review.opendev.org/c/openstack/openstacksdk/+/89888301:24
opendevreviewSteve Baker proposed openstack/openstacksdk master: [baremetal] port add shard, is_smartnic, name  https://review.opendev.org/c/openstack/openstacksdk/+/89888401:24
opendevreviewPierre-Samuel Le Stang proposed openstack/keystoneauth master: Allow setting retriable status codes for Adapter via configuration options  https://review.opendev.org/c/openstack/keystoneauth/+/89882608:06
chris218Hi, question, should Backup.list(conn.block_storage) retrieve same data as conn.list_volume_backups() in openstacksdk?10:51
gtemachris218 - you should "never" invoke Backup.XXX methods directly. Instead you should use conn.block_storage.backups(). The conn.list_volume_backups() is a so called "cloud" layer and should not be necessary unless some very hard conditions of combining multiple API calls into 1 operation11:25
chris218Well conn.list function returned nothing and Backup.list returned a backup I made so I'll have to investigate further why is that 11:27
gtema"conn.list" != "conn.block_storage.backups"11:28
gtemaunless you know SDK very good you should avoid using any function on the conn directly or function on the resource itself. You should ONLY use "conn.<SERVICE>.<METHOD>"11:29
chris218I think I tried both but in a while I'll try again and if I still get nothing I'll get back to you11:29
chris218So why does stuff like conn.list_servers exist?11:30
gtemahistorical and as I mentioned - special cases11:30
chris218Ooh ok good to know 11:30
gtema"conn.<method>" is there to normally get a wrapper around multiple API calls, i.e for provisioning server you need to query networks/images/volumes, create server and wait for it to go up11:31
gtemathis is not a single API operation and thus is done separately. "conn.<service>.<method>" is a representation of a single rest operation (with few exceptions)11:32
chris218Oh smart11:34
chris218Ok it looks like I just passed all_projects into backups() and it errored without me realising, my bad :/12:09
chris218Also is there a way to pass a subparser to openstack.connect(options=) without openstack cli messing up argparsers help message?13:09

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