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 3ED469200 for ; Mon, 16 Apr 2012 12:12:46 +0000 (UTC) Received: (qmail 1317 invoked by uid 500); 16 Apr 2012 12:12:45 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 1296 invoked by uid 500); 16 Apr 2012 12:12:45 -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 1240 invoked by uid 99); 16 Apr 2012 12:12:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 12:12:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 12:12:40 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3721A353DF9 for ; Mon, 16 Apr 2012 12:12:19 +0000 (UTC) Date: Mon, 16 Apr 2012 12:12:19 +0000 (UTC) From: "Marios Andreou (Commented) (JIRA)" To: dev@deltacloud.apache.org Message-ID: <443651230.28301.1334578339255.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1003130542.17012.1333634605153.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DTACLOUD-188) Unable to attach storage volume to an instance id in EC2 setup 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-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254651#comment-13254651 ] Marios Andreou commented on DTACLOUD-188: ----------------------------------------- ACK to the patch above - solves the problem for me on sinatra 1.3.2 - feel free to push to master > Unable to attach storage volume to an instance id in EC2 setup > -------------------------------------------------------------- > > Key: DTACLOUD-188 > URL: https://issues.apache.org/jira/browse/DTACLOUD-188 > Project: DeltaCloud > Issue Type: Bug > Components: Client (Ruby), Server > Environment: Deltacloud API - 0.5.0 > commit - 452ca54f2f9124291dc8af290d87f2323102a9a5 > OS - Fedora 15, 16, RHEL 6.1 > Setup - EC2 > Reporter: Ramesh A > Assignee: Marios Andreou > > Unable to attach storage volume to an instance id in EC2 setup from Deltacloud API. Note, that I am able to associate the instance id with the storage volume successfully in the aws website > Reproduction Steps: > =============== > 1. Start an in instance > 2. Click on Storage volume and create a new volume > 3. Click on attach button and associate the created instance > Expected Result: > ============ > Should be able to attach the Instance id successfully > Actual Result: > ========== > Throw the below mentioned exception in console. > I, [2012-04-05T19:20:34.757060 #22068] INFO -- : New Aws::Ec2 using per_thread-connection mode > I, [2012-04-05T19:20:43.739315 #22068] INFO -- : New Aws::Ec2 using per_thread-connection mode > W, [2012-04-05T19:20:43.740125 #22068] WARN -- : Rightscale::HttpConnection : request failure count: 1, exception: # > I, [2012-04-05T19:20:43.740200 #22068] INFO -- : Opening new HTTPS connection to ec2.us-east-1.amazonaws.com:443 > W, [2012-04-05T19:20:45.008487 #22068] WARN -- : ##### Aws::Ec2 returned an error: 400 Bad Request > > InvalidParameterValueValue (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.a623a3d4-54ac-4b15-b845-d34b3ee39117 ##### > W, [2012-04-05T19:20:45.008597 #22068] WARN -- : ##### Aws::Ec2 request: ec2.us-east-1.amazonaws.com:443/?AWSAccessKeyId=AKIAIPXNUEQVP32G4T2A&Action=AttachVolume&Device=%2Fdev%2Fsdf&InstanceId=i-dd2befba&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-05T13%3A50%3A43.000Z&Version=2010-08-31&VolumeId=vol-e275818dvol-e275818d&Signature=CM%2BKEkXUNOmbLIZ8RIfsRfFnIlHCW4CA3opPB%2FEXTpI%3D #### > Aws::AwsError:InvalidParameterValue: Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'. > REQUEST=ec2.us-east-1.amazonaws.com:443/?AWSAccessKeyId=AKIAIPXNUEQVP32G4T2A&Action=AttachVolume&Device=%2Fdev%2Fsdf&InstanceId=i-dd2befba&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-05T13%3A50%3A43.000Z&Version=2010-08-31&VolumeId=vol-e275818dvol-e275818d&Signature=CM%2BKEkXUNOmbLIZ8RIfsRfFnIlHCW4CA3opPB%2FEXTpI%3D > REQUEST ID=a623a3d4-54ac-4b15-b845-d34b3ee39117 > /usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ses/../awsbase/awsbase.rb:572:in `request_info_impl' > /usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ec2/ec2.rb:177:in `request_info' > /usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ec2/ec2.rb:1260:in `attach_volume' > /home/rananda/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:559:in `attach_storage_volume' > /home/rananda/deltacloud/server/lib/deltacloud/base_driver/exceptions.rb:173:in `call' > /home/rananda/deltacloud/server/lib/deltacloud/base_driver/exceptions.rb:173:in `safely' > /home/rananda/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:558:in `attach_storage_volume' > /home/rananda/deltacloud/server/lib/deltacloud/server.rb:722 > /home/rananda/deltacloud/server/lib/sinatra/rabbit.rb:125:in `instance_eval' > /home/rananda/deltacloud/server/lib/sinatra/rabbit.rb:125:in `POST /api/storage_volumes/:id/attach' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in `call' > Deltacloud::ExceptionHandler::ProviderError - InvalidParameterValue: Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'. > REQUEST=ec2.us-east-1.amazonaws.com:443/?AWSAccessKeyId=AKIAIPXNUEQVP32G4T2A&Action=AttachVolume&Device=%2Fdev%2Fsdf&InstanceId=i-dd2befba&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-05T13%3A50%3A43.000Z&Version=2010-08-31&VolumeId=vol-e275818dvol-e275818d&Signature=CM%2BKEkXUNOmbLIZ8RIfsRfFnIlHCW4CA3opPB%2FEXTpI%3D > REQUEST ID=a623a3d4-54ac-4b15-b845-d34b3ee39117 : > /usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ses/../awsbase/awsbase.rb:572:in `request_info_impl' > /usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ec2/ec2.rb:177:in `request_info' > /usr/lib/ruby/gems/1.8/gems/aws-2.5.6/lib/ec2/ec2.rb:1260:in `attach_volume' > /home/rananda/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:559:in `attach_storage_volume' > /home/rananda/deltacloud/server/lib/deltacloud/base_driver/exceptions.rb:173:in `call' > /home/rananda/deltacloud/server/lib/deltacloud/base_driver/exceptions.rb:173:in `safely' > /home/rananda/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:558:in `attach_storage_volume' > /home/rananda/deltacloud/server/lib/deltacloud/server.rb:722 > /home/rananda/deltacloud/server/lib/sinatra/rabbit.rb:125:in `instance_eval' > /home/rananda/deltacloud/server/lib/sinatra/rabbit.rb:125:in `POST /api/storage_volumes/:id/attach' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in `call' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in `compile!' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `[]' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `route!' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:in `route_eval' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `route!' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:in `process_route' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `catch' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `process_route' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:784:in `route!' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `each' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `route!' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:886:in `dispatch!' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `catch' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:705:in `call' > /usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in `call' > /home/rananda/deltacloud/server/lib/sinatra/rack_date.rb:31:in `call' > /home/rananda/deltacloud/server/lib/sinatra/rack_accept.rb:152:in `call' > /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call' > /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in `call' > /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in `call' > /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in `call' > /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call' > /usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/nulllogger.rb:9:in `call' > /usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/head.rb:9:in `call' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/showexceptions.rb:21:in `call' > /home/rananda/deltacloud/server/lib/sinatra/rack_driver_select.rb:45:in `call' > /home/rananda/deltacloud/server/lib/sinatra/rack_matrix_params.rb:106:in `call' > /home/rananda/deltacloud/server/lib/sinatra/rack_runtime.rb:36:in `call' > /home/rananda/deltacloud/server/lib/sinatra/rack_etag.rb:41:in `call' > /usr/lib/ruby/gems/1.8/gems/rack-accept-0.4.4/lib/rack/accept/context.rb:22:in `call' > /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call' > /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in `call' > /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in `call' > /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in `call' > /usr/lib/ruby/gems/1.8/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call' > /usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/logger.rb:15:in `call' > /usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/head.rb:9:in `call' > /usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `call' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1416:in `synchronize' > /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `call' > /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb:80:in `pre_process' > /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb:78:in `catch' > /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb:78:in `pre_process' > /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in `call' > /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in `spawn_threadpool' > /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in `initialize' > /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in `new' > /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in `spawn_threadpool' > /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1049:in `defer' > /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb:50:in `process' > /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/connection.rb:38:in `receive_data' > /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine' > /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run' > /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start' > /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/server.rb:159:in `start' > /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:in `start' > /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `send' > /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command' > /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!' > ./server/bin/deltacloudd:239 > 127.0.0.1 - - [05/Apr/2012 19:20:45] "POST /api/storage_volumes/vol-e275818d/attach HTTP/1.1" 502 84458 1.5169 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira