← Back to team overview

openstack team mailing list archive

Hashing image files

 

Hi, Michael!

I am curious to know: is it necessary for nova to save images in file which
names are sha1 hashes from image IDs (UUIDs)?

Nova saves root image under its sha1 hash:
https://github.com/openstack/nova/blob/master/nova/virt/libvirt/connection.py#L1214
but it saves kernel and ramdisk under their original IDs:
https://github.com/openstack/nova/blob/master/nova/virt/libvirt/connection.py#L1199
https://github.com/openstack/nova/blob/master/nova/virt/libvirt/connection.py#L1206

Is it a security measure?


-- 
Alessio Ababilov
Software Engineer
Grid Dynamics




-- 
Alessio Ababilov
Software Engineer
Grid Dynamics

Follow ups

References