Bug #1593

Updated by Ruben S. Montero almost 8 years ago


After issuing a shutdown command to an instance using shared TM with a persistent image:

<pre>
Thu Oct 25 16:24:55 2012 [LCM][I]: New VM state is SHUTDOWN
Thu Oct 25 16:25:10 2012 [VMM][E]: shutdown: Error executing: virsh -c 'esx://vmware001/?no_verify=1&auto_answer=1' --readonly dominfo one-45 err: ExitCode: 1
Thu Oct 25 16:25:10 2012 [VMM][I]: out:
Thu Oct 25 16:25:10 2012 [VMM][I]: error: failed to get domain 'one-45'
Thu Oct 25 16:25:10 2012 [VMM][I]: error: Domain not found: No domain with name 'one-45'
Thu Oct 25 16:25:10 2012 [VMM][I]:
Thu Oct 25 16:25:10 2012 [VMM][I]: ExitCode: 0
Thu Oct 25 16:25:10 2012 [VMM][I]: Successfully execute virtualization driver operation: shutdown.
Thu Oct 25 16:25:10 2012 [VMM][I]: ExitCode: 0
Thu Oct 25 16:25:10 2012 [VMM][I]: Successfully execute network driver operation: clean.
Thu Oct 25 16:25:10 2012 [LCM][I]: New VM state is EPILOG
Thu Oct 25 16:25:10 2012 [TM][I]: Command execution fail: /srv/cloud/one/var/remotes/tm/shared/mvds vmware001:/vmfs/volumes/0/45/disk.0 /srv/cloud/one/var/datastores/1/facab93d8b58eadfa190a0cde6c704a8 45 1
Thu Oct 25 16:25:10 2012 [TM][I]: mvds: Moving /vmfs/volumes/0/45/disk.0 to datastore as /vmfs/volumes/1/facab93d8b58eadfa190a0cde6c704a8
Thu Oct 25 16:25:10 2012 [TM][E]: mvds: Command "umask 0007
Thu Oct 25 16:25:10 2012 [TM][I]: SRC_READLN=$(readlink -f /vmfs/volumes/0/45/disk.0)
Thu Oct 25 16:25:10 2012 [TM][I]: DST_READLN=$(readlink -f /vmfs/volumes/1/facab93d8b58eadfa190a0cde6c704a8)
Thu Oct 25 16:25:10 2012 [TM][I]:
Thu Oct 25 16:25:10 2012 [TM][I]: if [ \( -L /vmfs/volumes/0/45/disk.0 \) -a \( "$SRC_READLN" = "$DST_READLN" \) ] ; then
Thu Oct 25 16:25:10 2012 [TM][I]: echo "Not moving files to image repo, they are the same"
Thu Oct 25 16:25:10 2012 [TM][I]: else
Thu Oct 25 16:25:10 2012 [TM][I]: mv -f /vmfs/volumes/0/45/disk.0 /vmfs/volumes/1/facab93d8b58eadfa190a0cde6c704a8
Thu Oct 25 16:25:10 2012 [TM][I]: fi" failed: mv: cannot remove '/vmfs/volumes/1/facab93d8b58eadfa190a0cde6c704a8/disk.0': Is a directory
Thu Oct 25 16:25:10 2012 [TM][E]: Could not move image /vmfs/volumes/1/facab93d8b58eadfa190a0cde6c704a8
Thu Oct 25 16:25:10 2012 [TM][I]: ExitCode: 1
Thu Oct 25 16:25:10 2012 [TM][E]: Error executing image transfer script: Could not move image /vmfs/volumes/1/facab93d8b58eadfa190a0cde6c704a8
Thu Oct 25 16:25:10 2012 [DiM][I]: New VM state is FAILED
</pre>

onevm show disk section:
<pre>
DISK=[
CLONE="NO",
DATASTORE="default",
DATASTORE_ID="1",
DEV_PREFIX="hd",
DISK_ID="0",
IMAGE="ubuntu-vmdk",
IMAGE_ID="4",
PERSISTENT="YES",
READONLY="NO",
SAVE="YES",
SOURCE="/srv/cloud/one/var/datastores/1/facab93d8b58eadfa190a0cde6c704a8",
TARGET="hda",
TM_MAD="shared",
TYPE="FILE" ]
</pre>

$ onedatastore list
<pre>
ID NAME CLUSTER IMAGES TYPE TM
0 system - 0 - shared
1 default - 2 vmware shared
</pre>

Back