Bug 783201

Summary: DELETE results in 404 w/ a valid url
Product: [Retired] CloudForms Cloud Engine Reporter: dgao
Component: aeolus-configserverAssignee: Dan Radez <dradez>
Status: CLOSED CURRENTRELEASE QA Contact: dgao
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, deltacloud-maint
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: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 766012    

Description dgao 2012-01-19 16:37:03 UTC
Request from automation:

   "DELETE /deployment/1/639315446219588758985455 HTTP/1.1[\r][\n]"
   "Content-Type: application/x-www-form-urlencoded[\r][\n]" 
   "Accept: application/x-www-form-urlencoded[\r][\n]"
   "Authorization: OAuth oauth_consumer_key="238410031931807488680587", oauth_version="1.0", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1326989238", oauth_nonce="-5579553774992316892", oauth_signature="4YrUbVofNGoXLVqYPlgEnpykcYM%3D"[\r][\n]"
   "Content-Length: 0[\r][\n]"
   "Host: deaddonkey.usersys.redhat.com[\r][\n]"
   "Connection: Keep-Alive[\r][\n]"
   "User-Agent: Apache-HttpClient/4.1.2 (java 1.5)[\r][\n]" 

thin.log

DELETE /deployment/1/639315446219588758985455 HTTP/1.1
Host: localhost:4567
Content-Type: application/x-www-form-urlencoded
Accept: application/x-www-form-urlencoded
Authorization: OAuth oauth_consumer_key="238410031931807488680587", oauth_version="1.0", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1326989238", oauth_nonce="-5579553774992316892", oauth_signature="4YrUbVofNGoXLVqYPlgEnpykcYM%3D"
User-Agent: Apache-HttpClient/4.1.2 (java 1.5)
X_FORWARDED_PROTO: https
X-Forwarded-For: 10.11.230.249
X-Forwarded-Host: deaddonkey.usersys.redhat.com
X-Forwarded-Server: deaddonkey.usersys.redhat.com
Connection: Keep-Alive
Content-Length: 0

10.11.230.249 - - [19/Jan/2012 11:06:14] "DELETE /deployment/1/639315446219588758985455 HTTP/1.1" 404 - 0.0012
HTTP/1.1 404 Not Found
Content-Type: text/html;charset=utf-8
Content-Length: 0
Connection: keep-alive
Server: thin 1.2.11 codename Bat-Shit Crazy

[root@deaddonkey instances]# ls 639315446219588758985455
639315446219588758985455.tgz  instance-config.xml  ip  provided-parameters.xml
[root@deaddonkey instances]# pwd
/var/lib/aeolus-configserver/configs/instances

Comment 1 Dan Radez 2012-01-24 16:55:31 UTC
|-- configs
|   |-- deployables
|   |   `-- test_instance_uuid_1
|   |       |-- 169354431787649247442393 ->

this is the dir structure from the config server.
ids that can be deleted with this statement are subdirectories of the deployables dir

Comment 2 dgao 2012-01-24 20:47:59 UTC
thin.log 

10.11.230.249 - - [24/Jan/2012 15:45:17] "DELETE /deployment/1/test_instance_uuid_1 HTTP/1.1" 200 69 0.0256

client side
DELETE /deployment/1/test_instance_uuid_1 HTTP/1.1
Receiving response: HTTP/1.1 200 OK