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

Problem with VMware snapshot when datastore has a space in its name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 4.3.0
    • 4.4.0
    • VMware
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None
    • Management Server on Ubuntu 12.04.1
      ESXi 5.1

    Description

      I have two hosts in my VMware cluster.

      I elected to have vSphere Client use its default names for the datastore of each host's local storage.

      These names are the following: "datastore1" and "datastore1 (1)"

      Note the presence of a space in the second datastore name. This space causes our creation of a VM snapshot to return to the management server an incorrect path field.

      For example, let's say the path in the DB of our root disk is abcxyz before the VM snapshot. After the VM snapshot, it should be abcxyz-000001; however, it is still abcxyz.

      The problem is in this method in VmwareStorageManagerImpl:

      extractSnapshotBaseFileName

      That method is treating the space character as a delimiter.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mike-tutkowski Mike Tutkowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: