vcl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (VCL-1093) vSphere_SDK.pm:vm_unregister - failed to unregister VM:
Date Fri, 01 Feb 2019 17:28:00 GMT

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

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

Commit 38e25f232a33d1bd32f77cfc2e9f4d5712d5cfad in vcl's branch refs/heads/develop from Andrew
Kurth
[ https://gitbox.apache.org/repos/asf?p=vcl.git;h=38e25f2 ]

VCL-1093
Added code contributed by [~junaid.ali] check to make sure VM's power is off in VMware.pm::delete_vm
before attempting to unregister.

Made minor regex change in VIM_SSH.pm::vm_unregister to check for VM power state 'not off'
rather than 'is on' to prevent possible problems if something like 'suspended' was returned.

Added code to vSphere_SDK.pm::vm_unregister to check VM power state before attempting to unregister
it. This aligns it with VIM_SSH.pm.


> vSphere_SDK.pm:vm_unregister - failed to unregister VM:
> -------------------------------------------------------
>
>                 Key: VCL-1093
>                 URL: https://issues.apache.org/jira/browse/VCL-1093
>             Project: VCL
>          Issue Type: Bug
>          Components: vcld (backend)
>    Affects Versions: 2.5
>            Reporter: Junaid Ali
>            Priority: Major
>             Fix For: 2.5.1
>
>         Attachments: 0001-Make-sure-VM-is-powered-off-before-trying-to-unregis.patch
>
>
> When VCL Daemon tries to reload an image, it tries to remove all existing vms by unregistering
them. If the VM is already powered on, this leads to below error:
>  
> |32180|16|16|reload|vSphere_SDK.pm:vm_unregister|373| 2018-04-09 10:44:36|32180|16|16|reload|vSphere_SDK.pm:vm_unregister|373|failed
to unregister VM: /vmfs/volumes/vmfs_vcl_vmdiff_1/vcl-u-vm-1_10-v0/vcl-u-vm-1_10-v0.vmx, error:
> |32180|16|16|reload|vSphere_SDK.pm:vm_unregister|373| *SOAP* Fault:
> |32180|16|16|reload|vSphere_SDK.pm:vm_unregister|373| -----------
> |32180|16|16|reload|vSphere_SDK.pm:vm_unregister|373| Fault string: The attempted operation
cannot be performed in the current state (Powered on).
> |32180|16|16|reload|vSphere_SDK.pm:vm_unregister|373| Fault detail: InvalidPowerStateFault
> |32180|16|16|reload|vSphere_SDK.pm:vm_unregister|373| ( 0) vSphere_SDK.pm, vm_unregister
(line: 373)
> |32180|16|16|reload|vSphere_SDK.pm:vm_unregister|373| (-1) VMware.pm, delete_vm (line:
5842)
> |32180|16|16|reload|vSphere_SDK.pm:vm_unregister|373| (-2) VMware.pm, remove_existing_vms
(line: 1646)
> |32180|16|16|reload|vSphere_SDK.pm:vm_unregister|373| (-3) VMware.pm, load (line: 688)
> |32180|16|16|reload|vSphere_SDK.pm:vm_unregister|373| (-4) new.pm, reload_image (line:
588)
> |32180|16|16|reload|vSphere_SDK.pm:vm_unregister|373| (-5) new.pm, process (line: 275)
> |32180|16|16|reload|vSphere_SDK.pm:vm_unregister|373| (-6) vcld, make_new_child (line:
601)
>  
> The current patch adds support for powering the VM off before trying to unregister it.
It has been tested with vSphere 6.5 and is working fine.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message