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

Fgcp: api instances test 'should allow to snapshot running instance if supported by provider' is run even though provider does not support it

    XMLWordPrintableJSON

Details

    • Test
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • Server
    • None
    • Fgcp driver

    Description

      When running DC api tests (rake tests:deltacloud in root tests folder), the 'should allow to snapshot running instance if supported by provider' test is not skipped; it fails.
      The FGCP doesn't not support creating snapshots from running instances. It does support creating images from stopped instances.
      This test checks whether 'create_image' is set on the test server and if true, runs the test.
      However, it doesn't check whether the server is running, and the server is never explicitly started after creation.
      With the Fgcp, an newly created instance transitions from PENDING to STOPPED, hence the misunderstanding.

      Suggesting to add code to ensure the instance is running before checking the create_image flag.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: