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

cimi: SQL error when deleting machine

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • CIMI/Frontend
    • None
    • Win 7 64 bit, MRI1.9.3, ROR driver

    Description

      I created a few instances using the DC API (using curl). Now I try to delete them using the CIMI API:

      d:\>curl --user user+tenant:pwd "http://localhost:3001/cimi/machines/SampleTe-0HCVNNJZO-S-0006?format=xml" -X DELETE

      gives:

      E, 2013-06-12T11:31:30.938938 #9088 ERROR – 500: [Sequel::NoExistingObject] Attempt to delete object did not result in a single row modification (Rows Deleted: 0, SQL: DELETE FROM `entities` WHERE (`id` IS NULL))

      D:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.42.0/lib/sequel/model/base.rb:1471:in `_delete'
      ...
      D:/Programs/Ruby193/lib/ruby/gems/1.9.1/gems/sequel-3.42.0/lib/sequel/model/base.rb:1017:in `destroy'
      d:/sources/OSS/cloud/deltacloud-core/server/lib/cimi/service/base.rb:223:in `destroy'
      d:/sources/OSS/cloud/deltacloud-core/server/lib/cimi/service/machine.rb:55:in `delete!'
      d:/sources/OSS/cloud/deltacloud-core/server/lib/cimi/helpers/cimi_rabbit_helper.rb:9:in `block (2 levels) in generate_delete_operation'

      Attachments

        Activity

          People

            Unassigned Unassigned
            dkoper Dies Koper
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: