Friday, 2025-12-05

zigostephenfin: Here's my 2 patches for py3.13 :11:02
zigohttps://salsa.debian.org/openstack-team/libs/python-openstacksdk/-/tree/debian/flamingo/debian/patches?ref_type=heads11:02
zigoShould I push them to gerrit then?11:02
zigo*3.14 I mean11:56
stephenfinzigo: yes please15:47
croelandtHello! I see upload_image() is marked as deprecated in the SDK and that I should switch to using "create_image". I'm not sure I can use create_image to upload data to an existing image though15:50
croelandtAlso I could use the import workflow, but I'd like for the data upload to work in an env where that is not configured15:50
croelandtAny idea?15:50
stephenfincroelandt: the issue with that method was that it was doing too much: it should have only been handling the upload step of the legacy flow but it was instead doing create (which afaik is also part of the image import flow) + upload15:54
stephenfinmrjoshi was working on it in the past but never got to the bottom of it https://review.opendev.org/c/openstack/openstacksdk/+/88193915:54
stephenfinI still think that's the correct path to take but someone needs to pick it up again15:55
croelandtOK, I see she's answered comments by Artem, Maxim and yourself and then uploaded a patchset that passes the CI. Do you know whether there is something specific to change from patchset #21?15:56
stephenfincroelandt: It's a really hard patch to review, and I struggle each time I've to try. I think it needs to be broken up to reviewable and mergeable, if I'm being honest :(15:58
stephenfinFor example, this could be a separate patch https://review.opendev.org/c/openstack/openstacksdk/+/881939/21/openstack/image/v2/image.py15:59
stephenfinI also think we'd benefit from a precursor patch that tests calling upload_image with arguments in various forms16:00
stephenfine.g. upload_image('ami', None)16:00
stephenfinupload_image('ami', disk_format=None)16:00
stephenfinupload_image(container_format='ami', disk_format=None)16:00
stephenfinetc. etc. That would give us confidence that the code to handle the old deprecated signature works as intended and we don't break users16:01
stephenfincroelandt: You and I have reason to be cautious around this code too: we have made mistakes here in the recent past 😅 https://review.opendev.org/c/openstack/openstacksdk/+/910218 https://review.opendev.org/c/openstack/openstacksdk/+/960136 16:03
croelandtyes, this is all fairly complex16:04
croelandtbut ok now I got an idea of what is needed to move forward16:05
croelandtgreat, thanks!16:05
stephenfinnw, let me know when it's good to go and I'll give it a run through 🫡16:06
croelandtstephenfin: so (provided I can make this work) we'd be undeprecating upload_image?16:10
stephenfinyes16:10
stephenfinbut it would be refocused purely on the legacy image upload flow16:11
opendevreviewStephen Finucane proposed openstack/python-openstackclient master: Implement conflict resolution  https://review.opendev.org/c/openstack/python-openstackclient/+/96817816:12
stephenfinfwiw I'd also like to do the same in `create_image` but I think that ship has sailed...16:13
croelandtdoes create_image do two things?16:14
stephenfincreate_image does about 5 things16:14
stephenfin😅16:15
croelandtoh yeah you can have create_image(..., data='stuff') so it creates the image and uploads data to it16:15
stephenfinyup16:15
stephenfinI get why it does that but I'd much rather people manually chose between the two flows16:15
croelandtindeed16:17
opendevreviewStephen Finucane proposed openstack/openstacksdk master: image: Deprecate rewriting of is_public property  https://review.opendev.org/c/openstack/openstacksdk/+/96996416:29
opendevreviewStephen Finucane proposed openstack/openstacksdk master: image: Move some code around  https://review.opendev.org/c/openstack/openstacksdk/+/96996516:29
opendevreviewcid proposed openstack/openstacksdk master: Add Node.instance_name support  https://review.opendev.org/c/openstack/openstacksdk/+/95510319:30
opendevreviewcid proposed openstack/openstacksdk master: Add Node.instance_name support  https://review.opendev.org/c/openstack/openstacksdk/+/95510321:09

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