/opt/vmware/vcloud-director/logs/vcloud-container-debug.log,
same error can be captured as below:2024-10-07 09:55:46,065 | WARN | task-service-activity-pool-93 | VAppUploadManagerImpl | Transfer session: b651b853-3b9b-4ab3-b012-f810b4cc5c22. Error during content upload: Validation failed for the OVF file you provided: Fatal: Line/char 467/92: cvc-minInclusive-valid: Value '-100' is not facet-valid with respect to minInclusive '0' for type 'unsignedShort'.
Fatal: Line/char 467/92: cvc-attribute.3: The value '-100' of attribute 'ovf:id' on element 'OperatingSystemSection' is not valid with respect to its type, 'unsignedShort'.. | requestId=8757ce82-05ca-45e5-8e6d-015d13a81266,request=POST https://<vcd hostname>/api/vdc/c8d5ecff-da0e-4a09-9380-0d1fd3fa0367/action/instantiateOvf,requestTime=1728266137726,remoteAddress=<client IP address>:50510,userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ...,accept=application/*+xml;version 38.0 vcd=38bd4824-b383-4aa1-9372-a6665e7162f5,task=d5adee6f-4a7d-47e0-a51f-fc8acf9b5980 activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:d5adee6f-4a7d-47e0-a51f-fc8acf9b5980)
com.vmware.vcloud.api.presentation.service.BadRequestException: Validation failed for the OVF file you provided: Fatal: Line/char 467/92: cvc-minInclusive-valid: Value '-100' is not facet-valid with respect to minInclusive '0' for type 'unsignedShort'.
Fatal: Line/char 467/92: cvc-attribute.3: The value '-100' of attribute 'ovf:id' on element 'OperatingSystemSection' is not valid with respect to its type, 'unsignedShort'..
at com.vmware.ssdc.backend.services.impl.VAppUploadManagerImpl.performFirstPhaseOvfValidation(VAppUploadManagerImpl.java:4257)
at com.vmware.ssdc.backend.services.impl.VAppUploadManagerImpl.validateAndParseOvfDescriptor(VAppUploadManagerImpl.java:3316)
at com.vmware.ssdc.backend.services.impl.VAppUploadManagerImpl.handleUploadOvfDescriptor(VAppUploadManagerImpl.java:2200)
at com.vmware.ssdc.backend.services.impl.VAppUploadManagerImpl.handleUploadBody(VAppUploadManagerImpl.java:2082)
at com.vmware.ssdc.backend.services.impl.VAppUploadManagerImpl.handleUpload(VAppUploadManagerImpl.java:1979)
at com.vmware.ssdc.backend.services.impl.VAppUploadManagerImpl.executeTask(VAppUploadManagerImpl.java:5464)
'ovf:id' on element 'OperatingSystemSection' in filename.ovf
file is not a unsignedShort number . e.g. -100 in this case.
It is recommended to contact OVA/OVF subscriber to correct the "ovf:id".
Below procedure can be applied as a workaround
Procedure:
tar -xvf filename.ova
filename.ovf
file and search the content below, change "ovf:id
" from -100 to invalid integer number, referring to the table in the reference documentation below: <OperatingSystemSection ovf:id="-100" ovf:version="1" vmw:osType="other3xLinux64Guest">
<Info>Guest Operating System</Info>
<Description>Photon OS</Description>
</OperatingSystemSection>
tar -cvf filename.ova filename.ovf filename.vmdk filename.mf