You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/06/20 20:41:58 UTC

[jira] [Commented] (VCL-928) Reference vmx file not saved during image capture if vmprofile.vmdisk = dedicated and repository is mounted on host

    [ https://issues.apache.org/jira/browse/VCL-928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15340358#comment-15340358 ] 

ASF subversion and git services commented on VCL-928:
-----------------------------------------------------

Commit 1749397 from arkurth@apache.org in branch 'vcl/trunk'
[ https://svn.apache.org/r1749397 ]

VCL-928
Fixed bug where vmx.reference file was not being created under certain vmprofile configurations.

> Reference vmx file not saved during image capture if vmprofile.vmdisk = dedicated and repository is mounted on host
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: VCL-928
>                 URL: https://issues.apache.org/jira/browse/VCL-928
>             Project: VCL
>          Issue Type: Bug
>          Components: vcld (backend)
>    Affects Versions: 2.4.2
>            Reporter: Andy Kurth
>            Assignee: Andy Kurth
>             Fix For: 2.5
>
>
> There's a corner case bug which can occur during a VMware image capture if vmprofile.vmdisk = dedicated, the vmprofile.repositorypath is populated, and the repository is mounted on the host.
> The VMware.pm::capture subroutine first determines if the .vmx and .vmdk files being used by the VM should be renamed or copied on the host to the eventual datastore path for the new image.  It only does this if vmprofile.vmdisk = shared or the repository is not mounted on the host:
> {noformat}
> if ($vmprofile_vmdisk =~ /(local|dedicated)/ && $repository_mounted_on_vmhost) {
>   # Leave files as-is and delete after capture
> }
> {noformat}
> The VM's .vmx file remains in its original form when this case is encountered.  Later on in the capture process, the .vmdk still residing in the VM's working directory is copied to the repository.  This step does not copy a vmx.reference file to the repository because the VM's .vmx file was not renamed earlier to match the image name:
> {noformat}
> VMware.pm:copy_vmdk|5925|reference vmx file not copied to vmdk directory because it does not exist:
> {noformat}
> The image capture succeeds but images fail to load if the captured VM was using a storage adapter different than the one chosen if the vmx.reference file does not exist.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)