vmware/pyvmomi-community-samples

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

Open

#565 ouverte le 12 avr. 2019

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Python (914 forks)batch import
help wanted

Métriques du dépôt

Stars
 (972 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

./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)

Guide contributeur