Well the problem is that during my custom task is not doing a vmware task. So the VM will not be locked. I am creating a Custom Task that is associated with a VM object. I start the task and it...
See more...
Well the problem is that during my custom task is not doing a vmware task. So the VM will not be locked. I am creating a Custom Task that is associated with a VM object. I start the task and it says 'In Progress'. Then I delete the VM that the Custom Task is associated with and can no longer update the Custom Task. So I have created an orphaned Custom Task. To prevent this I was going to prevent the VM from being deleted/removed while I am running a custom task on it. I don't think using permissions is going to work in this case. I only want that one VM to be locked and I want it to be locked for every user that has access to that vCenter. I also only want it locked during the Custom Task. I have not used permissions but is it possible to do this ?
I want the user to be able to delete/remove the VM. I just don't want them to be able to do it when i am running a task on it. Example: If you do a clone on a VM. It changes the VM ...
See more...
I want the user to be able to delete/remove the VM. I just don't want them to be able to do it when i am running a task on it. Example: If you do a clone on a VM. It changes the VM you are cloning to not allow you to delete or remove it until the clone has finished.
I am trying to find out if there is a way to prevent a VM from being 'Removed from Inventory' or 'Delete from Disk'. When I am running my code on a VM i don't want the user to be able to delete...
See more...
I am trying to find out if there is a way to prevent a VM from being 'Removed from Inventory' or 'Delete from Disk'. When I am running my code on a VM i don't want the user to be able to delete it. I have a CustomTask associated with the VM and there is a field in TaskInfo called locked. Does anyone know how to set the locked field or even if that will fix my problem.
I solved the problem and just wanted to post what it was incase anyone else runs into this. I was registering the ExtensionTaskTypeInfo one at a time as was need by my plug-in. I changed...
See more...
I solved the problem and just wanted to post what it was incase anyone else runs into this. I was registering the ExtensionTaskTypeInfo one at a time as was need by my plug-in. I changed this to registering them all at once the first time the plug-in is loaded. Now all the labels show up correctly.
I am trying to get some custom tasks working in vSphere using C#. I have followed this thread http://communities.vmware.com/thread/214428 in setting up my custom tasks. I am seeing a lot of XXX...
See more...
I am trying to get some custom tasks working in vSphere using C#. I have followed this thread http://communities.vmware.com/thread/214428 in setting up my custom tasks. I am seeing a lot of XXX com.package.label not found XXX in the Recent tasks in vSphere client. It seems to do this the first time a execute a custom task. If i execute the same custom task again it will display the proper label. If the label are showing up properly and i close and reopen the vSphere client some of them change to XXX com.package.label not found XXX. Any ideas on how to get the labels to show properly everytime? Thanks.