Friday, 2025-12-05

*** mhen_ is now known as mhen02:17
opendevreviewMax proposed openstack/python-glanceclient master: feat: multipart_data download  https://review.opendev.org/c/openstack/python-glanceclient/+/96949110:48
mhenhello13:14
mhenquick question concerning the image encryption spec:13:15
mhencurrently, we aimed to introduce `os_decrypt_size`13:15
mhensee https://review.opendev.org/c/openstack/glance-specs/+/964755/3/specs/2026.1/approved/glance/standardized_image_encryption.rst#10913:15
mhenwhile looking at how to process this in Cinder I stumbled upon `virtual_size`: https://answers.launchpad.net/glance/+question/68343713:16
mhendo you think we could drop `os_decrypt_size` from the spec and simply refer to `virtual_size` to represent the resulting decrypted size of the image?13:17
mhenCinder already has handling to check this against the volume size, so that would simplify things13:18
mhenas I understand the Launchpad answer there don't seem to be many cases where `virtual_size` is used currently13:19
mhenoh wait13:25
mhenturns out that property is read-only, you can't specify it as a client when creating an image13:25
mhenI was misled by "The virtual_size can be populated by hand if you want to give it a value" in the Launchpad post but turns out this is not true13:26
mhenbummer13:26
abhishekkmhen: yes, virtual size is read only, however now you can specify size while creating the image13:27
mhenabhishekk: you mean min-disk?13:28
abhishekkno13:28
abhishekk--size13:29
mhen"ERROR: --size was given, which is an Image v1 option that is no longer supported in Image v2"13:29
mhenthat is what my client tells me13:30
mhendon't see it in https://docs.openstack.org/api-ref/image/v2/#create-image either13:30
mhenI believe Glance calculates it on its own when consuming the chunks, no?13:30
abhishekkmhen: which version are you using?13:34
abhishekkhttps://review.opendev.org/q/topic:%22spec/set-size-on-upload%22+status:merged13:36
mhenI'm running aDevStack on master from Nov 14th13:37
mhenbut anyway, I don't think that is relevant to my case13:37
mhenone of the patchset says "if actual image size mismatches with the size proivded in request header then the process will be aborted"13:38
mhenI want to encode the size an image would consume when decrypted but Glance only handles the encrypted form, so it would mismatch anyway13:38
abhishekkhttps://docs.openstack.org/api-ref/image/v2/#upload-binary-image-data13:38
abhishekkack13:39
mhenit would only work with virtual_size I think13:39
abhishekkack, we added this size matching validation in last cycle13:40
croelandtstephenfin: 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:33
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:33
croelandtany idea?15:33
croelandtwell actually it's more of an SDK question than a glance question, I should ask taht on the sdk channel15:44
dansmithseems weird for upload to be deprecaeted15:45
dansmithI wonder if that's a misunderstanding about import being a replacement for upload15:45
opendevreviewFernando Ferraz proposed openstack/glance_store master: [WIP] Fix race conditions on mount/umount operations  https://review.opendev.org/c/openstack/glance_store/+/96762616:31
opendevreviewMitsuhiro Tanino proposed openstack/glance master: Add option to enforce mandatory image properties  https://review.opendev.org/c/openstack/glance/+/96996716:33
opendevreviewMerged openstack/glance stable/2025.2: Fix FileNotFoundError when registering task operations  https://review.opendev.org/c/openstack/glance/+/96901719:24
opendevreviewDmitriy Rabotyagov proposed openstack/glance master: [doc] Mention Hyper-V Enlightenments for os_type  https://review.opendev.org/c/openstack/glance/+/96999920:34

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