Symptoms:
1. Deployment of an OVF/OVA template from content library fails with "vim.fault.Timedout" error.
Timeout error is seen in vpxd.log
-- VM_NAME -- ResourcePool.ImportVAppLRO: vim.fault.Timedout:
--> Result:
--> (vim.fault.Timedout) {
--> faultCause = (vmodl.MethodFault) null,
--> faultMessage = <unset>
--> msg = ""
--> }
--> Args:
-->
Error is seen in cls.log
ImportSessionActivity | OVF import session ########-####-####-####-########78bb failed with internal error.
(vim.fault.Timedout) {
faultCause = null,
faultMessage = null
}
2. Importing a vAPP/VM to content lirary fails with "vim.fault.Timedout" error.
Timeout error is seen in vpxd.log
--> VM_NAME -- VirtualMachine.ExportVmLRO: vim.fault.Timedout:
--> Result:
--> (vim.fault.Timedout) {
--> faultCause = (vmodl.MethodFault) null,
--> faultMessage = <unset>
--> msg = ""
--> }
--> Args:
Timeout error in cls.log
ExportSessionActivity | OVF export session ########-####-####-####-########ef96 terminated abnormally.
(vim.fault.Timedout) {
faultCause = null,
faultMessage = null
Long running operations by Content Library, which require usage of HttpNfcLease sessions, are encountering cleaned up sessions.
Content Library requires the use of HttpNfcLease in certain operations, like exporting a Virtual Machine to Content Library, or while deploying a Content Library managed OVF item. However, since the actual data transfer occurs out of band and not on the HttpNfcLease channel, no actual data transfer is detected on the HttpNfcLease channel, thus causing the channel to expire and get cleaned up, which in turn causes timeout on the vCenter operation.
By default vCenter Server renews the HttpNfcLease session on Vpxa every 20 minutes.
If the transfers involving Content Library take more than the default 20 minutes, the operation would encounter this timeout error.
Note: These steps are only available in vCenter Server 7.0 Update 3f or newer versions. If you are using an older version of vCenter Server, please update to 7.0 Update 3f (or newer), before following the steps below.
Units for httpNfcTicket.renewalPeriod are now in seconds. Originally they were in Micro-seconds.
In order to avoid these timeout errors, you can extend the timeout by updating the following vpxd properties:
Setting | Description |
---|---|
httpNfcTicket.renewalPeriod | Allows setting the length of the httpNFClease renewal period in seconds. At the end of this period, vpxa will check if there has been any progress in transferring files related to the httpNFClease. If there was progress, the lease's ticket will be renewed. If there wasn't, the lease's ticket will be expired. The standard renewal period is 20 minutes. |
httpNfcTicket.timeoutPeriodMinute | This is NFC ticket expiration period in minutes, which by default is 30 minutes on Vpxa. Vpxa is where tickets are maintained/registered and optionally created. Vpxd creates the ticket and registers it on Vpxa through ticket manager. The lease(ticket) timeout period in Vpxa needs to be configurable in vpxd config option so the user can change it based on application and also they can both be in sync. |
Connect to VCSA using SSH session with root
Take a backup of the file /etc/vmware-vpx/vpxd.cfg
# cp /etc/vmware-vpx/vpxd.cfg /etc/vmware-vpx/vpxd.old
Confirm vpxd is not running / Stop vpxd using:
# service-control --stop vmware-vpxd
Edit vpxd.cfg
# vi vpxd.cfg
Add the following entries to the file inside the <config> tag:
<config>
<httpNfcTicket>
<timeoutPeriodMinute>60</timeoutPeriodMinute>
<renewalPeriod>3600</renewalPeriod>
</httpNfcTicket>
Note: httpNfcTicket is directly under <config> section as shown above, in the config file.
This section is not under <vpxd> or other sections.
Save the file and restart vpxd using:
# service-control --start vmware-vpxd