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

/api/addresses returns 500 when cimi frontend is also enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • CIMI/Frontend
    • None
    • mock driver and fgcp driver

    Description

      When I start DC with bin\deltacloudd -f cimi,deltacloud -i mock
      and make the following request:
      curl --user mockuser:mockpassword http://localhost:3001/api/addresses?format=xml

      I get a 500:

      E, 2013-02-23T11:44:55.881341 #13708 ERROR – 500: [NoMethodError] undefined method `deltacloud_create_method_for' for #<Deltacloud::Collections::Addresses:0x
      ad7f5b8>

      d:/sources/OSS/cloud/deltacloud/server/lib/cimi/models/collection.rb:131:in `list'
      d:/sources/OSS/cloud/deltacloud/server/lib/cimi/collections/addresses.rb:28
      D:/programs/Ruby187/lib/ruby/gems/1.8/gems/sinatra-rabbit-1.1.4/lib/sinatra/rabbit/base.rb:396:in `instance_eval'
      D:/programs/Ruby187/lib/ruby/gems/1.8/gems/sinatra-rabbit-1.1.4/lib/sinatra/rabbit/base.rb:396:in `GET /addresses'

      Note that I'm making a request to the DC API front-end, not CIMI.
      Also, when I start DC with -f deltacloud,cimi (i.e. cimi last), I get no error.

      When I use the fgcp driver, I get a slightly different error:

      E, 2013-02-23T11:44:39.804733 #14824 ERROR – 500: [NameError] uninitialized constant CIMI::Model::Address::IPAddr

      d:/sources/OSS/cloud/deltacloud/server/lib/cimi/models/address.rb:76:in `protocol_from_address'
      d:/sources/OSS/cloud/deltacloud/server/lib/cimi/models/address.rb:68:in `from_address'
      d:/sources/OSS/cloud/deltacloud/server/lib/cimi/models/address.rb:45:in `find'
      d:/sources/OSS/cloud/deltacloud/server/lib/cimi/models/address.rb:45:in `map'
      d:/sources/OSS/cloud/deltacloud/server/lib/cimi/models/address.rb:45:in `find'
      d:/sources/OSS/cloud/deltacloud/server/lib/cimi/models/collection.rb:124:in `list'
      d:/sources/OSS/cloud/deltacloud/server/lib/cimi/collections/addresses.rb:28
      D:/programs/Ruby187/lib/ruby/gems/1.8/gems/sinatra-rabbit-1.1.4/lib/sinatra/rabbit/base.rb:396:in `instance_eval'
      D:/programs/Ruby187/lib/ruby/gems/1.8/gems/sinatra-rabbit-1.1.4/lib/sinatra/rabbit/base.rb:396:in `GET /addresses'

      Attachments

        Activity

          People

            mfojtik Michal Fojtik
            dkoper Dies Koper
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: