<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 18, 2019 at 1:41 PM Brian Rosmaita <<a href="mailto:rosmaita.fossdev@gmail.com">rosmaita.fossdev@gmail.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"><div>I really need to get caught up on my ML reading.<br>
<br>
On 4/11/19 6:40 PM, Thomas Goirand wrote:<br>
[snip]<br>
> It's just a shame that Glance doesn't show MD5 and not sha512 sums by<br>
> default...<br>
<br>
The Secure Hash Algorithm Support ("multihash") spec [0] for Glance was<br>
implemented in Rocky and provides a self-describing secure hash on<br>
images (in addition to the 'checksum', which is preserved for backward<br>
compatability.)  The default is SHA-512. See the Rocky release notes [1]<br>
for some implementation details not covered by the spec.<br>
<br>
The multihash is displayed in the image-list and image-show API<br>
responses since Images API v2.7, and in the glanceclient since 2.12.0.<br>
<br>
The glanceclient has been using the secure hash for download<br>
verification since 2.13.0, with a fallback to the md5 'checksum' field<br>
if the multihash isn't populated.  (It also optionally allows fallback<br>
to md5 if the algorithm for the secure hash isn't available to the<br>
client; this option is off by default.)  See the 2.13.0 release notes<br>
[2] for details.<br>
<br>
[0]<br>
<a href="https://specs.openstack.org/openstack/glance-specs/specs/rocky/implemented/glance/multihash.html" rel="noreferrer" target="_blank">https://specs.openstack.org/openstack/glance-specs/specs/rocky/implemented/glance/multihash.html</a><br>
[1] <a href="https://docs.openstack.org/releasenotes/glance/rocky.html#new-features" rel="noreferrer" target="_blank">https://docs.openstack.org/releasenotes/glance/rocky.html#new-features</a><br>
[2]<br>
<a href="https://docs.openstack.org/releasenotes/python-glanceclient/rocky.html#relnotes-2-13-0-stable-rocky" rel="noreferrer" target="_blank">https://docs.openstack.org/releasenotes/python-glanceclient/rocky.html#relnotes-2-13-0-stable-rocky</a><br>
<br>
> Cheers,<br>
> <br>
> Thomas Goirand (zigo)<br></div></blockquote><div><br></div><div>I'm even much more late on this thread than Brian ever was. But as this 
clearly did sidetrack a bit from the original, I'm gonna chip in 
something that could help for the original request:</div><div><br></div><div>Original topic/request was the exact first usecase Searchlight team was taking on with metadefs and Searchlight when it spun up within Glance. Image names are what they are, freeform text that doesn't need to be unique and likely will always be something you can get bit of an idea what it might contain but will never be your reliable source of information what that image actually contains. Please people, lets not try to reinvent the wheel with something that's really not sufficient for the purpose and start populating the metadata into the image records instead. That's why there is plenty of metadefs so that information is structured and can be easily parsed/searched by something like searchlight. If you look up for the first Searchlight updates and demo's, finding your specific version of OS from images or specific software stack (F.E. LAMP) preinstalled were there literally from the first release.</div><div><br></div><div>Cheers,</div><div>Erno "jokke_" Kuvaja<br></div></div></div>