vmware/pyvmomi-community-samples

deploy_ovf.py / cannot deploy if datastore is member of a cluster datastore

Open

#565 aperta il 12 apr 2019

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Python (914 fork)batch import
help wanted

Metriche repository

Star
 (972 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

./deploy_ovf.py \
  -s vcenter -u username -v Templates -f template.ovf \
  --cluster_name cluster 
  --datastore_name DATASTORE
Unable to find object by the name of DATASTORE in list:
['host:datastore1', 'DATASTORE_CLUSTER']

If i specify the datastore cluster:

./deploy_ovf.py \
  -s vcenter -u username -v Templates -f template.ovf \
  --cluster_name cluster 
  --datastore_name DATASTORE_CLUSTER
Traceback (most recent call last):
  File "./deploy_ovf.py", line 221, in <module>
    exit(main())
  File "./deploy_ovf.py", line 194, in main
    spec_params)
  File "/usr/lib/python2.7/site-packages/pyVmomi/VmomiSupport.py", line 580, in <lambda>
    self.f(*(self.args + (obj,) + args), **kwargs)
  File "/usr/lib/python2.7/site-packages/pyVmomi/VmomiSupport.py", line 385, in _InvokeMethod
    list(map(CheckField, info.params, args))
  File "/usr/lib/python2.7/site-packages/pyVmomi/VmomiSupport.py", line 915, in CheckField
    raise TypeError('Required field "%s" not provided (not @optional)' % info.name)
TypeError: Required field "ovfDescriptor" not provided (not @optional)

Guida contributor