Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-8061

Extracting volume when it is in migrating state causes both the operations to fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 4.4.0
    • 4.5.0
    • Management Server
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      Extracting volume when it is in migrating state causes both the operations to fail

      Steps to Reproduce:
      ================
      1.Bring up CloudStack in advanced zone with xen cluster
      2.Add two shared cluster level primary stores to the cluster
      3.Deploy one vm using the default cent os template
      4.Stop the vm
      5.Migrate volume to another shared store
      6.When the volume is in migrating state try to download the same volume. We will not see extract volume option in UI while volume is in migrating state. So please do it using API:
      http:/<host>:8096/client/api?command=extractVolume&id=03f4a082-a96c-4195-b74b-7aa602926825&zoneid=f6c57314-d7df-417e-b994-c4a7c4e5b557&mode=HTTP_DOWNLOAD

      Expected Behavior:
      ================
      If there is a race condition either of this operation should succeed. Or ExtractVolume job should wait for the migration job to finish and then execute extractvolume.

      Actual Behavior:
      =============
      Both the operations are failed.

      Attachments

        Activity

          People

            minchen07 Min Chen
            minchen07 Min Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: