Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 66AD4F154 for ; Fri, 22 Mar 2013 12:49:16 +0000 (UTC) Received: (qmail 61227 invoked by uid 500); 22 Mar 2013 12:49:16 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 61189 invoked by uid 500); 22 Mar 2013 12:49:15 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 61178 invoked by uid 99); 22 Mar 2013 12:49:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Mar 2013 12:49:15 +0000 Date: Fri, 22 Mar 2013 12:49:15 +0000 (UTC) From: "Michal Fojtik (JIRA)" To: dev@deltacloud.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (DTACLOUD-518) 500 error-> CIMI - Deleting a Volume Image MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DTACLOUD-518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michal Fojtik resolved DTACLOUD-518. ------------------------------------ Resolution: Fixed Fixed here: http://tracker.deltacloud.org/set/400 > 500 error-> CIMI - Deleting a Volume Image > ------------------------------------------- > > Key: DTACLOUD-518 > URL: https://issues.apache.org/jira/browse/DTACLOUD-518 > Project: DeltaCloud > Issue Type: Bug > Components: CIMI/Frontend > Reporter: Martha Chumo > Assignee: Michal Fojtik > > When I run curl -v -X DELETE --user "mockuser:mockpassword" http://localhost:3001/cimi/volume_configurations/ I get this error: > {"code":500,"message":"can't convert Hash into Integer","error":"TypeError"} > Here's the stacktrace: > 127.0.0.1 - - [19/Mar/2013 19:36:08] "DELETE /cimi/volume_configurations/43 HTTP/1.1" 500 76 0.1004 > E, [2013-03-19T19:37:08.077754 #5470] ERROR -- 500: [TypeError] can't convert Hash into Integer > /home/martha/openSource/deltacloud/server/lib/cimi/service/volume_configuration.rb:46:in `first' > /home/martha/openSource/deltacloud/server/lib/cimi/service/volume_configuration.rb:46:in `delete!' > /home/martha/openSource/deltacloud/server/lib/cimi/collections/volume_configurations.rb:64:in `block (3 levels) in ' > /home/martha/.rvm/gems/ruby-1.9.3-p374/gems/sinatra-rabbit-1.1.6/lib/sinatra/rabbit/base.rb:400:in `instance_eval' > /home/martha/.rvm/gems/ruby-1.9.3-p374/gems/sinatra-rabbit-1.1.6/lib/sinatra/rabbit/base.rb:400:in `block in control' > /home/martha/.rvm/gems/ruby-1.9.3-p374/gems/sinatra-1.3.5/lib/sinatra/base.rb:1293:in `call' > /home/martha/.rvm/gems/ruby-1.9.3-p374/gems/sinatra-1.3.5/lib/sinatra/base.rb:1293:in `block in compile!' > /home/martha/.rvm/gems/ruby-1.9.3-p374/gems/sinatra-1.3.5/lib/sinatra/base.rb:860:in `[]' > /home/martha/.rvm/gems/ruby-1.9.3-p374/gems/sinatra-1.3.5/lib/sinatra/base.rb:860:in `block (3 levels) in route!' > /home/martha/.rvm/gems/ruby-1.9.3-p374/gems/sinatra-1.3.5/lib/sinatra/base.rb:876:in `route_eval' > /home/martha/.rvm/gems/ruby-1.9.3-p374/gems/sinatra-1.3.5/lib/sinatra/base.rb:860:in `block (2 levels) in route!' > /home/martha/.rvm/gems/ruby-1.9.3-p374/gems/sinatra-1.3.5/lib/sinatra/base.rb:897:in `block in process_route' > /home/martha/.rvm/gems/ruby-1.9.3-p374/gems/sinatra-1.3.5/lib/sinatra/base.rb:895:in `catch' > /home/martha/.rvm/gems/ruby-1.9.3-p374/gems/sinatra-1.3.5/lib/sinatra/base.rb:895:in `process_route' > /home/martha/.rvm/gems/ruby-1.9.3-p374/gems/sinatra-1.3.5/lib/sinatra/base.rb:859:in `block in route!' > /home/martha/.rvm/gems/ruby-1.9.3-p374/gems/sinatra-1.3.5/lib/sinatra/base.rb:858:in `each' > /home/martha/.rvm/gems/ruby-1.9.3-p374/gems/sinatra-1.3.5/lib/sinatra/base.rb:858:in `route!' > /home/martha/.rvm/gems/ruby-1.9.3-p374/gems/sinatra-1.3.5/lib/sinatra/base.rb:963:in `block in dispatch!' > /home/martha/.rvm/gems/ruby-1.9.3-p374/gems/sinatra-1.3.5/lib/sinatra/base.rb:946:in `block in invoke' > /home/martha/.rvm/gems/ruby-1.9.3-p374/gems/sinatra-1.3.5/lib/sinatra/base.rb:946:in `catch' > /home/martha/.rvm/gems/ruby-1.9.3-p374/gems/sinatra-1.3.5/lib/sinatra/base.rb:946:in `invoke' > 127.0.0.1 - - [19/Mar/2013 19:37:08] "DELETE /cimi/volume_configurations/43 HTTP/1.1" 500 76 0.1242 > The cURL example is from the site -> http://deltacloud.apache.org/cimi-curl/cimi-curl-volumes.html -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira