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

attachVolume shouldn't create the volume on the primary storage if the vm's root volume is not created yet

    XMLWordPrintableJSON

Details

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

    Description

      In cloudStack you can deploy a vm w/o actually starting it on the backend (startVm=false parameter should be passed to deployVm call to trigger this behavior). When vm is not started during the original deployment, its ROOT volume is not created either. It stays in Allocated state in the DB.

      Bug: when try to attach data disk to such a vm, current CS code creates it on the primary storage.

      The fix should be: when check to see if the volume needs to be created on the primary storage, validate the Vm's Root volume state. And if its Allocated, don't create it.

      Attachments

        Activity

          People

            alena1108 Alena Prokharchyk
            alena1108 Alena Prokharchyk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: