The Oslo VMware library provides common VMware-related utilities and API interaction patterns for OpenStack projects. It wraps the pyVmomi library for vSphere API access, offering simplified authentication, session management, and operations like VM creation, datastore management, and network configuration. Current version 4.9.0 requires Python >=3.10. Release cadence is tied to OpenStack releases, typically one per cycle.
pip install oslo.vmwareVerified import paths — ran on the pinned version, not inferred.
Initialize a VMware API session using environment variables for credentials. Replace VSPHERE_HOST, VSPHERE_USER, VSPHERE_PASSWORD with actual values.
Replace 'from oslo.vmware import ...' with 'from oslo_vmware import ...'.
Upgrade Python to 3.10 or later.
Replace 'insecure=True' with 'ca_file="/path/to/ca.crt"' or set the corresponding environment variable.
Check that environment variables are defined or provide arguments to VMwareAPISession.