| Summary: | Delete of corrupted images fails | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] CloudForms Cloud Engine | Reporter: | Pete Zaitcev <zaitcev> | ||||||
| Component: | iwhd | Assignee: | Pete Zaitcev <zaitcev> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Martin Kočí <mkoci> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 1.0.0 | CC: | dajohnso, deltacloud-maint, jguiditt, mkoci, ssachdev | ||||||
| Target Milestone: | rc | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2012-02-01 19:25:36 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Attachments: |
|
||||||||
|
Description
Pete Zaitcev
2011-06-03 23:52:44 UTC
please recreate and paste build info Doing a src install from iwhd git repo commit 9e86ebf939a68c37c04004e8248013aab8f8cbb9 shows that this is still a issue although ***sligthly different***. The delete through the API returns 404 and a subsequent get receives a 500. http://hudson.rhq.lab.eng.bos.redhat.com:8080/hudson/job/imageWarehouse/758/ http://hudson.rhq.lab.eng.bos.redhat.com:8080/hudson/job/imageWarehouse/758/testngreports Steps to reproduce 1. create a bucket, curl -X POST -d 'name=test_bucket_2' http://ip:port/_new 2. create a object in the bucket, curl -X PUT http://ip:port/test_bucket_2/camaro 3. rm -rf /var/lib/iwhd/<bucket>/<object>, rm -rf /var/lib/iwhd/test_bucket_2/camaro 4. try to delete object through the api, curl -X DELETE http://ip:port/test_bucket_2/camaro (receive 404 error) 5. http get on the object, curl -X GET http://ip:port/test_bucket_2/camaro (receive 500 error) Gentlemen, I just wanted to have a bug so that I don't forget to fix it. It is trivially reproducible in iwhd-0.96. Created attachment 514942 [details]
proposed patch
I think there is still an issue here, issuing get on a key that was corrupted and then deleted through curl returns a 500, Internal Server Error. ================================== Test delete on corrupted key ================================== create bucket, rc: 201 create a key in the bucket, rc: 201 remove the key on fs, rc: 0 delete key w/ curl, rc: 404 get key w/ curl, expect rc404, rc: 500 cleanup bucket, rc: 404 Created attachment 517644 [details]
shell script testing corruption
Oh it is there all right. Missed 0.98. modified http://git.fedorahosted.org/git/?p=iwhd.git;a=commit;h=2df124f0bbe3d66c21d1fe58f446f73d7822f93e making sure all the bugs are at the right version for future queries Test passed with version 0.991. I will test it against 1.0 yet and create automatic test for regression testing. ================================== Test delete on corrupted bucket ================================== create bucket, rc: 201create a object in the bucket remove the object of th bucket on fs, rc: 0 delete the bucket w/ curl, rc: 200 get bucket w/ curl, expect rc404, rc: 404 ================================== Test delete on corrupted key ================================== create bucket, rc: 201 create a key in the bucket, rc: 201 remove the key on fs, rc: 0 delete key w/ curl, rc: 200 get key w/ curl, expect rc404, rc: 404 cleanup bucket, rc: 404 Successfully tested with 1.0 version too. Moving the bug to VERIFIED. # ./test.sh && iwhd --version ================================== Test delete on corrupted bucket ================================== create bucket, rc: 201 create an object in the bucket, rc: 201 remove the object of th bucket on fs, rc: 0 delete the bucket w/ curl, rc: 200 get bucket w/ curl, expect rc 404, rc: 404 ================================== Test delete on corrupted key ================================== create bucket, rc: 201 create a key in the bucket, rc: 201 remove the key on fs, rc: 0 delete key w/ curl, rc: 200 get key w/ curl, expect rc 404, rc: 404 cleanup bucket, rc: 404 iwhd (iwhd) 1.0.1-1945 |