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

Unable to describe in detail a storage snapshot with ec2 driver

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • Server
    • ubuntu, deltacloud

    Description

      Hi,

      I tried describing a snapshot in detail using curl, got following response:

      <error status='502' url='/api/storage_snapshots/snap-703acf01?format=xml'>
      <kind>backend_error</kind>
      <backend driver='ec2' provider='default'>
      <code>502</code>
      </backend>
      <message><![CDATA[undefined method `to_a' for "snap-703acf01":String]]></message>
      <backtrace><![CDATA[/var/lib/gems/1.9.1/gems/aws-2.5.6/lib/ec2/ec2.rb:1307:in `describe_snapshots'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:613:in `block in storage_snapshots'
      /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:612:in `storage_snapshots'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/base_driver.rb:226:in `storage_snapshot'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/helpers/deltacloud_helper.rb:74:in `block in show'
      /usr/lib/ruby/1.9.1/benchmark.rb:295:in `measure'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/helpers/deltacloud_helper.rb:73:in `show'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/helpers/rabbit_helper.rb:29:in `block (2 levels) in standard_show_operation'
      /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'
      ........

      At server side, got following error:

      NoMethodError:undefined method `to_a' for "snap-703acf01":String
      /var/lib/gems/1.9.1/gems/aws-2.5.6/lib/ec2/ec2.rb:1307:in `describe_snapshots'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:613:in `block in storage_snapshots'
      /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:612:in `storage_snapshots'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/base_driver.rb:226:in `storage_snapshot'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/helpers/deltacloud_helper.rb:74:in `block in show'
      /usr/lib/ruby/1.9.1/benchmark.rb:295:in `measure'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/helpers/deltacloud_helper.rb:73:in `show'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/helpers/rabbit_helper.rb:29:in `block (2 levels) in standard_show_operation'
      /var/lib/gems/1.9.1/gems/sinatra-rabbit-1.0.6/lib/sinatra/rabbit/base.rb:387:in `instance_eval'
      Deltacloud::ExceptionHandler::ProviderError - undefined method `to_a' for "snap-703acf01":String:
      /var/lib/gems/1.9.1/gems/aws-2.5.6/lib/ec2/ec2.rb:1307:in `describe_snapshots'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:613:in `block in storage_snapshots'
      /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:612:in `storage_snapshots'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/drivers/base_driver.rb:226:in `storage_snapshot'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/helpers/deltacloud_helper.rb:74:in `block in show'
      /usr/lib/ruby/1.9.1/benchmark.rb:295:in `measure'
      /home/deepika/testgit/deltacloud/server/lib/deltacloud/helpers/deltacloud_helper.rb:73:in `show'

      .....
      /var/lib/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in `block in spawn_threadpool'
      172.30.54.46 - - [10/Jul/2012 15:32:02] "GET /api/storage_snapshots/snap-703acf01?format=xml HTTP/1.1" 502 38235 16.9986

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: