hepix-virtualisation / vmcatcher

Provides an up to date cache of authorised VM imagelists and VM images.
Apache License 2.0
5 stars 6 forks source link

Problem to delete images from cache #2

Closed jouvin closed 12 years ago

jouvin commented 12 years ago

I was trying to make progress on integration with StratusLab Marketplace. To generate an event, I tried to remove an image from the cache and download it again. Here what I tried: vmlisub_sub -D -u xxx vmlisub_sub -U run cron job to download missing images Unfortunatly when running vmlisub_sub -D, I get the following error: [root@nfsserv11 test]# vmlisub_image -D -u 1837090e-047b-4b31-9051-ebdfc201dcb6 INFO:main:Defaulting DB connection to 'sqlite:///vmilsubscriber.db' ERROR:vmlisub_image.controler:Function not implemented. This is strange because I was sure I did it in Feb... I also tried -r instead of -D but this doesn't seem to change anything to the list displayed by -l.

osynge commented 12 years ago

Dear Michel,

I have looked into this issue now.

vmlisub_sub -D -u xxx

Was a bug this option should not have existed and is a cut N paste bug, from vmlisub_sub.

I have not been able to confirm the bug you report for -r here is my output:

[vmlisub@vmic-virt-grid root]$ /usr/bin/vmlisub_image -d sqlite:////var/lib/vmlisub/vmlisub.db -l | grep 51d61fbf-75d6-4239-8ab4-34409f8aaf9f 51d61fbf-75d6-4239-8ab4-34409f8aaf9f 3 4461bc45-6455-4139-803b-eb958ce0f348 [vmlisub@vmic-virt-grid root]$ /usr/bin/vmlisub_image -d sqlite:////var/lib/vmlisub/vmlisub.db -u 51d61fbf-75d6-4239-8ab4-34409f8aaf9f -r [vmlisub@vmic-virt-grid root]$ /usr/bin/vmlisub_image -d sqlite:////var/lib/vmlisub/vmlisub.db -l | grep 51d61fbf-75d6-4239-8ab4-34409f8aaf9f 51d61fbf-75d6-4239-8ab4-34409f8aaf9f 2 4461bc45-6455-4139-803b-eb958ce0f348 [vmlisub@vmic-virt-grid root]$ /usr/bin/vmlisub_image -d sqlite:////var/lib/vmlisub/vmlisub.db -u 51d61fbf-75d6-4239-8ab4-34409f8aaf9f -a [vmlisub@vmic-virt-grid root]$ /usr/bin/vmlisub_image -d sqlite:////var/lib/vmlisub/vmlisub.db -l | grep 51d61fbf-75d6-4239-8ab4-34409f8aaf9f 51d61fbf-75d6-4239-8ab4-34409f8aaf9f 3 4461bc45-6455-4139-803b-eb958ce0f348 [vmlisub@vmic-virt-grid root]$ /usr/bin/vmlisub_image -d sqlite:////var/lib/vmlisub/vmlisub.db -u 51d61fbf-75d6-4239-8ab4-34409f8aaf9f -r [vmlisub@vmic-virt-grid root]$ /usr/bin/vmlisub_image -d sqlite:////var/lib/vmlisub/vmlisub.db -l | grep 51d61fbf-75d6-4239-8ab4-34409f8aaf9f 51d61fbf-75d6-4239-8ab4-34409f8aaf9f 2 4461bc45-6455-4139-803b-eb958ce0f348

Regards

Owen

osynge commented 12 years ago

I think this is now resolved with the newest release, please reopen if its not.