Details
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.