Updates:
serialize.py
- Added vim.vm.BootOptions class to return readable values for that object. (@jschoewe)
Updates:
vm_bestfit
- Added logic to account for scenario where there is more then one datacenter. (@bishopbm1)
Fixes:
login
- Cooking based authentication is deprecated, switched to header authentication (@dsbibby)
Updates:
test
- Added tests for login method and additional failing tests. (@bishopbm1)
Changed action:
vsphere.get_vms
- Added option to get VMs with a list of UUIDs. Also changed MOID lookup to loop through all VMs instead of returning the first one in case any duplicates were found
Fixes:
- Updated all actions to work with Python 3
vm_snapshots_delete
- This action was working as expected before v1.0.1. If no snapshots were found on a VM then we need to skip errors so the rest of the snapshots from other VMs still get deletedget_vmconsole_urls
- Fixed bug where if vsphere input wasn't passed the default vsphere connection from the config wasn't getting found
Addition:
vm_snapshots_delete
- Replaced continue statement with exception handling which is necessary so that error will not be skipped when run in production (non-debug).
- Drop Python 2.7 support
Fixes:
- Fixed bug in
vsphere.tag_*_bulk
where it was erroring if it found no bulk objects under the query object (example if a Cluster had no VMs in it).
Contributed by Nick Maludy (@nmaludy Encore Technologies).
Additions:
- Added lots of new back-end API functionality to the
vmwarelib.tagging.VmwareTagging
interface. - Added new
vsphere.tag_attach_bulk
action to attach a tag to a bulk set of resources. Primary usecase is tagging all VMs in a cluster dynamically. - Added new
vsphere.tag_detach_bulk
action to detach a tag from a bulk set of resources. Primary usecase is remoave a tag from all VMs in a cluster dynamically.
Contributed by Nick Maludy (@nmaludy Encore Technologies).
Changed action:
vsphere.tag_attach_or_create
- Added DistributedVirtualPortgroup as a possible object type to be used.vsphere.custom_attr_assign
- Added DistributedVirtualPortgroup as a possible object type to be used.
Contributed by Bradley Bishop (Encore Technologies).
Added new action:
vsphere.cluster_get
- Retrieve a list of clusters with summary information and an ID from vCentervsphere.datacenter_get
- Retrieve a list of datacenters with configuration information and an ID from vCentervsphere.template_get
- Retrieve a list of templates with summary information and an ID from vCenter
Changed action:
vsphere.datastore_get
- Fixed action to allow passing ids or names and still work properly. Fixed duplicate check so its working now and the same item is not added twice to the list when specifing name or id.vsphere.network_get
- Fixed action to allow passing ids or names and still work properly. Fixed duplicate check so its working now and the same item is not added twice to the list when specifing name or id.vsphere.get_tags_from_objects
- Fixed action to handle tag categories that can have multiple values. Fixed duplicate check so its working now and the same item is not added twice to the list when specifing name or id.vsphere.vm_hw_basic_build
- Converted from Mistral workflow to Orquesta workflow
Contributed by Bradley Bishop (Encore Technologies).
Added new action:
vsphere.network_get
- Retrieve a list of networks with summary information and an ID from vCenter
Changed action:
vsphere.datastore_get
- Updated the action to include the ID of the datastore in the return.vsphere.affinity_rule_create
- Updated the action to return the name of the hosts that were included in the rule.
Contributed by Bradley Bishop (Encore Technologies).
- Force release to get latest tags on repo
Added new action:
vsphere.get_tags_from_objects
- Retrieves all the tags from an object tags are returned in a dictionary ofcategory_name: tag_name
Changed action:
vsphere.vm_bestfit
- Addeddatastore_filter_strategy
input that is defaulted toexclude_matches
which is the current behavior. This gives the user more flexibility as to how they want to filter the returned datastores.
Contributed by Bradley Bishop (Encore Technologies).
Added new actions:
vsphere.datastore_get
- Retrieve a list of datastores with summary information from vCentervsphere.get_tag_value_from_objects
- Retrieve tag value on a list of object_ids
Contributed by Bradley Bishop (Encore Technologies).
Added vim.vm.device.VirtualLsiLogicController object to vmwarelib/serialize.py which was needed to get the full result from vsphere.vm_hw_scsi_controllers_get
Contributed by John Schoewe (Encore Technologies).
Added new actions:
vsphere.vm_hw_hdds_get
- Retrieve a list of HDD information from the given VMvsphere.vm_hw_scsi_controllers_get
- Retrieve a list of SCSI controllers on the given VM
Contributed by John Schoewe (Encore Technologies).
Added new action:
vsphere.vm_snapshots_get
- Returns detailed information about the snapshots.
Contributed by Lionel Seydoux (SPIE ICS).
Updated host_get action to get all hosts if not are given. Added tests for action.
Contributed by Bradley Bishop (Encore Technologies).
Added action and tests to rename a VM
Contributed by Bradley Bishop (Encore Technologies).
Fixed bug in action vsphere.vm_snapshots_delete
. Where if there were special charaters
in the snapshot name vmware automatically encodes them which was causing the action to fail.
Contributed by Bradley Bishop (Encore Technologies).
Fixed bug in action vsphere.custom_attr_get
. It now ignores datastores that are in
"maintenance mode" if the datastore name is set to "automatic".
Contributed by Nick Maludy (Encore Technologies).
Added new action:
vsphere.custom_attr_get
- Return the value of the given Custom Attribute on an object
Contributed by John Schoewe (Encore Technologies).
Added new action:
vsphere.tag_id_get
- Retrieves the ID of a tag with the given category and name
Modified action:
vsphere.get_objects_with_tag
- Added ability to get objects with category and tag names
Contributed by John Schoewe (Encore Technologies).
Modified action:
vsphere.get_vms
- Added VM operating systems to the result
Contributed by John Schoewe (Encore Technologies).
- Minor linting fixes triggered by updated flake8 versions in CI
Added new action:
vsphere.vm_networks_get
- Retrieve a list of network names that the given VM is on
Contributed by John Schoewe (Encore Technologies).
Added new action:
vsphere.vm_config_info_get
- Retrieve Config Info for given Virtual Machines
Contributed by John Schoewe (Encore Technologies).
Added new actions:
vsphere.vm_snapshots_delete
- Removes any snapshots older than the specified age. Ignores any snapshots with names that match the given rexex patternsvsphere.vm_bestfit
- Determines the best host and datastore to provision a new VM to on a given cluster
Contributed by John Schoewe (Encore Technologies).
Updated actions:
vsphere.get_moid
- Returns an error if objects aren't found in vSphere
Contributed by John Schoewe (Encore Technologies).
Added new actions:
vsphere.get_tag_value_from_object
- Return the value of a tag with a given object ID and categoryvsphere.vm_resource_pool_get
- Return the MOID of a given VM's containing resource pool
Contributed by John Schoewe (Encore Technologies).
Added new tagging.py actions file to vmwarelib.
Added new actions:
vsphere.tag_attach_or_create
- Attach a tag to a given object and create the tag and category if they don't existvsphere.tag_category_create
- Create a vsphere tag categoryvsphere.tag_category_delete
- Delete a tag category from vSpherevsphere.tag_category_list
- List all tag categories from vSpherevsphere.tag_create
- Create a vSphere tag with the given categoryvsphere.tag_delete
- Delete a tag from vSpherevsphere.tag_list
- List all tags from a given category or all tags if no category is givenvsphere.custom_attr_assign
- Assign a custom attribute in vSpherevsphere.custom_attr_assign_or_create
- Assign a custom attribute in vSphere and create one if it doesn't exist
Added get_vim_type function to vmwarelib/actions.py
Updated actions to use vmwarelib/tagging functions:
vsphere.get_objects_with_tag
vsphere.get_tags_on_object
Renamed action:
vsphere.tags_attach_to_object
->vsphere.tags_attach_by_id
Contributed by John Schoewe (Encore Technologies).
Added new action:
vsphere.vm_tools_options_update
- Update VM tools information
Updated action:
-
vsphere.vm_check_tools
- returns Tools Config as well as tools statusContributed by Bradley Bishop (Encore Technologies).
Added new actions:
vsphere.custom_attr_assign
- Assign a custom attribute to a given objectvsphere.tags_attach_to_object
- Attach a list of tags to a given object
Contributed by John Schoewe (Encore Technologies).
- guest_process_run was missing the workflow file
-
Unit tests fixes for python3 updates
Contributed by Nick Maludy (Encore Technologies).
- Disable flake8 on W503 vs W504 line
- Minor linting changes
Added new actions:
vsphere.affinity_rule_delete
- Deletes an affinity rulevsphere.affinity_rule_create
- Creates an affinity rule and sets the proper informaiton
Contributed by Bradley Bishop (Encore Technologies).
- Bumped version to fix tagging issue. No code changes.
- Added a method in vmwarelib/actions.py to connect to the REST API.
- Added new actions:
vsphere.get_objects_with_tag
- return a list of objects with a given vmware tagvsphere.get_tags_on_object
- return a list of vmware tags on a given object
Contributed by John Schoewe (Encore Technologies).
Added a new action actions:
vsphere.host_get
- retrieves the Summary information for an ESX host.vsphere.host_network_hints_get
- retrieves the Network Hints for an ESX host.vsphere.vm_guest_info_get
- retrieves the Guest information for a VM.vsphere.vm_runtime_info_get
- retrieves the Runtime information for a VM.
Contributed by Nick Maludy (Encore Technologies).
Minor linting fixes
Enabled to specify IP Address for each NetworkAdapters in the 'vm_create_from_template' action
Fixed the problem to looking over the task state checking in the action library
Changed to be able to handle all vim Objects that pyvmomi prepared
Fixed non-unique position parameters
Updated action runner_type
from run-python
to python-script
Removed config.yaml
, and updated README to remove references to legacy config support. Pack already supports config.schema.yaml
Minor linting errors
Addition of DataCenter imput field for VM creation action and workflow. Fall back continues to function as present Although this should be provided if Multiple Datacenters are under a single Vsphere instance.
Update the TaskInfoSensor
to enable handling uncompleted Tasks.
Update config.schema.yaml to support any name for vcenters
Added schema file to apply the configuration schema to this pack.
Added 'taskinfo_sensor' to monitor the tasks which is executed on specified vSphere environment.
Added 'get_moid' action that enables to get object-id named MOID(Managed Object Reference ID) which is the identifier that uniquely identifies an object in vSphere from object-name and object-type.
Added global ssl_verify configuration option to disable SSL certificate verification when connecting to vSphere servers.
Added custom JSON Encoder class to serialize VM summary (vsphere.vm_hw_details_get
) output, hence, allowing results to be a list of dicts instead of strings. Makes it easier to access the results later in the workflows or action chains.
Update nic actions to factor in Distributed Port Groups. When setting a network the DPG will be used over a standard port group of the same name.
Updates to actions to factor in ST2 V2 changes forcing string conversions for output and publish variable syntax changes. vm_basic_build workflow introduction of 12 seconds delay between elements to support parrallel action load balancing
Improved error message around Connection/Configuration details. Addition of item get action.
Introduction of Multi Endpoint Configuration.
Clean up of duplicate actions. Addition of moid retrieval function.
Addition of vm_hw atomic actions to create basic Virtual Machine.