vmware/pyvmomi-community-samples

Sample: place a file on a datastore

Open

#38 geöffnet am 28. Mai 2014

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (914 Forks)batch import
help wantedlow hanging fruitsample request

Repository-Metriken

Stars
 (972 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Demonstrate how to place an arbitrary file in an arbitrary location on an arbitrary datastore. Shows how to interact with datastores using pyVmomi API and should include discussion and solutions for keep-alive problems when dealing with very large file transfers.

Issues to show resolutions to:

  • File transport occurs on a separate session from API method invocation
  • Network conditions are not always favorable, how to handle interruptions
  • How to detect file corruption or incomplete transfer
  • How to detect failed file transfers due to permissions issues.

See also: http://www.virtuallyghetto.com/2014/06/how-to-efficiently-transfer-files-to-datastore-in-vcenter-using-the-vsphere-api.html

Contributor Guide