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

api tests don't clean up after themselves

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Server
    • None
    • Fgcp driver

    Description

      When running DC api tests (rake tests:deltacloud in root tests folder), the following is logged at the end (when using with Fgcp):

      CLEANING UP... resources for deletion: {:firewalls=>[], :instances=>["UZXC0GRT-ZG8ZJCJ07-S-0113"], :keys=>[], :images=>[]}
      CLEANUP attempt finished... resources looks like: {:instances=>["UZXC0GRT-ZG8ZJCJ07-S-0113"]}
      deltacloud/instances_test.rb:71: Unable to delete all created resources - please check: {:instances=>["UZXC0GRT-ZG8ZJCJ07-S-0113"]} (Ex
      ception)
      from deltacloud/instances_test.rb:244:in `call'
      from deltacloud/instances_test.rb:244:in `to_proc'
      from D:/programs/Ruby187/lib/ruby/gems/1.8/gems/minitest-4.4.0/lib/minitest/unit.rb:782:in `reverse_each'
      from D:/programs/Ruby187/lib/ruby/gems/1.8/gems/minitest-4.4.0/lib/minitest/unit.rb:782:in `autorun'

      The reason it failed to delete them is because it only tried to stop them, not destroy them. For Fgcp, stopping an instance doesn't destroy it.

      Suggesting to add code that calls the destroy_instance operation on instances after the stop operation.

      Attachments

        1. [PATCH] DTACLOUD441-442.eml
          11 kB
          Marios Andreou

        Issue Links

          Activity

            People

              rlandy Ronelle Landy
              dkoper Dies Koper
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: