On instance provision, if an exception is generated which stops the build, and then the failed build is deleted, the files pulled from Glance are not cleaned up at all.
Over time, this can stack up and become a very large problem since there is a lot of junk disks. From what I observed, the disk image is brought down to the host machine, and has been scanned in to the SR as there is a VDI record. It's just not removed. We should also add the instance id into the VDI name-description so that we can track which VDIs are associated with what instances. At this point, there's not a good way to track and clean this cruft from the failed builds.
uuid ( RO) : 205b5447-e87a-46a5-8f4a-bbc7e8434677
name-label ( RW): 0
name-description ( RW):
sr-uuid ( RO): 65ccc1a6-335d-92fe-72df-1b09a8f483a6
virtual-size ( RO): 20401094656
sharable ( RO): false
read-only ( RO): false
For reference I'm running rev 1265. The exception I ran into was (nova): TRACE: RemoteError: FixedIpNotFoundForInstance Instance 1 has zero fixed ips. This was due to not having added IPs yet to the DB.