Unable to deploy OVF using vSphere Client when a HTTPS Proxy is configured with NO_PROXY
search cancel

Unable to deploy OVF using vSphere Client when a HTTPS Proxy is configured with NO_PROXY

book

Article ID: 414677

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • Unable to deploy OVF using vSphere client in vCenter Server 8.0.x when using an HTTPS Proxy Server with NO_PROXY.
  • Below Error message is seen for Import OVF package/Deploy OVF template in the vSphere client.
    Failed to deploy OVF package. Cause: A general system error occurred: Transfer failed: Error transferring file to https://example.com/nfc/############################/#######.vmdk: Connection reset, note that HTTP/s proxy is configured for the transfer.
  • Error in /var/log/vmware/vpxd.log:
    error vpxd[1408634] [Originator@6876 sub=Default opID=4####9-01] [VpxLRO] -- ERROR task-#######--  -- SCMSSLAAC3-CN1 -- ResourcePool.ImportVAppLRO: :vim.fault.OvfImportFailed
    --> Result:
    --> (vim.fault.OvfImportFailed) {
    -->    faultCause = (vmodl.fault.SystemError) {
    -->       faultCause = (vmodl.MethodFault) null,
    -->       faultMessage = (vmodl.LocalizableMessage) [
    -->          (vmodl.LocalizableMessage) {
    -->             key = "com.vmware.ovfs.ovfs-main.ovfs.transfer_failed",
    -->             arg = (vmodl.KeyAnyValue) [
    -->                (vmodl.KeyAnyValue) {
    -->                   key = "0",
    -->                   value = "Error transferring file to https://example.com/nfc/############################/#######.nvram: Connection reset, note that HTTP/s proxy is configured for the transfer"
    -->                }
    -->             ],
    -->             message = "Transfer failed: Error transferring file to https://example.com/nfc/############################/#######.nvram: Connection reset, note that HTTP/s proxy is configured for the transfer."
    -->          }
    -->       ],
    -->       reason = ""
    -->       msg = "Transfer failed: Error transferring file to https://example.com/nfc/############################/#######.nvram: Connection reset, note that HTTP/s proxy is configured for the transfer."
    -->    },
    -->    faultMessage = <unset>
    -->    msg = ""
    --> }
    --> Args:
    -->

     

    info vpxd[1408636] [Originator@6876 sub=vpxLro opID=5#####0] [VpxLRO] -- BEGIN lro-9458501 -- task-725687 -- vim.Task.setState -- #######-11cb-6088-679b-#######-23d4-a6a1-#######)
    [YYYY-MM-DDTHH:MM:SS] info vpxd[1500796] [Originator@6876 sub=vpxLro opID=6#####f] [VpxLRO] -- BEGIN lro-9458502 -- task-725687 -- vim.Task.setState -- #######-11cb-6088-679b-#######(#######-3fd5-23d4-a6a1-#######)
    [YYYY-MM-DDTHH:MM:SS] warning vpxd[1500796] [Originator@6876 sub=Vmomi opID=#######] VMOMI activation LRO failed; <<52741761-11cb-6088-679b-2659c7b0ec1a, <TCP '127.0.0.1 : 8085'>, <TCP '127.0.0.1 : 59258'>>, task-725687, vim.Task.setState, <vim.version.v8_0_3_0, internal, 8.0.3.0>, {stm: {<io_obj p:#######, h:116, <TCP '127.0.0.1 : 8085'>, <TCP '127.0.0.1 : 59254'>>, id: 25
    42073, state(in/out): 3/1}, session: <52741761-11cb-6088-679b-#######, <TCP '127.0.0.1 : 8085'>, <TCP '127.0.0.1 : 59258'>>, req: {POST, /sdk/vimService}}>, N3Vim5Fault12InvalidState9ExceptionE(Fault cause: vim.fault.InvalidState
    --> )
    --> [context]zKq7#################NgA=[/context]
    [YYYY-MM-DDTHH:MM:SS] info vpxd[1500796] [Originator@6876 sub=vpxLro opID=65752bbf] [VpxLRO] -- FINISH lro-9458502
    [YYYY-MM-DDTHH:MM:SS] error vpxd[1500796] [Originator@6876 sub=Default opID=65752bbf] [VpxLRO] -- ERROR lro-#######-- #######-11cb-6088-679b-#######(526e8744-3fd5-23d4-a6a1-#######) -- task-725687 -- vim.Task.setState: :vim.fault.InvalidState
    --> Result:
    --> (vim.fault.InvalidState) {
    -->    faultCause = (vmodl.MethodFault) null,
    -->    faultMessage = <unset>
    -->    msg = ""
    --> }
    --> Args:
    -->
    --> Arg state:
    --> "error"
    --> Arg result:
    -->
    --> Arg fault:
    --> (vim.fault.OvfImportFailed) {
    -->    faultCause = (vmodl.MethodFault) null,
    -->    faultMessage = <unset>
    -->    msg = ""
    --> }

 

Environment

vCenter server 8.x

Cause

This issue occurs when NO_PROXY= the /etc/sysconfig/proxy configuration file with NO_PROXY is not set properly.

Resolution

  1. SSH to the vCenter with root user
  2. Create a backup of the proxy file
    cp /etc/sysconfig/proxy /var/core
  3. Read the vcenter proxy file
    cat /etc/sysconfig/proxy
  4. Make sure the value localhost, 127.0.0.1 is at the beginning of the line followed by the wildcard entries.
    Example : NO_PROXY="localhost, 127.0.0.1, .*.example.com, 10.0.0.1/24"

    Sample


    Note: Use vi editor if required to edit the file

  5. Restart services with the command:
    service-control --stop --all && service-control --start --all

Additional Information