Skip to content

Releases: vmware/govmomi

v0.36.1

12 Mar 17:46
Compare
Choose a tag to compare

Release v0.36.1

Release Date: 2024-03-12

🐞 Fix

  • [edf70dc] lookup client to use envoy sidecar url if enabled

🧹 Chore

  • [cc533e4] Update version.go for v0.36.1

⚠️ BREAKING

📖 Commits

  • [cc533e4] chore: Update version.go for v0.36.1
  • [2799634] Add support for SHA256 thumbprint based vCenter authentication
  • [edf70dc] fix: lookup client to use envoy sidecar url if enabled

v0.36.0

07 Mar 13:57
Compare
Choose a tag to compare

Release v0.36.0

Release Date: 2024-03-07

🐞 Fix

  • [fd3840e] vcsim Fetch method causes runtime panic when property is not set (#3337)
  • [4254c59] Update summary.config.hwVersion in simulator
  • [44610f4] govc: use session KeepAlive in library.export command (#3356)

💫 vcsim (Simulator)

  • [c46ad1a] Enhanced sim support for upgrade VM

🧹 Chore

  • [ef3a3d6] Update version.go for v0.36.0
  • [01a069d] bump Go versions
  • [08d2fd0] Better support for ESXi & HW versions

⚠️ BREAKING

📖 Commits

  • [ef3a3d6] chore: Update version.go for v0.36.0
  • [89693ad] Updating CONTRIBUTORS
  • [fd3840e] fix: vcsim Fetch method causes runtime panic when property is not set (#3337)
  • [7550554] Add APIs for vLCM enablement on a cluster and base ESXi image selection
  • [01a069d] chore: bump Go versions
  • [7998478] build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0
  • [4ad8f68] Add API for vLCM - offline depots and cluster baseline images
  • [08d2fd0] chore: Better support for ESXi & HW versions
  • [c46ad1a] vcsim: Enhanced sim support for upgrade VM
  • [4254c59] fix: Update summary.config.hwVersion in simulator
  • [de2ce18] test fixes
  • [44610f4] fix: govc: use session KeepAlive in library.export command (#3356)
  • [4190715] Add service locator to CNS RelocateVolume spec
  • [ef555e7] Add "AggregatedSnapshotCapacityInMb" to CnsSnapshotCreateResult and CnsSnapshotDeleteResult.

v0.35.0

12 Feb 19:29
Compare
Choose a tag to compare

Release v0.35.0

Release Date: 2024-02-12

💫 API Changes

  • [8e17e4c] Sim vm config.changeVersion & config.modified
  • [95aa257] WaitForUpdatesEx & DestroyPropertyFilter

💫 govc (CLI)

💫 vcsim (Simulator)

  • [557d265] Fix -method-delay option to update task states (#3323)

📃 Documentation

🧹 Chore

  • [d7c0094] Update version.go for v0.35.0
  • [69785ff] update CONTRIBUTORS

⚠️ BREAKING

json tag camelCase fixes [9ddfc53]:
follow up to json tags missed in PR #3007 and PR #3247

WaitForUpdatesEx & DestroyPropertyFilter [95aa257]:
The semantics around the helper functions in the
property package have changed. Please review any
code that calls this package to ensure it is
compatible with the new behaviors.

📖 Commits

  • [d7c0094] chore: Update version.go for v0.35.0
  • [2d1b52f] docs: update release doc (#3284)
  • [69785ff] chore: update CONTRIBUTORS
  • [9ddfc53] govc: json tag camelCase fixes (#3007) (#3247) (#3318)
  • [b137a5d] Add "AggregatedSnapshotCapacityInMb" to cnstype.
  • [b948e3c] add -json to snapshot.tree
  • [dabec6c] build(deps): bump nokogiri from 1.14.3 to 1.16.2 in /gen
  • [8e17e4c] api: Sim vm config.changeVersion & config.modified
  • [d55cf6e] build(deps): bump peter-evans/create-pull-request from 5 to 6
  • [25cab09] Re-enable PC updates for indexed properties (#3349)
  • [8150eed] build(deps): bump andstor/file-existence-action from 2 to 3
  • [bfc5d64] build(deps): bump peter-evans/create-or-update-comment from 3 to 4
  • [42d7d71] Add new "UsedCapacityInMb" in struct "CnsBlockBackingDetails"
  • [61f901e] build(deps): bump github.com/google/uuid from 1.5.0 to 1.6.0
  • [3b5917a] build(deps): bump actions/cache from 3 to 4
  • [78898bd] Self identify the executable making calls to vCenter
  • [95aa257] api: WaitForUpdatesEx & DestroyPropertyFilter
  • [cd8a788] Changes to fix xml tag used for SnapshotId
  • [557d265] vcsim: Fix -method-delay option to update task states (#3323)
  • [98b0b77] Fixes Missing Tags in AttachedTags (#3320)
  • [5410a06] Changes to add CNS fault CnsSnapshotCreatedFault
  • [8c1d8f1] build(deps): bump actions/upload-artifact from 3 to 4
  • [14d3538] build(deps): bump github/codeql-action from 2 to 3
  • [f6c537d] build(deps): bump github.com/google/uuid from 1.4.0 to 1.5.0
  • [e9a9f2c] build(deps): bump chuhlomin/render-template from 1.8 to 1.9

v0.34.2

08 Jan 04:36
Compare
Choose a tag to compare

Release v0.34.2

Release Date: 2024-01-08

💫 vcsim (Simulator)

  • [4c8ffb2] Fix -method-delay option to update task states (#3323)

🧹 Chore

  • [96b6eb7] Update version.go for v0.34.2

⚠️ BREAKING

📖 Commits

  • [96b6eb7] chore: Update version.go for v0.34.2
  • [4c8ffb2] vcsim: Fix -method-delay option to update task states (#3323)
  • [1c2c1c7] Fixes Missing Tags in AttachedTags (#3320)
  • [5592467] Changes to fix xml tag used for SnapshotId

v0.34.1

19 Dec 21:34
Compare
Choose a tag to compare

Release v0.34.1

Release Date: 2023-12-19

🧹 Chore

  • [754cb3a] Update version.go for v0.34.1

⚠️ BREAKING

📖 Commits

  • [754cb3a] chore: Update version.go for v0.34.1
  • [dd8bbb4] Changes to add CNS fault CnsSnapshotCreatedFault

v0.34.0

12 Dec 21:49
Compare
Choose a tag to compare

Release v0.34.0

Release Date: 2023-12-12

🐞 Fix

💫 API Changes

  • [31423b7] add object.Datastore.FindInventoryPath (#3267)
  • [d52f8ee] add Content Library update session file APIs (#3258)

💫 vcsim (Simulator)

  • [4a09f19] add PbmQueryAssociatedProfiles method
  • [4cbd642] Fix [BUG] vcsim raises TypeError for RemoveSnapshotTask (#3298)
  • [04ccf69] handle HostNotConnected when saving inventory
  • [2f1fefa] fix MAC Addresses to be unique (#3279)
  • [e19137f] propagate VMwareDVSConfigSpec in CreateDVS_Task (#3264)
  • [a092311] emit DVS and Portgroup create events (#3263)
  • [c8a2fc2] Fix PropertyCollector to handle empty property (#3275)

🧹 Chore

  • [a5899af] Update version.go for v0.34.0

⚠️ BREAKING

📖 Commits

  • [a5899af] chore: Update version.go for v0.34.0
  • [980d22d] fix: expose util for rest status return (#3309)
  • [4a09f19] vcsim: add PbmQueryAssociatedProfiles method
  • [e39527d] build(deps): bump actions/stale from 8 to 9
  • [4cbd642] vcsim: Fix [BUG] vcsim raises TypeError for RemoveSnapshotTask (#3298)
  • [e9a782a] build(deps): bump actions/setup-go from 4 to 5
  • [45188e1] Add default Historical Intervals to the simulator
  • [04ccf69] vcsim: handle HostNotConnected when saving inventory
  • [2f1fefa] vcsim: fix MAC Addresses to be unique (#3279)
  • [d32be09] simulator: fix dropped error
  • [e19137f] vcsim: propagate VMwareDVSConfigSpec in CreateDVS_Task (#3264)
  • [a092311] vcsim: emit DVS and Portgroup create events (#3263)
  • [31423b7] api: add object.Datastore.FindInventoryPath (#3267)
  • [c8a2fc2] vcsim: Fix PropertyCollector to handle empty property (#3275)
  • [d52f8ee] api: add Content Library update session file APIs (#3258)
  • [3942d8f] build(deps): bump github.com/google/uuid from 1.3.1 to 1.4.0
  • [09c7291] Add additional PBM methods

v0.33.0

25 Oct 16:21
Compare
Choose a tag to compare

Release v0.33.0

Release Date: 2023-10-25

💫 govc (CLI)

  • [5264e83] add cluster.change '-ha-admission-control-enabled' flag
  • [3bcaf42] add option to enable hidden properties in import.{spec,ova} (#3111)

💫 vcsim (Simulator)

  • [db0ba92] Handle prepare guest operations when svm is nil
  • [0754d75] fix ModifyListView to return unresolved references
  • [7f3a070] Remove extra devices in OVF Deploy w/ ConfigSpec

🧹 Chore

  • [f3c1fca] Update version.go for v0.33.0
  • [675eebd] remove refs to deprecated io/ioutil

⚠️ BREAKING

fix ModifyListView to return unresolved references [0754d75]:
api: view.ListView.{Add,Remove,Reset} methods now return unresolved references

📖 Commits

  • [f3c1fca] chore: Update version.go for v0.33.0
  • [19726dc] Add functionality for checking whether the provided thumbprint is known to the soap client
  • [5264e83] govc: add cluster.change '-ha-admission-control-enabled' flag
  • [db0ba92] vcsim: Handle prepare guest operations when svm is nil
  • [0434fd2] vapi: add support for OperationID header
  • [0754d75] vcsim: fix ModifyListView to return unresolved references
  • [5569c01] build(deps): bump github.com/google/go-cmp from 0.5.9 to 0.6.0
  • [babee19] build(deps): bump chuhlomin/render-template from 1.7 to 1.8
  • [7f3a070] vcsim: Remove extra devices in OVF Deploy w/ ConfigSpec
  • [3bcaf42] govc: add option to enable hidden properties in import.{spec,ova} (#3111)
  • [675eebd] chore: remove refs to deprecated io/ioutil

v0.32.0

28 Sep 20:55
Compare
Choose a tag to compare

Release v0.32.0

Release Date: 2023-09-28

⚠️ BREAKING

camelCase json output [db5b3d8]:
This change adds camelCase (lower-case 1st character) json tags for govc types

EnvironmentBrowser improvements [524ca25]:
removed object.VirtualMachine.QueryConfigTarget method

  • Use object.VirtualMachine.EnvironmentBrowser().QueryConfigTarget instead

🐞 Fix

  • [bed9513] case insensitive govc import.ova PropertyMapping (#3245)

💡 Examples

  • [f2aaee5] add ListView example for waiting on updates to tasks

💫 API Changes

  • [a91eb5e] disable HTTP Keep-Alive for direct ESX connections

💫 govc (CLI)

💫 vcsim (Simulator)

📃 Documentation

  • [258ee24] update govc jq examples with correct case (#3007)

🧹 Chore

  • [a8d705a] Update version.go for v0.32.0

📖 Commits

  • [a8d705a] chore: Update version.go for v0.32.0
  • [f2aaee5] examples: add ListView example for waiting on updates to tasks
  • [a91eb5e] api: disable HTTP Keep-Alive for direct ESX connections
  • [db5b3d8] govc: camelCase json output (#3007) (#3243) (#3242) (#3241)
  • [524ca25] vcsim: EnvironmentBrowser improvements
  • [bed9513] fix: case insensitive govc import.ova PropertyMapping (#3245)
  • [6c19b99] emacs: update for v0.31.0 release (#3007)
  • [258ee24] docs: update govc jq examples with correct case (#3007)
  • [d49e401] vcsim: set HostSystem.Config.Host (#3221)

v0.31.0

25 Sep 19:24
Compare
Choose a tag to compare

Release v0.31.0

Release Date: 2023-09-25

⚠️ BREAKING

  • [b594bf1] Move to main

    Changing GoVmomi's default branch from master to main will likely result in dependents needing to repoint their clients and other integrations to the new, default branch.

  • [9920086] Generate JSON tags

    Updating the vim25/types with camelCased, JSON tags affects the output of the govc command when using the -json flag to emit results as JSON. Field names that used to be PascalCased will now be camelCased. Queries for tools that parse JSON, such as jq, will need to be updated to use the new camelCased fields.

    This change was made to support marshaling the eam, pbm, sms, vim, and vslm types to/from JSON using OpenAPI JSON discriminators.

  • [4f9f126] Change string to *string for Item.Description and Library.Description in library package

    • Test against a VC testbed

      Sending a UpdateLibraryItem request with this change, and set the new description to "". The original item description was "virtualmachinepublishrequest.vmware.com: 6b0d06ad-8e18-4881-a806-2a7c8a7e1b4b", after this UpdateLibraryItem request succeeded, the item description was set to "". While before this change, it would be a no-op for the description.

    • Test using govc

      • Update Library

        Create a library:
        ➜  govmomi git:(issue-3048) ✗ govc library.create -d "description-1" cl-1
        495f611a-cf74-40d6-a54a-8b239cf15406
        ➜  govmomi git:(issue-3048) ✗ ~/go/bin/govc library.info 495f611a-cf74-40d6-a54a-8b239cf15406
        Name:                 cl-1
          ID:                 495f611a-cf74-40d6-a54a-8b239cf15406
          Path:               /cl-1
          Description:        description-1
          Version:            2
          Created:            Fri Feb 17 19:18:22 2023
          Security Policy ID
          StorageBackings:
            DatastoreID:      sharedVmfs-0
            Type:             DATASTORE
        
        Update the library description with new string:
        ➜  govmomi git:(issue-3048) ✗ ~/go/bin/govc library.update -d "new description" 495f611a-cf74-40d6-a54a-8b239cf15406
        ➜  govmomi git:(issue-3048) ✗ ~/go/bin/govc library.info 495f611a-cf74-40d6-a54a-8b239cf15406
        Name:                 cl-1
          ID:                 495f611a-cf74-40d6-a54a-8b239cf15406
          Path:               /cl-1
          Description:        new description
          Version:            3
          Created:            Fri Feb 17 19:18:22 2023
          Security Policy ID
          StorageBackings:
            DatastoreID:      sharedVmfs-0
            Type:             DATASTORE
        
        Update the item name, description is not erased.
        ➜  govmomi git:(issue-3048) ✗ ~/go/bin/govc library.update -n "cl-1-new" 495f611a-cf74-40d6-a54a-8b239cf15406
        ➜  govmomi git:(issue-3048) ✗ ~/go/bin/govc library.info 495f611a-cf74-40d6-a54a-8b239cf15406
        Name:                 cl-1-new
          ID:                 495f611a-cf74-40d6-a54a-8b239cf15406
          Path:               /cl-1-new
          Description:        new description
          Version:            4
          Created:            Fri Feb 17 19:18:22 2023
          Security Policy ID
          StorageBackings:
            DatastoreID:      sharedVmfs-0
            Type:             DATASTORE
        
        Update the library description with empty string:
        ➜  govmomi git:(issue-3048) ✗ ~/go/bin/govc library.update -d ""
        495f611a-cf74-40d6-a54a-8b239cf15406
        ➜  govmomi git:(issue-3048) ✗ ~/go/bin/govc library.info 495f611a-cf74-40d6-a54a-8b239cf15406
        Name:                 cl-1-new
          ID:                 495f611a-cf74-40d6-a54a-8b239cf15406
          Path:               /cl-1-new
          Description:
          Version:            5
          Created:            Fri Feb 17 19:18:22 2023
          Security Policy ID
          StorageBackings:
            DatastoreID:      sharedVmfs-0
            Type:             DATASTORE
        
      • Update Library Item

        ➜  govmomi git:(issue-3048) ✗ ~/go/bin/govc library.update -d "item-2" /cl-1/image-2
        ➜  govmomi git:(issue-3048) ✗ ~/go/bin/govc library.info /cl-1/image-2
        Name:                   image-2
          ID:                   0dc7df56-31e0-47dc-8b0a-6a33279ddccc
          Path:                 /cl-1/image-2
          Description:          item-2
          Type:                 ovf
          Size:                 2.0GB
          Created:              Wed Feb 15 23:05:15 2023
          Modified:             Fri Feb 17 19:29:54 2023
          Version:              3
          Security Compliance:  true
          Certificate Status:   INTERNAL
        
        Update item name:
        govmomi git:(issue-3048) ✗ ~/go/bin/govc library.update -n "image-2-new" /cl-1/image-2
        ➜  govmomi git:(issue-3048) ✗ ~/go/bin/govc library.info /cl-1/image-2-new
        Name:                   image-2-new
          ID:                   0dc7df56-31e0-47dc-8b0a-6a33279ddccc
          Path:                 /cl-1/image-2-new
          Description:          item-2
          Type:                 ovf
          Size:                 2.0GB
          Created:              Wed Feb 15 23:05:15 2023
          Modified:             Fri Feb 17 19:31:44 2023
          Version:              4
          Security Compliance:  true
          Certificate Status:   INTERNAL
        
        Update item description to empty string
        ➜  govmomi git:(issue-3048) ✗ ~/go/bin/govc library.update -d "" /cl-1/image-2-new
        ➜  govmomi git:(issue-3048) ✗ ~/go/bin/govc library.info /cl-1/image-2-new
        Name:                   image-2-new
          ID:                   0dc7df56-31e0-47dc-8b0a-6a33279ddccc
          Path:                 /cl-1/image-2-new
          Description:
          Type:                 ovf
          Size:                 2.0GB
          Created:              Wed Feb 15 23:05:15 2023
          Modified:             Fri Feb 17 19:32:56 2023
          Version:              5
          Security Compliance:  true
          Certificate Status:   INTERNAL
        

🐞 Fix

  • [8f9e549] govc vm.clone failure when using 'cluster' option (#3208)
  • [b22f730] govc datacenter.info VM count with multiple DCs
  • [65814f0] Update some goreleaser deprecated fields (#3181)
  • [b4eac19] check the error chain when validating if it's x509 error (#3174)
  • [86cadf2] Fix the gorelease
  • [1711a84] avoid modifying client transport outside of NewClient (#3161)
  • [313aa85] share http.Transport with service clients (#3039)
  • [f81f3b3] grep warnings during generating usage documentation
  • [2d11115] support binary and dateTime in JSON (#3127)
  • [c4ffe46] add esxcli.Fault and revert Error() string (#3072)
  • [93cb079] byte, float and int (de) serialization (#3121)
  • [8bc2caa] avoid govc -verbose flag panic if an UpdateSet is nil (#3088)
  • [9ba1b85] include StoragePod Datastore children in ContainerView (#3094)
  • [8b00a93] only limit the number of samples generated to maxSample when maxSample is greater than 0 and the number of samples to generate is greater than maxSample Closes: #3097 (#3097)
  • [4ed0763] support govc ls -xml flag (#3053)
  • [8554329] Pin the result limit of ssoadmin client to its MAX (#3004)

💡 Examples

💫 API Changes

  • [a03f473] Fix errors w 8.0U2 GA update
  • [515df5d] Update generated types to vSphere 8.0U2 GA
  • [b7ceede] Prep to update types to vSphere 8.0U2 GA
  • [ccd07a0] Update generated types to vSphere 8.0U1c GA
  • [4c00586] Prep to update types to vSphere 8.0U1c GA
  • [5431c33] Type/field comments for data structures; API versions
  • [4b2de28] Add SDK support for VM data sets (#3050)
  • [25865e5] set inventory path in SearchIndex.FindByInventoryPath (#3095)
  • [38d0ac0] Add JSON transport for vim25 (#3062)
  • [0938fba] Add ServerGuid to gen'd MoRef
  • [e09a412] support find.NetworkList by ID (#2626)
  • [e8fa981] support find.Network by cluster path
  • [4e6d642] JSON Discriminators for vim25/types
  • [9920086] Generate JSON tags

💫 govc (CLI)

  • [c4d851b] Add CLI support for VM data sets (#3050)
  • [02f353d] Command to print device/backings model as tree
  • [af7833b] Fix memory aliasing in for loop (gosec G601)
  • [e17d884] add -file flag for cluster.module.rm
  • [e34c721] Add CLI device protocol support for vm.network.add (#3167)
  • [48bdfad] Add --help
  • [28014f9] Add general usage message (#3054)
  • [e5f3cd0] add detail error message for host.esxcli commands (#3073)
  • [81733d0] add cluster.mv command (#2524)
  • [daaaca0] Add support for CNS volume snapshots
  • [477bf69] Support JSON protocol using environment variable (#3062)
  • [b8007c4] dont check poweredOn for vm.console vmrc requests (#2127)
  • [6b34770] add sso.idp.ldap.update command (#3057)
  • [e5b2aa3] Add feature VM IOMMU enablement support (#3055)
  • [f4c678a] Add checksum validation to govc import.ova (#1978)
  • [e935b5a] Add feature to get and set default idp (#3023)

💫 vcsim (Simulator)

  • [35ec7c3] Add simulator support for VM data sets (#3050)
  • [c77de71] Introduce separation btw new service instance & infra creation
  • [2b5c457] add interactive debug github action stage
  • [9b2ef98] use docker event for efficient monitoring
  • [6f34f13] container backing respects changes via reconfigure
  • [6248cbf] create underlay network for pNICs in container-backed hosts
  • [6b7b0df] per-host OptionManager instances and differentiated roles
  • [387dc6e] support container backing for hosts
  • [fdb4d84] untangle container/VM to allow reuse of container logic for hosts
  • [9d8380c] Fix ...
Read more

v0.30.7

04 Aug 03:16
Compare
Choose a tag to compare

Release v0.30.7

Release Date: 2023-08-04

🐞 Fix

  • [cd0c259] Update some goreleaser deprecated fields (#3181)

💫 vcsim (Simulator)

  • [3dac2e7] Fix RefreshDatastore to return a valid response (#3198)
  • [fe7a0ac] add PerformanceManager counter values

🧹 Chore

  • [46fd9d2] Update version.go for v0.30.7

⚠️ BREAKING

📖 Commits

  • [46fd9d2] chore: Update version.go for v0.30.7
  • [3dac2e7] vcsim: Fix RefreshDatastore to return a valid response (#3198)
  • [fe7a0ac] vcsim: add PerformanceManager counter values
  • [552dfab] build: quote golang version in release file to workaround issue in github action Close #3179 (#3179)
  • [cd0c259] fix: Update some goreleaser deprecated fields (#3181)