VMware datastore should handle falt vmdks
|Assignee:||Jaime Melis||% Done:|
|Category:||Drivers - Auth|
|Target version:||Release 3.6|
|Affected Versions:||OpenNebula 3.4|
From Carlo Bongiovanni email@example.com
By looking into the scripts I found that opennebula tries to find the
descriptor (the .vmdk renamed to disk.0), by looking at all the files
with vmdk ending, and omitting the ones that have the "-s00n" in the
name. I had to change that part so that it could omit also files
having "-flat" in the name.
if [ ! -f $DST/disk.vmdk ]; then
BASE_DISK_FILE=`ls $DST | grep -v '.*-s[0-9]*\.vmdk'`
exec_and_log "mv -f $DST/$BASE_DISK_FILE $DST/disk.vmdk" \
"Error renaming disk file $BASE_DISK_FILE to disk.vmdk"