<div class="markdown">
<p dir="auto">Volumes snap depends on the active instance, that means you don't need the base image afterwards.<br>
Just check all actives instances<br>
<code>select * from instances where deleted <> 1</code><br>
OR : <br>
<code>select image_id from instances where deleted = 0</code></p>

<p dir="auto">Razique</p>

<p dir="auto">On 13 Nov 2013, at 15:47, Narayanan, Krishnaprasad wrote:</p>

<blockquote>
<p dir="auto">Hi</p>

<p dir="auto">If I understand it correctly, this addresses the active instances and its images. Can I know how one should take care of instance and volume snapshots?</p>

<p dir="auto">Thanks,<br>
Krishnaprasad<br>
From: Razique Mahroua [mailto:<a href="mailto:razique.mahroua@gmail.com">razique.mahroua@gmail.com</a>]<br>
Sent: Mittwoch, 13. November 2013 14:40<br>
To: Narayanan, Krishnaprasad<br>
Cc: <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Subject: Re: [Openstack] Removing unused images using Glance APIs</p>

<p dir="auto">Hi. I think there is not any API for that unfortunately....<br>
But there is a field into the database that indicates the image ID. So if you select all active instances and select the unique images ID entries, you can compare them against the Glance images. A BASH script should be sufficient.</p>

<p dir="auto">Razique</p>

<p dir="auto">On Wednesday, November 13, 2013, Narayanan, Krishnaprasad wrote:<br>
Hallo All,</p>

<p dir="auto">In our testbed we have Openstack ESSEX. I am in the process of cleaning up the image store. Can I know are there any APIs in Glance or Nova that can help me in this process?</p>

<p dir="auto">Thanks,<br>
Krishnaprasad</p>
</blockquote>

</div>