Error "A specified parameter was not correct: - A specified parameter was not correct" when importing the OVF to VMware Cloud Director catalog
search cancel

Error "A specified parameter was not correct: - A specified parameter was not correct" when importing the OVF to VMware Cloud Director catalog

book

Article ID: 380234

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • When importing the OVF to VMware Cloud Director (VCD) catalog the import fails with the error below:

    [#######-####-####-#######72b5 ] The operation cannot be performed because the argument is invalid. A specified parameter was not correct: - A specified parameter was not correct:
    Debug information:
    com.vmware.ssdc.library.exceptions.VimInvalidArgumentException: The operation cannot be performed because the argument is invalid. A specified parameter was not correct: at com.vmware.ssdc.library.vim.LmVim.Convert(LmVim.java:262)

  • On /opt/vmware/vcloud-director/logs/vcloud-container-debug.log you see the entry similar to the one reported below below:

    2024-10-16 07:20:46,024 | ERROR    | task-service-activity-pool-3273 | FutureUtil                     | Failed to create VM in Storage Fabric | requestId=#######-####-####-#######72b5,request=POST https://cons
    ole.monacocloud.app/api/catalog/#######-####-####-#######cbca/action/upload,requestTime=1729062920498,remoteAddress=##.##.##.##:44937,userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/201...,ac
    cept=application/*+xml;version 39.0.0-alpha vcd=#######-####-####-#######5fcc,task=#######-####-####-#######3077 activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:#######-####-####-#######3077)
    com.vmware.ssdc.library.exceptions.VimInvalidArgumentException: The operation cannot be performed because the argument is invalid.. A specified parameter was not correct:
            at com.vmware.ssdc.library.vim.LmVim.Convert(LmVim.java:262)
            at com.vmware.ssdc.library.vim.LmVim.Convert(LmVim.java:498)
            at com.vmware.vcloud.val.internal.impl.ImportVAppFromOvfActivity$ImportOvfToVcPhase.initiateImportFromOvf(ImportVAppFromOvfActivity.java:854)
            at com.vmware.vcloud.val.internal.impl.ImportVAppFromOvfActivity$ImportOvfToVcPhase.invoke(ImportVAppFromOvfActivity.java:243)
            at com.vmware.vcloud.activity.executors.ActivityRunner.runPhase(ActivityRunner.java:175)
            at com.vmware.vcloud.activity.executors.ActivityRunner.run(ActivityRunner.java:112)
            at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
            at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
            at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
            at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
            at java.base/java.lang.Thread.run(Thread.java:829)
    Caused by: (vmodl.fault.InvalidArgument) {
       faultCause = null,
       faultMessage = null,
       invalidProperty = null
    }
            at jdk.internal.reflect.GeneratedConstructorAccessor10306.newInstance(Unknown Source)
            at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
            at java.base/java.lang.Class.newInstance(Class.java:584)
            at com.vmware.vim.vmomi.core.types.impl.ComplexTypeImpl.newInstance(ComplexTypeImpl.java:174)
            at com.vmware.vim.vmomi.core.types.impl.DefaultDataObjectFactory.newDataObject(DefaultDataObjectFactory.java:25)
            at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.ComplexStackContext.<init>(ComplexStackContext.java:30)
            at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.StackContextFactory.newContext(StackContextFactory.java:113)
            at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.FaultStackContext.getNestedContext(FaultStackContext.java:86)
            at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$UnmarshallContext.beginElement(UnmarshallerImpl.java:365)
            at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$UnmarshallContext.parse(UnmarshallerImpl.java:274)
            at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$UnmarshallContext.parse(UnmarshallerImpl.java:227)
            at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$UnmarshallContext.unmarshall(UnmarshallerImpl.java:210)
            at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:80)
            at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:74)
            at com.vmware.vim.vmomi.client.common.impl.ReturnvalStackContext.setValue(ReturnvalStackContext.java:45)
            at com.vmware.vim.vmomi.client.common.impl.ResponseUnmarshaller.processNextElement(ResponseUnmarshaller.java:127)
            at com.vmware.vim.vmomi.client.common.impl.ResponseUnmarshaller.unmarshal(ResponseUnmarshaller.java:70)
            at com.vmware.vim.vmomi.client.common.impl.ResponseImpl.unmarshalResponse(ResponseImpl.java:284)
            at com.vmware.vim.vmomi.client.common.impl.ResponseImpl.setResponse(ResponseImpl.java:231)
            at com.vmware.vim.vmomi.client.http.impl.HttpExchangeBase.parseResponse(HttpExchangeBase.java:271)
            at com.vmware.vim.vmomi.client.http.impl.HttpExchange.invokeWithinScope(HttpExchange.java:54)
            at com.vmware.vim.vmomi.client.http.impl.TracingScopedRunnable.run(TracingScopedRunnable.java:24)
            at com.vmware.vim.vmomi.client.http.impl.HttpExchangeBase.run(HttpExchangeBase.java:57)
            at com.vmware.vcloud.vmomi.client.http.impl.HttpProtocolBindingBase.executeRunnable(HttpProtocolBindingBase.java:229)
            at com.vmware.vcloud.vmomi.client.http.impl.HttpProxyProtocolBindingImpl.send(HttpProxyProtocolBindingImpl.java:202)
            at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl$CallExecutor.sendCall(MethodInvocationHandlerImpl.java:693)
            at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl$CallExecutor.executeCall(MethodInvocationHandlerImpl.java:674)
            at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.completeCall(MethodInvocationHandlerImpl.java:371)
            at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.invokeFetch(MethodInvocationHandlerImpl.java:347)
            at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.invoke(MethodInvocationHandlerImpl.java:191)
            at com.sun.proxy.$Proxy1086.getError(Unknown Source)
            at com.vmware.vcloud.val.internal.impl.ImportVAppFromOvfActivity$ImportOvfToVcPhase.initiateImportFromOvf(ImportVAppFromOvfActivity.java:818)
            ... 8 more

  • In vCenter you can see the task "Deploy OVF template" failed with the error below:

    A specified parameter was not correct

  • The vpxd.log and the vpxa.log on the ESXi host don't give info on what the invalid fault argument is.

  • On the hostd.log we see the entry below when searching for the VCD request ID of the failed task:
     
    2024-10-21T11:44:25.696Z error vpxd[06913] [Originator@6876 sub=Default opID=vcd-#######-####-####-#######72b5;activity=urn:uuid:#######-####-####-#######40b9-32-01-01-01] [VpxLRO] -- ERROR lro-2113405 --  --  -- VmprovWorkflow: :vmodl.fault.InvalidArgument
    --> Result:
    --> (vmodl.fault.InvalidArgument) {
    -->    faultCause = (vmodl.MethodFault) null,
    -->    faultMessage = <unset>,
    -->    invalidProperty = <unset>
    -->    msg = "A specified parameter was not correct: "
    --> }
    --> Args:
    -->

    AND

    2024-10-21T11:44:25.448Z Er(163) Hostd[263369]: [Originator@6876 sub=Default opID=vcd-#######-####-####-#######72b5;activity=urn:uuid:#######-####-####-#######40b9-32-01-01-01-31-311c sid=52da842e user=vpxuser:VSPHERE.LOCAL\Administrator] Unable to convert VIM value 'default' of type 'Vim::Vm::DefaultPowerOpInfo::PowerOpType' to Vigor type 'PowerStatePowerType'
    This powerOpInfo is a Config parameter in the OVF:
          <vmw:Config ovf:required="false" vmw:key="powerOpInfo.powerOffType" vmw:value="default"/>
          <vmw:Config ovf:required="false" vmw:key="powerOpInfo.resetType" vmw:value="default"/>
          <vmw:Config ovf:required="false" vmw:key="powerOpInfo.suspendType" vmw:value="soft"/>

Environment

VMware Cloud Director 10.x

Cause

In the OVF descriptor file the "vmw:value" is "soft" or "hard" and not "default".

Resolution

 

    1. Open the OVF descriptor and identify the below lines:
            <vmw:Config ovf:required="false" vmw:key="powerOpInfo.powerOffType" vmw:value="default"/>
            <vmw:Config ovf:required="false" vmw:key="powerOpInfo.resetType" vmw:value="default"/>

    1. Edit the "default" value to "soft" or "hard" as reported below :

            <vmw:Config ovf:required="false" vmw:key="powerOpInfo.powerOffType" vmw:value="<soft OR hard>"/>
            <vmw:Config ovf:required="false" vmw:key="powerOpInfo.resetType" vmw:value="<soft OR hard>"/>