<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hi Gaëtan,</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Glance team doesn't recommend to use OSC anymore.</div><div class="gmail_default" style="font-family:verdana,sans-serif">I will recommend you to check the same behaviour using python-glanceclient.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Thanks & Best Regards,<br><br></div>Abhishek Kekane<br></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 29, 2020 at 3:54 AM Monty Taylor <<a href="mailto:mordred@inaugust.com">mordred@inaugust.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On Feb 28, 2020, at 4:15 PM, <a href="mailto:gaetan.trellu@incloudus.com" target="_blank">gaetan.trellu@incloudus.com</a> wrote:<br>
> <br>
> Hey Monty,<br>
> <br>
> If I download the image via the CLI, the checksum of the file matches the checksum from the image details.<br>
> If I download the image via "curl", the "Content-Md5" header matches the image details but the file checksum doesn't.<br>
> <br>
> The files have the same size, this is really weird.<br>
<br>
WOW.<br>
<br>
I still don’t know the issue - but my unfounded hunch is that the curl command is likely not doing something it should be. If OSC is producing a file that matches the image details, that seems like the right choice for now.<br>
<br>
Seriously fascinating though.<br>
<br>
> Gaëtan<br>
> <br>
> On 2020-02-28 17:00, Monty Taylor wrote:<br>
>>> On Feb 28, 2020, at 2:29 PM, <a href="mailto:gaetan.trellu@incloudus.com" target="_blank">gaetan.trellu@incloudus.com</a> wrote:<br>
>>> Hi guys,<br>
>>> Does anyone know why the md5 checksum is different between the "openstack image save" CLI and "curl" commands?<br>
>>> During the image creation a checksum is computed to check the image integrity, using the "openstack" CLI match the checksum generated but when "curl" is used by following the API documentation[1] the checksum change at every "download".<br>
>>> Any idea?<br>
>> That seems strange. I don’t know off the top of my head. I do know<br>
>> Artem has patches up to switch OSC to using SDK for image operations.<br>
>> <a href="https://review.opendev.org/#/c/699416/" rel="noreferrer" target="_blank">https://review.opendev.org/#/c/699416/</a><br>
>> That said, I’d still expect current OSC checksums to be solid. Perhaps<br>
>> there is some filtering/processing being done cloud-side in your<br>
>> glance? If you download the image to a file and run a checksum on it -<br>
>> does it match the checksum given by OSC on upload? Or the checksum<br>
>> given by glance API on download?<br>
>>> Thanks,<br>
>>> Gaëtan<br>
>>> [1] <a href="https://docs.openstack.org/api-ref/image/v2/index.html?expanded=download-binary-image-data-detail#download-binary-image-data" rel="noreferrer" target="_blank">https://docs.openstack.org/api-ref/image/v2/index.html?expanded=download-binary-image-data-detail#download-binary-image-data</a><br>
> <br>
<br>
<br>
</blockquote></div>