[one-users] OpenNebula 3.8.3 Failed to Delete VM on ESXi Host

Tino Vazquez cvazquez at c12g.com
Tue Jul 16 09:11:25 PDT 2013


Hi Chen Xiang,

You are right , there are several bugs in the 3.8.3 VMFS drivers. I
recommend updating to 3.8.4 at least, and ideally to 4.0.1.

About the permissions problems, you should create an ESX user
'oneadmin' with the same UID as 'oneadmin' in the front-end.

Hope it helps,

-Tino
--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.c12g.com | @C12G | es.linkedin.com/in/tinova

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
"To" and "cc" box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at abuse at c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.


On Tue, Jul 16, 2013 at 4:48 PM,  <chenxiang at aquala-tech.com> wrote:
> I looked into the related source code in 4.0. It seems that the DSID
> problem was fixed in 4.0. How about permission problem?
>
> Can I simple overwrite the 3.8.4 version ~/var/remotes/tm/vmfs directory
> with the one from 4.0?
>
> Chen Xiang
>
>> Hi,
>>
>> I am running OpenNebula 3.8.3 with VMFS. However, I am not able to delete
>> the VM files from the ESXi Host, although the VM seems to be deleted from
>> OpenNebula.
>>
>> My setup is that I have an image DS 102, and a system DS 103. When trying
>> to delete a VM, I can see that OpenNebula is trying to delete the VM image
>> from DS 102 rather than 103. I look into ~/var/remotes/tm/vmfs/delete, and
>> manually change the DSID to 103 (this is not a good fix), and now
>> OpenNebula is trying to delete the VM images from DS 103, which is
>> correct. However, the delete script was not able to delete the files,
>> still!
>>
>> I look into ~/var/vms/$VMID/vm.log, and the log says that it was not able
>> to delete disk-flat.vmdk on the ESXi box.
>>
>> I look into /vmfs/volumes/103/$VMID/disk.0, and found that the two VMDK
>> files have rw permissions for root user and no permissions for others, and
>> other files have rw permissons for root user and r permission for group
>> members and guest.
>>
>> I log into the ESXi box, and was able to delete the files with root users.
>>
>> In ~/etc/vmwarerc I have the root username and password.
>>
>> What could be wrong? Do I miss some executable permissions on the ESXi
>> box?
>>
>> Please help.
>>
>> Chen Xiang
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



More information about the Users mailing list