Uploaded image for project: 'DeltaCloud'
  1. DeltaCloud
  2. DTACLOUD-260

Deleting a volume with ec2 driver: Response is not correct

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Server
    • ubuntu, deltacloud

    Description

      Hi,

      I tried deleting a storage volume with ec2 driver using curl. Although the volume is deleted (I have checked from AWS console), but I got following response at the server:

      TypeError:can't convert Symbol into Integer
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:566:in `[]'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:566:in `storage_volumes'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/base_driver.rb:222:in `storage_volume'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:591:in `block in destroy_storage_volume'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/exceptions.rb:173:in `call'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/exceptions.rb:173:in `safely'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:587:in `destroy_storage_volume'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/collections/storage_volumes.rb:87:in `block (3 levels) in <class:StorageVolumes>'
      /var/lib/gems/1.9.1/gems/sinatra-rabbit-1.0.6/lib/sinatra/rabbit/base.rb:387:in `instance_eval'
      /var/lib/gems/1.9.1/gems/sinatra-rabbit-1.0.6/lib/sinatra/rabbit/base.rb:387:in `block in control'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in `call'
      Deltacloud::ExceptionHandler::ProviderError - can't convert Symbol into Integer:
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:566:in `[]'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:566:in `storage_volumes'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/base_driver.rb:222:in `storage_volume'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:591:in `block in destroy_storage_volume'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/exceptions.rb:173:in `call'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/exceptions.rb:173:in `safely'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:587:in `destroy_storage_volume'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/collections/storage_volumes.rb:87:in `block (3 levels) in <class:StorageVolumes>'
      /var/lib/gems/1.9.1/gems/sinatra-rabbit-1.0.6/lib/sinatra/rabbit/base.rb:387:in `instance_eval'
      /var/lib/gems/1.9.1/gems/sinatra-rabbit-1.0.6/lib/sinatra/rabbit/base.rb:387:in `block in control'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in `call'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1212:in `block in compile!'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `[]'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (3 levels) in route!'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:in `route_eval'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `block (2 levels) in route!'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:in `block in process_route'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `catch'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `process_route'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:784:in `block in route!'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `each'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `route!'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:886:in `dispatch!'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `block in call!'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `block in invoke'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `catch'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:705:in `call'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:766:in `forward'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:835:in `route_missing'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:796:in `route!'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:792:in `route!'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:792:in `route!'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:792:in `route!'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:886:in `dispatch!'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `block in call!'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `block in invoke'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `catch'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!'
      /var/lib/gems/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:705:in `call'
      /var/lib/gems/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
      /var/lib/gems/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in `call'
      .........

      172.30.54.46 - - [10/Jul/2012 14:54:16] "DELETE /api/storage_volumes/vol-e44e9f85?format=xml HTTP/1.1" 502 44669 54.4987

      Attachments

        1. Response_delete_volume.png
          170 kB
          Deepika Agrawal

        Activity

          People

            mfojtik Michal Fojtik
            deepika.agrwal Deepika Agrawal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: