You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Ramesh A (Created) (JIRA)" <ji...@apache.org> on 2012/04/05 16:03:25 UTC
[jira] [Created] (DTACLOUD-188) Unable to attach storage volume to
an instance id in EC2 setup
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: David Lutterkort
Priority: Blocker
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: #<Errno::EPIPE: Broken pipe>
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
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
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
[jira] [Commented] (DTACLOUD-188) Unable to attach storage volume
to an instance id in EC2 setup
Posted by "Michal Fojtik (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254599#comment-13254599 ]
Michal Fojtik commented on DTACLOUD-188:
----------------------------------------
Hi guys,
Seems like this small patch, fix the issue in all Sinatra/Ruby versions:
diff --git a/server/views/storage_volumes/attach.html.haml b/server/views/storage_volumes/attach.html.haml
index 2408cd9..60c23cb 100644
--- a/server/views/storage_volumes/attach.html.haml
+++ b/server/views/storage_volumes/attach.html.haml
@@ -16,5 +16,4 @@
Device name:
%input{ :name => "device", :size => 10, :value => "/dev/sdc"}
%p
- %input{ :type => :hidden, :name => :id, :value => params[:id]}
%input{ :type => :submit, :name => "commit", :value => "create" }/
Dunno why it is there anyway, the :id parameter is present in the URL.
> 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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
[jira] [Closed] (DTACLOUD-188) Unable to attach storage volume to
an instance id in EC2 setup
Posted by "Ramesh A (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramesh A closed DTACLOUD-188.
-----------------------------
Verified and closing this issue. Verified on both web-ui and using cURL
commit - c13da7b50bbbbdc529b42207f58dbe5099006ad1
cURL command:
==========
curl -X POST --user "user:password" -H "Accept:application/xml" -F "instance_id=i-f4cb5693" -F "device=/dev/sdf" "http://localhost:3001/api/storage_volumes/vol-9c3899f3/attach_instance"
> 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: Ramesh A
> Attachments: fix.patch
>
>
> 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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
[jira] [Assigned] (DTACLOUD-188) Unable to attach storage volume to
an instance id in EC2 setup
Posted by "Marios Andreou (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marios Andreou reassigned DTACLOUD-188:
---------------------------------------
Assignee: Ramesh A (was: Marios Andreou)
assigning back to Ramesh for testing and closing of issue
> 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: Ramesh A
>
> 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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
[jira] [Updated] (DTACLOUD-188) Unable to attach storage volume to
an instance id in EC2 setup
Posted by "Marios Andreou (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marios Andreou updated DTACLOUD-188:
------------------------------------
Priority: Major (was: Blocker)
> 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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
[jira] [Commented] (DTACLOUD-188) Unable to attach storage volume
to an instance id in EC2 setup
Posted by "Dies Koper (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13252424#comment-13252424 ]
Dies Koper commented on DTACLOUD-188:
-------------------------------------
I've run into the same issue with the FGCP driver and can reproduce it with the mock driver.
Attaching of a storage volume through the GUI fails. The storage id passed to the driver's attach_storage_volume method (opts[:id]) is wrong: it has the id twice (e.g. "vol2vol2").
Ramesh's log shows the same: "Value (vol-e275818dvol-e275818d) for parameter volume is invalid".
On the mock driver, the following backtrace is also logged:
NoMethodError - undefined method `[]=' for nil:NilClass:
/mnt/hgfs/deltacloud/server/lib/deltacloud/drivers/mock/mock_driver.rb:477:in `attach_volume_instance'
/mnt/hgfs/deltacloud/server/lib/deltacloud/drivers/mock/mock_driver.rb:284:in `attach_storage_volume'
/mnt/hgfs/deltacloud/server/lib/deltacloud/server.rb:721
/mnt/hgfs/deltacloud/server/lib/sinatra/rabbit.rb:125:in `instance_eval'
/mnt/hgfs/deltacloud/server/lib/sinatra/rabbit.rb:125:in `POST /api/storage_volumes/:id/attach'
> 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: David Lutterkort
> Priority: Blocker
>
> 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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
[jira] [Assigned] (DTACLOUD-188) Unable to attach storage volume to
an instance id in EC2 setup
Posted by "David Lutterkort (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Lutterkort reassigned DTACLOUD-188:
-----------------------------------------
Assignee: Michal Fojtik (was: David Lutterkort)
> 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: Michal Fojtik
> Priority: Blocker
>
> 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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
[jira] [Commented] (DTACLOUD-188) Unable to attach storage volume
to an instance id in EC2 setup
Posted by "Marios Andreou (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254555#comment-13254555 ]
Marios Andreou commented on DTACLOUD-188:
-----------------------------------------
I can't reproduce this - I was able to attach a storage volume to an Instance, both in EC2 and mock driver (Dies mentioned this being reproducible in mock). I am using Firefox 11.0 - on Fedora 15 (2.6.42.12-1.fc15.i686).
I can see from Ramesh's error trace that indeed the storage volume ID is provided twice - looking at the code I can't immediately see how this happened. What web browser was used - might help to reproduce.
> 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: Michal Fojtik
> Priority: Blocker
>
> 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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
[jira] [Commented] (DTACLOUD-188) Unable to attach storage volume
to an instance id in EC2 setup
Posted by "Marios Andreou (Commented) (JIRA)" <ji...@apache.org>.
[ 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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
[jira] [Resolved] (DTACLOUD-188) Unable to attach storage volume to
an instance id in EC2 setup
Posted by "Marios Andreou (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marios Andreou resolved DTACLOUD-188.
-------------------------------------
Resolution: Fixed
> 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: Ramesh A
>
> 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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
[jira] [Commented] (DTACLOUD-188) Unable to attach storage volume
to an instance id in EC2 setup
Posted by "Marios Andreou (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254582#comment-13254582 ]
Marios Andreou commented on DTACLOUD-188:
-----------------------------------------
finally able to reproduce - seems to be specific to sinatra 1.3.2 - not yet found the issue but at least can reproduce. Many thanks to Dies Kopper for helping:
Starting Deltacloud API :: mock :: http://localhost:3001/api
>> Thin web server (v1.3.1 codename Triple Espresso)
>> Debugging ON
>> Maximum connections set to 1024
>> Listening on localhost:3001, CTRL+C to stop
[279, 288] in /home/marios/Documents/WORK/NewEclipsey/DCore/deltacloud_git_repo/deltacloud/server/lib/deltacloud/drivers/mock/mock_driver.rb
279
280 #opts: {:id=,:instance_id,:device}
281 require 'ruby-debug'
282 def attach_storage_volume(credentials, opts)
283 debugger
=> 284 check_credentials(credentials)
285 attach_volume_instance(opts[:id], opts[:device], opts[:instance_id])
286 end
287
288 def detach_storage_volume(credentials, opts)
/home/marios/Documents/WORK/NewEclipsey/DCore/deltacloud_git_repo/deltacloud/server/lib/deltacloud/drivers/mock/mock_driver.rb:284
check_credentials(credentials)
(rdb:1) opts
{"device"=>"/dev/sdc", "commit"=>"create", "captures"=>["vol1"], "instance_id"=>"inst0", "id"=>"vol1vol1", "splat"=>[]}
> 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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
[jira] [Commented] (DTACLOUD-188) Unable to attach storage volume
to an instance id in EC2 setup
Posted by "Marios Andreou (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254580#comment-13254580 ]
Marios Andreou commented on DTACLOUD-188:
-----------------------------------------
thanks for the comment and no worries - but i still can't reproduce. I put debug statements into the 'attach_storage_volume' method of mock driver:
[278, 287] in /home/marios/Documents/WORK/NewEclipsey/DCore/deltacloud_git_repo/deltacloud/server/lib/deltacloud/drivers/mock/mock_driver.rb
278 end
279 require 'ruby-debug'
280 #opts: {:id=,:instance_id,:device}
281 def attach_storage_volume(credentials, opts)
282 debugger
=> 283 check_credentials(credentials)
284 attach_volume_instance(opts[:id], opts[:device], opts[:instance_id])
285 end
286
287 def detach_storage_volume(credentials, opts)
/home/marios/Documents/WORK/NewEclipsey/DCore/deltacloud_git_repo/deltacloud/server/lib/deltacloud/drivers/mock/mock_driver.rb:283
check_credentials(credentials)
(rdb:1) opts
{"commit"=>"create", "id"=>"vol1", "instance_id"=>"inst0", "device"=>"/dev/sdc"}
(rdb:1) c
127.0.0.1 - - [16/Apr/2012 11:20:22] "POST /api/storage_volumes/vol1/attach HTTP/1.1" 303 - 11.5955
127.0.0.1 - - [16/Apr/2012 11:20:22] "POST /api/storage_volumes/vol1/attach HTTP/1.1" 303 - 11.5959
127.0.0.1 - - [16/Apr/2012 11:20:22] "GET /api/storage_volumes/vol1 HTTP/1.1" 200 4145 0.0409
> 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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
[jira] [Updated] (DTACLOUD-188) Unable to attach storage volume to
an instance id in EC2 setup
Posted by "Ramesh A (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramesh A updated DTACLOUD-188:
------------------------------
Attachment: fix.patch
> 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: Ramesh A
> Attachments: fix.patch
>
>
> 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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
[jira] [Commented] (DTACLOUD-188) Unable to attach storage volume
to an instance id in EC2 setup
Posted by "Dies Koper (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254577#comment-13254577 ]
Dies Koper commented on DTACLOUD-188:
-------------------------------------
Apologies for confusing you. The NoMethodError occurred because the id was wrong. If I put a 'p volume_id' at the start of the method it displays the wrong id ("vol2vol2"). The wrong id causes the mock driver load method to return nil, which caused the NoMethodError.
> 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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
[jira] [Issue Comment Edited] (DTACLOUD-188) Unable to attach
storage volume to an instance id in EC2 setup
Posted by "Ramesh A (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254592#comment-13254592 ]
Ramesh A edited comment on DTACLOUD-188 at 4/16/12 8:55 AM:
------------------------------------------------------------
Hi Marios,
I am reproduce this issues as per the description.
I am using Firefox 11.0, OS- Fedora 16 (3.3.1-3.fc16.x86_64)
AMI used - ami-205fba49
Sinatra 1.3.2
commit - 84d3c990959acd90be76f93d1d149d2124f4c94f
However, it seems to be working fine on Fedora 15 (2.6.40.6-0.fc15.x86_64) now. This is running on Sinatra 1.3.1
Thanks,
Ramesh A
was (Author: rananda):
Hi Marios,
I am reproduce this issues as per the description.
I am using Firefox 11.0, OS- Fedora 16 (3.3.1-3.fc16.x86_64)
AMI used - ami-205fba49
commit - 84d3c990959acd90be76f93d1d149d2124f4c94f
However, it seems to be working fine on Fedora 15 (2.6.40.6-0.fc15.x86_64) now.
Thanks,
Ramesh A
> 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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
[jira] [Issue Comment Edited] (DTACLOUD-188) Unable to attach
storage volume to an instance id in EC2 setup
Posted by "Ramesh A (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254592#comment-13254592 ]
Ramesh A edited comment on DTACLOUD-188 at 4/16/12 8:53 AM:
------------------------------------------------------------
Hi Marios,
I am reproduce this issues as per the description.
I am using Firefox 11.0, OS- Fedora 16 (3.3.1-3.fc16.x86_64)
AMI used - ami-205fba49
commit - 84d3c990959acd90be76f93d1d149d2124f4c94f
However, it seems to be working fine on Fedora 15 (2.6.40.6-0.fc15.x86_64) now.
Thanks,
Ramesh A
was (Author: rananda):
Hi Marios,
I am reproduce this issues as per the description.
I am using Firefox 11.0, OS- Fedora 16 (3.3.1-3.fc16.x86_64)
AMI used - ami-205fba49
However, it seems to be working fine on Fedora 15 (2.6.40.6-0.fc15.x86_64) now.
Thanks,
Ramesh A
> 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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
[jira] [Commented] (DTACLOUD-188) Unable to attach storage volume
to an instance id in EC2 setup
Posted by "Dies Koper (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254566#comment-13254566 ]
Dies Koper commented on DTACLOUD-188:
-------------------------------------
FF 10.0.3 in CentOS 6.0 with the FGCP driver.
Don't know why but the mock driver is now giving me another error:
NoMethodError - undefined method `[]=' for nil:NilClass:
/mnt/hgfs/deltacloud/server/lib/deltacloud/drivers/mock/mock_driver.rb:476:in `attach_volume_instance'
/mnt/hgfs/deltacloud/server/lib/deltacloud/drivers/mock/mock_driver.rb:283:in `attach_storage_volume'
/mnt/hgfs/deltacloud/server/lib/deltacloud/server.rb:721
/mnt/hgfs/deltacloud/server/lib/sinatra/rabbit.rb:125:in `instance_eval'
/mnt/hgfs/deltacloud/server/lib/sinatra/rabbit.rb:125:in `POST /api/storage_volumes/:id/attach'
That's both on FF 10.0.3 (DC server on CentOS) and IE 8 (DC server on Windows 7 64 bit).
> 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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
[jira] [Assigned] (DTACLOUD-188) Unable to attach storage volume to
an instance id in EC2 setup
Posted by "Marios Andreou (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marios Andreou reassigned DTACLOUD-188:
---------------------------------------
Assignee: Marios Andreou (was: Michal Fojtik)
> 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
> Priority: Blocker
>
> 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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
[jira] [Commented] (DTACLOUD-188) Unable to attach storage volume
to an instance id in EC2 setup
Posted by "Ramesh A (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254592#comment-13254592 ]
Ramesh A commented on DTACLOUD-188:
-----------------------------------
Hi Marios,
I am reproduce this issues as per the description.
I am using Firefox 11.0, OS- Fedora 16 (3.3.1-3.fc16.x86_64)
AMI used - ami-205fba49
However, it seems to be working fine on Fedora 15 (2.6.40.6-0.fc15.x86_64) now.
Thanks,
Ramesh A
> 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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
[jira] [Commented] (DTACLOUD-188) Unable to attach storage volume
to an instance id in EC2 setup
Posted by "Ramesh A (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254681#comment-13254681 ]
Ramesh A commented on DTACLOUD-188:
-----------------------------------
Applied the patch provided by Michal and works fine. Will close this issue once the patch is pushed to master branch. Attaching the patch file for reference.
> 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: Ramesh A
>
> 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: #<Errno::EPIPE: Broken pipe>
> 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
> <?xml version="1.0" encoding="UTF-8"?>
> <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value (vol-e275818dvol-e275818d) for parameter volume is invalid. Expected: 'vol-...'.</Message></Error></Errors><RequestID>a623a3d4-54ac-4b15-b845-d34b3ee39117</RequestID></Response> #####
> 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