[Openstack] Hashing image files

Alexey Ababilov aababilov at griddynamics.com
Mon Jun 25 10:25:17 UTC 2012


Hi!

I am curious to know: is it necessary for nova to save images in file which
names are 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 measures?


-- 
Alessio Ababilov
Software Engineer
Grid Dynamics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120625/3fdbad16/attachment.html>


More information about the Openstack mailing list