on 02-13-2014 01:03 PM - edited on 03-25-2019 01:27 PM by ciscomoderator
Task Name | ISO Mounting and Unmounting onto VM Custom Task |
Description | The purpose of the ISO Mounting on VM is to mount the iso files on the Virtual Machine without using a physical drive. An ISO is generally a disk image which once mounted in your virtual machine you can open, extract, and use those files from virtual drive/CD without a physical disk. |
Prerequisites |
|
Compatible UCS Director Versions | UCSD 4.1.X.X |
Category | Virtualization |
Components | vSphere 5.x |
Instructions for Use:
Hi Rekha,
I'm having this error when mounting ISO in UCS Director version 4.1.0.2.
Oct 17, 2014 16:36:21 PHT Error occured at line # 67
Oct 17, 2014 16:36:21 PHT [Line#67] cdDeviceBacking.setDatastore(dsSummary.getDatastore());
Oct 17, 2014 16:36:21 PHT Handler failed with error - sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot call method 'getDatastore' of null (<Unknown source>#67) in <Unknown source> at line number 67, selectedContext=<None>
Oct 17, 2014 16:36:21 PHT Task #1 (ISO Mounting - test (custom_ADD CDROM For ISO Mounting WF)) failed after 0 seconds
Oct 17, 2014 16:36:21 PHT Input/Output values for Task #1 (ISO Mounting - test (custom_ADD CDROM For ISO Mounting WF)):
Regards,
Task is not able to find the datastore with provided datastore name. Please provide an existing datastore name
Hi Abhilash,
I just created a new workflow again and validated the datastore name where ISO file is located. The same error appeared after executing the workflow task.
Service Request ID: 793
Nov 04, 2014 14:43:05 PHT Request submitted
Nov 04, 2014 14:43:10 PHT Executing workflow item number 1
Nov 04, 2014 14:43:10 PHT Completed workflow item number 1, with status Completed
Nov 04, 2014 14:43:16 PHT Executing workflow item number 2
Nov 04, 2014 14:43:16 PHT Trigger context executeWorkFlowStep called
Nov 04, 2014 14:43:16 PHT Executing custom action ISO Mounting - test (custom_ADD CDROM For ISO Mounting WF)
Nov 04, 2014 14:43:16 PHT Executing custom action ISO Mounting - test (custom_ADD CDROM For ISO Mounting WF)
Nov 04, 2014 14:43:16 PHT Executing custom script for ADD CDROM For ISO Mounting WF
Nov 04, 2014 14:43:17 PHT input.ipaddress =172.17.1.100, username =*@vcloud , password =*
Nov 04, 2014 14:43:17 PHT VM testVM found
Nov 04, 2014 14:43:17 PHT vm Power state poweredOff
Nov 04, 2014 14:43:17 PHT No action required
Nov 04, 2014 14:43:17 PHT ds name : VPC01-STD01-LUN1 iso : w2K8R2STD
Nov 04, 2014 14:43:17 PHT Error occured at line # 67
Nov 04, 2014 14:43:17 PHT [Line#67] cdDeviceBacking.setDatastore(dsSummary.getDatastore());
Nov 04, 2014 14:43:17 PHT Handler failed with error - sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot call method 'getDatastore' of null (<Unknown source>#67) in <Unknown source> at line number 67, selectedContext=<None>
Nov 04, 2014 14:43:17 PHT Task #1 (ISO Mounting - test (custom_ADD CDROM For ISO Mounting WF)) failed after 0 seconds
Nov 04, 2014 14:43:17 PHT Input/Output values for Task #1 (ISO Mounting - test (custom_ADD CDROM For ISO Mounting WF)):
Nov 04, 2014 14:43:17 PHT [Local Input: VCenter IP = 172.17.1.100]
Nov 04, 2014 14:43:17 PHT [Local Input: User Name = *@vcloud]
Nov 04, 2014 14:43:17 PHT [Local Input: Password = **masked-value**]
Nov 04, 2014 14:43:17 PHT [Local Input: Virtual Machine Name = testVM]
Nov 04, 2014 14:43:17 PHT [Local Input: Datastore Name = VPC01-STD01-LUN1]
Nov 04, 2014 14:43:17 PHT [Local Input: ISO Name = w2K8R2STD]
Nov 04, 2014 14:43:17 PHT Completed workflow item number 2, with status Failed
Hi Russel,
Provide the datastore name that belongs to the VM.
The ISO file must be located on a datastore(local/shared datastore) accessible to the host where the VM is running.
Thanks
Abhilash
Hi Abhilash,
VM is located at shared datastore VPC01-STD01-LUN2 and the ISO file is
located on different shared datastore VPC01-STD01-LUN1.
Regards,
Hi Russel,
I gone through the script for ISO mounting. It will mount If the image file located in datastores accessible to the VM. Please try to mount having VM and image file in same datastore.
Thanks
Abhilash
Hi Abhilash,
Thanks for the help, mount was successful when I transferred it on the same
datastore. Also, I notice that credentials are visible in logs. How can I
hide it from other users?
Regards,
On Thu, Nov 6, 2014 at 10:15 PM, Abhilash Pujari <community@cisco.com>
Hi Russel,
Modify the custom task and change the ‘Input Field Type’ and ‘Map to Input Type’ as ‘Password’. It will mask the credential value.
Thanks
Abhilash
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: