[glance] Different checksum between CLI and curl

Adam Harwell flux.adam at gmail.com
Mon Mar 2 15:27:08 UTC 2020


I've heard this from members of the glance team for the past few (maybe 3?)
summits at least, and every time I try to correct them, but it feels like
talking to a brick wall. OSC is the future direction, it should be
supported, and there's not even any ambiguity that I'm aware of, other than
some strange refusal to accept reality on behalf of a few people...

Yes, my tone here is definitely a little aggressive, but this has been an
ongoing frustration of mine as I've been hearing this for a while and it's
actively harmful and misleading, so I won't apologize for it. Some folks
need to wake up. <_<

   --Adam

On Mon, Mar 2, 2020, 19:00 Mark Goddard <mark at stackhpc.com> wrote:

> On Mon, 2 Mar 2020 at 06:28, Abhishek Kekane <akekane at redhat.com> wrote:
> >
> > Hi Gaëtan,
> >
> > Glance team doesn't recommend to use OSC anymore.
> > I will recommend you to check the same behaviour using
> python-glanceclient.
>
> That's not cool - everyone has switched to OSC. It's also the first
> time I've heard of it.
>
> >
> > Thanks & Best Regards,
> >
> > Abhishek Kekane
> >
> >
> > On Sat, Feb 29, 2020 at 3:54 AM Monty Taylor <mordred at inaugust.com>
> wrote:
> >>
> >>
> >>
> >> > On Feb 28, 2020, at 4:15 PM, gaetan.trellu at incloudus.com wrote:
> >> >
> >> > Hey Monty,
> >> >
> >> > If I download the image via the CLI, the checksum of the file matches
> the checksum from the image details.
> >> > If I download the image via "curl", the "Content-Md5" header matches
> the image details but the file checksum doesn't.
> >> >
> >> > The files have the same size, this is really weird.
> >>
> >> WOW.
> >>
> >> 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.
> >>
> >> Seriously fascinating though.
> >>
> >> > Gaëtan
> >> >
> >> > On 2020-02-28 17:00, Monty Taylor wrote:
> >> >>> On Feb 28, 2020, at 2:29 PM, gaetan.trellu at incloudus.com wrote:
> >> >>> Hi guys,
> >> >>> Does anyone know why the md5 checksum is different between the
> "openstack image save" CLI and "curl" commands?
> >> >>> 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".
> >> >>> Any idea?
> >> >> That seems strange. I don’t know off the top of my head. I do know
> >> >> Artem has patches up to switch OSC to using SDK for image operations.
> >> >> https://review.opendev.org/#/c/699416/
> >> >> That said, I’d still expect current OSC checksums to be solid.
> Perhaps
> >> >> there is some filtering/processing being done cloud-side in your
> >> >> glance? If you download the image to a file and run a checksum on it
> -
> >> >> does it match the checksum given by OSC on upload? Or the checksum
> >> >> given by glance API on download?
> >> >>> Thanks,
> >> >>> Gaëtan
> >> >>> [1]
> https://docs.openstack.org/api-ref/image/v2/index.html?expanded=download-binary-image-data-detail#download-binary-image-data
> >> >
> >>
> >>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20200303/ad28ea27/attachment-0001.html>


More information about the openstack-discuss mailing list