tmetsch / occi-os

This is a clone and continuation of https://github.com/dizz/nova - it provides a python egg which can be easily deployed in OpenStack and will thereby add the 3rd party OCCI interface to OpenStack. For usage examples, see the OpenStack wiki.
Apache License 2.0
10 stars 23 forks source link

Deleted Snapshots & Storage Links still provisioned #60

Closed renebrandel closed 11 years ago

renebrandel commented 11 years ago

If you delete a snapshot or a storage link of OpenStack through Horizon or Terminal, you can still see them in the list of provisions.

curl -v -H 'X-Auth-Token: '$KID -X GET localhost:8787/-/

the snapshots are saved in the mySQL database but set as inactive/deleted. Where is the code snippet that retrieves the images and snapshots?

We should probably build a filter for active images into the code.

renebrandel commented 11 years ago

actually i solved the problem by adding a few lines to wsgi.py

        if ((img['status') in ('deleted'):
            msg = 'Not registering deleted image.'
            LOG.debug(msg)
            continue

please add that to the master branch

dizz commented 11 years ago

Can you submit a pull request?

renebrandel commented 11 years ago

Can you give me a hand open a pull request? with that code below

if (((img['container_format'] or img['disk_format']) in ('ari', 'aki'))): msg = 'Not registering kernel/RAM image.' LOG.debug(msg) continue

these line of codes?

my github has issues

renebrandel commented 11 years ago

BTW that fix didn't work. So I reposted it as a new issue with a clearer step to reproduce the problem